[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:05]OFD Sender: No OFD packet to send [03:27:10]OFD Sender: No OFD packet to send [03:27:15]OFD Sender: No OFD packet to send [03:27:20]OFD Sender: No OFD packet to send [03:27:25]OFD Sender: No OFD packet to send [03:27:30]OFD Sender: No OFD packet to send [03:27: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:21]OFD Sender: No OFD packet to send [03:41:26]OFD Sender: No OFD packet to send [03:41:31]OFD Sender: No OFD packet to send [03:41:36]OFD Sender: No OFD packet to send [03:41:41]OFD Sender: No OFD packet to send [03:41:46]OFD Sender: No OFD packet to send [03:41:51]OFD Sender: No OFD packet to send [03:41:56]OFD Sender: No OFD packet to send [03:42:01]OFD Sender: No OFD packet to send [03:42:06]OFD Sender: No OFD packet to send [03:42:11]OFD Sender: No OFD packet to send [03:42:16]OFD Sender: No OFD packet to send [03:42:21]OFD Sender: No OFD packet to send [03:42:26]OFD Sender: No OFD packet to send [03:42:31]OFD Sender: No OFD packet to send [03:42:36]OFD Sender: No OFD packet to send [03:42:41]OFD Sender: No OFD packet to send [03:42:46]OFD Sender: No OFD packet to send [03:42:51]OFD Sender: No OFD packet to send [03:42:56]OFD Sender: No OFD packet to send [03:43:01]OFD Sender: No OFD packet to send [03:43:06]OFD Sender: No OFD packet to send [03:43:11]OFD Sender: No OFD packet to send [03:43:16]OFD Sender: No OFD packet to send [03:43:21]OFD Sender: No OFD packet to send [03:43:26]OFD Sender: No OFD packet to send [03:43:31]OFD Sender: No OFD packet to send [03:43:36]OFD Sender: No OFD packet to send [03:43:41]OFD Sender: No OFD packet to send [03:43:46]OFD Sender: No OFD packet to send [03:43:51]OFD Sender: No OFD packet to send [03:43:56]OFD Sender: No OFD packet to send [03:44:01]OFD Sender: No OFD packet to send [03:44:06]OFD Sender: No OFD packet to send [03:44:11]OFD Sender: No OFD packet to send [03:44:16]OFD Sender: No OFD packet to send [03:44:21]OFD Sender: No OFD packet to send [03:44:26]OFD Sender: No OFD packet to send [03:44:31]OFD Sender: No OFD packet to send [03:44:36]OFD Sender: No OFD packet to send [03:44:41]OFD Sender: No OFD packet to send [03:44:46]OFD Sender: No OFD packet to send [03:44:51]OFD Sender: No OFD packet to send [03:44:56]OFD Sender: No OFD packet to send [03:45:01]OFD Sender: No OFD packet to send [03:45:06]OFD Sender: No OFD packet to send [03:45:11]OFD Sender: No OFD packet to send [03:45:16]OFD Sender: No OFD packet to send [03:45:21]OFD Sender: No OFD packet to send [03:45:26]OFD Sender: No OFD packet to send [03:45:31]OFD Sender: No OFD packet to send [03:45:36]OFD Sender: No OFD packet to send [03:45:41]OFD Sender: No OFD packet to send [03:45:46]OFD Sender: No OFD packet to send [03:45:51]OFD Sender: No OFD packet to send [03:45:56]OFD Sender: No OFD packet to send [03:46:01]OFD Sender: No OFD packet to send [03:46:06]OFD Sender: No OFD packet to send [03:46:11]OFD Sender: No OFD packet to send [03:46:16]OFD Sender: No OFD packet to send [03:46:21]OFD Sender: No OFD packet to send [03:46:26]OFD Sender: No OFD packet to send [03:46:31]OFD Sender: No OFD packet to send [03:46:36]OFD Sender: No OFD packet to send [03:46:41]OFD Sender: No OFD packet to send [03:46:46]OFD Sender: No OFD packet to send [03:46:51]OFD Sender: No OFD packet to send [03:46:56]OFD Sender: No OFD packet to send [03:47:01]OFD Sender: No OFD packet to send [03:47:06]OFD Sender: No OFD packet to send [03:47:11]OFD Sender: No OFD packet to send [03:47:16]OFD Sender: No OFD packet to send [03:47: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:32]OFD Sender: No OFD packet to send [03:55:37]OFD Sender: No OFD packet to send [03:55:42]OFD Sender: No OFD packet to send [03:55:47]OFD Sender: No OFD packet to send [03:55:52]OFD Sender: No OFD packet to send [03:55:57]OFD Sender: No OFD packet to send [03:56:02]OFD Sender: No OFD packet to send [03:56:07]OFD Sender: No OFD packet to send [03:56:12]OFD Sender: No OFD packet to send [03:56:17]OFD Sender: No OFD packet to send [03:56:22]OFD Sender: No OFD packet to send [03:56:27]OFD Sender: No OFD packet to send [03:56:32]OFD Sender: No OFD packet to send [03:56:37]OFD Sender: No OFD packet to send [03:56:42]OFD Sender: No OFD packet to send [03:56:47]OFD Sender: No OFD packet to send [03:56:52]OFD Sender: No OFD packet to send [03:56:57]OFD Sender: No OFD packet to send [03:57:02]OFD Sender: No OFD packet to send [03:57:07]OFD Sender: No OFD packet to send [03:57:12]OFD Sender: No OFD packet to send [03:57:17]OFD Sender: No OFD packet to send [03:57:22]OFD Sender: No OFD packet to send [03:57:27]OFD Sender: No OFD packet to send [03:57:32]OFD Sender: No OFD packet to send [03:57:37]OFD Sender: No OFD packet to send [03:57:42]OFD Sender: No OFD packet to send [03:57:47]OFD Sender: No OFD packet to send [03:57:52]OFD Sender: No OFD packet to send [03:57:57]OFD Sender: No OFD packet to send [03:58:02]OFD Sender: No OFD packet to send [03:58:07]OFD Sender: No OFD packet to send [03:58:12]OFD Sender: No OFD packet to send [03:58:17]OFD Sender: No OFD packet to send [03:58:22]OFD Sender: No OFD packet to send [03:58:27]OFD Sender: No OFD packet to send [03:58:32]OFD Sender: No OFD packet to send [03:58:37]OFD Sender: No OFD packet to send [03:58:42]OFD Sender: No OFD packet to send [03:58:47]OFD Sender: No OFD packet to send [03:58:52]OFD Sender: No OFD packet to send [03:58:57]OFD Sender: No OFD packet to send [03:59:02]OFD Sender: No OFD packet to send [03:59:07]OFD Sender: No OFD packet to send [03:59:12]OFD Sender: No OFD packet to send [03:59:17]OFD Sender: No OFD packet to send [03:59:22]OFD Sender: No OFD packet to send [03:59:27]OFD Sender: No OFD packet to send [03:59:32]OFD Sender: No OFD packet to send [03:59:37]OFD Sender: No OFD packet to send [03:59:42]OFD Sender: No OFD packet to send [03:59:47]OFD Sender: No OFD packet to send [03:59:52]OFD Sender: No OFD packet to send [03:59:57]OFD Sender: No OFD packet to send [04:00:02]OFD Sender: No OFD packet to send [04:00:07]OFD Sender: No OFD packet to send [04:00:12]OFD Sender: No OFD packet to send [04:00:17]OFD Sender: No OFD packet to send [04:00:22]OFD Sender: No OFD packet to send [04:00:27]OFD Sender: No OFD packet to send [04:00:32]OFD Sender: No OFD packet to send [04:00:37]OFD Sender: No OFD packet to send [04:00:42]OFD Sender: No OFD packet to send [04:00:47]OFD Sender: No OFD packet to send [04:00:52]OFD Sender: No OFD packet to send [04:00:57]OFD Sender: No OFD packet to send [04:01:02]OFD Sender: No OFD packet to send [04:01:07]OFD Sender: No OFD packet to send [04:01:12]OFD Sender: No OFD packet to send [04:01:17]OFD Sender: No OFD packet to send [04:01:22]OFD Sender: No OFD packet to send [04:01:27]OFD Sender: No OFD packet to send [04:01:32]OFD Sender: No OFD packet to send [04:01:37]OFD Sender: No OFD packet to send [04:01:42]OFD Sender: No OFD packet to send [04:01:47]OFD Sender: No OFD packet to send [04:01:52]OFD Sender: No OFD packet to send [04:01:57]OFD Sender: No OFD packet to send [04:02:02]OFD Sender: No OFD packet to send [04:02:07]OFD Sender: No OFD packet to send [04:02:12]OFD Sender: No OFD packet to send [04:02:17]OFD Sender: No OFD packet to send [04:02:22]OFD Sender: No OFD packet to send [04:02:27]OFD Sender: No OFD packet to send [04:02:32]OFD Sender: No OFD packet to send [04:02:37]OFD Sender: No OFD packet to send [04:02:42]OFD Sender: No OFD packet to send [04:02:47]OFD Sender: No OFD packet to send [04:02:52]OFD Sender: No OFD packet to send [04:02:57]OFD Sender: No OFD packet to send [04:03:02]OFD Sender: No OFD packet to send [04:03:07]OFD Sender: No OFD packet to send [04:03:12]OFD Sender: No OFD packet to send [04:03:17]OFD Sender: No OFD packet to send [04:03:22]OFD Sender: No OFD packet to send [04:03:27]OFD Sender: No OFD packet to send [04:03:32]OFD Sender: No OFD packet to send [04:03:37]OFD Sender: No OFD packet to send [04:03:42]OFD Sender: No OFD packet to send [04:03:47]OFD Sender: No OFD packet to send [04:03:52]OFD Sender: No OFD packet to send [04:03:57]OFD Sender: No OFD packet to send [04:04:02]OFD Sender: No OFD packet to send [04:04:07]OFD Sender: No OFD packet to send [04:04:12]OFD Sender: No OFD packet to send [04:04:17]OFD Sender: No OFD packet to send [04:04:22]OFD Sender: No OFD packet to send [04:04:27]OFD Sender: No OFD packet to send [04:04:32]OFD Sender: No OFD packet to send [04:04:37]OFD Sender: No OFD packet to send [04:04:42]OFD Sender: No OFD packet to send [04:04:47]OFD Sender: No OFD packet to send [04:04:52]OFD Sender: No OFD packet to send [04:04:57]OFD Sender: No OFD packet to send [04:05:02]OFD Sender: No OFD packet to send [04:05:07]OFD Sender: No OFD packet to send [04:05:12]OFD Sender: No OFD packet to send [04:05:17]OFD Sender: No OFD packet to send [04:05:22]OFD Sender: No OFD packet to send [04:05:27]OFD Sender: No OFD packet to send [04:05:32]OFD Sender: No OFD packet to send [04:05:37]OFD Sender: No OFD packet to send [04:05:42]OFD Sender: No OFD packet to send [04:05:47]OFD Sender: No OFD packet to send [04:05:52]OFD Sender: No OFD packet to send [04:05:57]OFD Sender: No OFD packet to send [04:06:02]OFD Sender: No OFD packet to send [04:06:07]OFD Sender: No OFD packet to send [04:06:12]OFD Sender: No OFD packet to send [04:06:17]OFD Sender: No OFD packet to send [04:06:22]OFD Sender: No OFD packet to send [04:06:27]OFD Sender: No OFD packet to send [04:06:32]OFD Sender: No OFD packet to send [04:06:37]OFD Sender: No OFD packet to send [04:06:42]OFD Sender: No OFD packet to send [04:06:47]OFD Sender: No OFD packet to send [04:06:52]OFD Sender: No OFD packet to send [04:06:57]OFD Sender: No OFD packet to send [04:07:02]OFD Sender: No OFD packet to send [04:07:07]OFD Sender: No OFD packet to send [04:07: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:48]OFD Sender: No OFD packet to send [04:09:53]OFD Sender: No OFD packet to send [04:09:58]OFD Sender: No OFD packet to send [04:10:03]OFD Sender: No OFD packet to send [04:10:08]OFD Sender: No OFD packet to send [04:10:13]OFD Sender: No OFD packet to send [04:10:18]OFD Sender: No OFD packet to send [04:10:23]OFD Sender: No OFD packet to send [04:10:28]OFD Sender: No OFD packet to send [04:10:33]OFD Sender: No OFD packet to send [04:10:38]OFD Sender: No OFD packet to send [04:10:43]OFD Sender: No OFD packet to send [04:10:48]OFD Sender: No OFD packet to send [04:10:53]OFD Sender: No OFD packet to send [04:10:58]OFD Sender: No OFD packet to send [04:11:03]OFD Sender: No OFD packet to send [04:11:08]OFD Sender: No OFD packet to send [04:11:13]OFD Sender: No OFD packet to send [04:11:18]OFD Sender: No OFD packet to send [04:11:23]OFD Sender: No OFD packet to send [04:11:28]OFD Sender: No OFD packet to send [04:11:33]OFD Sender: No OFD packet to send [04:11:38]OFD Sender: No OFD packet to send [04:11:43]OFD Sender: No OFD packet to send [04:11:48]OFD Sender: No OFD packet to send [04:11:53]OFD Sender: No OFD packet to send [04:11:58]OFD Sender: No OFD packet to send [04:12:03]OFD Sender: No OFD packet to send [04:12:08]OFD Sender: No OFD packet to send [04:12:13]OFD Sender: No OFD packet to send [04:12:18]OFD Sender: No OFD packet to send [04:12:23]OFD Sender: No OFD packet to send [04:12:28]OFD Sender: No OFD packet to send [04:12:33]OFD Sender: No OFD packet to send [04:12:38]OFD Sender: No OFD packet to send [04:12:43]OFD Sender: No OFD packet to send [04:12:48]OFD Sender: No OFD packet to send [04:12:53]OFD Sender: No OFD packet to send [04:12:58]OFD Sender: No OFD packet to send [04:13:03]OFD Sender: No OFD packet to send [04:13:08]OFD Sender: No OFD packet to send [04:13:13]OFD Sender: No OFD packet to send [04:13:18]OFD Sender: No OFD packet to send [04:13:23]OFD Sender: No OFD packet to send [04:13:28]OFD Sender: No OFD packet to send [04:13:33]OFD Sender: No OFD packet to send [04:13:38]OFD Sender: No OFD packet to send [04:13:43]OFD Sender: No OFD packet to send [04:13:48]OFD Sender: No OFD packet to send [04:13:53]OFD Sender: No OFD packet to send [04:13:58]OFD Sender: No OFD packet to send [04:14:03]OFD Sender: No OFD packet to send [04:14:08]OFD Sender: No OFD packet to send [04:14:13]OFD Sender: No OFD packet to send [04:14:18]OFD Sender: No OFD packet to send [04:14:23]OFD Sender: No OFD packet to send [04:14:28]OFD Sender: No OFD packet to send [04:14:33]OFD Sender: No OFD packet to send [04:14:38]OFD Sender: No OFD packet to send [04:14:43]OFD Sender: No OFD packet to send [04:14:48]OFD Sender: No OFD packet to send [04:14:53]OFD Sender: No OFD packet to send [04:14:58]OFD Sender: No OFD packet to send [04:15:03]OFD Sender: No OFD packet to send [04:15:08]OFD Sender: No OFD packet to send [04:15:13]OFD Sender: No OFD packet to send [04:15:18]OFD Sender: No OFD packet to send [04:15:23]OFD Sender: No OFD packet to send [04:15:28]OFD Sender: No OFD packet to send [04:15:33]OFD Sender: No OFD packet to send [04:15:38]OFD Sender: No OFD packet to send [04:15:43]OFD Sender: No OFD packet to send [04:15:48]OFD Sender: No OFD packet to send [04:15:53]OFD Sender: No OFD packet to send [04:15:58]OFD Sender: No OFD packet to send [04:16:03]OFD Sender: No OFD packet to send [04:16:08]OFD Sender: No OFD packet to send [04:16:13]OFD Sender: No OFD packet to send [04:16:18]OFD Sender: No OFD packet to send [04:16:23]OFD Sender: No OFD packet to send [04:16:28]OFD Sender: No OFD packet to send [04:16:33]OFD Sender: No OFD packet to send [04:16:38]OFD Sender: No OFD packet to send [04:16:43]OFD Sender: No OFD packet to send [04:16:48]OFD Sender: No OFD packet to send [04:16:53]OFD Sender: No OFD packet to send [04:16:58]OFD Sender: No OFD packet to send [04:17:03]OFD Sender: No OFD packet to send [04:17:08]OFD Sender: No OFD packet to send [04:17:13]OFD Sender: No OFD packet to send [04:17:18]OFD Sender: No OFD packet to send [04:17:23]OFD Sender: No OFD packet to send [04:17:28]OFD Sender: No OFD packet to send [04:17:33]OFD Sender: No OFD packet to send [04:17:38]OFD Sender: No OFD packet to send [04:17:43]OFD Sender: No OFD packet to send [04:17:48]OFD Sender: No OFD packet to send [04:17:53]OFD Sender: No OFD packet to send [04:17:58]OFD Sender: No OFD packet to send [04:18:03]OFD Sender: No OFD packet to send [04:18:08]OFD Sender: No OFD packet to send [04:18:13]OFD Sender: No OFD packet to send [04:18:18]OFD Sender: No OFD packet to send [04:18:23]OFD Sender: No OFD packet to send [04:18:28]OFD Sender: No OFD packet to send [04:18:33]OFD Sender: No OFD packet to send [04:18:38]OFD Sender: No OFD packet to send [04:18:43]OFD Sender: No OFD packet to send [04:18:48]OFD Sender: No OFD packet to send [04:18:53]OFD Sender: No OFD packet to send [04:18:58]OFD Sender: No OFD packet to send [04:19:03]OFD Sender: No OFD packet to send [04:19:08]OFD Sender: No OFD packet to send [04:19:13]OFD Sender: No OFD packet to send [04:19:18]OFD Sender: No OFD packet to send [04:19:23]OFD Sender: No OFD packet to send [04:19:28]OFD Sender: No OFD packet to send [04:19:33]OFD Sender: No OFD packet to send [04:19:38]OFD Sender: No OFD packet to send [04:19:43]OFD Sender: No OFD packet to send [04:19:48]OFD Sender: No OFD packet to send [04:19:53]OFD Sender: No OFD packet to send [04:19:58]OFD Sender: No OFD packet to send [04:20:03]OFD Sender: No OFD packet to send [04:20:08]OFD Sender: No OFD packet to send [04:20:13]OFD Sender: No OFD packet to send [04:20:18]OFD Sender: No OFD packet to send [04:20:23]OFD Sender: No OFD packet to send [04:20:28]OFD Sender: No OFD packet to send [04:20:33]OFD Sender: No OFD packet to send [04:20:38]OFD Sender: No OFD packet to send [04:20:43]OFD Sender: No OFD packet to send [04:20:48]OFD Sender: No OFD packet to send [04:20:53]OFD Sender: No OFD packet to send [04:20:58]OFD Sender: No OFD packet to send [04:21:03]OFD Sender: No OFD packet to send [04:21:08]OFD Sender: No OFD packet to send [04:21:13]OFD Sender: No OFD packet to send [04:21:18]OFD Sender: No OFD packet to send [04:21:23]OFD Sender: No OFD packet to send [04:21:28]OFD Sender: No OFD packet to send [04:21:33]OFD Sender: No OFD packet to send [04:21:38]OFD Sender: No OFD packet to send [04:21:43]OFD Sender: No OFD packet to send [04:21:48]OFD Sender: No OFD packet to send [04:21:53]OFD Sender: No OFD packet to send [04:21:58]OFD Sender: No OFD packet to send [04:22:03]OFD Sender: No OFD packet to send [04:22:08]OFD Sender: No OFD packet to send [04:22:13]OFD Sender: No OFD packet to send [04:22:18]OFD Sender: No OFD packet to send [04:22:23]OFD Sender: No OFD packet to send [04:22:28]OFD Sender: No OFD packet to send [04:22:33]OFD Sender: No OFD packet to send [04:22:38]OFD Sender: No OFD packet to send [04:22:43]OFD Sender: No OFD packet to send [04:22:48]OFD Sender: No OFD packet to send [04:22:53]OFD Sender: No OFD packet to send [04:22:58]OFD Sender: No OFD packet to send [04:23:03]OFD Sender: No OFD packet to send [04:23:08]OFD Sender: No OFD packet to send [04:23:13]OFD Sender: No OFD packet to send [04:23:18]OFD Sender: No OFD packet to send [04:23:23]OFD Sender: No OFD packet to send [04:23:28]OFD Sender: No OFD packet to send [04:23:33]OFD Sender: No OFD packet to send [04:23:38]OFD Sender: No OFD packet to send [04:23:43]OFD Sender: No OFD packet to send [04:23:48]OFD Sender: No OFD packet to send [04:23:53]OFD Sender: No OFD packet to send [04:23:58]OFD Sender: No OFD packet to send [04:24:03]OFD Sender: No OFD packet to send [04:24:08]OFD Sender: No OFD packet to send [04:24:13]OFD Sender: No OFD packet to send [04:24:18]OFD Sender: No OFD packet to send [04:24:23]OFD Sender: No OFD packet to send [04:24:28]OFD Sender: No OFD packet to send [04:24:33]OFD Sender: No OFD packet to send [04:24:38]OFD Sender: No OFD packet to send [04:24:43]OFD Sender: No OFD packet to send [04:24:48]OFD Sender: No OFD packet to send [04:24:53]OFD Sender: No OFD packet to send [04:24:58]OFD Sender: No OFD packet to send [04:25:03]OFD Sender: No OFD packet to send [04:25:08]OFD Sender: No OFD packet to send [04:25:13]OFD Sender: No OFD packet to send [04:25:18]OFD Sender: No OFD packet to send [04:25:23]OFD Sender: No OFD packet to send [04:25:28]OFD Sender: No OFD packet to send [04:25:33]OFD Sender: No OFD packet to send [04:25:38]OFD Sender: No OFD packet to send [04:25:43]OFD Sender: No OFD packet to send [04:25:48]OFD Sender: No OFD packet to send [04:25:53]OFD Sender: No OFD packet to send [04:25:58]OFD Sender: No OFD packet to send [04:26:03]OFD Sender: No OFD packet to send [04:26:08]OFD Sender: No OFD packet to send [04:26:13]OFD Sender: No OFD packet to send [04:26:18]OFD Sender: No OFD packet to send [04:26:23]OFD Sender: No OFD packet to send [04:26:28]OFD Sender: No OFD packet to send [04:26:33]OFD Sender: No OFD packet to send [04:26:38]OFD Sender: No OFD packet to send [04:26:43]OFD Sender: No OFD packet to send [04:26:48]OFD Sender: No OFD packet to send [04:26:53]OFD Sender: No OFD packet to send [04:26:59]OFD Sender: No OFD packet to send [04:27:04]OFD Sender: No OFD packet to send [04:27:09]OFD Sender: No OFD packet to send [04:27:14]OFD Sender: No OFD packet to send [04:27:19]OFD Sender: No OFD packet to send [04:27:24]OFD Sender: No OFD packet to send [04:27:29]OFD Sender: No OFD packet to send [04:27:34]OFD Sender: No OFD packet to send [04:27:39]OFD Sender: No OFD packet to send [04:27:44]OFD Sender: No OFD packet to send [04:27:49]OFD Sender: No OFD packet to send [04:27:54]OFD Sender: No OFD packet to send [04:27:59]OFD Sender: No OFD packet to send [04:28:04]OFD Sender: No OFD packet to send [04:28:09]OFD Sender: No OFD packet to send [04:28:14]OFD Sender: No OFD packet to send [04:28:19]OFD Sender: No OFD packet to send [04:28:24]OFD Sender: No OFD packet to send [04:28:29]OFD Sender: No OFD packet to send [04:28:34]OFD Sender: No OFD packet to send [04:28:39]OFD Sender: No OFD packet to send [04:28:44]OFD Sender: No OFD packet to send [04:28:49]OFD Sender: No OFD packet to send [04:28:54]OFD Sender: No OFD packet to send [04:28:59]OFD Sender: No OFD packet to send [04:29:04]OFD Sender: No OFD packet to send [04:29:09]OFD Sender: No OFD packet to send [04:29:14]OFD Sender: No OFD packet to send [04:29:19]OFD Sender: No OFD packet to send [04:29:24]OFD Sender: No OFD packet to send [04:29:29]OFD Sender: No OFD packet to send [04:29:34]OFD Sender: No OFD packet to send [04:29:39]OFD Sender: No OFD packet to send [04:29:44]OFD Sender: No OFD packet to send [04:29:49]OFD Sender: No OFD packet to send [04:29:54]OFD Sender: No OFD packet to send [04:29:59]OFD Sender: No OFD packet to send [04:30:01]accept exits with 7 [04:30:01]New connection [04:30:01]New thread 3067084132 created [04:30:01]Thread 3067227492 joined [04:30:01]Waiting for new connection... [04:30:01] Sock 7.Parse request [04:30:01]Sock 7.Check first char [04:30:01]Sock 7.First char is OK [04:30:01]request: POST /json_proto HTTP/1.0 [04:30:01]Method: POST [04:30:01]URL: /json_proto [04:30:01]Method is POST - this is cgi request [04:30:01]url: /json_proto [04:30:01]query_string will be loaded in cgi processing [04:30:01]execute_cgi json_proto POST (null) [04:30:01]execute_cgi path=json_proto method=POST [04:30:01]POST find Content-Length [04:30:01]Host: 172.17.36.132:8080 [04:30:01]Content-Length: 677 [04:30:01]Content-Type: application/json [04:30:01] [04:30:01]POST finish read [04:30:01]Found Content-Length = 677 [04:30:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706621", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:30:01]execute_script... [04:30: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)706621", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:30:01]POST & json_proto [04:30:01]process_json_proto [04:30:01]json parsed OK: [04:30:01]protocol is kg_v1.0 [04:30:01]action value=close_receipt [04:30:01]process_action close_receipt [04:30:01]cmd_close_receipt [04:30:01]MH_GetDate [04:30:01]Write to MH i2c: F0 00 00 BA 0E B7 [04:30:01]Write i2c OK [04:30:01]MH_I2C_Read... [04:30:01]Read from MH i2c: F0 [04:30:01]MH_I2C_Read... [04:30:01]Read from MH i2c: F0 09 00 [04:30:01]MH_I2C_Read... [04:30:01]Read from MH i2c: F0 09 00 BA 0E 00 4B 98 5E 66 B2 22 B0 64 4F [04:30:01]GetLastDocTimeStamp 1717467771 [04:30:01]current date 1717475403 [04:30:01]FM_GetShiftState [04:30:01]SAM_PROTO_GetShiftState [04:30:01]wFMCommunicate request_size=4 [04:30:01]MH_SAM_APDU [04:30:01]CAPDU: 80 13 01 00 [04:30:01]Write to MH i2c: E2 08 00 BB 0E 80 13 01 00 00 00 00 00 46 [04:30:01]Write i2c OK [04:30:01]MH_I2C_Read... [04:30:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:30:01]Read from MH i2c: E2 [04:30:01]MH_I2C_Read... [04:30:01]Read from MH i2c: E2 0E 00 [04:30:01]MH_I2C_Read... [04:30:01]Read from MH i2c: E2 0E 00 BB 0E 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 E2 [04:30:01]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [04:30:01]wFMCommunicate OK [04:30:01]SAM_PROTO_GetShiftState done [04:30:01]FM_GetShiftState done [04:30:01]opened in 1717460590 [04:30:01]opened+sec_in_day 1717546990 [04:30:01]quantity*price = 20003 [04:30:01]sum+1 = 20004 [04:30:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 7 04.06.2024 04:30 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68509 ФПД: 61750811580915 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T043003&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68509&fm=61750811580915&tin=02508201610067®Number=0000000000098096&sum=20000 [04:30:02]StoreToDocumentArchive [04:30:02]shift 325 fd 68509 [04:30:02]save to /storage/0325/doc_00068509 [04:30:02]save last doc name /storage/0325/doc_00068509 to /storage/kkm_last_doc_name [04:30:02]save OK [04:30:02]Clear old archive folders... [04:30:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [04:30:02]tlvbuf is 00A22660 [04:30:02]SAM_PROTO_ClearQueue [04:30:02]wFMCommunicate request_size=4 [04:30:02]MH_SAM_APDU [04:30:02]CAPDU: 80 09 00 00 [04:30:02]Write to MH i2c: E2 08 00 C8 0E 80 09 00 00 00 00 00 00 48 [04:30:02]Write i2c OK [04:30:02]MH_I2C_Read... [04:30:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:30:02]Read from MH i2c: E2 [04:30:02]MH_I2C_Read... [04:30:02]Read from MH i2c: E2 03 00 [04:30:02]MH_I2C_Read... [04:30:02]Read from MH i2c: E2 03 00 C8 0E 00 90 00 4A [04:30:02]RAPDU: 90 00 [04:30:02]wFMCommunicate OK [04:30:02]SAM_PROTO_ClearQueue done [04:30:02]KKMCreateOFDPacket [04:30:02]OFDProtocolAddRootSTLVToBuf [04:30:02]FM_MakeSignedData [04:30:02]FM_MakeSignedData [04:30:02]SAM_PROTO_SignData [04:30:02]wFMCommunicate request_size=4 [04:30:02]MH_SAM_APDU [04:30:02]CAPDU: 80 0D 01 02 [04:30:02]Write to MH i2c: E2 08 00 C9 0E 80 0D 01 02 00 00 00 00 50 [04:30:02]Write i2c OK [04:30:02]MH_I2C_Read... [04:30:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:30:02]Read from MH i2c: E2 [04:30:02]MH_I2C_Read... [04:30:02]Read from MH i2c: E2 03 00 [04:30:02]MH_I2C_Read... [04:30:02]Read from MH i2c: E2 03 00 C9 0E 00 90 00 4B [04:30:02]RAPDU: 90 00 [04:30:02]wFMCommunicate OK [04:30:02]wFMCommunicate request_size=255 [04:30:02]MH_SAM_APDU [04:30: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 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 4B 98 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 9D 0B 01 00 35 04 06 00 38 [04:30:02]Write to MH i2c: E2 02 01 CA 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 4B 98 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 9D 0B 01 00 35 04 06 00 38 00 00 74 [04:30:02]Write i2c OK [04:30:02]MH_I2C_Read... [04:30:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:30:02]Read from MH i2c: E2 [04:30:02]MH_I2C_Read... [04:30:02]Read from MH i2c: E2 03 00 [04:30:02]MH_I2C_Read... [04:30:02]Read from MH i2c: E2 03 00 CA 0E 00 90 00 4C [04:30:02]RAPDU: 90 00 [04:30:02]wFMCommunicate OK [04:30:02]wFMCommunicate request_size=10 [04:30:02]MH_SAM_APDU [04:30:02]CAPDU: 80 0D 02 02 05 29 7B 30 59 F3 [04:30:02]Write to MH i2c: E2 0D 00 CB 0E 80 0D 02 02 05 00 29 7B 30 59 F3 00 00 7D [04:30:02]Write i2c OK [04:30:02]MH_I2C_Read... [04:30:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:30:02]Read from MH i2c: E2 [04:30:02]MH_I2C_Read... [04:30:02]Read from MH i2c: E2 03 00 [04:30:02]MH_I2C_Read... [04:30:02]Read from MH i2c: E2 03 00 CB 0E 00 90 00 4D [04:30:02]RAPDU: 90 00 [04:30:02]wFMCommunicate OK [04:30:02]wFMCommunicate request_size=4 [04:30:02]MH_SAM_APDU [04:30:02]CAPDU: 80 0D 03 02 [04:30:02]Write to MH i2c: E2 08 00 CC 0E 80 0D 03 02 00 00 00 00 55 [04:30:02]Write i2c OK [04:30:02]MH_I2C_Read... [04:30:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:30:03]Read from MH i2c: E2 [04:30:03]MH_I2C_Read... [04:30:03]Read from MH i2c: E2 0B 00 [04:30:03]MH_I2C_Read... [04:30:03]Read from MH i2c: E2 0B 00 CC 0E 00 41 51 47 61 E6 73 FC 47 90 00 2C [04:30:03]RAPDU: 41 51 47 61 E6 73 FC 47 90 00 [04:30:03]wFMCommunicate OK [04:30:03]SAM_PROTO_SignData done [04:30:03]FM_MakeSignedData done [04:30:03]CreateOFDProtocolMessage [04:30:03]wFMCommunicate request_size=4 [04:30:03]MH_SAM_APDU [04:30:03]CAPDU: 80 11 00 00 [04:30:03]Write to MH i2c: E2 08 00 CD 0E 80 11 00 00 00 00 00 00 55 [04:30:03]Write i2c OK [04:30:03]MH_I2C_Read... [04:30:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:30:03]Read from MH i2c: E2 [04:30:03]MH_I2C_Read... [04:30:03]Read from MH i2c: E2 17 00 [04:30:03]MH_I2C_Read... [04:30:03]Read from MH i2c: E2 17 00 CD 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 A0 [04:30:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [04:30:03]wFMCommunicate OK [04:30:03]CreateOFDProtocolMessage done [04:30:03]OFDSenderStorePacket 68509 [04:30:03]StoreOFDPacket docnum=68509 [04:30:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 FA 64 07 01 E1 DC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 4B 98 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 9D 0B 01 00 35 04 06 00 38 29 7B 30 59 F3 41 51 47 61 E6 73 FC 47 [04:30:03]CheckFolder [04:30:03]dirname=/storage/ofd_packets [04:30:03]CheckFolder done [04:30:03]ProducePacketName [04:30:03]name=ofd_packets/00068509 [04:30:03]NVStorageSaveData ofd_packets/00068509 [04:30:03]File name is /storage/ofd_packets/00068509 [04:30:03]Write 301 bytes [04:30:03]NVStorageSaveData done [04:30:03]OFDSenderStorePacket done [04:30:03]KKMCreateOFDPacket done [04:30:03]NVStorageSaveData kkm_last_timestamp [04:30:03]File name is /storage/kkm_last_timestamp [04:30:03]Write 4 bytes [04:30:03]NVStorageSaveData done [04:30:03]ExternCall_PrintAddStr [04:30:03]wPrintStart [04:30:03]Write to MH i2c: 01 00 00 CE 0E DC [04:30:03]Write i2c OK [04:30:03]MH_I2C_Read... [04:30:03]Read from MH i2c: 01 [04:30:03]MH_I2C_Read... [04:30:03]Read from MH i2c: 01 07 00 [04:30:03]MH_I2C_Read... [04:30:03]Read from MH i2c: 01 07 00 CE 0E 00 00 00 00 00 FF 0F F1 [04:30:03]RasterBufferAndPrint [04:30:03]line Счет N : (1)706621 [04:30:03]line ИНН: 02508201610067 [04:30:03]line Контрольно-Кассовый Чек [04:30:03]line ПРОДАЖА [04:30:03]line ТРК (МРК, ГНК) : 32 [04:30:03]line Товар: 2710124130 [04:30:03]line Аи-92-К-4 [04:30:03]line 2.990 * 66.90 [04:30:03]line = 200.03 [04:30:03]line НДС 12% НСП 1% [04:30:03]line > о реализуемом товаре [04:30:03]line ОКРУГЛЕНИЕ: -0.03 [04:30:03]line ИТОГО: 200.00 [04:30:03]line Внесено: 200.00 [04:30:03]line СДАЧА: 0.00 [04:30:03]line НСП 1% : 1.77 [04:30:03]line НДС 12% : 21.24 [04:30:03]line Наличными: 200.00 [04:30:03]line Безнал.: 0.00 [04:30:03]line Место: АЗС № 62 "Партнер Нефть" [04:30:03]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [04:30:03]line СНО: Общий режим [04:30:03]line Чек 7 04.06.2024 04:30 [04:30:03]line Смена: 325 ФФД: 1.0 [04:30:03]line ЗНМ: 0300000181 [04:30:03]line РНМ: 0000000000098096 [04:30:03]line Версия ККМ: 001 [04:30:03]line ФМ: 0000000000965400 [04:30:03]line ФД: 68509 [04:30:03]line ФПД: 61750811580915 [04:30:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T043003&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68509&fm=61750811580915&tin=02508201610067®Number=0000000000098096&sum=20000 [04:30:03]OFD Sender: Processing packet 68509 [packets to send 26, broken 25] [04:30:03]ProducePacketName [04:30:03]name=ofd_packets/00068509 [04:30:03]OFD Sender: To server: pG, [04:30:03]CommunicateWithHost lk.salyk.kg:30040 [04:30:03]ConnectInit lk.salyk.kg [04:30:03]written 0, free lines is 4095 [04:30:03]Connected sock=10 [04:30:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 FA 64 07 01 E1 DC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 4B 98 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 9D 0B 01 00 35 04 06 00 38 29 7B 30 59 F3 41 51 47 61 E6 73 FC 47 [04:30:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 61 1D 47 00 58 1D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 9D 0B 01 00 F4 03 04 00 45 3F 5E 66 B6 04 01 00 00 56 85 7F AB C8 EE 02 F5 [04:30:03]CommunicateWithHost err = 0 [04:30:03]CheckOFDResponse [04:30:03]1017 (14) - 77093643461234 [04:30:03]1041 (16) - 0000000000965400 [04:30:03]1040 (4) - 68509 [04:30:03]1012 (4) - 03.06.2024 22:10 [04:30:03]1206 (1) - 0 [04:30:03]OFD Sender: Remove packet 68509 [04:30:03]ProducePacketName [04:30:03]name=ofd_packets/00068509 [04:30:03]NVStorageDeleteData [04:30:03]Write to MH i2c: 01 00 00 F9 0E 07 [04:30:03]Write i2c OK [04:30:03]MH_I2C_Read... [04:30:03]Read from MH i2c: 01 [04:30:03]MH_I2C_Read... [04:30:03]Read from MH i2c: 01 07 00 [04:30:03]MH_I2C_Read... [04:30:03]Read from MH i2c: 01 07 00 F9 0E 00 00 00 00 00 C7 0C E1 [04:30:03]RasterBufferAndPrint [04:30:03]line [04:30:03]line [04:30:03]line [04:30:03]line [04:30:03]line [04:30:03]written 0, free lines is 3277 [04:30:03]MH_Cut [04:30:03]Write to MH i2c: D1 01 00 00 0F 01 E1 [04:30:03]Write i2c OK [04:30:03]MH_I2C_Read... [04:30:03]Read from MH i2c: D1 [04:30:03]MH_I2C_Read... [04:30:03]Read from MH i2c: D1 01 00 [04:30:03]MH_I2C_Read... [04:30:03]Read from MH i2c: D1 01 00 00 0F 00 E0 [04:30:03]Write to MH i2c: 01 00 00 01 0F 10 [04:30:03]Write i2c OK [04:30:03]MH_I2C_Read... [04:30:04]OFD Sender: No OFD packet to send [04:30:04]*** Cut start [04:30:04]*** Partial cut [04:30:04]*** CUTSNS_PIN = 1 [04:30:04]*** CUTSNS_PIN = 0 [04:30:04]*** Brake cut motor [04:30:05]Read from MH i2c: 01 [04:30:05]MH_I2C_Read... [04:30:05]*** Stop cut motor [04:30:05]*** Cut end [04:30:05]Read from MH i2c: 01 07 00 [04:30:05]MH_I2C_Read... [04:30:05]Read from MH i2c: 01 07 00 01 0F 00 00 00 00 00 FF 0F 25 [04:30:05]process_action close_receipt done [04:30:05]requested_data is exist [04:30:05]produce_requested_data [04:30:05]requested_item fm.sn is exist - process it [04:30:05]wFMCommunicate request_size=4 [04:30:05]MH_SAM_APDU [04:30:05]CAPDU: 80 11 00 00 [04:30:05]Write to MH i2c: E2 08 00 02 0F 80 11 00 00 00 00 00 00 8B [04:30:05]Write i2c OK [04:30:05]MH_I2C_Read... [04:30:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:30:05]Read from MH i2c: E2 [04:30:05]MH_I2C_Read... [04:30:05]Read from MH i2c: E2 17 00 [04:30:05]MH_I2C_Read... [04:30:05]Read from MH i2c: E2 17 00 02 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 D6 [04:30:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [04:30:05]wFMCommunicate OK [04:30:05]requested_item fd.num is exist - process it [04:30:05]SAM_PROTO_GetFieldsCounters [04:30:05]wFMCommunicate request_size=4 [04:30:05]MH_SAM_APDU [04:30:05]CAPDU: 80 13 00 00 [04:30:05]Write to MH i2c: E2 08 00 03 0F 80 13 00 00 00 00 00 00 8E [04:30:05]Write i2c OK [04:30:05]MH_I2C_Read... [04:30:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:30:05]Read from MH i2c: E2 [04:30:05]MH_I2C_Read... [04:30:05]Read from MH i2c: E2 62 00 [04:30:05]MH_I2C_Read... [04:30:05]Read from MH i2c: E2 62 00 03 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 9D 0B 01 00 0E 04 04 00 45 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 B2 [04:30:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 9D 0B 01 00 0E 04 04 00 45 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 [04:30:05]wFMCommunicate OK [04:30:05]SAM_PROTO_GetFieldsCounters done [04:30:05]requested_item shift.num is exist - process it [04:30:05]requested_item shift.opened is exist - process it [04:30:05]req_shift_opened [04:30:05]FM_GetShiftState [04:30:05]SAM_PROTO_GetShiftState [04:30:05]wFMCommunicate request_size=4 [04:30:05]MH_SAM_APDU [04:30:05]CAPDU: 80 13 01 00 [04:30:05]Write to MH i2c: E2 08 00 04 0F 80 13 01 00 00 00 00 00 90 [04:30:05]Write i2c OK [04:30:05]MH_I2C_Read... [04:30:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:30:05]Read from MH i2c: E2 [04:30:05]MH_I2C_Read... [04:30:05]Read from MH i2c: E2 0E 00 [04:30:05]MH_I2C_Read... [04:30:05]Read from MH i2c: E2 0E 00 04 0F 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 2C [04:30:05]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [04:30:05]wFMCommunicate OK [04:30:05]SAM_PROTO_GetShiftState done [04:30:05]FM_GetShiftState done [04:30:05]req_shift_opened done [04:30:05]requested_item shift.open_date is exist - process it [04:30:05]req_shift_open_date [04:30:05]req_shift_open_date done [04:30:05]produce_requested_data done [04:30:05]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68509,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [04:30:05]process_action_free close_receipt [04:30:05]json_value_free [04:30:05]json_value_free done [04:30:05]process_json_proto returns [04:30:05]Send response to host [04:30:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68509,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [04:30:05]free response buf [04:30:05]execute_script done [04:30:05]execute_script returns [04:30:05]free content buf [04:30:05]Sock 7.Close socket [04:30:05]Sock 7.Thread stoped [04:30:09]OFD Sender: No OFD packet to send [04:30:14]OFD Sender: No OFD packet to send [04:30:19]OFD Sender: No OFD packet to send [04:30:24]OFD Sender: No OFD packet to send [04:30:29]OFD Sender: No OFD packet to send [04:30:34]OFD Sender: No OFD packet to send [04:30:39]OFD Sender: No OFD packet to send [04:30:44]OFD Sender: No OFD packet to send [04:30:49]OFD Sender: No OFD packet to send [04:30:54]OFD Sender: No OFD packet to send [04:30:59]OFD Sender: No OFD packet to send [04:31:04]OFD Sender: No OFD packet to send [04:31:09]OFD Sender: No OFD packet to send [04:31:14]OFD Sender: No OFD packet to send [04:31:19]OFD Sender: No OFD packet to send [04:31:24]OFD Sender: No OFD packet to send [04:31:29]OFD Sender: No OFD packet to send [04:31:34]OFD Sender: No OFD packet to send [04:31:39]OFD Sender: No OFD packet to send [04:31:44]OFD Sender: No OFD packet to send [04:31:49]OFD Sender: No OFD packet to send [04:31:54]OFD Sender: No OFD packet to send [04:31:59]OFD Sender: No OFD packet to send [04:32:04]OFD Sender: No OFD packet to send [04:32:09]OFD Sender: No OFD packet to send [04:32:14]OFD Sender: No OFD packet to send [04:32:19]OFD Sender: No OFD packet to send [04:32:24]OFD Sender: No OFD packet to send [04:32:29]OFD Sender: No OFD packet to send [04:32:34]OFD Sender: No OFD packet to send [04:32:39]OFD Sender: No OFD packet to send [04:32:44]OFD Sender: No OFD packet to send [04:32:49]OFD Sender: No OFD packet to send [04:32:54]OFD Sender: No OFD packet to send [04:32:59]OFD Sender: No OFD packet to send [04:33:04]OFD Sender: No OFD packet to send [04:33:09]OFD Sender: No OFD packet to send [04:33:14]OFD Sender: No OFD packet to send [04:33:19]OFD Sender: No OFD packet to send [04:33:24]OFD Sender: No OFD packet to send [04:33:29]OFD Sender: No OFD packet to send [04:33:34]OFD Sender: No OFD packet to send [04:33:39]OFD Sender: No OFD packet to send [04:33:44]OFD Sender: No OFD packet to send [04:33:49]OFD Sender: No OFD packet to send [04:33:54]OFD Sender: No OFD packet to send [04:33:59]OFD Sender: No OFD packet to send [04:34:04]OFD Sender: No OFD packet to send [04:34:09]OFD Sender: No OFD packet to send [04:34:14]OFD Sender: No OFD packet to send [04:34:19]OFD Sender: No OFD packet to send [04:34:24]OFD Sender: No OFD packet to send [04:34:29]OFD Sender: No OFD packet to send [04:34:34]OFD Sender: No OFD packet to send [04:34:39]OFD Sender: No OFD packet to send [04:34:44]OFD Sender: No OFD packet to send [04:34:49]OFD Sender: No OFD packet to send [04:34:54]OFD Sender: No OFD packet to send [04:34:59]OFD Sender: No OFD packet to send [04:35:04]OFD Sender: No OFD packet to send [04:35:09]OFD Sender: No OFD packet to send [04:35:14]OFD Sender: No OFD packet to send [04:35:19]OFD Sender: No OFD packet to send [04:35:24]OFD Sender: No OFD packet to send [04:35:29]OFD Sender: No OFD packet to send [04:35:34]OFD Sender: No OFD packet to send [04:35:39]OFD Sender: No OFD packet to send [04:35:44]OFD Sender: No OFD packet to send [04:35:49]OFD Sender: No OFD packet to send [04:35:54]OFD Sender: No OFD packet to send [04:35:59]OFD Sender: No OFD packet to send [04:36:04]OFD Sender: No OFD packet to send [04:36:09]OFD Sender: No OFD packet to send [04:36:14]OFD Sender: No OFD packet to send [04:36:19]OFD Sender: No OFD packet to send [04:36:24]OFD Sender: No OFD packet to send [04:36:29]OFD Sender: No OFD packet to send [04:36:34]OFD Sender: No OFD packet to send [04:36:39]OFD Sender: No OFD packet to send [04:36:44]OFD Sender: No OFD packet to send [04:36:49]OFD Sender: No OFD packet to send [04:36:54]OFD Sender: No OFD packet to send [04:36:59]OFD Sender: No OFD packet to send [04:37:04]OFD Sender: No OFD packet to send [04:37:09]OFD Sender: No OFD packet to send [04:37:14]OFD Sender: No OFD packet to send [04:37:19]OFD Sender: No OFD packet to send [04:37:24]OFD Sender: No OFD packet to send [04:37:29]OFD Sender: No OFD packet to send [04:37:34]OFD Sender: No OFD packet to send [04:37:39]OFD Sender: No OFD packet to send [04:37:44]OFD Sender: No OFD packet to send [04:37:49]OFD Sender: No OFD packet to send [04:37:54]OFD Sender: No OFD packet to send [04:37:59]OFD Sender: No OFD packet to send [04:38:04]OFD Sender: No OFD packet to send [04:38:09]OFD Sender: No OFD packet to send [04:38:14]OFD Sender: No OFD packet to send [04:38:19]OFD Sender: No OFD packet to send [04:38:24]OFD Sender: No OFD packet to send [04:38:29]OFD Sender: No OFD packet to send [04:38:34]OFD Sender: No OFD packet to send [04:38:39]OFD Sender: No OFD packet to send [04:38:44]OFD Sender: No OFD packet to send [04:38:49]OFD Sender: No OFD packet to send [04:38:54]OFD Sender: No OFD packet to send [04:38:59]OFD Sender: No OFD packet to send [04:39:04]OFD Sender: No OFD packet to send [04:39:09]OFD Sender: No OFD packet to send [04:39:14]OFD Sender: No OFD packet to send [04:39:19]OFD Sender: No OFD packet to send [04:39:24]OFD Sender: No OFD packet to send [04:39:29]OFD Sender: No OFD packet to send [04:39:34]OFD Sender: No OFD packet to send [04:39:39]OFD Sender: No OFD packet to send [04:39:44]OFD Sender: No OFD packet to send [04:39:49]OFD Sender: No OFD packet to send [04:39:54]OFD Sender: No OFD packet to send [04:39:59]OFD Sender: No OFD packet to send [04:40:04]OFD Sender: No OFD packet to send [04:40:09]OFD Sender: No OFD packet to send [04:40:14]OFD Sender: No OFD packet to send [04:40:19]OFD Sender: No OFD packet to send [04:40:24]OFD Sender: No OFD packet to send [04:40:29]OFD Sender: No OFD packet to send [04:40:34]OFD Sender: No OFD packet to send [04:40:39]OFD Sender: No OFD packet to send [04:40:44]OFD Sender: No OFD packet to send [04:40:49]OFD Sender: No OFD packet to send [04:40:54]OFD Sender: No OFD packet to send [04:40:59]OFD Sender: No OFD packet to send [04:41:04]OFD Sender: No OFD packet to send [04:41:09]OFD Sender: No OFD packet to send [04:41:14]OFD Sender: No OFD packet to send [04:41:19]OFD Sender: No OFD packet to send [04:41:24]OFD Sender: No OFD packet to send [04:41:29]OFD Sender: No OFD packet to send [04:41:34]OFD Sender: No OFD packet to send [04:41:39]OFD Sender: No OFD packet to send [04:41:44]OFD Sender: No OFD packet to send [04:41:49]OFD Sender: No OFD packet to send [04:41:54]OFD Sender: No OFD packet to send [04:41:59]OFD Sender: No OFD packet to send [04:42:04]OFD Sender: No OFD packet to send [04:42:09]OFD Sender: No OFD packet to send [04:42:14]OFD Sender: No OFD packet to send [04:42:19]OFD Sender: No OFD packet to send [04:42:24]OFD Sender: No OFD packet to send [04:42:29]OFD Sender: No OFD packet to send [04:42:34]OFD Sender: No OFD packet to send [04:42:39]OFD Sender: No OFD packet to send [04:42:44]OFD Sender: No OFD packet to send [04:42:49]OFD Sender: No OFD packet to send [04:42:54]OFD Sender: No OFD packet to send [04:42:59]OFD Sender: No OFD packet to send [04:43:04]OFD Sender: No OFD packet to send [04:43:09]OFD Sender: No OFD packet to send [04:43:14]OFD Sender: No OFD packet to send [04:43:19]OFD Sender: No OFD packet to send [04:43:24]OFD Sender: No OFD packet to send [04:43:29]OFD Sender: No OFD packet to send [04:43:34]OFD Sender: No OFD packet to send [04:43:39]OFD Sender: No OFD packet to send [04:43:44]OFD Sender: No OFD packet to send [04:43:49]OFD Sender: No OFD packet to send [04:43:54]OFD Sender: No OFD packet to send [04:43:59]OFD Sender: No OFD packet to send [04:44:04]OFD Sender: No OFD packet to send [04:44:09]OFD Sender: No OFD packet to send [04:44:14]OFD Sender: No OFD packet to send [04:44:19]OFD Sender: No OFD packet to send [04:44:24]OFD Sender: No OFD packet to send [04:44:29]OFD Sender: No OFD packet to send [04:44:34]OFD Sender: No OFD packet to send [04:44:39]OFD Sender: No OFD packet to send [04:44: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:30]OFD Sender: No OFD packet to send [04:45:35]OFD Sender: No OFD packet to send [04:45:40]OFD Sender: No OFD packet to send [04:45:45]OFD Sender: No OFD packet to send [04:45:50]OFD Sender: No OFD packet to send [04:45:55]OFD Sender: No OFD packet to send [04:46:00]OFD Sender: No OFD packet to send [04:46:05]OFD Sender: No OFD packet to send [04:46:10]OFD Sender: No OFD packet to send [04:46:15]OFD Sender: No OFD packet to send [04:46:20]OFD Sender: No OFD packet to send [04:46:25]OFD Sender: No OFD packet to send [04:46:30]OFD Sender: No OFD packet to send [04:46:35]OFD Sender: No OFD packet to send [04:46:40]OFD Sender: No OFD packet to send [04:46:45]OFD Sender: No OFD packet to send [04:46:50]OFD Sender: No OFD packet to send [04:46:55]OFD Sender: No OFD packet to send [04:47:00]OFD Sender: No OFD packet to send [04:47:05]OFD Sender: No OFD packet to send [04:47:10]OFD Sender: No OFD packet to send [04:47:15]OFD Sender: No OFD packet to send [04:47:20]OFD Sender: No OFD packet to send [04:47:25]OFD Sender: No OFD packet to send [04:47:30]OFD Sender: No OFD packet to send [04:47:35]OFD Sender: No OFD packet to send [04:47:40]OFD Sender: No OFD packet to send [04:47:45]OFD Sender: No OFD packet to send [04:47:50]OFD Sender: No OFD packet to send [04:47:55]OFD Sender: No OFD packet to send [04:48:00]OFD Sender: No OFD packet to send [04:48:05]OFD Sender: No OFD packet to send [04:48:10]OFD Sender: No OFD packet to send [04:48:15]OFD Sender: No OFD packet to send [04:48:20]OFD Sender: No OFD packet to send [04:48:25]OFD Sender: No OFD packet to send [04:48:30]OFD Sender: No OFD packet to send [04:48:35]OFD Sender: No OFD packet to send [04:48:40]OFD Sender: No OFD packet to send [04:48:45]OFD Sender: No OFD packet to send [04:48:50]OFD Sender: No OFD packet to send [04:48:55]OFD Sender: No OFD packet to send [04:49:00]OFD Sender: No OFD packet to send [04:49:05]OFD Sender: No OFD packet to send [04:49:10]OFD Sender: No OFD packet to send [04:49:15]OFD Sender: No OFD packet to send [04:49:20]OFD Sender: No OFD packet to send [04:49:25]OFD Sender: No OFD packet to send [04:49:30]OFD Sender: No OFD packet to send [04:49:35]OFD Sender: No OFD packet to send [04:49:40]OFD Sender: No OFD packet to send [04:49:45]OFD Sender: No OFD packet to send [04:49:50]OFD Sender: No OFD packet to send [04:49:55]OFD Sender: No OFD packet to send [04:50:00]OFD Sender: No OFD packet to send [04:50:05]OFD Sender: No OFD packet to send [04:50:10]OFD Sender: No OFD packet to send [04:50:15]OFD Sender: No OFD packet to send [04:50:20]OFD Sender: No OFD packet to send [04:50:25]OFD Sender: No OFD packet to send [04:50:30]OFD Sender: No OFD packet to send [04:50:35]OFD Sender: No OFD packet to send [04:50:40]OFD Sender: No OFD packet to send [04:50:45]OFD Sender: No OFD packet to send [04:50:50]OFD Sender: No OFD packet to send [04:50:55]OFD Sender: No OFD packet to send [04:51:00]OFD Sender: No OFD packet to send [04:51:05]OFD Sender: No OFD packet to send [04:51:10]OFD Sender: No OFD packet to send [04:51:15]OFD Sender: No OFD packet to send [04:51:20]OFD Sender: No OFD packet to send [04:51:25]OFD Sender: No OFD packet to send [04:51:30]OFD Sender: No OFD packet to send [04:51:35]OFD Sender: No OFD packet to send [04:51:40]OFD Sender: No OFD packet to send [04:51:45]OFD Sender: No OFD packet to send [04:51:50]OFD Sender: No OFD packet to send [04:51:55]OFD Sender: No OFD packet to send [04:52:00]OFD Sender: No OFD packet to send [04:52:05]OFD Sender: No OFD packet to send [04:52:10]OFD Sender: No OFD packet to send [04:52:15]OFD Sender: No OFD packet to send [04:52:20]OFD Sender: No OFD packet to send [04:52:25]OFD Sender: No OFD packet to send [04:52:30]OFD Sender: No OFD packet to send [04:52:35]OFD Sender: No OFD packet to send [04:52:40]OFD Sender: No OFD packet to send [04:52:45]OFD Sender: No OFD packet to send [04:52:50]OFD Sender: No OFD packet to send [04:52:55]OFD Sender: No OFD packet to send [04:53:00]OFD Sender: No OFD packet to send [04:53:05]OFD Sender: No OFD packet to send [04:53:10]OFD Sender: No OFD packet to send [04:53:15]OFD Sender: No OFD packet to send [04:53:20]OFD Sender: No OFD packet to send [04:53:25]OFD Sender: No OFD packet to send [04:53:30]OFD Sender: No OFD packet to send [04:53:35]OFD Sender: No OFD packet to send [04:53:40]OFD Sender: No OFD packet to send [04:53:45]OFD Sender: No OFD packet to send [04:53:50]OFD Sender: No OFD packet to send [04:53:55]OFD Sender: No OFD packet to send [04:54:00]OFD Sender: No OFD packet to send [04:54:05]OFD Sender: No OFD packet to send [04:54:10]OFD Sender: No OFD packet to send [04:54:15]OFD Sender: No OFD packet to send [04:54:20]OFD Sender: No OFD packet to send [04:54:25]OFD Sender: No OFD packet to send [04:54:30]OFD Sender: No OFD packet to send [04:54:35]OFD Sender: No OFD packet to send [04:54:40]OFD Sender: No OFD packet to send [04:54:45]OFD Sender: No OFD packet to send [04:54:50]OFD Sender: No OFD packet to send [04:54:55]OFD Sender: No OFD packet to send [04:55:00]OFD Sender: No OFD packet to send [04:55:05]OFD Sender: No OFD packet to send [04:55:10]OFD Sender: No OFD packet to send [04:55:15]OFD Sender: No OFD packet to send [04:55:20]OFD Sender: No OFD packet to send [04:55:25]OFD Sender: No OFD packet to send [04:55:30]OFD Sender: No OFD packet to send [04:55:35]OFD Sender: No OFD packet to send [04:55:40]OFD Sender: No OFD packet to send [04:55:45]OFD Sender: No OFD packet to send [04:55:50]OFD Sender: No OFD packet to send [04:55:55]OFD Sender: No OFD packet to send [04:56:00]OFD Sender: No OFD packet to send [04:56:05]OFD Sender: No OFD packet to send [04:56:10]OFD Sender: No OFD packet to send [04:56:15]OFD Sender: No OFD packet to send [04:56:20]OFD Sender: No OFD packet to send [04:56:25]OFD Sender: No OFD packet to send [04:56:30]OFD Sender: No OFD packet to send [04:56:35]OFD Sender: No OFD packet to send [04:56:40]OFD Sender: No OFD packet to send [04:56:45]OFD Sender: No OFD packet to send [04:56:50]OFD Sender: No OFD packet to send [04:56:55]OFD Sender: No OFD packet to send [04:57:00]OFD Sender: No OFD packet to send [04:57:05]OFD Sender: No OFD packet to send [04:57:10]OFD Sender: No OFD packet to send [04:57:15]OFD Sender: No OFD packet to send [04:57:20]OFD Sender: No OFD packet to send [04:57:25]OFD Sender: No OFD packet to send [04:57:30]OFD Sender: No OFD packet to send [04:57:35]OFD Sender: No OFD packet to send [04:57:40]OFD Sender: No OFD packet to send [04:57:45]OFD Sender: No OFD packet to send [04:57:50]OFD Sender: No OFD packet to send [04:57:55]OFD Sender: No OFD packet to send [04:58:00]OFD Sender: No OFD packet to send [04:58:05]OFD Sender: No OFD packet to send [04:58:10]OFD Sender: No OFD packet to send [04:58:15]OFD Sender: No OFD packet to send [04:58:20]OFD Sender: No OFD packet to send [04:58:25]OFD Sender: No OFD packet to send [04:58:30]OFD Sender: No OFD packet to send [04:58:35]OFD Sender: No OFD packet to send [04:58:40]OFD Sender: No OFD packet to send [04:58:45]OFD Sender: No OFD packet to send [04:58:50]OFD Sender: No OFD packet to send [04:58:55]OFD Sender: No OFD packet to send [04:59:00]OFD Sender: No OFD packet to send [04:59:05]OFD Sender: No OFD packet to send [04:59:10]OFD Sender: No OFD packet to send [04:59:15]OFD Sender: No OFD packet to send [04:59:20]OFD Sender: No OFD packet to send [04:59:25]OFD Sender: No OFD packet to send [04:59:30]OFD Sender: No OFD packet to send [04:59:35]OFD Sender: No OFD packet to send [04:59:40]OFD Sender: No OFD packet to send [04:59:45]OFD Sender: No OFD packet to send [04:59:50]OFD Sender: No OFD packet to send [04:59:55]OFD Sender: No OFD packet to send [05:00:00]OFD Sender: No OFD packet to send [05:00:05]OFD Sender: No OFD packet to send [05:00:10]OFD Sender: No OFD packet to send [05:00:15]OFD Sender: No OFD packet to send [05:00:20]OFD Sender: No OFD packet to send [05:00:25]OFD Sender: No OFD packet to send [05:00:30]OFD Sender: No OFD packet to send [05:00:35]OFD Sender: No OFD packet to send [05:00:40]OFD Sender: No OFD packet to send [05:00:45]OFD Sender: No OFD packet to send [05:00:50]OFD Sender: No OFD packet to send [05:00:55]OFD Sender: No OFD packet to send [05:01:00]OFD Sender: No OFD packet to send [05:01:05]OFD Sender: No OFD packet to send [05:01:10]OFD Sender: No OFD packet to send [05:01:15]OFD Sender: No OFD packet to send [05:01:20]OFD Sender: No OFD packet to send [05:01:25]OFD Sender: No OFD packet to send [05:01:30]OFD Sender: No OFD packet to send [05:01:35]OFD Sender: No OFD packet to send [05:01:40]OFD Sender: No OFD packet to send [05:01:45]OFD Sender: No OFD packet to send [05:01:50]OFD Sender: No OFD packet to send [05:01:55]OFD Sender: No OFD packet to send [05:02:00]OFD Sender: No OFD packet to send [05:02:05]OFD Sender: No OFD packet to send [05:02:10]OFD Sender: No OFD packet to send [05:02:15]OFD Sender: No OFD packet to send [05:02:20]OFD Sender: No OFD packet to send [05:02:25]OFD Sender: No OFD packet to send [05:02:30]OFD Sender: No OFD packet to send [05:02:35]OFD Sender: No OFD packet to send [05:02:40]OFD Sender: No OFD packet to send [05:02:45]OFD Sender: No OFD packet to send [05:02:50]OFD Sender: No OFD packet to send [05:02:55]OFD Sender: No OFD packet to send [05:03:00]OFD Sender: No OFD packet to send [05:03:05]OFD Sender: No OFD packet to send [05:03:10]OFD Sender: No OFD packet to send [05:03:15]OFD Sender: No OFD packet to send [05:03:20]OFD Sender: No OFD packet to send [05:03:25]OFD Sender: No OFD packet to send [05:03:30]OFD Sender: No OFD packet to send [05:03:35]OFD Sender: No OFD packet to send [05:03:40]OFD Sender: No OFD packet to send [05:03:45]OFD Sender: No OFD packet to send [05:03:50]OFD Sender: No OFD packet to send [05:03:55]OFD Sender: No OFD packet to send [05:04:00]OFD Sender: No OFD packet to send [05:04:05]OFD Sender: No OFD packet to send [05:04:10]OFD Sender: No OFD packet to send [05:04:15]OFD Sender: No OFD packet to send [05:04:20]OFD Sender: No OFD packet to send [05:04:25]OFD Sender: No OFD packet to send [05:04:30]OFD Sender: No OFD packet to send [05:04:35]OFD Sender: No OFD packet to send [05:04:40]OFD Sender: No OFD packet to send [05:04:45]OFD Sender: No OFD packet to send [05:04:50]OFD Sender: No OFD packet to send [05:04:55]OFD Sender: No OFD packet to send [05:05:01]OFD Sender: No OFD packet to send [05:05:06]OFD Sender: No OFD packet to send [05:05:11]OFD Sender: No OFD packet to send [05:05:16]OFD Sender: No OFD packet to send [05:05:21]OFD Sender: No OFD packet to send [05:05:26]OFD Sender: No OFD packet to send [05:05:31]OFD Sender: No OFD packet to send [05:05:36]OFD Sender: No OFD packet to send [05:05:41]OFD Sender: No OFD packet to send [05:05:46]OFD Sender: No OFD packet to send [05:05:51]OFD Sender: No OFD packet to send [05:05:56]OFD Sender: No OFD packet to send [05:06:01]OFD Sender: No OFD packet to send [05:06:06]OFD Sender: No OFD packet to send [05:06:11]OFD Sender: No OFD packet to send [05:06:16]OFD Sender: No OFD packet to send [05:06:21]OFD Sender: No OFD packet to send [05:06:26]OFD Sender: No OFD packet to send [05:06:31]OFD Sender: No OFD packet to send [05:06:36]OFD Sender: No OFD packet to send [05:06:41]OFD Sender: No OFD packet to send [05:06:46]OFD Sender: No OFD packet to send [05:06:51]OFD Sender: No OFD packet to send [05:06:56]OFD Sender: No OFD packet to send [05:07:01]OFD Sender: No OFD packet to send [05:07:06]OFD Sender: No OFD packet to send [05:07:11]OFD Sender: No OFD packet to send [05:07:16]OFD Sender: No OFD packet to send [05:07:21]OFD Sender: No OFD packet to send [05:07:26]OFD Sender: No OFD packet to send [05:07:31]OFD Sender: No OFD packet to send [05:07:36]OFD Sender: No OFD packet to send [05:07:41]OFD Sender: No OFD packet to send [05:07:46]OFD Sender: No OFD packet to send [05:07:51]OFD Sender: No OFD packet to send [05:07:56]OFD Sender: No OFD packet to send [05:08:01]OFD Sender: No OFD packet to send [05:08:06]OFD Sender: No OFD packet to send [05:08:11]OFD Sender: No OFD packet to send [05:08:16]OFD Sender: No OFD packet to send [05:08:21]OFD Sender: No OFD packet to send [05:08:26]OFD Sender: No OFD packet to send [05:08:31]OFD Sender: No OFD packet to send [05:08:36]OFD Sender: No OFD packet to send [05:08:41]OFD Sender: No OFD packet to send [05:08:46]OFD Sender: No OFD packet to send [05:08:51]OFD Sender: No OFD packet to send [05:08:56]OFD Sender: No OFD packet to send [05:09:01]OFD Sender: No OFD packet to send [05:09:06]OFD Sender: No OFD packet to send [05:09:11]OFD Sender: No OFD packet to send [05:09:16]OFD Sender: No OFD packet to send [05:09:21]OFD Sender: No OFD packet to send [05:09:26]OFD Sender: No OFD packet to send [05:09:31]OFD Sender: No OFD packet to send [05:09:36]OFD Sender: No OFD packet to send [05:09:41]OFD Sender: No OFD packet to send [05:09:46]OFD Sender: No OFD packet to send [05:09:51]OFD Sender: No OFD packet to send [05:09:56]OFD Sender: No OFD packet to send [05:10:01]OFD Sender: No OFD packet to send [05:10:06]OFD Sender: No OFD packet to send [05:10:11]OFD Sender: No OFD packet to send [05:10:16]OFD Sender: No OFD packet to send [05:10:21]OFD Sender: No OFD packet to send [05:10:26]OFD Sender: No OFD packet to send [05:10:31]OFD Sender: No OFD packet to send [05:10:36]OFD Sender: No OFD packet to send [05:10:41]OFD Sender: No OFD packet to send [05:10:46]OFD Sender: No OFD packet to send [05:10:51]OFD Sender: No OFD packet to send [05:10:56]OFD Sender: No OFD packet to send [05:11:01]OFD Sender: No OFD packet to send [05:11:06]OFD Sender: No OFD packet to send [05:11:11]OFD Sender: No OFD packet to send [05:11:16]OFD Sender: No OFD packet to send [05:11:21]OFD Sender: No OFD packet to send [05:11:26]OFD Sender: No OFD packet to send [05:11:31]OFD Sender: No OFD packet to send [05:11:36]OFD Sender: No OFD packet to send [05:11:41]OFD Sender: No OFD packet to send [05:11:46]OFD Sender: No OFD packet to send [05:11:51]OFD Sender: No OFD packet to send [05:11:56]OFD Sender: No OFD packet to send [05:12:01]OFD Sender: No OFD packet to send [05:12:06]OFD Sender: No OFD packet to send [05:12:11]OFD Sender: No OFD packet to send [05:12:16]OFD Sender: No OFD packet to send [05:12:21]OFD Sender: No OFD packet to send [05:12:26]OFD Sender: No OFD packet to send [05:12:31]OFD Sender: No OFD packet to send [05:12:36]OFD Sender: No OFD packet to send [05:12:41]OFD Sender: No OFD packet to send [05:12:46]OFD Sender: No OFD packet to send [05:12:51]OFD Sender: No OFD packet to send [05:12:56]OFD Sender: No OFD packet to send [05:13:01]OFD Sender: No OFD packet to send [05:13:06]OFD Sender: No OFD packet to send [05:13:11]OFD Sender: No OFD packet to send [05:13:16]OFD Sender: No OFD packet to send [05:13:21]OFD Sender: No OFD packet to send [05:13:26]OFD Sender: No OFD packet to send [05:13:31]OFD Sender: No OFD packet to send [05:13:36]OFD Sender: No OFD packet to send [05:13:41]OFD Sender: No OFD packet to send [05:13:46]OFD Sender: No OFD packet to send [05:13:51]OFD Sender: No OFD packet to send [05:13:56]OFD Sender: No OFD packet to send [05:14:01]OFD Sender: No OFD packet to send [05:14:06]OFD Sender: No OFD packet to send [05:14:11]OFD Sender: No OFD packet to send [05:14:16]OFD Sender: No OFD packet to send [05:14:21]OFD Sender: No OFD packet to send [05:14:26]OFD Sender: No OFD packet to send [05:14:31]OFD Sender: No OFD packet to send [05:14:36]OFD Sender: No OFD packet to send [05:14:41]OFD Sender: No OFD packet to send [05:14:46]OFD Sender: No OFD packet to send [05:14:51]OFD Sender: No OFD packet to send [05:14:56]OFD Sender: No OFD packet to send [05:15:01]OFD Sender: No OFD packet to send [05:15:06]OFD Sender: No OFD packet to send [05:15:11]OFD Sender: No OFD packet to send [05:15:16]OFD Sender: No OFD packet to send [05:15:21]OFD Sender: No OFD packet to send [05:15:26]OFD Sender: No OFD packet to send [05:15:31]OFD Sender: No OFD packet to send [05:15:36]OFD Sender: No OFD packet to send [05:15:41]OFD Sender: No OFD packet to send [05:15:46]OFD Sender: No OFD packet to send [05:15:51]OFD Sender: No OFD packet to send [05:15:56]OFD Sender: No OFD packet to send [05:16:01]OFD Sender: No OFD packet to send [05:16:06]OFD Sender: No OFD packet to send [05:16:11]OFD Sender: No OFD packet to send [05:16:16]OFD Sender: No OFD packet to send [05:16:21]OFD Sender: No OFD packet to send [05:16:26]OFD Sender: No OFD packet to send [05:16:31]OFD Sender: No OFD packet to send [05:16:36]OFD Sender: No OFD packet to send [05:16:41]OFD Sender: No OFD packet to send [05:16:46]OFD Sender: No OFD packet to send [05:16:51]OFD Sender: No OFD packet to send [05:16:56]OFD Sender: No OFD packet to send [05:17:01]OFD Sender: No OFD packet to send [05:17:06]OFD Sender: No OFD packet to send [05:17:11]OFD Sender: No OFD packet to send [05:17:16]OFD Sender: No OFD packet to send [05:17:21]OFD Sender: No OFD packet to send [05:17:26]OFD Sender: No OFD packet to send [05:17:31]OFD Sender: No OFD packet to send [05:17:36]OFD Sender: No OFD packet to send [05:17:41]OFD Sender: No OFD packet to send [05:17:46]OFD Sender: No OFD packet to send [05:17:51]OFD Sender: No OFD packet to send [05:17:56]OFD Sender: No OFD packet to send [05:18:01]OFD Sender: No OFD packet to send [05:18:06]OFD Sender: No OFD packet to send [05:18:11]OFD Sender: No OFD packet to send [05:18:16]OFD Sender: No OFD packet to send [05:18:21]OFD Sender: No OFD packet to send [05:18:26]OFD Sender: No OFD packet to send [05:18:31]OFD Sender: No OFD packet to send [05:18:36]OFD Sender: No OFD packet to send [05:18:41]OFD Sender: No OFD packet to send [05:18:46]OFD Sender: No OFD packet to send [05:18:51]OFD Sender: No OFD packet to send [05:18:56]OFD Sender: No OFD packet to send [05:19:01]OFD Sender: No OFD packet to send [05:19:06]OFD Sender: No OFD packet to send [05:19:11]OFD Sender: No OFD packet to send [05:19:16]OFD Sender: No OFD packet to send [05:19:21]OFD Sender: No OFD packet to send [05:19:26]OFD Sender: No OFD packet to send [05:19:31]OFD Sender: No OFD packet to send [05:19:36]OFD Sender: No OFD packet to send [05:19:41]OFD Sender: No OFD packet to send [05:19:46]OFD Sender: No OFD packet to send [05:19:51]OFD Sender: No OFD packet to send [05:19:56]OFD Sender: No OFD packet to send [05:20:01]OFD Sender: No OFD packet to send [05:20:06]OFD Sender: No OFD packet to send [05:20:11]OFD Sender: No OFD packet to send [05:20:16]OFD Sender: No OFD packet to send [05:20:21]OFD Sender: No OFD packet to send [05:20:26]OFD Sender: No OFD packet to send [05:20:31]OFD Sender: No OFD packet to send [05:20:36]OFD Sender: No OFD packet to send [05:20:41]OFD Sender: No OFD packet to send [05:20:46]OFD Sender: No OFD packet to send [05:20:51]OFD Sender: No OFD packet to send [05:20:56]OFD Sender: No OFD packet to send [05:21:01]OFD Sender: No OFD packet to send [05:21:06]OFD Sender: No OFD packet to send [05:21:11]OFD Sender: No OFD packet to send [05:21:16]OFD Sender: No OFD packet to send [05:21:21]OFD Sender: No OFD packet to send [05:21:26]OFD Sender: No OFD packet to send [05:21:31]OFD Sender: No OFD packet to send [05:21:36]OFD Sender: No OFD packet to send [05:21:41]OFD Sender: No OFD packet to send [05:21:46]OFD Sender: No OFD packet to send [05:21:51]OFD Sender: No OFD packet to send [05:21:56]OFD Sender: No OFD packet to send [05:22:01]OFD Sender: No OFD packet to send [05:22:06]OFD Sender: No OFD packet to send [05:22:11]OFD Sender: No OFD packet to send [05:22:16]OFD Sender: No OFD packet to send [05:22:21]OFD Sender: No OFD packet to send [05:22:26]OFD Sender: No OFD packet to send [05:22:31]OFD Sender: No OFD packet to send [05:22:36]OFD Sender: No OFD packet to send [05:22:41]OFD Sender: No OFD packet to send [05:22:46]OFD Sender: No OFD packet to send [05:22:51]OFD Sender: No OFD packet to send [05:22:56]OFD Sender: No OFD packet to send [05:23:01]OFD Sender: No OFD packet to send [05:23:06]OFD Sender: No OFD packet to send [05:23:11]OFD Sender: No OFD packet to send [05:23:16]OFD Sender: No OFD packet to send [05:23:21]OFD Sender: No OFD packet to send [05:23:26]OFD Sender: No OFD packet to send [05:23:31]OFD Sender: No OFD packet to send [05:23:36]OFD Sender: No OFD packet to send [05:23:41]OFD Sender: No OFD packet to send [05:23:46]OFD Sender: No OFD packet to send [05:23:51]OFD Sender: No OFD packet to send [05:23:56]OFD Sender: No OFD packet to send [05:24:01]OFD Sender: No OFD packet to send [05:24:06]OFD Sender: No OFD packet to send [05:24:11]OFD Sender: No OFD packet to send [05:24:16]OFD Sender: No OFD packet to send [05:24:21]OFD Sender: No OFD packet to send [05:24:26]OFD Sender: No OFD packet to send [05:24:31]OFD Sender: No OFD packet to send [05:24:37]OFD Sender: No OFD packet to send [05:24:42]OFD Sender: No OFD packet to send [05:24:47]OFD Sender: No OFD packet to send [05:24:52]OFD Sender: No OFD packet to send [05:24:57]OFD Sender: No OFD packet to send [05:25:02]OFD Sender: No OFD packet to send [05:25:07]OFD Sender: No OFD packet to send [05:25:12]OFD Sender: No OFD packet to send [05:25:17]OFD Sender: No OFD packet to send [05:25:22]OFD Sender: No OFD packet to send [05:25:27]OFD Sender: No OFD packet to send [05:25:32]OFD Sender: No OFD packet to send [05:25:37]OFD Sender: No OFD packet to send [05:25:42]OFD Sender: No OFD packet to send [05:25:47]OFD Sender: No OFD packet to send [05:25:52]OFD Sender: No OFD packet to send [05:25:57]OFD Sender: No OFD packet to send [05:26:02]OFD Sender: No OFD packet to send [05:26:07]OFD Sender: No OFD packet to send [05:26:12]OFD Sender: No OFD packet to send [05:26:17]OFD Sender: No OFD packet to send [05:26:22]OFD Sender: No OFD packet to send [05:26:27]OFD Sender: No OFD packet to send [05:26:32]OFD Sender: No OFD packet to send [05:26:37]OFD Sender: No OFD packet to send [05:26:42]OFD Sender: No OFD packet to send [05:26:47]OFD Sender: No OFD packet to send [05:26:52]OFD Sender: No OFD packet to send [05:26:57]OFD Sender: No OFD packet to send [05:27:02]OFD Sender: No OFD packet to send [05:27:07]OFD Sender: No OFD packet to send [05:27:12]OFD Sender: No OFD packet to send [05:27:17]OFD Sender: No OFD packet to send [05:27:22]OFD Sender: No OFD packet to send [05:27:27]OFD Sender: No OFD packet to send [05:27:32]OFD Sender: No OFD packet to send [05:27:37]OFD Sender: No OFD packet to send [05:27:42]OFD Sender: No OFD packet to send [05:27:47]OFD Sender: No OFD packet to send [05:27:52]OFD Sender: No OFD packet to send [05:27:57]OFD Sender: No OFD packet to send [05:28:02]OFD Sender: No OFD packet to send [05:28:07]OFD Sender: No OFD packet to send [05:28:12]OFD Sender: No OFD packet to send [05:28:17]OFD Sender: No OFD packet to send [05:28:22]OFD Sender: No OFD packet to send [05:28:27]OFD Sender: No OFD packet to send [05:28:32]OFD Sender: No OFD packet to send [05:28:37]OFD Sender: No OFD packet to send [05:28:42]OFD Sender: No OFD packet to send [05:28:47]OFD Sender: No OFD packet to send [05:28:52]OFD Sender: No OFD packet to send [05:28:57]OFD Sender: No OFD packet to send [05:29:02]OFD Sender: No OFD packet to send [05:29:07]OFD Sender: No OFD packet to send [05:29:12]OFD Sender: No OFD packet to send [05:29:17]OFD Sender: No OFD packet to send [05:29:22]OFD Sender: No OFD packet to send [05:29:27]OFD Sender: No OFD packet to send [05:29:32]OFD Sender: No OFD packet to send [05:29:37]OFD Sender: No OFD packet to send [05:29:42]OFD Sender: No OFD packet to send [05:29:47]OFD Sender: No OFD packet to send [05:29:52]OFD Sender: No OFD packet to send [05:29:57]OFD Sender: No OFD packet to send [05:30:02]OFD Sender: No OFD packet to send [05:30:07]OFD Sender: No OFD packet to send [05:30:12]OFD Sender: No OFD packet to send [05:30:17]OFD Sender: No OFD packet to send [05:30:22]OFD Sender: No OFD packet to send [05:30:27]OFD Sender: No OFD packet to send [05:30:32]OFD Sender: No OFD packet to send [05:30:37]OFD Sender: No OFD packet to send [05:30:42]OFD Sender: No OFD packet to send [05:30:47]OFD Sender: No OFD packet to send [05:30:52]OFD Sender: No OFD packet to send [05:30:57]OFD Sender: No OFD packet to send [05:31:02]OFD Sender: No OFD packet to send [05:31:07]OFD Sender: No OFD packet to send [05:31:12]OFD Sender: No OFD packet to send [05:31:17]OFD Sender: No OFD packet to send [05:31:22]OFD Sender: No OFD packet to send [05:31:27]OFD Sender: No OFD packet to send [05:31:32]OFD Sender: No OFD packet to send [05:31:37]OFD Sender: No OFD packet to send [05:31:42]OFD Sender: No OFD packet to send [05:31:47]OFD Sender: No OFD packet to send [05:31:52]OFD Sender: No OFD packet to send [05:31:57]OFD Sender: No OFD packet to send [05:32:02]OFD Sender: No OFD packet to send [05:32:07]OFD Sender: No OFD packet to send [05:32:12]OFD Sender: No OFD packet to send [05:32:17]OFD Sender: No OFD packet to send [05:32:22]OFD Sender: No OFD packet to send [05:32:27]OFD Sender: No OFD packet to send [05:32:32]OFD Sender: No OFD packet to send [05:32:37]OFD Sender: No OFD packet to send [05:32:42]OFD Sender: No OFD packet to send [05:32:47]OFD Sender: No OFD packet to send [05:32:52]OFD Sender: No OFD packet to send [05:32:57]OFD Sender: No OFD packet to send [05:33:02]OFD Sender: No OFD packet to send [05:33:07]OFD Sender: No OFD packet to send [05:33:12]OFD Sender: No OFD packet to send [05:33:17]OFD Sender: No OFD packet to send [05:33:22]OFD Sender: No OFD packet to send [05:33:27]OFD Sender: No OFD packet to send [05:33:32]OFD Sender: No OFD packet to send [05:33:37]OFD Sender: No OFD packet to send [05:33:42]OFD Sender: No OFD packet to send [05:33:47]OFD Sender: No OFD packet to send [05:33:52]OFD Sender: No OFD packet to send [05:33:57]OFD Sender: No OFD packet to send [05:34:02]OFD Sender: No OFD packet to send [05:34:07]OFD Sender: No OFD packet to send [05:34:12]OFD Sender: No OFD packet to send [05:34:17]OFD Sender: No OFD packet to send [05:34:22]OFD Sender: No OFD packet to send [05:34:27]OFD Sender: No OFD packet to send [05:34:32]OFD Sender: No OFD packet to send [05:34:37]OFD Sender: No OFD packet to send [05:34:42]OFD Sender: No OFD packet to send [05:34:47]OFD Sender: No OFD packet to send [05:34:52]OFD Sender: No OFD packet to send [05:34:57]OFD Sender: No OFD packet to send [05:35:02]OFD Sender: No OFD packet to send [05:35:07]OFD Sender: No OFD packet to send [05:35:12]OFD Sender: No OFD packet to send [05:35:17]OFD Sender: No OFD packet to send [05:35:22]OFD Sender: No OFD packet to send [05:35:27]OFD Sender: No OFD packet to send [05:35:32]OFD Sender: No OFD packet to send [05:35:37]OFD Sender: No OFD packet to send [05:35:42]OFD Sender: No OFD packet to send [05:35:47]OFD Sender: No OFD packet to send [05:35:52]OFD Sender: No OFD packet to send [05:35:57]OFD Sender: No OFD packet to send [05:36:02]OFD Sender: No OFD packet to send [05:36:07]OFD Sender: No OFD packet to send [05:36:12]OFD Sender: No OFD packet to send [05:36:17]OFD Sender: No OFD packet to send [05:36:22]OFD Sender: No OFD packet to send [05:36:27]OFD Sender: No OFD packet to send [05:36:32]OFD Sender: No OFD packet to send [05:36:37]OFD Sender: No OFD packet to send [05:36:42]OFD Sender: No OFD packet to send [05:36:47]OFD Sender: No OFD packet to send [05:36:52]OFD Sender: No OFD packet to send [05:36:57]OFD Sender: No OFD packet to send [05:37:02]OFD Sender: No OFD packet to send [05:37:07]OFD Sender: No OFD packet to send [05:37:12]OFD Sender: No OFD packet to send [05:37:17]OFD Sender: No OFD packet to send [05:37:22]OFD Sender: No OFD packet to send [05:37:27]OFD Sender: No OFD packet to send [05:37:32]OFD Sender: No OFD packet to send [05:37:37]OFD Sender: No OFD packet to send [05:37:42]OFD Sender: No OFD packet to send [05:37:47]OFD Sender: No OFD packet to send [05:37:52]OFD Sender: No OFD packet to send [05:37:57]OFD Sender: No OFD packet to send [05:38:02]OFD Sender: No OFD packet to send [05:38:07]OFD Sender: No OFD packet to send [05:38:12]OFD Sender: No OFD packet to send [05:38:17]OFD Sender: No OFD packet to send [05:38:22]OFD Sender: No OFD packet to send [05:38:27]OFD Sender: No OFD packet to send [05:38:32]OFD Sender: No OFD packet to send [05:38:37]OFD Sender: No OFD packet to send [05:38:42]OFD Sender: No OFD packet to send [05:38:47]OFD Sender: No OFD packet to send [05:38:52]OFD Sender: No OFD packet to send [05:38:57]OFD Sender: No OFD packet to send [05:39:02]OFD Sender: No OFD packet to send [05:39:07]OFD Sender: No OFD packet to send [05:39:12]OFD Sender: No OFD packet to send [05:39:17]OFD Sender: No OFD packet to send [05:39:22]OFD Sender: No OFD packet to send [05:39:27]OFD Sender: No OFD packet to send [05:39:32]OFD Sender: No OFD packet to send [05:39:37]OFD Sender: No OFD packet to send [05:39:42]OFD Sender: No OFD packet to send [05:39:47]OFD Sender: No OFD packet to send [05:39:52]OFD Sender: No OFD packet to send [05:39:57]OFD Sender: No OFD packet to send [05:40:02]OFD Sender: No OFD packet to send [05:40:07]OFD Sender: No OFD packet to send [05:40:12]OFD Sender: No OFD packet to send [05:40:17]OFD Sender: No OFD packet to send [05:40:22]OFD Sender: No OFD packet to send [05:40:27]OFD Sender: No OFD packet to send [05:40:32]OFD Sender: No OFD packet to send [05:40:37]OFD Sender: No OFD packet to send [05:40:42]OFD Sender: No OFD packet to send [05:40:47]OFD Sender: No OFD packet to send [05:40:52]OFD Sender: No OFD packet to send [05:40:57]OFD Sender: No OFD packet to send [05:41:02]OFD Sender: No OFD packet to send [05:41:07]OFD Sender: No OFD packet to send [05:41:12]OFD Sender: No OFD packet to send [05:41:17]OFD Sender: No OFD packet to send [05:41:22]OFD Sender: No OFD packet to send [05:41:27]OFD Sender: No OFD packet to send [05:41:32]OFD Sender: No OFD packet to send [05:41:37]OFD Sender: No OFD packet to send [05:41:42]OFD Sender: No OFD packet to send [05:41:47]OFD Sender: No OFD packet to send [05:41:52]OFD Sender: No OFD packet to send [05:41:57]OFD Sender: No OFD packet to send [05:42:02]OFD Sender: No OFD packet to send [05:42:07]OFD Sender: No OFD packet to send [05:42:12]OFD Sender: No OFD packet to send [05:42:17]OFD Sender: No OFD packet to send [05:42:22]OFD Sender: No OFD packet to send [05:42:27]OFD Sender: No OFD packet to send [05:42:32]OFD Sender: No OFD packet to send [05:42:37]OFD Sender: No OFD packet to send [05:42:42]OFD Sender: No OFD packet to send [05:42:47]OFD Sender: No OFD packet to send [05:42:52]OFD Sender: No OFD packet to send [05:42:57]OFD Sender: No OFD packet to send [05:43:02]OFD Sender: No OFD packet to send [05:43:07]OFD Sender: No OFD packet to send [05:43:12]OFD Sender: No OFD packet to send [05:43:17]OFD Sender: No OFD packet to send [05:43:22]OFD Sender: No OFD packet to send [05:43:27]OFD Sender: No OFD packet to send [05:43:32]OFD Sender: No OFD packet to send [05:43:37]OFD Sender: No OFD packet to send [05:43:42]OFD Sender: No OFD packet to send [05:43:47]OFD Sender: No OFD packet to send [05:43:52]OFD Sender: No OFD packet to send [05:43:57]OFD Sender: No OFD packet to send [05:44:02]OFD Sender: No OFD packet to send [05:44:07]OFD Sender: No OFD packet to send [05:44:13]OFD Sender: No OFD packet to send [05:44:18]OFD Sender: No OFD packet to send [05:44:23]OFD Sender: No OFD packet to send [05:44:28]OFD Sender: No OFD packet to send [05:44:33]OFD Sender: No OFD packet to send [05:44:38]OFD Sender: No OFD packet to send [05:44:43]OFD Sender: No OFD packet to send [05:44:48]OFD Sender: No OFD packet to send [05:44:53]OFD Sender: No OFD packet to send [05:44:58]OFD Sender: No OFD packet to send [05:45:03]OFD Sender: No OFD packet to send [05:45:08]OFD Sender: No OFD packet to send [05:45:13]OFD Sender: No OFD packet to send [05:45:18]OFD Sender: No OFD packet to send [05:45:23]OFD Sender: No OFD packet to send [05:45:28]OFD Sender: No OFD packet to send [05:45:33]OFD Sender: No OFD packet to send [05:45:38]OFD Sender: No OFD packet to send [05:45:43]OFD Sender: No OFD packet to send [05:45:48]OFD Sender: No OFD packet to send [05:45:53]OFD Sender: No OFD packet to send [05:45:58]OFD Sender: No OFD packet to send [05:46:03]OFD Sender: No OFD packet to send [05:46:08]OFD Sender: No OFD packet to send [05:46:13]OFD Sender: No OFD packet to send [05:46:18]OFD Sender: No OFD packet to send [05:46:23]OFD Sender: No OFD packet to send [05:46:28]OFD Sender: No OFD packet to send [05:46:33]OFD Sender: No OFD packet to send [05:46:38]OFD Sender: No OFD packet to send [05:46:43]OFD Sender: No OFD packet to send [05:46:48]OFD Sender: No OFD packet to send [05:46:53]OFD Sender: No OFD packet to send [05:46:58]OFD Sender: No OFD packet to send [05:47:03]OFD Sender: No OFD packet to send [05:47:08]OFD Sender: No OFD packet to send [05:47:13]OFD Sender: No OFD packet to send [05:47:18]OFD Sender: No OFD packet to send [05:47:23]OFD Sender: No OFD packet to send [05:47:28]OFD Sender: No OFD packet to send [05:47:33]OFD Sender: No OFD packet to send [05:47:38]OFD Sender: No OFD packet to send [05:47:43]OFD Sender: No OFD packet to send [05:47:48]OFD Sender: No OFD packet to send [05:47:53]OFD Sender: No OFD packet to send [05:47:58]OFD Sender: No OFD packet to send [05:48:03]OFD Sender: No OFD packet to send [05:48:08]OFD Sender: No OFD packet to send [05:48:13]OFD Sender: No OFD packet to send [05:48:18]OFD Sender: No OFD packet to send [05:48:23]OFD Sender: No OFD packet to send [05:48:28]OFD Sender: No OFD packet to send [05:48:33]OFD Sender: No OFD packet to send [05:48:38]OFD Sender: No OFD packet to send [05:48:43]OFD Sender: No OFD packet to send [05:48:48]OFD Sender: No OFD packet to send [05:48:53]OFD Sender: No OFD packet to send [05:48:58]OFD Sender: No OFD packet to send [05:49:03]OFD Sender: No OFD packet to send [05:49:08]OFD Sender: No OFD packet to send [05:49:13]OFD Sender: No OFD packet to send [05:49:18]OFD Sender: No OFD packet to send [05:49:23]OFD Sender: No OFD packet to send [05:49:28]OFD Sender: No OFD packet to send [05:49:33]OFD Sender: No OFD packet to send [05:49:38]OFD Sender: No OFD packet to send [05:49:43]OFD Sender: No OFD packet to send [05:49:48]OFD Sender: No OFD packet to send [05:49:53]OFD Sender: No OFD packet to send [05:49:58]OFD Sender: No OFD packet to send [05:50:03]OFD Sender: No OFD packet to send [05:50:08]OFD Sender: No OFD packet to send [05:50:13]OFD Sender: No OFD packet to send [05:50:18]OFD Sender: No OFD packet to send [05:50:23]OFD Sender: No OFD packet to send [05:50:28]OFD Sender: No OFD packet to send [05:50:33]OFD Sender: No OFD packet to send [05:50:38]OFD Sender: No OFD packet to send [05:50:43]OFD Sender: No OFD packet to send [05:50:48]OFD Sender: No OFD packet to send [05:50:53]OFD Sender: No OFD packet to send [05:50:58]OFD Sender: No OFD packet to send [05:51:03]OFD Sender: No OFD packet to send [05:51:08]OFD Sender: No OFD packet to send [05:51:13]OFD Sender: No OFD packet to send [05:51:18]OFD Sender: No OFD packet to send [05:51:23]OFD Sender: No OFD packet to send [05:51:28]OFD Sender: No OFD packet to send [05:51:33]OFD Sender: No OFD packet to send [05:51:38]OFD Sender: No OFD packet to send [05:51:43]OFD Sender: No OFD packet to send [05:51:48]OFD Sender: No OFD packet to send [05:51:53]OFD Sender: No OFD packet to send [05:51:58]OFD Sender: No OFD packet to send [05:52:03]OFD Sender: No OFD packet to send [05:52:08]OFD Sender: No OFD packet to send [05:52:13]OFD Sender: No OFD packet to send [05:52:18]OFD Sender: No OFD packet to send [05:52:23]OFD Sender: No OFD packet to send [05:52:28]OFD Sender: No OFD packet to send [05:52:33]OFD Sender: No OFD packet to send [05:52:38]OFD Sender: No OFD packet to send [05:52:43]OFD Sender: No OFD packet to send [05:52:48]OFD Sender: No OFD packet to send [05:52:53]OFD Sender: No OFD packet to send [05:52:58]OFD Sender: No OFD packet to send [05:53:03]OFD Sender: No OFD packet to send [05:53:08]OFD Sender: No OFD packet to send [05:53:13]OFD Sender: No OFD packet to send [05:53:18]OFD Sender: No OFD packet to send [05:53:23]OFD Sender: No OFD packet to send [05:53:28]OFD Sender: No OFD packet to send [05:53:33]OFD Sender: No OFD packet to send [05:53:38]OFD Sender: No OFD packet to send [05:53:43]OFD Sender: No OFD packet to send [05:53:48]OFD Sender: No OFD packet to send [05:53:53]OFD Sender: No OFD packet to send [05:53:58]OFD Sender: No OFD packet to send [05:54:03]OFD Sender: No OFD packet to send [05:54:08]OFD Sender: No OFD packet to send [05:54:13]OFD Sender: No OFD packet to send [05:54:18]OFD Sender: No OFD packet to send [05:54:23]OFD Sender: No OFD packet to send [05:54:28]OFD Sender: No OFD packet to send [05:54:33]OFD Sender: No OFD packet to send [05:54:38]OFD Sender: No OFD packet to send [05:54:43]OFD Sender: No OFD packet to send [05:54:48]OFD Sender: No OFD packet to send [05:54:53]OFD Sender: No OFD packet to send [05:54:58]OFD Sender: No OFD packet to send [05:55:03]OFD Sender: No OFD packet to send [05:55:08]OFD Sender: No OFD packet to send [05:55:13]OFD Sender: No OFD packet to send [05:55:18]OFD Sender: No OFD packet to send [05:55:23]OFD Sender: No OFD packet to send [05:55:28]OFD Sender: No OFD packet to send [05:55:33]OFD Sender: No OFD packet to send [05:55:38]OFD Sender: No OFD packet to send [05:55:43]OFD Sender: No OFD packet to send [05:55:48]OFD Sender: No OFD packet to send [05:55:53]OFD Sender: No OFD packet to send [05:55:58]OFD Sender: No OFD packet to send [05:56:03]OFD Sender: No OFD packet to send [05:56:08]OFD Sender: No OFD packet to send [05:56:13]OFD Sender: No OFD packet to send [05:56:18]OFD Sender: No OFD packet to send [05:56:23]OFD Sender: No OFD packet to send [05:56:28]OFD Sender: No OFD packet to send [05:56:33]OFD Sender: No OFD packet to send [05:56:38]OFD Sender: No OFD packet to send [05:56:43]OFD Sender: No OFD packet to send [05:56:48]OFD Sender: No OFD packet to send [05:56:53]OFD Sender: No OFD packet to send [05:56:58]OFD Sender: No OFD packet to send [05:57:03]OFD Sender: No OFD packet to send [05:57:08]OFD Sender: No OFD packet to send [05:57:13]OFD Sender: No OFD packet to send [05:57:18]OFD Sender: No OFD packet to send [05:57:23]OFD Sender: No OFD packet to send [05:57:28]OFD Sender: No OFD packet to send [05:57:33]OFD Sender: No OFD packet to send [05:57:38]OFD Sender: No OFD packet to send [05:57:43]OFD Sender: No OFD packet to send [05:57:48]OFD Sender: No OFD packet to send [05:57:53]OFD Sender: No OFD packet to send [05:57:58]OFD Sender: No OFD packet to send [05:58:03]OFD Sender: No OFD packet to send [05:58:08]OFD Sender: No OFD packet to send [05:58:13]OFD Sender: No OFD packet to send [05:58:18]OFD Sender: No OFD packet to send [05:58:23]OFD Sender: No OFD packet to send [05:58:28]OFD Sender: No OFD packet to send [05:58:33]OFD Sender: No OFD packet to send [05:58:38]OFD Sender: No OFD packet to send [05:58:43]OFD Sender: No OFD packet to send [05:58:48]OFD Sender: No OFD packet to send [05:58:53]OFD Sender: No OFD packet to send [05:58:58]OFD Sender: No OFD packet to send [05:59:03]OFD Sender: No OFD packet to send [05:59:08]OFD Sender: No OFD packet to send [05:59:13]OFD Sender: No OFD packet to send [05:59:18]OFD Sender: No OFD packet to send [05:59:23]OFD Sender: No OFD packet to send [05:59:28]OFD Sender: No OFD packet to send [05:59:33]OFD Sender: No OFD packet to send [05:59:38]OFD Sender: No OFD packet to send [05:59:43]OFD Sender: No OFD packet to send [05:59:48]OFD Sender: No OFD packet to send [05:59:53]OFD Sender: No OFD packet to send [05:59:58]OFD Sender: No OFD packet to send [06:00:03]OFD Sender: No OFD packet to send [06:00:08]OFD Sender: No OFD packet to send [06:00:13]OFD Sender: No OFD packet to send [06:00:18]OFD Sender: No OFD packet to send [06:00:23]OFD Sender: No OFD packet to send [06:00:28]OFD Sender: No OFD packet to send [06:00:33]OFD Sender: No OFD packet to send [06:00:38]OFD Sender: No OFD packet to send [06:00:43]OFD Sender: No OFD packet to send [06:00:48]OFD Sender: No OFD packet to send [06:00:53]OFD Sender: No OFD packet to send [06:00:58]OFD Sender: No OFD packet to send [06:01:03]OFD Sender: No OFD packet to send [06:01:08]OFD Sender: No OFD packet to send [06:01:13]OFD Sender: No OFD packet to send [06:01:18]OFD Sender: No OFD packet to send [06:01:23]OFD Sender: No OFD packet to send [06:01:28]OFD Sender: No OFD packet to send [06:01:33]OFD Sender: No OFD packet to send [06:01:38]OFD Sender: No OFD packet to send [06:01:43]OFD Sender: No OFD packet to send [06:01:48]OFD Sender: No OFD packet to send [06:01:53]OFD Sender: No OFD packet to send [06:01:58]OFD Sender: No OFD packet to send [06:02:03]OFD Sender: No OFD packet to send [06:02:08]OFD Sender: No OFD packet to send [06:02:13]OFD Sender: No OFD packet to send [06:02:18]OFD Sender: No OFD packet to send [06:02:23]OFD Sender: No OFD packet to send [06:02:28]OFD Sender: No OFD packet to send [06:02:33]OFD Sender: No OFD packet to send [06:02:38]OFD Sender: No OFD packet to send [06:02:43]OFD Sender: No OFD packet to send [06:02:48]OFD Sender: No OFD packet to send [06:02:53]OFD Sender: No OFD packet to send [06:02:58]OFD Sender: No OFD packet to send [06:03:03]OFD Sender: No OFD packet to send [06:03:08]OFD Sender: No OFD packet to send [06:03:13]OFD Sender: No OFD packet to send [06:03:18]OFD Sender: No OFD packet to send [06:03:23]OFD Sender: No OFD packet to send [06:03:28]OFD Sender: No OFD packet to send [06:03:33]OFD Sender: No OFD packet to send [06:03:38]OFD Sender: No OFD packet to send [06:03:43]OFD Sender: No OFD packet to send [06:03:48]OFD Sender: No OFD packet to send [06:03:53]OFD Sender: No OFD packet to send [06:03:59]OFD Sender: No OFD packet to send [06:04:04]OFD Sender: No OFD packet to send [06:04:09]OFD Sender: No OFD packet to send [06:04:14]OFD Sender: No OFD packet to send [06:04:19]OFD Sender: No OFD packet to send [06:04:24]OFD Sender: No OFD packet to send [06:04:29]OFD Sender: No OFD packet to send [06:04:34]OFD Sender: No OFD packet to send [06:04:39]OFD Sender: No OFD packet to send [06:04:44]OFD Sender: No OFD packet to send [06:04:49]OFD Sender: No OFD packet to send [06:04:54]OFD Sender: No OFD packet to send [06:04:59]OFD Sender: No OFD packet to send [06:05:04]OFD Sender: No OFD packet to send [06:05:09]OFD Sender: No OFD packet to send [06:05:14]OFD Sender: No OFD packet to send [06:05:19]OFD Sender: No OFD packet to send [06:05:24]OFD Sender: No OFD packet to send [06:05:29]OFD Sender: No OFD packet to send [06:05:34]OFD Sender: No OFD packet to send [06:05:39]OFD Sender: No OFD packet to send [06:05:44]OFD Sender: No OFD packet to send [06:05:49]OFD Sender: No OFD packet to send [06:05:54]OFD Sender: No OFD packet to send [06:05:59]OFD Sender: No OFD packet to send [06:06:04]OFD Sender: No OFD packet to send [06:06:09]OFD Sender: No OFD packet to send [06:06:14]OFD Sender: No OFD packet to send [06:06:19]OFD Sender: No OFD packet to send [06:06:24]OFD Sender: No OFD packet to send [06:06:29]OFD Sender: No OFD packet to send [06:06:29]accept exits with 9 [06:06:29]New connection [06:06:29]New thread 3067227492 created [06:06:29]Thread 3067084132 joined [06:06:29]Waiting for new connection... [06:06:29] Sock 9.Parse request [06:06:29]Sock 9.Check first char [06:06:29]Sock 9.First char is OK [06:06:29]request: POST /json_proto HTTP/1.0 [06:06:29]Method: POST [06:06:29]URL: /json_proto [06:06:29]Method is POST - this is cgi request [06:06:29]url: /json_proto [06:06:29]query_string will be loaded in cgi processing [06:06:29]execute_cgi json_proto POST (null) [06:06:29]execute_cgi path=json_proto method=POST [06:06:29]POST find Content-Length [06:06:29]Host: 172.17.36.132:8080 [06:06:29]Content-Length: 1205 [06:06:29]Content-Type: application/json [06:06:29] [06:06:29]POST finish read [06:06:29]Found Content-Length = 1205 [06:06:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0418\u0441\u043C\u0430\u043D\u0430\u043B\u0438\u0435\u0432 \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)706622\u000A04.06.2024 05:43\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-4\u000A 40.000 x 66.90\u000A\u0418\u0422\u041E\u0413: 2676.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\u000A3928802:3928803\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:06:29]execute_script... [06:06:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0418\u0441\u043C\u0430\u043D\u0430\u043B\u0438\u0435\u0432 \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)706622\u000A04.06.2024 05:43\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-4\u000A 40.000 x 66.90\u000A\u0418\u0422\u041E\u0413: 2676.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\u000A3928802:3928803\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:06:29]POST & json_proto [06:06:29]process_json_proto [06:06:29]json parsed OK: [06:06:29]protocol is kg_v1.0 [06:06:29]action value=print_text [06:06:29]process_action print_text [06:06:29]cmd_print_text [06:06:29]ExternCall_PrintAddStr [06:06:29]wPrintStart [06:06:29]Write to MH i2c: 01 00 00 05 0F 14 [06:06:29]Write i2c OK [06:06:29]MH_I2C_Read... [06:06:29]Read from MH i2c: 01 [06:06:29]MH_I2C_Read... [06:06:29]Read from MH i2c: 01 07 00 [06:06:29]MH_I2C_Read... [06:06:29]Read from MH i2c: 01 07 00 05 0F 00 00 00 00 00 FF 0F 29 [06:06:29]RasterBufferAndPrint [06:06:29]line *****ТОВАРНЫЙ ЧЕК***** [06:06:29]line АЗС 62 [06:06:29]line Партнер нефть [06:06:29]line 02508201610067 [06:06:29]line Кассир : Исманалиев Д. [06:06:29]line Счет N : (1)706622 [06:06:29]line 04.06.2024 05:43 [06:06:29]line ПРОДАЖА [06:06:29]line ТРК (МРК, ГНК): 42 [06:06:29]line Вид ГСМ : 2710124130 [06:06:29]line Аи-92-К-4 [06:06:29]line 40.000 x 66.90 [06:06:29]line ИТОГ: 2676.00 [06:06:29]line Тип оплаты: Талоны: Партнер нефть [06:06:29]line 3928802:3928803 [06:06:29]line ______________________ [06:06:29]line (подпись) [06:06:29]written 0, free lines is 4095 [06:06:29]Write to MH i2c: 01 00 00 19 0F 28 [06:06:29]Write i2c OK [06:06:29]MH_I2C_Read... [06:06:29]Read from MH i2c: 01 [06:06:29]MH_I2C_Read... [06:06:29]Read from MH i2c: 01 07 00 [06:06:29]MH_I2C_Read... [06:06:29]Read from MH i2c: 01 07 00 19 0F 00 00 00 00 00 1B 0E 58 [06:06:29]RasterBufferAndPrint [06:06:29]line [06:06:29]line [06:06:29]line [06:06:29]line [06:06:29]line [06:06:29]written 0, free lines is 3613 [06:06:29]MH_Cut [06:06:29]Write to MH i2c: D1 01 00 20 0F 01 01 [06:06:29]Write i2c OK [06:06:29]MH_I2C_Read... [06:06:29]Read from MH i2c: D1 [06:06:29]MH_I2C_Read... [06:06:29]Read from MH i2c: D1 01 00 [06:06:29]MH_I2C_Read... [06:06:29]Read from MH i2c: D1 01 00 20 0F 00 00 [06:06:29]Write to MH i2c: 01 00 00 21 0F 30 [06:06:29]Write i2c OK [06:06:29]MH_I2C_Read... [06:06:30]*** Cut start [06:06:30]*** Partial cut [06:06:30]*** CUTSNS_PIN = 1 [06:06:30]*** CUTSNS_PIN = 0 [06:06:30]*** Brake cut motor [06:06:30]Read from MH i2c: 01 [06:06:30]MH_I2C_Read... [06:06:30]*** Stop cut motor [06:06:30]*** Cut end [06:06:30]Read from MH i2c: 01 07 00 [06:06:30]MH_I2C_Read... [06:06:30]Read from MH i2c: 01 07 00 21 0F 00 00 00 00 00 FF 0F 45 [06:06:30]process_action print_text done [06:06:30]requested_data is exist [06:06:30]produce_requested_data [06:06:30]requested_item fm.sn is exist - process it [06:06:30]wFMCommunicate request_size=4 [06:06:30]MH_SAM_APDU [06:06:30]CAPDU: 80 11 00 00 [06:06:30]Write to MH i2c: E2 08 00 22 0F 80 11 00 00 00 00 00 00 AB [06:06:30]Write i2c OK [06:06:30]MH_I2C_Read... [06:06:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:06:30]Read from MH i2c: E2 [06:06:30]MH_I2C_Read... [06:06:30]Read from MH i2c: E2 17 00 [06:06:30]MH_I2C_Read... [06:06:30]Read from MH i2c: E2 17 00 22 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 F6 [06:06:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [06:06:30]wFMCommunicate OK [06:06:30]requested_item fd.num is exist - process it [06:06:30]SAM_PROTO_GetFieldsCounters [06:06:30]wFMCommunicate request_size=4 [06:06:30]MH_SAM_APDU [06:06:30]CAPDU: 80 13 00 00 [06:06:30]Write to MH i2c: E2 08 00 23 0F 80 13 00 00 00 00 00 00 AE [06:06:30]Write i2c OK [06:06:30]MH_I2C_Read... [06:06:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:06:30]Read from MH i2c: E2 [06:06:30]MH_I2C_Read... [06:06:30]Read from MH i2c: E2 62 00 [06:06:30]MH_I2C_Read... [06:06:30]Read from MH i2c: E2 62 00 23 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 9D 0B 01 00 0E 04 04 00 45 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 D2 [06:06:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 9D 0B 01 00 0E 04 04 00 45 01 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:06:30]wFMCommunicate OK [06:06:30]SAM_PROTO_GetFieldsCounters done [06:06:30]requested_item shift.num is exist - process it [06:06:30]requested_item shift.opened is exist - process it [06:06:30]req_shift_opened [06:06:30]FM_GetShiftState [06:06:30]SAM_PROTO_GetShiftState [06:06:30]wFMCommunicate request_size=4 [06:06:30]MH_SAM_APDU [06:06:30]CAPDU: 80 13 01 00 [06:06:30]Write to MH i2c: E2 08 00 24 0F 80 13 01 00 00 00 00 00 B0 [06:06:30]Write i2c OK [06:06:30]MH_I2C_Read... [06:06:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:06:30]Read from MH i2c: E2 [06:06:30]MH_I2C_Read... [06:06:30]Read from MH i2c: E2 0E 00 [06:06:30]MH_I2C_Read... [06:06:30]Read from MH i2c: E2 0E 00 24 0F 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 4C [06:06:30]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [06:06:30]wFMCommunicate OK [06:06:30]SAM_PROTO_GetShiftState done [06:06:30]FM_GetShiftState done [06:06:30]req_shift_opened done [06:06:30]requested_item shift.open_date is exist - process it [06:06:30]req_shift_open_date [06:06:30]req_shift_open_date done [06:06:30]produce_requested_data done [06:06:30]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68509,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [06:06:30]process_action_free print_text [06:06:30]json_value_free [06:06:30]json_value_free done [06:06:30]process_json_proto returns [06:06:30]Send response to host [06:06:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68509,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [06:06:30]free response buf [06:06:30]execute_script done [06:06:30]execute_script returns [06:06:30]free content buf [06:06:30]Sock 9.Close socket [06:06:30]Sock 9.Thread stoped [06:06:34]OFD Sender: No OFD packet to send [06:06:39]OFD Sender: No OFD packet to send [06:06:44]OFD Sender: No OFD packet to send [06:06:49]OFD Sender: No OFD packet to send [06:06:54]OFD Sender: No OFD packet to send [06:06:59]OFD Sender: No OFD packet to send [06:07:04]OFD Sender: No OFD packet to send [06:07:09]OFD Sender: No OFD packet to send [06:07:14]OFD Sender: No OFD packet to send [06:07:19]OFD Sender: No OFD packet to send [06:07:24]OFD Sender: No OFD packet to send [06:07:29]OFD Sender: No OFD packet to send [06:07:34]OFD Sender: No OFD packet to send [06:07:39]OFD Sender: No OFD packet to send [06:07:44]OFD Sender: No OFD packet to send [06:07:49]OFD Sender: No OFD packet to send [06:07:54]OFD Sender: No OFD packet to send [06:07:59]OFD Sender: No OFD packet to send [06:08:04]OFD Sender: No OFD packet to send [06:08:09]OFD Sender: No OFD packet to send [06:08:14]OFD Sender: No OFD packet to send [06:08:19]OFD Sender: No OFD packet to send [06:08:24]OFD Sender: No OFD packet to send [06:08:29]OFD Sender: No OFD packet to send [06:08:34]OFD Sender: No OFD packet to send [06:08:39]OFD Sender: No OFD packet to send [06:08:44]OFD Sender: No OFD packet to send [06:08:49]OFD Sender: No OFD packet to send [06:08:54]OFD Sender: No OFD packet to send [06:08:59]OFD Sender: No OFD packet to send [06:09:04]OFD Sender: No OFD packet to send [06:09:09]OFD Sender: No OFD packet to send [06:09:14]OFD Sender: No OFD packet to send [06:09:19]OFD Sender: No OFD packet to send [06:09:24]OFD Sender: No OFD packet to send [06:09:29]OFD Sender: No OFD packet to send [06:09:34]OFD Sender: No OFD packet to send [06:09:39]OFD Sender: No OFD packet to send [06:09:44]OFD Sender: No OFD packet to send [06:09:49]OFD Sender: No OFD packet to send [06:09:54]OFD Sender: No OFD packet to send [06:09:59]OFD Sender: No OFD packet to send [06:10:04]OFD Sender: No OFD packet to send [06:10:09]OFD Sender: No OFD packet to send [06:10:14]OFD Sender: No OFD packet to send [06:10:19]OFD Sender: No OFD packet to send [06:10:24]OFD Sender: No OFD packet to send [06:10:29]OFD Sender: No OFD packet to send [06:10:34]OFD Sender: No OFD packet to send [06:10:39]OFD Sender: No OFD packet to send [06:10:44]OFD Sender: No OFD packet to send [06:10:49]OFD Sender: No OFD packet to send [06:10:54]OFD Sender: No OFD packet to send [06:10:59]OFD Sender: No OFD packet to send [06:11:04]OFD Sender: No OFD packet to send [06:11:09]OFD Sender: No OFD packet to send [06:11:14]OFD Sender: No OFD packet to send [06:11:19]OFD Sender: No OFD packet to send [06:11:24]OFD Sender: No OFD packet to send [06:11:29]OFD Sender: No OFD packet to send [06:11:34]OFD Sender: No OFD packet to send [06:11:39]OFD Sender: No OFD packet to send [06:11:44]OFD Sender: No OFD packet to send [06:11:49]OFD Sender: No OFD packet to send [06:11:54]OFD Sender: No OFD packet to send [06:11:59]OFD Sender: No OFD packet to send [06:12:04]OFD Sender: No OFD packet to send [06:12:09]OFD Sender: No OFD packet to send [06:12:14]OFD Sender: No OFD packet to send [06:12:19]OFD Sender: No OFD packet to send [06:12:24]OFD Sender: No OFD packet to send [06:12:29]OFD Sender: No OFD packet to send [06:12:34]OFD Sender: No OFD packet to send [06:12:39]OFD Sender: No OFD packet to send [06:12:44]OFD Sender: No OFD packet to send [06:12:49]OFD Sender: No OFD packet to send [06:12:54]OFD Sender: No OFD packet to send [06:12:59]OFD Sender: No OFD packet to send [06:13:04]OFD Sender: No OFD packet to send [06:13:09]OFD Sender: No OFD packet to send [06:13:14]OFD Sender: No OFD packet to send [06:13:19]OFD Sender: No OFD packet to send [06:13:24]OFD Sender: No OFD packet to send [06:13:29]OFD Sender: No OFD packet to send [06:13:34]OFD Sender: No OFD packet to send [06:13:39]OFD Sender: No OFD packet to send [06:13:44]OFD Sender: No OFD packet to send [06:13:49]OFD Sender: No OFD packet to send [06:13:54]OFD Sender: No OFD packet to send [06:13:59]OFD Sender: No OFD packet to send [06:14:04]OFD Sender: No OFD packet to send [06:14:09]OFD Sender: No OFD packet to send [06:14:14]OFD Sender: No OFD packet to send [06:14:19]OFD Sender: No OFD packet to send [06:14:24]OFD Sender: No OFD packet to send [06:14:29]OFD Sender: No OFD packet to send [06:14:34]OFD Sender: No OFD packet to send [06:14:39]OFD Sender: No OFD packet to send [06:14:44]OFD Sender: No OFD packet to send [06:14:49]OFD Sender: No OFD packet to send [06:14:54]OFD Sender: No OFD packet to send [06:14:59]OFD Sender: No OFD packet to send [06:15:04]OFD Sender: No OFD packet to send [06:15:09]OFD Sender: No OFD packet to send [06:15:14]OFD Sender: No OFD packet to send [06:15:19]OFD Sender: No OFD packet to send [06:15:24]OFD Sender: No OFD packet to send [06:15:29]OFD Sender: No OFD packet to send [06:15:34]OFD Sender: No OFD packet to send [06:15:39]OFD Sender: No OFD packet to send [06:15:44]OFD Sender: No OFD packet to send [06:15:49]OFD Sender: No OFD packet to send [06:15:54]OFD Sender: No OFD packet to send [06:15:59]OFD Sender: No OFD packet to send [06:16:04]OFD Sender: No OFD packet to send [06:16:09]OFD Sender: No OFD packet to send [06:16:14]OFD Sender: No OFD packet to send [06:16:19]OFD Sender: No OFD packet to send [06:16:24]OFD Sender: No OFD packet to send [06:16:29]OFD Sender: No OFD packet to send [06:16:34]OFD Sender: No OFD packet to send [06:16:39]OFD Sender: No OFD packet to send [06:16:44]OFD Sender: No OFD packet to send [06:16:49]OFD Sender: No OFD packet to send [06:16:54]OFD Sender: No OFD packet to send [06:16:59]OFD Sender: No OFD packet to send [06:17:04]OFD Sender: No OFD packet to send [06:17:09]OFD Sender: No OFD packet to send [06:17:14]OFD Sender: No OFD packet to send [06:17:19]OFD Sender: No OFD packet to send [06:17:24]OFD Sender: No OFD packet to send [06:17:29]OFD Sender: No OFD packet to send [06:17:34]OFD Sender: No OFD packet to send [06:17:39]OFD Sender: No OFD packet to send [06:17:44]OFD Sender: No OFD packet to send [06:17:49]OFD Sender: No OFD packet to send [06:17:54]OFD Sender: No OFD packet to send [06:17:59]OFD Sender: No OFD packet to send [06:18:04]OFD Sender: No OFD packet to send [06:18:09]OFD Sender: No OFD packet to send [06:18:14]OFD Sender: No OFD packet to send [06:18:19]OFD Sender: No OFD packet to send [06:18:24]OFD Sender: No OFD packet to send [06:18:29]OFD Sender: No OFD packet to send [06:18:34]OFD Sender: No OFD packet to send [06:18:39]OFD Sender: No OFD packet to send [06:18:44]OFD Sender: No OFD packet to send [06:18:49]OFD Sender: No OFD packet to send [06:18:54]OFD Sender: No OFD packet to send [06:18:59]OFD Sender: No OFD packet to send [06:19:04]OFD Sender: No OFD packet to send [06:19:09]OFD Sender: No OFD packet to send [06:19:14]OFD Sender: No OFD packet to send [06:19:19]OFD Sender: No OFD packet to send [06:19:24]OFD Sender: No OFD packet to send [06:19:29]OFD Sender: No OFD packet to send [06:19:34]OFD Sender: No OFD packet to send [06:19:39]OFD Sender: No OFD packet to send [06:19:44]OFD Sender: No OFD packet to send [06:19:49]OFD Sender: No OFD packet to send [06:19:54]OFD Sender: No OFD packet to send [06:19:59]OFD Sender: No OFD packet to send [06:20:04]OFD Sender: No OFD packet to send [06:20:09]OFD Sender: No OFD packet to send [06:20:14]OFD Sender: No OFD packet to send [06:20:19]OFD Sender: No OFD packet to send [06:20:24]OFD Sender: No OFD packet to send [06:20:29]OFD Sender: No OFD packet to send [06:20:34]OFD Sender: No OFD packet to send [06:20:39]OFD Sender: No OFD packet to send [06:20:44]OFD Sender: No OFD packet to send [06:20:49]OFD Sender: No OFD packet to send [06:20:54]OFD Sender: No OFD packet to send [06:20:59]OFD Sender: No OFD packet to send [06:21:04]OFD Sender: No OFD packet to send [06:21:09]OFD Sender: No OFD packet to send [06:21:14]OFD Sender: No OFD packet to send [06:21:19]OFD Sender: No OFD packet to send [06:21:24]OFD Sender: No OFD packet to send [06:21:29]OFD Sender: No OFD packet to send [06:21:34]OFD Sender: No OFD packet to send [06:21:39]OFD Sender: No OFD packet to send [06:21:44]OFD Sender: No OFD packet to send [06:21:49]OFD Sender: No OFD packet to send [06:21:54]OFD Sender: No OFD packet to send [06:21:59]OFD Sender: No OFD packet to send [06:22:04]OFD Sender: No OFD packet to send [06:22:09]OFD Sender: No OFD packet to send [06:22:14]OFD Sender: No OFD packet to send [06:22:19]OFD Sender: No OFD packet to send [06:22:24]OFD Sender: No OFD packet to send [06:22:29]OFD Sender: No OFD packet to send [06:22:34]OFD Sender: No OFD packet to send [06:22:39]OFD Sender: No OFD packet to send [06:22:44]OFD Sender: No OFD packet to send [06:22:49]OFD Sender: No OFD packet to send [06:22:54]OFD Sender: No OFD packet to send [06:22:59]OFD Sender: No OFD packet to send [06:23:04]OFD Sender: No OFD packet to send [06:23:09]OFD Sender: No OFD packet to send [06:23:14]OFD Sender: No OFD packet to send [06:23:19]OFD Sender: No OFD packet to send [06:23:25]OFD Sender: No OFD packet to send [06:23:30]OFD Sender: No OFD packet to send [06:23:35]OFD Sender: No OFD packet to send [06:23:40]OFD Sender: No OFD packet to send [06:23:45]OFD Sender: No OFD packet to send [06:23:50]OFD Sender: No OFD packet to send [06:23:55]OFD Sender: No OFD packet to send [06:24:00]OFD Sender: No OFD packet to send [06:24:05]OFD Sender: No OFD packet to send [06:24:10]OFD Sender: No OFD packet to send [06:24:15]OFD Sender: No OFD packet to send [06:24:20]OFD Sender: No OFD packet to send [06:24:25]OFD Sender: No OFD packet to send [06:24:30]OFD Sender: No OFD packet to send [06:24:35]OFD Sender: No OFD packet to send [06:24:40]OFD Sender: No OFD packet to send [06:24:45]OFD Sender: No OFD packet to send [06:24:50]OFD Sender: No OFD packet to send [06:24:55]OFD Sender: No OFD packet to send [06:25:00]OFD Sender: No OFD packet to send [06:25:05]OFD Sender: No OFD packet to send [06:25:10]OFD Sender: No OFD packet to send [06:25:15]OFD Sender: No OFD packet to send [06:25:20]OFD Sender: No OFD packet to send [06:25:25]OFD Sender: No OFD packet to send [06:25:30]OFD Sender: No OFD packet to send [06:25:35]OFD Sender: No OFD packet to send [06:25:40]OFD Sender: No OFD packet to send [06:25:45]OFD Sender: No OFD packet to send [06:25:50]OFD Sender: No OFD packet to send [06:25:55]OFD Sender: No OFD packet to send [06:26:00]OFD Sender: No OFD packet to send [06:26:05]OFD Sender: No OFD packet to send [06:26:10]OFD Sender: No OFD packet to send [06:26:15]OFD Sender: No OFD packet to send [06:26:20]OFD Sender: No OFD packet to send [06:26:25]OFD Sender: No OFD packet to send [06:26:30]OFD Sender: No OFD packet to send [06:26:33]accept exits with 7 [06:26:33]New connection [06:26:33]New thread 3067084132 created [06:26:33]Thread 3067227492 joined [06:26:33]Waiting for new connection... [06:26:33] Sock 7.Parse request [06:26:33]Sock 7.Check first char [06:26:33]Sock 7.First char is OK [06:26:33]request: POST /json_proto HTTP/1.0 [06:26:33]Method: POST [06:26:33]URL: /json_proto [06:26:33]Method is POST - this is cgi request [06:26:33]url: /json_proto [06:26:33]query_string will be loaded in cgi processing [06:26:33]execute_cgi json_proto POST (null) [06:26:33]execute_cgi path=json_proto method=POST [06:26:33]POST find Content-Length [06:26:33]Host: 172.17.36.132:8080 [06:26:33]Content-Length: 675 [06:26:33]Content-Type: application/json [06:26:33] [06:26:33]POST finish read [06:26:33]Found Content-Length = 675 [06:26:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706623", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.90, "quantity" : 22.100, "sum" : 1500.59, "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" ] } } [06:26:33]execute_script... [06:26: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)706623", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.90, "quantity" : 22.100, "sum" : 1500.59, "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" ] } } [06:26:33]POST & json_proto [06:26:33]process_json_proto [06:26:33]json parsed OK: [06:26:33]protocol is kg_v1.0 [06:26:33]action value=close_receipt [06:26:33]process_action close_receipt [06:26:33]cmd_close_receipt [06:26:33]MH_GetDate [06:26:33]Write to MH i2c: F0 00 00 25 0F 23 [06:26:33]Write i2c OK [06:26:33]MH_I2C_Read... [06:26:33]Read from MH i2c: F0 [06:26:33]MH_I2C_Read... [06:26:33]Read from MH i2c: F0 09 00 [06:26:33]MH_I2C_Read... [06:26:33]Read from MH i2c: F0 09 00 25 0F 00 9C B3 5E 66 B2 22 B0 64 27 [06:26:33]GetLastDocTimeStamp 1717475403 [06:26:33]current date 1717482396 [06:26:33]FM_GetShiftState [06:26:33]SAM_PROTO_GetShiftState [06:26:33]wFMCommunicate request_size=4 [06:26:33]MH_SAM_APDU [06:26:33]CAPDU: 80 13 01 00 [06:26:33]Write to MH i2c: E2 08 00 26 0F 80 13 01 00 00 00 00 00 B2 [06:26:33]Write i2c OK [06:26:33]MH_I2C_Read... [06:26:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:26:33]Read from MH i2c: E2 [06:26:33]MH_I2C_Read... [06:26:33]Read from MH i2c: E2 0E 00 [06:26:33]MH_I2C_Read... [06:26:33]Read from MH i2c: E2 0E 00 26 0F 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 4E [06:26:33]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [06:26:33]wFMCommunicate OK [06:26:33]SAM_PROTO_GetShiftState done [06:26:33]FM_GetShiftState done [06:26:33]opened in 1717460590 [06:26:33]opened+sec_in_day 1717546990 [06:26:33]quantity*price = 150059 [06:26:33]sum+1 = 150060 [06:26:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 8 04.06.2024 06:26 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68510 ФПД: 262068219358916 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T062636&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68510&fm=262068219358916&tin=02508201610067®Number=0000000000098096&sum=150000 [06:26:34]StoreToDocumentArchive [06:26:34]shift 325 fd 68510 [06:26:34]save to /storage/0325/doc_00068510 [06:26:34]save last doc name /storage/0325/doc_00068510 to /storage/kkm_last_doc_name [06:26:34]save OK [06:26:34]Clear old archive folders... [06:26:34]ProcessDocumentItem done err = 0, tmpTLVsize=252 [06:26:34]tlvbuf is 009AD840 [06:26:34]SAM_PROTO_ClearQueue [06:26:34]wFMCommunicate request_size=4 [06:26:34]MH_SAM_APDU [06:26:34]CAPDU: 80 09 00 00 [06:26:34]Write to MH i2c: E2 08 00 33 0F 80 09 00 00 00 00 00 00 B4 [06:26:34]Write i2c OK [06:26:34]MH_I2C_Read... [06:26:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:26:34]Read from MH i2c: E2 [06:26:34]MH_I2C_Read... [06:26:34]Read from MH i2c: E2 03 00 [06:26:34]MH_I2C_Read... [06:26:34]Read from MH i2c: E2 03 00 33 0F 00 90 00 B6 [06:26:34]RAPDU: 90 00 [06:26:34]wFMCommunicate OK [06:26:34]SAM_PROTO_ClearQueue done [06:26:34]KKMCreateOFDPacket [06:26:34]OFDProtocolAddRootSTLVToBuf [06:26:34]FM_MakeSignedData [06:26:34]FM_MakeSignedData [06:26:34]SAM_PROTO_SignData [06:26:34]wFMCommunicate request_size=4 [06:26:34]MH_SAM_APDU [06:26:34]CAPDU: 80 0D 01 02 [06:26:34]Write to MH i2c: E2 08 00 34 0F 80 0D 01 02 00 00 00 00 BC [06:26:34]Write i2c OK [06:26:34]MH_I2C_Read... [06:26:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:26:34]Read from MH i2c: E2 [06:26:34]MH_I2C_Read... [06:26:34]Read from MH i2c: E2 03 00 [06:26:34]MH_I2C_Read... [06:26:34]Read from MH i2c: E2 03 00 34 0F 00 90 00 B7 [06:26:34]RAPDU: 90 00 [06:26:34]wFMCommunicate OK [06:26:34]wFMCommunicate request_size=255 [06:26:34]MH_SAM_APDU [06:26:34]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 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 54 56 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 2B 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 08 00 00 00 F4 03 04 00 9C B3 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 9E 0B 01 00 35 04 06 00 [06:26:34]Write to MH i2c: E2 02 01 35 0F 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 54 56 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 2B 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 08 00 00 00 F4 03 04 00 9C B3 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 9E 0B 01 00 35 04 06 00 00 00 E3 [06:26:34]Write i2c OK [06:26:34]MH_I2C_Read... [06:26:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:26:35]Read from MH i2c: E2 [06:26:35]MH_I2C_Read... [06:26:35]Read from MH i2c: E2 03 00 [06:26:35]MH_I2C_Read... [06:26:35]Read from MH i2c: E2 03 00 35 0F 00 90 00 B8 [06:26:35]RAPDU: 90 00 [06:26:35]wFMCommunicate OK [06:26:35]wFMCommunicate request_size=11 [06:26:35]MH_SAM_APDU [06:26:35]CAPDU: 80 0D 02 02 06 EE 59 83 1F 2E C4 [06:26:35]Write to MH i2c: E2 0E 00 36 0F 80 0D 02 02 06 00 EE 59 83 1F 2E C4 00 00 A6 [06:26:35]Write i2c OK [06:26:35]MH_I2C_Read... [06:26:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:26:35]Read from MH i2c: E2 [06:26:35]MH_I2C_Read... [06:26:35]Read from MH i2c: E2 03 00 [06:26:35]MH_I2C_Read... [06:26:35]Read from MH i2c: E2 03 00 36 0F 00 90 00 B9 [06:26:35]RAPDU: 90 00 [06:26:35]wFMCommunicate OK [06:26:35]wFMCommunicate request_size=4 [06:26:35]MH_SAM_APDU [06:26:35]CAPDU: 80 0D 03 02 [06:26:35]Write to MH i2c: E2 08 00 37 0F 80 0D 03 02 00 00 00 00 C1 [06:26:35]Write i2c OK [06:26:35]MH_I2C_Read... [06:26:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:26:35]Read from MH i2c: E2 [06:26:35]MH_I2C_Read... [06:26:35]Read from MH i2c: E2 0B 00 [06:26:35]MH_I2C_Read... [06:26:35]Read from MH i2c: E2 0B 00 37 0F 00 A1 B6 1F 70 2D 57 C6 5A 90 00 4C [06:26:35]RAPDU: A1 B6 1F 70 2D 57 C6 5A 90 00 [06:26:35]wFMCommunicate OK [06:26:35]SAM_PROTO_SignData done [06:26:35]FM_MakeSignedData done [06:26:35]CreateOFDProtocolMessage [06:26:35]wFMCommunicate request_size=4 [06:26:35]MH_SAM_APDU [06:26:35]CAPDU: 80 11 00 00 [06:26:35]Write to MH i2c: E2 08 00 38 0F 80 11 00 00 00 00 00 00 C1 [06:26:35]Write i2c OK [06:26:35]MH_I2C_Read... [06:26:35]OFD Sender: No OFD packet to send [06:26:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:26:35]Read from MH i2c: E2 [06:26:35]MH_I2C_Read... [06:26:35]Read from MH i2c: E2 17 00 [06:26:35]MH_I2C_Read... [06:26:35]Read from MH i2c: E2 17 00 38 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 0C [06:26:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [06:26:35]wFMCommunicate OK [06:26:35]CreateOFDProtocolMessage done [06:26:35]OFDSenderStorePacket 68510 [06:26:35]StoreOFDPacket docnum=68510 [06:26:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 D9 A4 08 01 31 52 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 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 54 56 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 2B 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 08 00 00 00 F4 03 04 00 9C B3 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 9E 0B 01 00 35 04 06 00 EE 59 83 1F 2E C4 A1 B6 1F 70 2D 57 C6 5A [06:26:35]CheckFolder [06:26:35]dirname=/storage/ofd_packets [06:26:35]CheckFolder done [06:26:35]ProducePacketName [06:26:35]name=ofd_packets/00068510 [06:26:35]NVStorageSaveData ofd_packets/00068510 [06:26:35]File name is /storage/ofd_packets/00068510 [06:26:35]Write 302 bytes [06:26:35]NVStorageSaveData done [06:26:35]OFDSenderStorePacket done [06:26:35]KKMCreateOFDPacket done [06:26:35]NVStorageSaveData kkm_last_timestamp [06:26:35]File name is /storage/kkm_last_timestamp [06:26:35]Write 4 bytes [06:26:35]NVStorageSaveData done [06:26:35]ExternCall_PrintAddStr [06:26:35]wPrintStart [06:26:35]Write to MH i2c: 01 00 00 39 0F 48 [06:26:35]Write i2c OK [06:26:35]MH_I2C_Read... [06:26:35]Read from MH i2c: 01 [06:26:35]MH_I2C_Read... [06:26:35]Read from MH i2c: 01 07 00 [06:26:35]MH_I2C_Read... [06:26:35]Read from MH i2c: 01 07 00 39 0F 00 00 00 00 00 FF 0F 5D [06:26:35]RasterBufferAndPrint [06:26:35]line Счет N : (1)706623 [06:26:35]line ИНН: 02508201610067 [06:26:35]line Контрольно-Кассовый Чек [06:26:35]line ПРОДАЖА [06:26:35]line ТРК (МРК, ГНК) : 62 [06:26:35]line Товар: 2710124130 [06:26:35]line Super-92-К-5 [06:26:35]line 22.100 * 67.90 [06:26:35]line = 1500.59 [06:26:35]line НДС 12% НСП 1% [06:26:35]line > о реализуемом товаре [06:26:35]line ОКРУГЛЕНИЕ: -0.59 [06:26:35]line ИТОГО: 1500.00 [06:26:35]line Внесено: 1500.00 [06:26:35]line СДАЧА: 0.00 [06:26:35]line НСП 1% : 13.28 [06:26:35]line НДС 12% : 159.35 [06:26:35]line Наличными: 1500.00 [06:26:35]line Безнал.: 0.00 [06:26:35]line Место: АЗС № 62 "Партнер Нефть" [06:26:35]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [06:26:35]line СНО: Общий режим [06:26:35]line Чек 8 04.06.2024 06:26 [06:26:35]line Смена: 325 ФФД: 1.0 [06:26:35]line ЗНМ: 0300000181 [06:26:35]line РНМ: 0000000000098096 [06:26:35]line Версия ККМ: 001 [06:26:35]line ФМ: 0000000000965400 [06:26:35]line ФД: 68510 [06:26:35]line ФПД: 262068219358916 [06:26:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T062636&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68510&fm=262068219358916&tin=02508201610067®Number=0000000000098096&sum=150000 [06:26:35]OFD Sender: Processing packet 68510 [packets to send 26, broken 25] [06:26:35]ProducePacketName [06:26:35]name=ofd_packets/00068510 [06:26:35]OFD Sender: To server: pG, [06:26:35]CommunicateWithHost lk.salyk.kg:30040 [06:26:35]ConnectInit lk.salyk.kg [06:26:35]written 0, free lines is 4095 [06:26:35]Connected sock=10 [06:26:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 D9 A4 08 01 31 52 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 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 54 56 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 2B 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 08 00 00 00 F4 03 04 00 9C B3 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 9E 0B 01 00 35 04 06 00 EE 59 83 1F 2E C4 A1 B6 1F 70 2D 57 C6 5A [06:26:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 C4 FF 47 00 6B 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 39 36 35 34 30 30 10 04 04 00 9E 0B 01 00 F4 03 04 00 95 5A 5E 66 B6 04 01 00 00 15 09 C0 1A 2B 3E 1C D6 [06:26:35]CommunicateWithHost err = 0 [06:26:35]CheckOFDResponse [06:26:35]1017 (14) - 77093643461234 [06:26:35]1041 (16) - 0000000000965400 [06:26:35]1040 (4) - 68510 [06:26:35]1012 (4) - 04.06.2024 00:06 [06:26:35]1206 (1) - 0 [06:26:35]OFD Sender: Remove packet 68510 [06:26:35]ProducePacketName [06:26:35]name=ofd_packets/00068510 [06:26:35]NVStorageDeleteData [06:26:36]Write to MH i2c: 01 00 00 64 0F 73 [06:26:36]Write i2c OK [06:26:36]MH_I2C_Read... [06:26:36]Read from MH i2c: 01 [06:26:36]MH_I2C_Read... [06:26:36]Read from MH i2c: 01 07 00 [06:26:36]MH_I2C_Read... [06:26:36]Read from MH i2c: 01 07 00 64 0F 00 00 00 00 00 E1 0C 67 [06:26:36]RasterBufferAndPrint [06:26:36]line [06:26:36]line [06:26:36]line [06:26:36]line [06:26:36]line [06:26:36]written 0, free lines is 3303 [06:26:36]MH_Cut [06:26:36]Write to MH i2c: D1 01 00 6B 0F 01 4C [06:26:36]Write i2c OK [06:26:36]MH_I2C_Read... [06:26:36]Read from MH i2c: D1 [06:26:36]MH_I2C_Read... [06:26:36]Read from MH i2c: D1 01 00 [06:26:36]MH_I2C_Read... [06:26:36]Read from MH i2c: D1 01 00 6B 0F 00 4B [06:26:36]Write to MH i2c: 01 00 00 6C 0F 7B [06:26:36]Write i2c OK [06:26:36]MH_I2C_Read... [06:26:36]OFD Sender: No OFD packet to send [06:26:36]*** Cut start [06:26:36]*** Partial cut [06:26:36]*** CUTSNS_PIN = 1 [06:26:36]*** CUTSNS_PIN = 0 [06:26:37]*** Brake cut motor [06:26:37]Read from MH i2c: 01 [06:26:37]MH_I2C_Read... [06:26:37]*** Stop cut motor [06:26:37]*** Cut end [06:26:37]Read from MH i2c: 01 07 00 [06:26:37]MH_I2C_Read... [06:26:37]Read from MH i2c: 01 07 00 6C 0F 00 00 00 00 00 FF 0F 90 [06:26:37]process_action close_receipt done [06:26:37]requested_data is exist [06:26:37]produce_requested_data [06:26:37]requested_item fm.sn is exist - process it [06:26:37]wFMCommunicate request_size=4 [06:26:37]MH_SAM_APDU [06:26:37]CAPDU: 80 11 00 00 [06:26:37]Write to MH i2c: E2 08 00 6D 0F 80 11 00 00 00 00 00 00 F6 [06:26:37]Write i2c OK [06:26:37]MH_I2C_Read... [06:26:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:26:37]Read from MH i2c: E2 [06:26:37]MH_I2C_Read... [06:26:37]Read from MH i2c: E2 17 00 [06:26:37]MH_I2C_Read... [06:26:37]Read from MH i2c: E2 17 00 6D 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 41 [06:26:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [06:26:37]wFMCommunicate OK [06:26:37]requested_item fd.num is exist - process it [06:26:37]SAM_PROTO_GetFieldsCounters [06:26:37]wFMCommunicate request_size=4 [06:26:37]MH_SAM_APDU [06:26:37]CAPDU: 80 13 00 00 [06:26:37]Write to MH i2c: E2 08 00 6E 0F 80 13 00 00 00 00 00 00 F9 [06:26:37]Write i2c OK [06:26:37]MH_I2C_Read... [06:26:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:26:37]Read from MH i2c: E2 [06:26:37]MH_I2C_Read... [06:26:37]Read from MH i2c: E2 62 00 [06:26:37]MH_I2C_Read... [06:26:37]Read from MH i2c: E2 62 00 6E 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 9E 0B 01 00 0E 04 04 00 45 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 21 [06:26:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 9E 0B 01 00 0E 04 04 00 45 01 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:26:37]wFMCommunicate OK [06:26:37]SAM_PROTO_GetFieldsCounters done [06:26:37]requested_item shift.num is exist - process it [06:26:37]requested_item shift.opened is exist - process it [06:26:37]req_shift_opened [06:26:37]FM_GetShiftState [06:26:37]SAM_PROTO_GetShiftState [06:26:37]wFMCommunicate request_size=4 [06:26:37]MH_SAM_APDU [06:26:37]CAPDU: 80 13 01 00 [06:26:37]Write to MH i2c: E2 08 00 6F 0F 80 13 01 00 00 00 00 00 FB [06:26:37]Write i2c OK [06:26:37]MH_I2C_Read... [06:26:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:26:37]Read from MH i2c: E2 [06:26:37]MH_I2C_Read... [06:26:37]Read from MH i2c: E2 0E 00 [06:26:37]MH_I2C_Read... [06:26:37]Read from MH i2c: E2 0E 00 6F 0F 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 97 [06:26:37]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [06:26:37]wFMCommunicate OK [06:26:37]SAM_PROTO_GetShiftState done [06:26:37]FM_GetShiftState done [06:26:37]req_shift_opened done [06:26:37]requested_item shift.open_date is exist - process it [06:26:37]req_shift_open_date [06:26:37]req_shift_open_date done [06:26:37]produce_requested_data done [06:26:37]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68510,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [06:26:37]process_action_free close_receipt [06:26:37]json_value_free [06:26:37]json_value_free done [06:26:37]process_json_proto returns [06:26:37]Send response to host [06:26:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68510,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [06:26:37]free response buf [06:26:37]execute_script done [06:26:37]execute_script returns [06:26:37]free content buf [06:26:37]Sock 7.Close socket [06:26:37]Sock 7.Thread stoped [06:26:41]OFD Sender: No OFD packet to send [06:26:46]OFD Sender: No OFD packet to send [06:26:51]OFD Sender: No OFD packet to send [06:26:56]OFD Sender: No OFD packet to send [06:27:01]OFD Sender: No OFD packet to send [06:27:06]OFD Sender: No OFD packet to send [06:27:11]OFD Sender: No OFD packet to send [06:27:16]OFD Sender: No OFD packet to send [06:27:21]OFD Sender: No OFD packet to send [06:27:26]OFD Sender: No OFD packet to send [06:27:31]OFD Sender: No OFD packet to send [06:27:36]OFD Sender: No OFD packet to send [06:27:41]OFD Sender: No OFD packet to send [06:27:46]OFD Sender: No OFD packet to send [06:27:51]OFD Sender: No OFD packet to send [06:27:56]OFD Sender: No OFD packet to send [06:28:01]OFD Sender: No OFD packet to send [06:28:06]OFD Sender: No OFD packet to send [06:28:11]OFD Sender: No OFD packet to send [06:28:16]OFD Sender: No OFD packet to send [06:28:21]OFD Sender: No OFD packet to send [06:28:26]OFD Sender: No OFD packet to send [06:28:31]OFD Sender: No OFD packet to send [06:28:36]OFD Sender: No OFD packet to send [06:28:41]OFD Sender: No OFD packet to send [06:28:46]OFD Sender: No OFD packet to send [06:28:51]OFD Sender: No OFD packet to send [06:28:56]OFD Sender: No OFD packet to send [06:29:01]OFD Sender: No OFD packet to send [06:29:06]OFD Sender: No OFD packet to send [06:29:11]OFD Sender: No OFD packet to send [06:29:16]OFD Sender: No OFD packet to send [06:29:21]OFD Sender: No OFD packet to send [06:29:26]OFD Sender: No OFD packet to send [06:29:31]OFD Sender: No OFD packet to send [06:29:36]OFD Sender: No OFD packet to send [06:29:41]OFD Sender: No OFD packet to send [06:29:46]OFD Sender: No OFD packet to send [06:29:51]OFD Sender: No OFD packet to send [06:29:56]OFD Sender: No OFD packet to send [06:30:01]OFD Sender: No OFD packet to send [06:30:06]OFD Sender: No OFD packet to send [06:30:11]OFD Sender: No OFD packet to send [06:30:16]OFD Sender: No OFD packet to send [06:30:21]OFD Sender: No OFD packet to send [06:30:26]OFD Sender: No OFD packet to send [06:30:31]OFD Sender: No OFD packet to send [06:30:36]OFD Sender: No OFD packet to send [06:30:41]OFD Sender: No OFD packet to send [06:30:46]OFD Sender: No OFD packet to send [06:30:51]OFD Sender: No OFD packet to send [06:30:56]OFD Sender: No OFD packet to send [06:31:01]OFD Sender: No OFD packet to send [06:31:06]OFD Sender: No OFD packet to send [06:31:11]OFD Sender: No OFD packet to send [06:31:16]OFD Sender: No OFD packet to send [06:31:21]OFD Sender: No OFD packet to send [06:31:26]OFD Sender: No OFD packet to send [06:31:31]OFD Sender: No OFD packet to send [06:31:36]OFD Sender: No OFD packet to send [06:31:41]OFD Sender: No OFD packet to send [06:31:46]OFD Sender: No OFD packet to send [06:31:51]OFD Sender: No OFD packet to send [06:31:56]OFD Sender: No OFD packet to send [06:32:01]OFD Sender: No OFD packet to send [06:32:06]OFD Sender: No OFD packet to send [06:32:11]OFD Sender: No OFD packet to send [06:32:16]OFD Sender: No OFD packet to send [06:32:21]OFD Sender: No OFD packet to send [06:32:26]OFD Sender: No OFD packet to send [06:32:31]OFD Sender: No OFD packet to send [06:32:36]OFD Sender: No OFD packet to send [06:32:41]OFD Sender: No OFD packet to send [06:32:46]OFD Sender: No OFD packet to send [06:32:51]OFD Sender: No OFD packet to send [06:32:56]OFD Sender: No OFD packet to send [06:33:01]OFD Sender: No OFD packet to send [06:33:06]OFD Sender: No OFD packet to send [06:33:11]OFD Sender: No OFD packet to send [06:33:16]OFD Sender: No OFD packet to send [06:33:21]OFD Sender: No OFD packet to send [06:33:26]OFD Sender: No OFD packet to send [06:33:31]OFD Sender: No OFD packet to send [06:33:36]OFD Sender: No OFD packet to send [06:33:41]OFD Sender: No OFD packet to send [06:33:46]OFD Sender: No OFD packet to send [06:33:51]OFD Sender: No OFD packet to send [06:33:56]OFD Sender: No OFD packet to send [06:34:01]OFD Sender: No OFD packet to send [06:34:06]OFD Sender: No OFD packet to send [06:34:11]OFD Sender: No OFD packet to send [06:34:16]OFD Sender: No OFD packet to send [06:34:21]OFD Sender: No OFD packet to send [06:34:26]OFD Sender: No OFD packet to send [06:34:31]OFD Sender: No OFD packet to send [06:34:36]OFD Sender: No OFD packet to send [06:34:41]OFD Sender: No OFD packet to send [06:34:46]OFD Sender: No OFD packet to send [06:34:51]OFD Sender: No OFD packet to send [06:34:56]OFD Sender: No OFD packet to send [06:35:01]OFD Sender: No OFD packet to send [06:35:06]OFD Sender: No OFD packet to send [06:35:11]OFD Sender: No OFD packet to send [06:35:16]OFD Sender: No OFD packet to send [06:35:21]OFD Sender: No OFD packet to send [06:35:26]OFD Sender: No OFD packet to send [06:35:31]OFD Sender: No OFD packet to send [06:35:36]OFD Sender: No OFD packet to send [06:35:41]OFD Sender: No OFD packet to send [06:35:46]OFD Sender: No OFD packet to send [06:35:51]OFD Sender: No OFD packet to send [06:35:56]OFD Sender: No OFD packet to send [06:36:01]OFD Sender: No OFD packet to send [06:36:06]OFD Sender: No OFD packet to send [06:36:11]OFD Sender: No OFD packet to send [06:36:16]OFD Sender: No OFD packet to send [06:36:21]OFD Sender: No OFD packet to send [06:36:26]OFD Sender: No OFD packet to send [06:36:31]OFD Sender: No OFD packet to send [06:36:36]OFD Sender: No OFD packet to send [06:36:41]OFD Sender: No OFD packet to send [06:36:46]OFD Sender: No OFD packet to send [06:36:51]OFD Sender: No OFD packet to send [06:36:56]OFD Sender: No OFD packet to send [06:37:01]OFD Sender: No OFD packet to send [06:37:06]OFD Sender: No OFD packet to send [06:37:11]OFD Sender: No OFD packet to send [06:37:16]OFD Sender: No OFD packet to send [06:37:21]OFD Sender: No OFD packet to send [06:37:26]OFD Sender: No OFD packet to send [06:37:31]OFD Sender: No OFD packet to send [06:37:36]OFD Sender: No OFD packet to send [06:37:41]OFD Sender: No OFD packet to send [06:37:46]OFD Sender: No OFD packet to send [06:37:51]OFD Sender: No OFD packet to send [06:37:56]OFD Sender: No OFD packet to send [06:38:01]OFD Sender: No OFD packet to send [06:38:06]OFD Sender: No OFD packet to send [06:38:11]OFD Sender: No OFD packet to send [06:38:16]OFD Sender: No OFD packet to send [06:38:21]OFD Sender: No OFD packet to send [06:38:26]OFD Sender: No OFD packet to send [06:38:31]OFD Sender: No OFD packet to send [06:38:36]OFD Sender: No OFD packet to send [06:38:41]OFD Sender: No OFD packet to send [06:38:46]OFD Sender: No OFD packet to send [06:38:51]OFD Sender: No OFD packet to send [06:38:56]OFD Sender: No OFD packet to send [06:39:01]OFD Sender: No OFD packet to send [06:39:06]OFD Sender: No OFD packet to send [06:39:11]OFD Sender: No OFD packet to send [06:39:16]OFD Sender: No OFD packet to send [06:39: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]accept exits with 9 [06:45:52]New connection [06:45:52]New thread 3067227492 created [06:45:52]Thread 3067084132 joined [06:45:52]Waiting for new connection... [06:45:52] Sock 9.Parse request [06:45:52]Sock 9.Check first char [06:45:52]Sock 9.First char is OK [06:45:52]request: POST /json_proto HTTP/1.0 [06:45:52]Method: POST [06:45:52]URL: /json_proto [06:45:52]Method is POST - this is cgi request [06:45:52]url: /json_proto [06:45:52]query_string will be loaded in cgi processing [06:45:52]execute_cgi json_proto POST (null) [06:45:52]execute_cgi path=json_proto method=POST [06:45:52]POST find Content-Length [06:45:52]Host: 172.17.36.132:8080 [06:45:52]Content-Length: 678 [06:45:52]Content-Type: application/json [06:45:52] [06:45:52]POST finish read [06:45:52]Found Content-Length = 678 [06:45:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706624", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 11.530, "sum" : 771.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 771.00, "total" : 771.00, "payments": [ { "type": 0, "sum" : 771.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:45:52]execute_script... [06: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)706624", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 11.530, "sum" : 771.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 771.00, "total" : 771.00, "payments": [ { "type": 0, "sum" : 771.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:45:52]POST & json_proto [06:45:52]process_json_proto [06:45:52]json parsed OK: [06:45:52]protocol is kg_v1.0 [06:45:52]action value=close_receipt [06:45:52]process_action close_receipt [06:45:52]cmd_close_receipt [06:45:52]MH_GetDate [06:45:52]Write to MH i2c: F0 00 00 70 0F 6E [06:45:52]Write i2c OK [06:45:52]MH_I2C_Read... [06:45:52]Read from MH i2c: F0 [06:45:52]MH_I2C_Read... [06:45:52]Read from MH i2c: F0 09 00 [06:45:52]MH_I2C_Read... [06:45:52]Read from MH i2c: F0 09 00 70 0F 00 23 B8 5E 66 B2 22 B0 64 FE [06:45:52]GetLastDocTimeStamp 1717482396 [06:45:52]current date 1717483555 [06:45:52]FM_GetShiftState [06:45:52]SAM_PROTO_GetShiftState [06:45:52]wFMCommunicate request_size=4 [06:45:52]MH_SAM_APDU [06:45:52]CAPDU: 80 13 01 00 [06:45:52]Write to MH i2c: E2 08 00 71 0F 80 13 01 00 00 00 00 00 FD [06:45:52]Write i2c OK [06:45:52]MH_I2C_Read... [06:45:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:45:52]Read from MH i2c: E2 [06:45:52]MH_I2C_Read... [06:45:52]Read from MH i2c: E2 0E 00 [06:45:52]MH_I2C_Read... [06:45:52]Read from MH i2c: E2 0E 00 71 0F 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 99 [06:45:52]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [06:45:52]wFMCommunicate OK [06:45:52]SAM_PROTO_GetShiftState done [06:45:52]FM_GetShiftState done [06:45:52]opened in 1717460590 [06:45:52]opened+sec_in_day 1717546990 [06:45:52]quantity*price = 77135 [06:45:52]sum+1 = 77137 [06:45:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 771.00 Внесено: 771.00 СДАЧА: 0.00 НСП 1% : 6.83 НДС 12% : 81.91 Наличными: 771.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 9 04.06.2024 06:45 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68511 ФПД: 93560710855953 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T064555&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68511&fm=93560710855953&tin=02508201610067®Number=0000000000098096&sum=77100 [06:45:53]StoreToDocumentArchive [06:45:53]shift 325 fd 68511 [06:45:53]save to /storage/0325/doc_00068511 [06:45:53]save last doc name /storage/0325/doc_00068511 to /storage/kkm_last_doc_name [06:45:53]save OK [06:45:53]Clear old archive folders... [06:45:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:45:53]tlvbuf is 00A0DF00 [06:45:53]SAM_PROTO_ClearQueue [06:45:53]wFMCommunicate request_size=4 [06:45:53]MH_SAM_APDU [06:45:53]CAPDU: 80 09 00 00 [06:45:53]Write to MH i2c: E2 08 00 7E 0F 80 09 00 00 00 00 00 00 FF [06:45:53]Write i2c OK [06:45:53]MH_I2C_Read... [06:45:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:45:53]Read from MH i2c: E2 [06:45:53]MH_I2C_Read... [06:45:53]Read from MH i2c: E2 03 00 [06:45:53]MH_I2C_Read... [06:45:53]Read from MH i2c: E2 03 00 7E 0F 00 90 00 01 [06:45:53]RAPDU: 90 00 [06:45:53]wFMCommunicate OK [06:45:53]SAM_PROTO_ClearQueue done [06:45:53]KKMCreateOFDPacket [06:45:53]OFDProtocolAddRootSTLVToBuf [06:45:53]FM_MakeSignedData [06:45:53]FM_MakeSignedData [06:45:53]SAM_PROTO_SignData [06:45:53]wFMCommunicate request_size=4 [06:45:53]MH_SAM_APDU [06:45:53]CAPDU: 80 0D 01 02 [06:45:53]Write to MH i2c: E2 08 00 7F 0F 80 0D 01 02 00 00 00 00 07 [06:45:53]Write i2c OK [06:45:53]MH_I2C_Read... [06:45:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:45:53]Read from MH i2c: E2 [06:45:53]MH_I2C_Read... [06:45:53]Read from MH i2c: E2 03 00 [06:45:53]MH_I2C_Read... [06:45:53]Read from MH i2c: E2 03 00 7F 0F 00 90 00 02 [06:45:53]RAPDU: 90 00 [06:45:53]wFMCommunicate OK [06:45:53]wFMCommunicate request_size=255 [06:45:53]MH_SAM_APDU [06:45:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0A 2D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 50 2D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 2D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 1F 00 00 00 00 07 04 06 00 2C 2D 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 23 B8 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 9F 0B 01 00 35 04 06 00 55 [06:45:53]Write to MH i2c: E2 02 01 80 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0A 2D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 50 2D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 2D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 1F 00 00 00 00 07 04 06 00 2C 2D 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 23 B8 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 9F 0B 01 00 35 04 06 00 55 00 00 6D [06:45:53]Write i2c OK [06:45:53]MH_I2C_Read... [06:45:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:45:53]Read from MH i2c: E2 [06:45:53]MH_I2C_Read... [06:45:53]Read from MH i2c: E2 03 00 [06:45:53]MH_I2C_Read... [06:45:53]Read from MH i2c: E2 03 00 80 0F 00 90 00 03 [06:45:53]RAPDU: 90 00 [06:45:53]wFMCommunicate OK [06:45:53]wFMCommunicate request_size=10 [06:45:53]MH_SAM_APDU [06:45:53]CAPDU: 80 0D 02 02 05 17 CC EF 7D 11 [06:45:53]Write to MH i2c: E2 0D 00 81 0F 80 0D 02 02 05 00 17 CC EF 7D 11 00 00 74 [06:45:53]Write i2c OK [06:45:53]MH_I2C_Read... [06:45:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:45:53]Read from MH i2c: E2 [06:45:53]MH_I2C_Read... [06:45:53]Read from MH i2c: E2 03 00 [06:45:53]MH_I2C_Read... [06:45:53]Read from MH i2c: E2 03 00 81 0F 00 90 00 04 [06:45:53]RAPDU: 90 00 [06:45:53]wFMCommunicate OK [06:45:53]wFMCommunicate request_size=4 [06:45:53]MH_SAM_APDU [06:45:53]CAPDU: 80 0D 03 02 [06:45:53]Write to MH i2c: E2 08 00 82 0F 80 0D 03 02 00 00 00 00 0C [06:45:53]Write i2c OK [06:45:53]MH_I2C_Read... [06:45:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:45:53]Read from MH i2c: E2 [06:45:53]MH_I2C_Read... [06:45:53]Read from MH i2c: E2 0B 00 [06:45:53]MH_I2C_Read... [06:45:53]Read from MH i2c: E2 0B 00 82 0F 00 77 63 F9 44 49 53 CD 0D 90 00 9A [06:45:53]RAPDU: 77 63 F9 44 49 53 CD 0D 90 00 [06:45:53]wFMCommunicate OK [06:45:53]SAM_PROTO_SignData done [06:45:53]FM_MakeSignedData done [06:45:53]CreateOFDProtocolMessage [06:45:53]wFMCommunicate request_size=4 [06:45:53]MH_SAM_APDU [06:45:53]CAPDU: 80 11 00 00 [06:45:53]Write to MH i2c: E2 08 00 83 0F 80 11 00 00 00 00 00 00 0C [06:45:53]Write i2c OK [06:45:53]MH_I2C_Read... [06:45:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:45:53]Read from MH i2c: E2 [06:45:53]MH_I2C_Read... [06:45:53]Read from MH i2c: E2 17 00 [06:45:53]MH_I2C_Read... [06:45:53]Read from MH i2c: E2 17 00 83 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 57 [06:45:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [06:45:53]wFMCommunicate OK [06:45:53]CreateOFDProtocolMessage done [06:45:53]OFDSenderStorePacket 68511 [06:45:53]StoreOFDPacket docnum=68511 [06:45:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 DB 23 07 01 70 31 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0A 2D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 50 2D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 2D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 1F 00 00 00 00 07 04 06 00 2C 2D 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 23 B8 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 9F 0B 01 00 35 04 06 00 55 17 CC EF 7D 11 77 63 F9 44 49 53 CD 0D [06:45:53]CheckFolder [06:45:53]dirname=/storage/ofd_packets [06:45:53]CheckFolder done [06:45:53]ProducePacketName [06:45:53]name=ofd_packets/00068511 [06:45:53]NVStorageSaveData ofd_packets/00068511 [06:45:53]File name is /storage/ofd_packets/00068511 [06:45:53]Write 301 bytes [06:45:53]NVStorageSaveData done [06:45:53]OFDSenderStorePacket done [06:45:53]KKMCreateOFDPacket done [06:45:53]NVStorageSaveData kkm_last_timestamp [06:45:53]File name is /storage/kkm_last_timestamp [06:45:53]Write 4 bytes [06:45:53]NVStorageSaveData done [06:45:53]ExternCall_PrintAddStr [06:45:53]wPrintStart [06:45:53]Write to MH i2c: 01 00 00 84 0F 93 [06:45:53]Write i2c OK [06:45:53]MH_I2C_Read... [06:45:53]Read from MH i2c: 01 [06:45:53]MH_I2C_Read... [06:45:53]Read from MH i2c: 01 07 00 [06:45:53]MH_I2C_Read... [06:45:53]Read from MH i2c: 01 07 00 84 0F 00 00 00 00 00 FF 0F A8 [06:45:53]RasterBufferAndPrint [06:45:53]line Счет N : (1)706624 [06:45:53]line ИНН: 02508201610067 [06:45:53]line Контрольно-Кассовый Чек [06:45:53]line ПРОДАЖА [06:45:53]line ТРК (МРК, ГНК) : 42 [06:45:53]line Товар: 2710124130 [06:45:53]line Аи-92-К-4 [06:45:53]line 11.530 * 66.90 [06:45:53]line = 771.36 [06:45:53]line НДС 12% НСП 1% [06:45:53]line > о реализуемом товаре [06:45:53]line ОКРУГЛЕНИЕ: -0.36 [06:45:53]line ИТОГО: 771.00 [06:45:53]line Внесено: 771.00 [06:45:53]line СДАЧА: 0.00 [06:45:53]line НСП 1% : 6.83 [06:45:53]line НДС 12% : 81.91 [06:45:53]line Наличными: 771.00 [06:45:53]line Безнал.: 0.00 [06:45:53]line Место: АЗС № 62 "Партнер Нефть" [06:45:53]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [06:45:53]line СНО: Общий режим [06:45:53]line Чек 9 04.06.2024 06:45 [06:45:53]line Смена: 325 ФФД: 1.0 [06:45:53]line ЗНМ: 0300000181 [06:45:53]line РНМ: 0000000000098096 [06:45:53]line Версия ККМ: 001 [06:45:53]line ФМ: 0000000000965400 [06:45:53]line ФД: 68511 [06:45:53]line ФПД: 93560710855953 [06:45:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T064555&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68511&fm=93560710855953&tin=02508201610067®Number=0000000000098096&sum=77100 [06:45:54]OFD Sender: Processing packet 68511 [packets to send 26, broken 25] [06:45:54]ProducePacketName [06:45:54]name=ofd_packets/00068511 [06:45:54]OFD Sender: To server: pG, [06:45:54]CommunicateWithHost lk.salyk.kg:30040 [06:45:54]ConnectInit lk.salyk.kg [06:45:54]written 0, free lines is 4095 [06:45:54]Connected sock=10 [06:45:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 DB 23 07 01 70 31 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0A 2D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 50 2D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 2D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 1F 00 00 00 00 07 04 06 00 2C 2D 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 23 B8 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 9F 0B 01 00 35 04 06 00 55 17 CC EF 7D 11 77 63 F9 44 49 53 CD 0D [06:45:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 CD CF 47 00 59 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 39 36 35 34 30 30 10 04 04 00 9F 0B 01 00 F4 03 04 00 1C 5F 5E 66 B6 04 01 00 00 42 4A A4 D1 FE 9A 11 F4 [06:45:54]CommunicateWithHost err = 0 [06:45:54]CheckOFDResponse [06:45:54]1017 (14) - 77093643461234 [06:45:54]1041 (16) - 0000000000965400 [06:45:54]1040 (4) - 68511 [06:45:54]1012 (4) - 04.06.2024 00:26 [06:45:54]1206 (1) - 0 [06:45:54]OFD Sender: Remove packet 68511 [06:45:54]ProducePacketName [06:45:54]name=ofd_packets/00068511 [06:45:54]NVStorageDeleteData [06:45:54]Write to MH i2c: 01 00 00 AF 0F BE [06:45:54]Write i2c OK [06:45:54]MH_I2C_Read... [06:45:54]Read from MH i2c: 01 [06:45:54]MH_I2C_Read... [06:45:54]Read from MH i2c: 01 07 00 [06:45:54]MH_I2C_Read... [06:45:54]Read from MH i2c: 01 07 00 AF 0F 00 00 00 00 00 D7 0C A8 [06:45:54]RasterBufferAndPrint [06:45:54]line [06:45:54]line [06:45:54]line [06:45:54]line [06:45:54]line [06:45:54]written 0, free lines is 3294 [06:45:54]MH_Cut [06:45:54]Write to MH i2c: D1 01 00 B6 0F 01 97 [06:45:54]Write i2c OK [06:45:54]MH_I2C_Read... [06:45:54]Read from MH i2c: D1 [06:45:54]MH_I2C_Read... [06:45:54]Read from MH i2c: D1 01 00 [06:45:54]MH_I2C_Read... [06:45:54]Read from MH i2c: D1 01 00 B6 0F 00 96 [06:45:54]Write to MH i2c: 01 00 00 B7 0F C6 [06:45:54]Write i2c OK [06:45:54]MH_I2C_Read... [06:45:55]OFD Sender: No OFD packet to send [06:45:55]*** Cut start [06:45:55]*** Partial cut [06:45:55]*** CUTSNS_PIN = 1 [06:45:55]*** CUTSNS_PIN = 0 [06:45:55]*** Brake cut motor [06:45:56]Read from MH i2c: 01 [06:45:56]MH_I2C_Read... [06:45:56]*** Stop cut motor [06:45:56]*** Cut end [06:45:56]Read from MH i2c: 01 07 00 [06:45:56]MH_I2C_Read... [06:45:56]Read from MH i2c: 01 07 00 B7 0F 00 00 00 00 00 FF 0F DB [06:45:56]process_action close_receipt done [06:45:56]requested_data is exist [06:45:56]produce_requested_data [06:45:56]requested_item fm.sn is exist - process it [06:45:56]wFMCommunicate request_size=4 [06:45:56]MH_SAM_APDU [06:45:56]CAPDU: 80 11 00 00 [06:45:56]Write to MH i2c: E2 08 00 B8 0F 80 11 00 00 00 00 00 00 41 [06:45:56]Write i2c OK [06:45:56]MH_I2C_Read... [06:45:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:45:56]Read from MH i2c: E2 [06:45:56]MH_I2C_Read... [06:45:56]Read from MH i2c: E2 17 00 [06:45:56]MH_I2C_Read... [06:45:56]Read from MH i2c: E2 17 00 B8 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 8C [06:45:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [06:45:56]wFMCommunicate OK [06:45:56]requested_item fd.num is exist - process it [06:45:56]SAM_PROTO_GetFieldsCounters [06:45:56]wFMCommunicate request_size=4 [06:45:56]MH_SAM_APDU [06:45:56]CAPDU: 80 13 00 00 [06:45:56]Write to MH i2c: E2 08 00 B9 0F 80 13 00 00 00 00 00 00 44 [06:45:56]Write i2c OK [06:45:56]MH_I2C_Read... [06:45:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:45:56]Read from MH i2c: E2 [06:45:56]MH_I2C_Read... [06:45:56]Read from MH i2c: E2 62 00 [06:45:56]MH_I2C_Read... [06:45:56]Read from MH i2c: E2 62 00 B9 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 9F 0B 01 00 0E 04 04 00 45 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 70 [06:45:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 9F 0B 01 00 0E 04 04 00 45 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:45:56]wFMCommunicate OK [06:45:56]SAM_PROTO_GetFieldsCounters done [06:45:56]requested_item shift.num is exist - process it [06:45:56]requested_item shift.opened is exist - process it [06:45:56]req_shift_opened [06:45:56]FM_GetShiftState [06:45:56]SAM_PROTO_GetShiftState [06:45:56]wFMCommunicate request_size=4 [06:45:56]MH_SAM_APDU [06:45:56]CAPDU: 80 13 01 00 [06:45:56]Write to MH i2c: E2 08 00 BA 0F 80 13 01 00 00 00 00 00 46 [06:45:56]Write i2c OK [06:45:56]MH_I2C_Read... [06:45:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:45:56]Read from MH i2c: E2 [06:45:56]MH_I2C_Read... [06:45:56]Read from MH i2c: E2 0E 00 [06:45:56]MH_I2C_Read... [06:45:56]Read from MH i2c: E2 0E 00 BA 0F 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 E2 [06:45:56]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [06:45:56]wFMCommunicate OK [06:45:56]SAM_PROTO_GetShiftState done [06:45:56]FM_GetShiftState done [06:45:56]req_shift_opened done [06:45:56]requested_item shift.open_date is exist - process it [06:45:56]req_shift_open_date [06:45:56]req_shift_open_date done [06:45:56]produce_requested_data done [06:45:56]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68511,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [06:45:56]process_action_free close_receipt [06:45:56]json_value_free [06:45:56]json_value_free done [06:45:56]process_json_proto returns [06:45:56]Send response to host [06:45:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68511,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [06:45:56]free response buf [06:45:56]execute_script done [06:45:56]execute_script returns [06:45:56]free content buf [06:45:56]Sock 9.Close socket [06:45:56]Sock 9.Thread stoped [06:46:00]OFD Sender: No OFD packet to send [06:46:05]OFD Sender: No OFD packet to send [06:46:10]OFD Sender: No OFD packet to send [06:46:15]OFD Sender: No OFD packet to send [06:46:20]OFD Sender: No OFD packet to send [06:46:25]OFD Sender: No OFD packet to send [06:46:30]OFD Sender: No OFD packet to send [06:46:35]OFD Sender: No OFD packet to send [06:46:40]OFD Sender: No OFD packet to send [06:46:45]OFD Sender: No OFD packet to send [06:46:50]OFD Sender: No OFD packet to send [06:46:55]OFD Sender: No OFD packet to send [06:47:00]OFD Sender: No OFD packet to send [06:47:05]OFD Sender: No OFD packet to send [06:47:10]OFD Sender: No OFD packet to send [06:47:15]OFD Sender: No OFD packet to send [06:47:20]OFD Sender: No OFD packet to send [06:47:25]OFD Sender: No OFD packet to send [06:47:30]OFD Sender: No OFD packet to send [06:47:35]OFD Sender: No OFD packet to send [06:47:40]OFD Sender: No OFD packet to send [06:47:45]OFD Sender: No OFD packet to send [06:47:50]OFD Sender: No OFD packet to send [06:47:55]OFD Sender: No OFD packet to send [06:48:00]OFD Sender: No OFD packet to send [06:48:05]OFD Sender: No OFD packet to send [06:48:10]OFD Sender: No OFD packet to send [06:48:15]OFD Sender: No OFD packet to send [06:48:20]OFD Sender: No OFD packet to send [06:48:25]OFD Sender: No OFD packet to send [06:48:30]OFD Sender: No OFD packet to send [06:48:35]OFD Sender: No OFD packet to send [06:48:40]OFD Sender: No OFD packet to send [06:48:45]OFD Sender: No OFD packet to send [06:48:50]OFD Sender: No OFD packet to send [06:48:55]OFD Sender: No OFD packet to send [06:49:00]OFD Sender: No OFD packet to send [06:49:05]OFD Sender: No OFD packet to send [06:49:10]OFD Sender: No OFD packet to send [06:49:15]OFD Sender: No OFD packet to send [06:49:20]OFD Sender: No OFD packet to send [06:49:25]OFD Sender: No OFD packet to send [06:49:30]OFD Sender: No OFD packet to send [06:49:35]OFD Sender: No OFD packet to send [06:49:40]OFD Sender: No OFD packet to send [06:49:45]OFD Sender: No OFD packet to send [06:49:50]OFD Sender: No OFD packet to send [06:49:55]OFD Sender: No OFD packet to send [06:50:00]OFD Sender: No OFD packet to send [06:50:05]OFD Sender: No OFD packet to send [06:50:10]OFD Sender: No OFD packet to send [06:50:15]OFD Sender: No OFD packet to send [06:50:20]OFD Sender: No OFD packet to send [06:50:25]OFD Sender: No OFD packet to send [06:50:30]OFD Sender: No OFD packet to send [06:50:35]OFD Sender: No OFD packet to send [06:50:40]OFD Sender: No OFD packet to send [06:50:45]OFD Sender: No OFD packet to send [06:50:50]OFD Sender: No OFD packet to send [06:50:55]OFD Sender: No OFD packet to send [06:51:00]OFD Sender: No OFD packet to send [06:51:05]OFD Sender: No OFD packet to send [06:51:10]OFD Sender: No OFD packet to send [06:51:15]OFD Sender: No OFD packet to send [06:51:20]OFD Sender: No OFD packet to send [06:51:25]OFD Sender: No OFD packet to send [06:51:30]OFD Sender: No OFD packet to send [06:51:35]OFD Sender: No OFD packet to send [06:51:40]OFD Sender: No OFD packet to send [06:51:45]OFD Sender: No OFD packet to send [06:51:50]OFD Sender: No OFD packet to send [06:51:55]OFD Sender: No OFD packet to send [06:52:00]OFD Sender: No OFD packet to send [06:52:05]OFD Sender: No OFD packet to send [06:52:10]OFD Sender: No OFD packet to send [06:52:15]OFD Sender: No OFD packet to send [06:52:20]OFD Sender: No OFD packet to send [06:52:25]OFD Sender: No OFD packet to send [06:52:30]OFD Sender: No OFD packet to send [06:52:35]OFD Sender: No OFD packet to send [06:52:40]OFD Sender: No OFD packet to send [06:52:45]OFD Sender: No OFD packet to send [06:52:50]OFD Sender: No OFD packet to send [06:52:55]OFD Sender: No OFD packet to send [06:53:00]OFD Sender: No OFD packet to send [06:53:05]OFD Sender: No OFD packet to send [06:53:10]OFD Sender: No OFD packet to send [06:53:15]OFD Sender: No OFD packet to send [06:53:20]OFD Sender: No OFD packet to send [06:53:25]OFD Sender: No OFD packet to send [06:53:30]OFD Sender: No OFD packet to send [06:53:35]OFD Sender: No OFD packet to send [06:53:40]OFD Sender: No OFD packet to send [06:53:45]OFD Sender: No OFD packet to send [06:53:50]OFD Sender: No OFD packet to send [06:53:55]OFD Sender: No OFD packet to send [06:54:00]OFD Sender: No OFD packet to send [06:54:05]OFD Sender: No OFD packet to send [06:54:10]OFD Sender: No OFD packet to send [06:54:15]OFD Sender: No OFD packet to send [06:54:20]OFD Sender: No OFD packet to send [06:54:25]OFD Sender: No OFD packet to send [06:54:30]OFD Sender: No OFD packet to send [06:54:35]OFD Sender: No OFD packet to send [06:54:40]OFD Sender: No OFD packet to send [06:54:45]OFD Sender: No OFD packet to send [06:54:50]OFD Sender: No OFD packet to send [06:54:55]OFD Sender: No OFD packet to send [06:55:00]OFD Sender: No OFD packet to send [06:55:05]OFD Sender: No OFD packet to send [06:55:10]OFD Sender: No OFD packet to send [06:55:15]OFD Sender: No OFD packet to send [06:55:20]OFD Sender: No OFD packet to send [06:55:25]OFD Sender: No OFD packet to send [06:55:30]OFD Sender: No OFD packet to send [06:55:35]OFD Sender: No OFD packet to send [06:55:40]OFD Sender: No OFD packet to send [06:55:45]OFD Sender: No OFD packet to send [06:55:50]OFD Sender: No OFD packet to send [06:55:55]OFD Sender: No OFD packet to send [06:56:00]OFD Sender: No OFD packet to send [06:56:05]OFD Sender: No OFD packet to send [06:56:10]OFD Sender: No OFD packet to send [06:56:15]OFD Sender: No OFD packet to send [06:56:20]OFD Sender: No OFD packet to send [06:56:25]OFD Sender: No OFD packet to send [06:56:30]OFD Sender: No OFD packet to send [06:56:35]OFD Sender: No OFD packet to send [06:56:40]OFD Sender: No OFD packet to send [06:56:45]OFD Sender: No OFD packet to send [06:56:50]OFD Sender: No OFD packet to send [06:56:55]OFD Sender: No OFD packet to send [06:57:00]OFD Sender: No OFD packet to send [06:57:05]OFD Sender: No OFD packet to send [06:57:10]OFD Sender: No OFD packet to send [06:57:15]OFD Sender: No OFD packet to send [06:57:20]OFD Sender: No OFD packet to send [06:57:25]OFD Sender: No OFD packet to send [06:57:30]OFD Sender: No OFD packet to send [06:57:35]OFD Sender: No OFD packet to send [06:57:40]OFD Sender: No OFD packet to send [06:57:45]OFD Sender: No OFD packet to send [06:57:50]OFD Sender: No OFD packet to send [06:57:55]OFD Sender: No OFD packet to send [06:58:00]OFD Sender: No OFD packet to send [06:58:05]OFD Sender: No OFD packet to send [06:58:10]OFD Sender: No OFD packet to send [06:58:15]OFD Sender: No OFD packet to send [06:58:20]OFD Sender: No OFD packet to send [06:58:25]OFD Sender: No OFD packet to send [06:58:30]OFD Sender: No OFD packet to send [06:58:35]OFD Sender: No OFD packet to send [06:58:40]OFD Sender: No OFD packet to send [06:58:45]OFD Sender: No OFD packet to send [06:58:50]OFD Sender: No OFD packet to send [06:58:55]OFD Sender: No OFD packet to send [06:59:00]OFD Sender: No OFD packet to send [06:59:05]OFD Sender: No OFD packet to send [06:59:10]OFD Sender: No OFD packet to send [06:59:15]OFD Sender: No OFD packet to send [06:59:20]OFD Sender: No OFD packet to send [06:59:25]OFD Sender: No OFD packet to send [06:59:30]OFD Sender: No OFD packet to send [06:59:35]OFD Sender: No OFD packet to send [06:59:40]OFD Sender: No OFD packet to send [06:59:45]OFD Sender: No OFD packet to send [06:59:50]OFD Sender: No OFD packet to send [06:59:55]OFD Sender: No OFD packet to send [07:00:00]OFD Sender: No OFD packet to send [07:00:05]OFD Sender: No OFD packet to send [07:00:10]OFD Sender: No OFD packet to send [07:00:15]OFD Sender: No OFD packet to send [07:00:20]OFD Sender: No OFD packet to send [07:00:25]OFD Sender: No OFD packet to send [07:00:30]OFD Sender: No OFD packet to send [07:00:35]OFD Sender: No OFD packet to send [07:00:40]OFD Sender: No OFD packet to send [07:00:45]OFD Sender: No OFD packet to send [07:00:50]OFD Sender: No OFD packet to send [07:00:55]OFD Sender: No OFD packet to send [07:01:00]OFD Sender: No OFD packet to send [07:01:05]OFD Sender: No OFD packet to send [07:01:10]OFD Sender: No OFD packet to send [07:01:15]OFD Sender: No OFD packet to send [07:01:20]OFD Sender: No OFD packet to send [07:01:25]OFD Sender: No OFD packet to send [07:01:30]OFD Sender: No OFD packet to send [07:01:35]OFD Sender: No OFD packet to send [07:01:40]OFD Sender: No OFD packet to send [07:01:45]OFD Sender: No OFD packet to send [07:01:50]OFD Sender: No OFD packet to send [07:01:55]OFD Sender: No OFD packet to send [07:02:00]OFD Sender: No OFD packet to send [07:02:05]OFD Sender: No OFD packet to send [07:02:10]OFD Sender: No OFD packet to send [07:02:15]OFD Sender: No OFD packet to send [07:02:20]OFD Sender: No OFD packet to send [07:02:25]OFD Sender: No OFD packet to send [07:02:30]OFD Sender: No OFD packet to send [07:02:35]OFD Sender: No OFD packet to send [07:02:40]OFD Sender: No OFD packet to send [07:02:45]OFD Sender: No OFD packet to send [07:02:50]OFD Sender: No OFD packet to send [07:02:55]OFD Sender: No OFD packet to send [07:03:00]OFD Sender: No OFD packet to send [07:03:05]OFD Sender: No OFD packet to send [07:03:10]OFD Sender: No OFD packet to send [07:03:15]OFD Sender: No OFD packet to send [07:03:20]OFD Sender: No OFD packet to send [07:03:25]OFD Sender: No OFD packet to send [07:03:30]OFD Sender: No OFD packet to send [07:03:35]OFD Sender: No OFD packet to send [07:03:40]OFD Sender: No OFD packet to send [07:03:45]OFD Sender: No OFD packet to send [07:03:50]OFD Sender: No OFD packet to send [07:03:55]OFD Sender: No OFD packet to send [07:04:00]OFD Sender: No OFD packet to send [07:04:05]OFD Sender: No OFD packet to send [07:04:10]OFD Sender: No OFD packet to send [07:04:15]OFD Sender: No OFD packet to send [07:04:20]OFD Sender: No OFD packet to send [07:04:25]OFD Sender: No OFD packet to send [07:04:30]OFD Sender: No OFD packet to send [07:04:35]OFD Sender: No OFD packet to send [07:04:40]OFD Sender: No OFD packet to send [07:04:45]OFD Sender: No OFD packet to send [07:04:50]OFD Sender: No OFD packet to send [07:04:55]OFD Sender: No OFD packet to send [07:05:00]OFD Sender: No OFD packet to send [07:05:05]OFD Sender: No OFD packet to send [07:05:10]OFD Sender: No OFD packet to send [07:05:15]OFD Sender: No OFD packet to send [07:05:20]OFD Sender: No OFD packet to send [07:05:26]OFD Sender: No OFD packet to send [07:05:31]OFD Sender: No OFD packet to send [07:05:36]OFD Sender: No OFD packet to send [07:05:41]OFD Sender: No OFD packet to send [07:05:46]OFD Sender: No OFD packet to send [07:05:51]OFD Sender: No OFD packet to send [07:05:56]OFD Sender: No OFD packet to send [07:06:01]OFD Sender: No OFD packet to send [07:06:06]OFD Sender: No OFD packet to send [07:06:11]OFD Sender: No OFD packet to send [07:06:16]OFD Sender: No OFD packet to send [07:06:21]OFD Sender: No OFD packet to send [07:06:26]OFD Sender: No OFD packet to send [07:06:31]OFD Sender: No OFD packet to send [07:06:36]OFD Sender: No OFD packet to send [07:06:41]OFD Sender: No OFD packet to send [07:06:46]OFD Sender: No OFD packet to send [07:06:51]OFD Sender: No OFD packet to send [07:06:56]OFD Sender: No OFD packet to send [07:07:01]OFD Sender: No OFD packet to send [07:07:06]OFD Sender: No OFD packet to send [07:07:11]OFD Sender: No OFD packet to send [07:07:16]OFD Sender: No OFD packet to send [07:07:21]OFD Sender: No OFD packet to send [07:07:26]OFD Sender: No OFD packet to send [07:07:31]OFD Sender: No OFD packet to send [07:07:36]OFD Sender: No OFD packet to send [07:07:41]OFD Sender: No OFD packet to send [07:07:46]OFD Sender: No OFD packet to send [07:07:51]OFD Sender: No OFD packet to send [07:07:56]OFD Sender: No OFD packet to send [07:08:01]OFD Sender: No OFD packet to send [07:08:06]OFD Sender: No OFD packet to send [07:08:11]OFD Sender: No OFD packet to send [07:08:16]OFD Sender: No OFD packet to send [07:08:21]OFD Sender: No OFD packet to send [07:08:26]OFD Sender: No OFD packet to send [07:08:31]OFD Sender: No OFD packet to send [07:08:36]OFD Sender: No OFD packet to send [07:08:41]OFD Sender: No OFD packet to send [07:08:46]OFD Sender: No OFD packet to send [07:08:51]OFD Sender: No OFD packet to send [07:08:56]OFD Sender: No OFD packet to send [07:09:01]OFD Sender: No OFD packet to send [07:09:06]OFD Sender: No OFD packet to send [07:09:11]OFD Sender: No OFD packet to send [07:09:16]OFD Sender: No OFD packet to send [07:09:21]OFD Sender: No OFD packet to send [07:09:26]OFD Sender: No OFD packet to send [07:09:31]OFD Sender: No OFD packet to send [07:09:36]OFD Sender: No OFD packet to send [07:09:41]OFD Sender: No OFD packet to send [07:09:46]OFD Sender: No OFD packet to send [07:09:51]OFD Sender: No OFD packet to send [07:09:56]OFD Sender: No OFD packet to send [07:10:01]OFD Sender: No OFD packet to send [07:10:06]OFD Sender: No OFD packet to send [07:10:11]OFD Sender: No OFD packet to send [07:10:16]OFD Sender: No OFD packet to send [07:10:21]OFD Sender: No OFD packet to send [07:10:26]OFD Sender: No OFD packet to send [07:10:31]OFD Sender: No OFD packet to send [07:10:36]OFD Sender: No OFD packet to send [07:10:41]OFD Sender: No OFD packet to send [07:10:46]OFD Sender: No OFD packet to send [07:10:51]OFD Sender: No OFD packet to send [07:10:56]OFD Sender: No OFD packet to send [07:11:01]OFD Sender: No OFD packet to send [07:11:06]OFD Sender: No OFD packet to send [07:11:11]OFD Sender: No OFD packet to send [07:11:16]OFD Sender: No OFD packet to send [07:11:21]OFD Sender: No OFD packet to send [07:11:26]OFD Sender: No OFD packet to send [07:11:31]OFD Sender: No OFD packet to send [07:11:36]OFD Sender: No OFD packet to send [07:11:41]OFD Sender: No OFD packet to send [07:11:46]OFD Sender: No OFD packet to send [07:11:51]OFD Sender: No OFD packet to send [07:11:56]OFD Sender: No OFD packet to send [07:12:01]OFD Sender: No OFD packet to send [07:12:06]OFD Sender: No OFD packet to send [07:12:11]OFD Sender: No OFD packet to send [07:12:16]OFD Sender: No OFD packet to send [07:12:21]OFD Sender: No OFD packet to send [07:12:26]OFD Sender: No OFD packet to send [07:12:31]OFD Sender: No OFD packet to send [07:12:36]OFD Sender: No OFD packet to send [07:12:41]OFD Sender: No OFD packet to send [07:12:46]OFD Sender: No OFD packet to send [07:12:51]OFD Sender: No OFD packet to send [07:12:56]OFD Sender: No OFD packet to send [07:13:01]OFD Sender: No OFD packet to send [07:13:06]OFD Sender: No OFD packet to send [07:13:11]OFD Sender: No OFD packet to send [07:13:16]OFD Sender: No OFD packet to send [07:13:21]OFD Sender: No OFD packet to send [07:13:26]OFD Sender: No OFD packet to send [07:13:31]OFD Sender: No OFD packet to send [07:13:36]OFD Sender: No OFD packet to send [07:13:37]accept exits with 7 [07:13:37]New connection [07:13:37]New thread 3067084132 created [07:13:37]Thread 3067227492 joined [07:13:37]Waiting for new connection... [07:13:37] Sock 7.Parse request [07:13:37]Sock 7.Check first char [07:13:37]Sock 7.First char is OK [07:13:37]request: POST /json_proto HTTP/1.0 [07:13:37]Method: POST [07:13:37]URL: /json_proto [07:13:37]Method is POST - this is cgi request [07:13:37]url: /json_proto [07:13:37]query_string will be loaded in cgi processing [07:13:37]execute_cgi json_proto POST (null) [07:13:37]execute_cgi path=json_proto method=POST [07:13:37]POST find Content-Length [07:13:37]Host: 172.17.36.132:8080 [07:13:37]Content-Length: 677 [07:13:37]Content-Type: application/json [07:13:37] [07:13:37]POST finish read [07:13:37]Found Content-Length = 677 [07:13:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706625", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 4.060, "sum" : 300.03, "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:13:37]execute_script... [07:13:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706625", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 4.060, "sum" : 300.03, "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:13:37]POST & json_proto [07:13:37]process_json_proto [07:13:37]json parsed OK: [07:13:37]protocol is kg_v1.0 [07:13:37]action value=close_receipt [07:13:37]process_action close_receipt [07:13:37]cmd_close_receipt [07:13:37]MH_GetDate [07:13:37]Write to MH i2c: F0 00 00 BB 0F B9 [07:13:37]Write i2c OK [07:13:37]MH_I2C_Read... [07:13:37]Read from MH i2c: F0 [07:13:37]MH_I2C_Read... [07:13:37]Read from MH i2c: F0 09 00 [07:13:37]MH_I2C_Read... [07:13:37]Read from MH i2c: F0 09 00 BB 0F 00 A4 BE 5E 66 B2 22 B0 64 D0 [07:13:37]GetLastDocTimeStamp 1717483555 [07:13:37]current date 1717485220 [07:13:37]FM_GetShiftState [07:13:37]SAM_PROTO_GetShiftState [07:13:37]wFMCommunicate request_size=4 [07:13:37]MH_SAM_APDU [07:13:37]CAPDU: 80 13 01 00 [07:13:37]Write to MH i2c: E2 08 00 BC 0F 80 13 01 00 00 00 00 00 48 [07:13:37]Write i2c OK [07:13:37]MH_I2C_Read... [07:13:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:13:37]Read from MH i2c: E2 [07:13:37]MH_I2C_Read... [07:13:37]Read from MH i2c: E2 0E 00 [07:13:37]MH_I2C_Read... [07:13:37]Read from MH i2c: E2 0E 00 BC 0F 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 E4 [07:13:37]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [07:13:37]wFMCommunicate OK [07:13:37]SAM_PROTO_GetShiftState done [07:13:37]FM_GetShiftState done [07:13:37]opened in 1717460590 [07:13:37]opened+sec_in_day 1717546990 [07:13:37]quantity*price = 30003 [07:13:37]sum+1 = 30004 [07:13:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 10 04.06.2024 07:13 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68512 ФПД: 25980776070209 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T071340&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68512&fm=25980776070209&tin=02508201610067®Number=0000000000098096&sum=30000 [07:13:38]StoreToDocumentArchive [07:13:38]shift 325 fd 68512 [07:13:38]save to /storage/0325/doc_00068512 [07:13:38]save last doc name /storage/0325/doc_00068512 to /storage/kkm_last_doc_name [07:13:38]save OK [07:13:38]Clear old archive folders... [07:13:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:13:38]tlvbuf is 00A0E1B0 [07:13:38]SAM_PROTO_ClearQueue [07:13:38]wFMCommunicate request_size=4 [07:13:38]MH_SAM_APDU [07:13:38]CAPDU: 80 09 00 00 [07:13:38]Write to MH i2c: E2 08 00 C9 0F 80 09 00 00 00 00 00 00 4A [07:13:38]Write i2c OK [07:13:38]MH_I2C_Read... [07:13:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:13:38]Read from MH i2c: E2 [07:13:38]MH_I2C_Read... [07:13:38]Read from MH i2c: E2 03 00 [07:13:38]MH_I2C_Read... [07:13:38]Read from MH i2c: E2 03 00 C9 0F 00 90 00 4C [07:13:38]RAPDU: 90 00 [07:13:38]wFMCommunicate OK [07:13:38]SAM_PROTO_ClearQueue done [07:13:38]KKMCreateOFDPacket [07:13:38]OFDProtocolAddRootSTLVToBuf [07:13:38]FM_MakeSignedData [07:13:38]FM_MakeSignedData [07:13:38]SAM_PROTO_SignData [07:13:38]wFMCommunicate request_size=4 [07:13:38]MH_SAM_APDU [07:13:38]CAPDU: 80 0D 01 02 [07:13:38]Write to MH i2c: E2 08 00 CA 0F 80 0D 01 02 00 00 00 00 52 [07:13:38]Write i2c OK [07:13:38]MH_I2C_Read... [07:13:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:13:38]Read from MH i2c: E2 [07:13:38]MH_I2C_Read... [07:13:38]Read from MH i2c: E2 03 00 [07:13:38]MH_I2C_Read... [07:13:38]Read from MH i2c: E2 03 00 CA 0F 00 90 00 4D [07:13:38]RAPDU: 90 00 [07:13:38]wFMCommunicate OK [07:13:38]wFMCommunicate request_size=255 [07:13:38]MH_SAM_APDU [07:13: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 DC 0F 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 33 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 0A 00 00 00 F4 03 04 00 A4 BE 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 A0 0B 01 00 35 04 06 00 17 [07:13:38]Write to MH i2c: E2 02 01 CB 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 DC 0F 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 33 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 0A 00 00 00 F4 03 04 00 A4 BE 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 A0 0B 01 00 35 04 06 00 17 00 00 F7 [07:13:38]Write i2c OK [07:13:38]MH_I2C_Read... [07:13:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:13:38]Read from MH i2c: E2 [07:13:38]MH_I2C_Read... [07:13:38]Read from MH i2c: E2 03 00 [07:13:38]MH_I2C_Read... [07:13:38]Read from MH i2c: E2 03 00 CB 0F 00 90 00 4E [07:13:38]RAPDU: 90 00 [07:13:38]wFMCommunicate OK [07:13:38]wFMCommunicate request_size=10 [07:13:38]MH_SAM_APDU [07:13:38]CAPDU: 80 0D 02 02 05 A1 1E ED BC 41 [07:13:38]Write to MH i2c: E2 0D 00 CC 0F 80 0D 02 02 05 00 A1 1E ED BC 41 00 00 08 [07:13:38]Write i2c OK [07:13:38]MH_I2C_Read... [07:13:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:13:38]Read from MH i2c: E2 [07:13:38]MH_I2C_Read... [07:13:38]Read from MH i2c: E2 03 00 [07:13:38]MH_I2C_Read... [07:13:38]Read from MH i2c: E2 03 00 CC 0F 00 90 00 4F [07:13:38]RAPDU: 90 00 [07:13:38]wFMCommunicate OK [07:13:38]wFMCommunicate request_size=4 [07:13:38]MH_SAM_APDU [07:13:38]CAPDU: 80 0D 03 02 [07:13:38]Write to MH i2c: E2 08 00 CD 0F 80 0D 03 02 00 00 00 00 57 [07:13:38]Write i2c OK [07:13:38]MH_I2C_Read... [07:13:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:13:38]Read from MH i2c: E2 [07:13:38]MH_I2C_Read... [07:13:38]Read from MH i2c: E2 0B 00 [07:13:38]MH_I2C_Read... [07:13:38]Read from MH i2c: E2 0B 00 CD 0F 00 B3 CD 4C D1 A5 26 22 89 90 00 6B [07:13:38]RAPDU: B3 CD 4C D1 A5 26 22 89 90 00 [07:13:38]wFMCommunicate OK [07:13:38]SAM_PROTO_SignData done [07:13:38]FM_MakeSignedData done [07:13:38]CreateOFDProtocolMessage [07:13:38]wFMCommunicate request_size=4 [07:13:38]MH_SAM_APDU [07:13:38]CAPDU: 80 11 00 00 [07:13:38]Write to MH i2c: E2 08 00 CE 0F 80 11 00 00 00 00 00 00 57 [07:13:38]Write i2c OK [07:13:38]MH_I2C_Read... [07:13:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:13:39]Read from MH i2c: E2 [07:13:39]MH_I2C_Read... [07:13:39]Read from MH i2c: E2 17 00 [07:13:39]MH_I2C_Read... [07:13:39]Read from MH i2c: E2 17 00 CE 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 A2 [07:13:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [07:13:39]wFMCommunicate OK [07:13:39]CreateOFDProtocolMessage done [07:13:39]OFDSenderStorePacket 68512 [07:13:39]StoreOFDPacket docnum=68512 [07:13:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 B4 AB 07 01 7B 08 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 DC 0F 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 33 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 0A 00 00 00 F4 03 04 00 A4 BE 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 A0 0B 01 00 35 04 06 00 17 A1 1E ED BC 41 B3 CD 4C D1 A5 26 22 89 [07:13:39]CheckFolder [07:13:39]dirname=/storage/ofd_packets [07:13:39]CheckFolder done [07:13:39]ProducePacketName [07:13:39]name=ofd_packets/00068512 [07:13:39]NVStorageSaveData ofd_packets/00068512 [07:13:39]File name is /storage/ofd_packets/00068512 [07:13:39]Write 301 bytes [07:13:39]NVStorageSaveData done [07:13:39]OFDSenderStorePacket done [07:13:39]KKMCreateOFDPacket done [07:13:39]NVStorageSaveData kkm_last_timestamp [07:13:39]File name is /storage/kkm_last_timestamp [07:13:39]Write 4 bytes [07:13:39]NVStorageSaveData done [07:13:39]ExternCall_PrintAddStr [07:13:39]wPrintStart [07:13:39]Write to MH i2c: 01 00 00 CF 0F DE [07:13:39]Write i2c OK [07:13:39]MH_I2C_Read... [07:13:39]Read from MH i2c: 01 [07:13:39]MH_I2C_Read... [07:13:39]Read from MH i2c: 01 07 00 [07:13:39]MH_I2C_Read... [07:13:39]Read from MH i2c: 01 07 00 CF 0F 00 00 00 00 00 FF 0F F3 [07:13:39]RasterBufferAndPrint [07:13:39]line Счет N : (1)706625 [07:13:39]line ИНН: 02508201610067 [07:13:39]line Контрольно-Кассовый Чек [07:13:39]line ПРОДАЖА [07:13:39]line ТРК (МРК, ГНК) : 43 [07:13:39]line Товар: 2710124500 [07:13:39]line Аи-95-К-5 [07:13:39]line 4.060 * 73.90 [07:13:39]line = 300.03 [07:13:39]line НДС 12% НСП 1% [07:13:39]line > о реализуемом товаре [07:13:39]line ОКРУГЛЕНИЕ: -0.03 [07:13:39]line ИТОГО: 300.00 [07:13:39]line Внесено: 300.00 [07:13:39]line СДАЧА: 0.00 [07:13:39]line НСП 1% : 2.65 [07:13:39]line НДС 12% : 31.86 [07:13:39]line Наличными: 300.00 [07:13:39]line Безнал.: 0.00 [07:13:39]line Место: АЗС № 62 "Партнер Нефть" [07:13:39]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [07:13:39]line СНО: Общий режим [07:13:39]line Чек 10 04.06.2024 07:13 [07:13:39]line Смена: 325 ФФД: 1.0 [07:13:39]line ЗНМ: 0300000181 [07:13:39]line РНМ: 0000000000098096 [07:13:39]line Версия ККМ: 001 [07:13:39]line ФМ: 0000000000965400 [07:13:39]line ФД: 68512 [07:13:39]line ФПД: 25980776070209 [07:13:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T071340&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68512&fm=25980776070209&tin=02508201610067®Number=0000000000098096&sum=30000 [07:13:39]OFD Sender: Processing packet 68512 [packets to send 26, broken 25] [07:13:39]ProducePacketName [07:13:39]name=ofd_packets/00068512 [07:13:39]OFD Sender: To server: pG, [07:13:39]CommunicateWithHost lk.salyk.kg:30040 [07:13:39]ConnectInit lk.salyk.kg [07:13:39]written 0, free lines is 4095 [07:13:39]Connected sock=10 [07:13:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 B4 AB 07 01 7B 08 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 DC 0F 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 33 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 0A 00 00 00 F4 03 04 00 A4 BE 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 A0 0B 01 00 35 04 06 00 17 A1 1E ED BC 41 B3 CD 4C D1 A5 26 22 89 [07:13:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 72 91 47 00 76 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 39 36 35 34 30 30 10 04 04 00 A0 0B 01 00 F4 03 04 00 9D 65 5E 66 B6 04 01 00 00 C8 3B 77 66 E1 A1 03 66 [07:13:39]CommunicateWithHost err = 0 [07:13:39]CheckOFDResponse [07:13:39]1017 (14) - 77093643461234 [07:13:39]1041 (16) - 0000000000965400 [07:13:39]1040 (4) - 68512 [07:13:39]1012 (4) - 04.06.2024 00:53 [07:13:39]1206 (1) - 0 [07:13:39]OFD Sender: Remove packet 68512 [07:13:39]ProducePacketName [07:13:39]name=ofd_packets/00068512 [07:13:39]NVStorageDeleteData [07:13:39]Write to MH i2c: 01 00 00 FA 0F 09 [07:13:39]Write i2c OK [07:13:39]MH_I2C_Read... [07:13:39]Read from MH i2c: 01 [07:13:39]MH_I2C_Read... [07:13:39]Read from MH i2c: 01 07 00 [07:13:39]MH_I2C_Read... [07:13:39]Read from MH i2c: 01 07 00 FA 0F 00 00 00 00 00 D7 0C F3 [07:13:39]RasterBufferAndPrint [07:13:39]line [07:13:39]line [07:13:39]line [07:13:39]line [07:13:39]line [07:13:39]written 0, free lines is 3294 [07:13:39]MH_Cut [07:13:39]Write to MH i2c: D1 01 00 01 10 01 E3 [07:13:39]Write i2c OK [07:13:39]MH_I2C_Read... [07:13:39]Read from MH i2c: D1 [07:13:39]MH_I2C_Read... [07:13:39]Read from MH i2c: D1 01 00 [07:13:39]MH_I2C_Read... [07:13:39]Read from MH i2c: D1 01 00 01 10 00 E2 [07:13:39]Write to MH i2c: 01 00 00 02 10 12 [07:13:39]Write i2c OK [07:13:39]MH_I2C_Read... [07:13:40]OFD Sender: No OFD packet to send [07:13:40]*** Cut start [07:13:40]*** Partial cut [07:13:40]*** CUTSNS_PIN = 1 [07:13:40]*** CUTSNS_PIN = 0 [07:13:40]*** Brake cut motor [07:13:41]Read from MH i2c: 01 [07:13:41]MH_I2C_Read... [07:13:41]*** Stop cut motor [07:13:41]*** Cut end [07:13:41]Read from MH i2c: 01 07 00 [07:13:41]MH_I2C_Read... [07:13:41]Read from MH i2c: 01 07 00 02 10 00 00 00 00 00 FF 0F 27 [07:13:41]process_action close_receipt done [07:13:41]requested_data is exist [07:13:41]produce_requested_data [07:13:41]requested_item fm.sn is exist - process it [07:13:41]wFMCommunicate request_size=4 [07:13:41]MH_SAM_APDU [07:13:41]CAPDU: 80 11 00 00 [07:13:41]Write to MH i2c: E2 08 00 03 10 80 11 00 00 00 00 00 00 8D [07:13:41]Write i2c OK [07:13:41]MH_I2C_Read... [07:13:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:13:41]Read from MH i2c: E2 [07:13:41]MH_I2C_Read... [07:13:41]Read from MH i2c: E2 17 00 [07:13:41]MH_I2C_Read... [07:13:41]Read from MH i2c: E2 17 00 03 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 D8 [07:13:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [07:13:41]wFMCommunicate OK [07:13:41]requested_item fd.num is exist - process it [07:13:41]SAM_PROTO_GetFieldsCounters [07:13:41]wFMCommunicate request_size=4 [07:13:41]MH_SAM_APDU [07:13:41]CAPDU: 80 13 00 00 [07:13:41]Write to MH i2c: E2 08 00 04 10 80 13 00 00 00 00 00 00 90 [07:13:41]Write i2c OK [07:13:41]MH_I2C_Read... [07:13:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:13:41]Read from MH i2c: E2 [07:13:41]MH_I2C_Read... [07:13:41]Read from MH i2c: E2 62 00 [07:13:41]MH_I2C_Read... [07:13:41]Read from MH i2c: E2 62 00 04 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 A0 0B 01 00 0E 04 04 00 45 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 C0 [07:13:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 A0 0B 01 00 0E 04 04 00 45 01 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:13:41]wFMCommunicate OK [07:13:41]SAM_PROTO_GetFieldsCounters done [07:13:41]requested_item shift.num is exist - process it [07:13:41]requested_item shift.opened is exist - process it [07:13:41]req_shift_opened [07:13:41]FM_GetShiftState [07:13:41]SAM_PROTO_GetShiftState [07:13:41]wFMCommunicate request_size=4 [07:13:41]MH_SAM_APDU [07:13:41]CAPDU: 80 13 01 00 [07:13:41]Write to MH i2c: E2 08 00 05 10 80 13 01 00 00 00 00 00 92 [07:13:41]Write i2c OK [07:13:41]MH_I2C_Read... [07:13:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:13:41]Read from MH i2c: E2 [07:13:41]MH_I2C_Read... [07:13:41]Read from MH i2c: E2 0E 00 [07:13:41]MH_I2C_Read... [07:13:41]Read from MH i2c: E2 0E 00 05 10 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 2E [07:13:41]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [07:13:41]wFMCommunicate OK [07:13:41]SAM_PROTO_GetShiftState done [07:13:41]FM_GetShiftState done [07:13:41]req_shift_opened done [07:13:41]requested_item shift.open_date is exist - process it [07:13:41]req_shift_open_date [07:13:41]req_shift_open_date done [07:13:41]produce_requested_data done [07:13:41]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68512,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [07:13:41]process_action_free close_receipt [07:13:41]json_value_free [07:13:41]json_value_free done [07:13:41]process_json_proto returns [07:13:41]Send response to host [07:13:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68512,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [07:13:41]free response buf [07:13:41]execute_script done [07:13:41]execute_script returns [07:13:41]free content buf [07:13:41]Sock 7.Close socket [07:13:41]Sock 7.Thread stoped [07:13:45]OFD Sender: No OFD packet to send [07:13:50]OFD Sender: No OFD packet to send [07:13:55]OFD Sender: No OFD packet to send [07:14:00]OFD Sender: No OFD packet to send [07:14:05]OFD Sender: No OFD packet to send [07:14:10]OFD Sender: No OFD packet to send [07:14:15]OFD Sender: No OFD packet to send [07:14:20]OFD Sender: No OFD packet to send [07:14:25]OFD Sender: No OFD packet to send [07:14:30]OFD Sender: No OFD packet to send [07:14:35]OFD Sender: No OFD packet to send [07:14:39]accept exits with 9 [07:14:39]New connection [07:14:39]New thread 3067227492 created [07:14:39]Thread 3067084132 joined [07:14:39]Waiting for new connection... [07:14:39] Sock 9.Parse request [07:14:39]Sock 9.Check first char [07:14:39]Sock 9.First char is OK [07:14:39]request: POST /json_proto HTTP/1.0 [07:14:39]Method: POST [07:14:39]URL: /json_proto [07:14:39]Method is POST - this is cgi request [07:14:39]url: /json_proto [07:14:39]query_string will be loaded in cgi processing [07:14:39]execute_cgi json_proto POST (null) [07:14:39]execute_cgi path=json_proto method=POST [07:14:39]POST find Content-Length [07:14:39]Host: 172.17.36.132:8080 [07:14:39]Content-Length: 1207 [07:14:39]Content-Type: application/json [07:14:39] [07:14:39]POST finish read [07:14:39]Found Content-Length = 1207 [07:14:39]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 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0418\u0441\u043C\u0430\u043D\u0430\u043B\u0438\u0435\u0432 \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)706626\u000A04.06.2024 06:51\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 : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 20.000 x 73.90\u000A\u0418\u0422\u041E\u0413: 1478.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A54740\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:14:39]execute_script... [07:14:39]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 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0418\u0441\u043C\u0430\u043D\u0430\u043B\u0438\u0435\u0432 \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)706626\u000A04.06.2024 06:51\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 : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 20.000 x 73.90\u000A\u0418\u0422\u041E\u0413: 1478.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A54740\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:14:39]POST & json_proto [07:14:39]process_json_proto [07:14:39]json parsed OK: [07:14:39]protocol is kg_v1.0 [07:14:39]action value=print_text [07:14:39]process_action print_text [07:14:39]cmd_print_text [07:14:39]ExternCall_PrintAddStr [07:14:39]wPrintStart [07:14:39]Write to MH i2c: 01 00 00 06 10 16 [07:14:39]Write i2c OK [07:14:39]MH_I2C_Read... [07:14:39]Read from MH i2c: 01 [07:14:39]MH_I2C_Read... [07:14:39]Read from MH i2c: 01 07 00 [07:14:39]MH_I2C_Read... [07:14:39]Read from MH i2c: 01 07 00 06 10 00 00 00 00 00 FF 0F 2B [07:14:39]RasterBufferAndPrint [07:14:39]line *****ТОВАРНЫЙ ЧЕК***** [07:14:39]line АЗС 62 [07:14:39]line Партнер нефть [07:14:39]line 02508201610067 [07:14:39]line Кассир : Исманалиев Д. [07:14:39]line Счет N : (1)706626 [07:14:39]line 04.06.2024 06:51 [07:14:39]line ПРОДАЖА [07:14:39]line ТРК (МРК, ГНК): 33 [07:14:39]line Вид ГСМ : 2710124500 [07:14:39]line Аи-95-К-5 [07:14:39]line 20.000 x 73.90 [07:14:39]line ИТОГ: 1478.00 [07:14:39]line Тип оплаты: Талоны: Топливная Карта [07:14:39]line 54740 [07:14:39]line ______________________ [07:14:39]line (подпись) [07:14:39]written 0, free lines is 4095 [07:14:39]Write to MH i2c: 01 00 00 1A 10 2A [07:14:39]Write i2c OK [07:14:39]MH_I2C_Read... [07:14:39]Read from MH i2c: 01 [07:14:39]MH_I2C_Read... [07:14:39]Read from MH i2c: 01 07 00 [07:14:39]MH_I2C_Read... [07:14:39]Read from MH i2c: 01 07 00 1A 10 00 00 00 00 00 13 0E 52 [07:14:39]RasterBufferAndPrint [07:14:39]line [07:14:39]line [07:14:39]line [07:14:39]line [07:14:39]line [07:14:39]written 0, free lines is 3605 [07:14:39]MH_Cut [07:14:39]Write to MH i2c: D1 01 00 21 10 01 03 [07:14:39]Write i2c OK [07:14:39]MH_I2C_Read... [07:14:39]Read from MH i2c: D1 [07:14:39]MH_I2C_Read... [07:14:39]Read from MH i2c: D1 01 00 [07:14:39]MH_I2C_Read... [07:14:39]Read from MH i2c: D1 01 00 21 10 00 02 [07:14:39]Write to MH i2c: 01 00 00 22 10 32 [07:14:39]Write i2c OK [07:14:39]MH_I2C_Read... [07:14:39]*** Cut start [07:14:39]*** Partial cut [07:14:39]*** CUTSNS_PIN = 1 [07:14:40]*** CUTSNS_PIN = 0 [07:14:40]OFD Sender: No OFD packet to send [07:14:40]*** Brake cut motor [07:14:40]Read from MH i2c: 01 [07:14:40]MH_I2C_Read... [07:14:40]*** Stop cut motor [07:14:40]*** Cut end [07:14:40]Read from MH i2c: 01 07 00 [07:14:40]MH_I2C_Read... [07:14:40]Read from MH i2c: 01 07 00 22 10 00 00 00 00 00 FF 0F 47 [07:14:40]process_action print_text done [07:14:40]requested_data is exist [07:14:40]produce_requested_data [07:14:40]requested_item fm.sn is exist - process it [07:14:40]wFMCommunicate request_size=4 [07:14:40]MH_SAM_APDU [07:14:40]CAPDU: 80 11 00 00 [07:14:40]Write to MH i2c: E2 08 00 23 10 80 11 00 00 00 00 00 00 AD [07:14:40]Write i2c OK [07:14:40]MH_I2C_Read... [07:14:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:14:40]Read from MH i2c: E2 [07:14:40]MH_I2C_Read... [07:14:40]Read from MH i2c: E2 17 00 [07:14:40]MH_I2C_Read... [07:14:40]Read from MH i2c: E2 17 00 23 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 F8 [07:14:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [07:14:40]wFMCommunicate OK [07:14:40]requested_item fd.num is exist - process it [07:14:40]SAM_PROTO_GetFieldsCounters [07:14:40]wFMCommunicate request_size=4 [07:14:40]MH_SAM_APDU [07:14:40]CAPDU: 80 13 00 00 [07:14:40]Write to MH i2c: E2 08 00 24 10 80 13 00 00 00 00 00 00 B0 [07:14:40]Write i2c OK [07:14:40]MH_I2C_Read... [07:14:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:14:40]Read from MH i2c: E2 [07:14:40]MH_I2C_Read... [07:14:40]Read from MH i2c: E2 62 00 [07:14:40]MH_I2C_Read... [07:14:40]Read from MH i2c: E2 62 00 24 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 A0 0B 01 00 0E 04 04 00 45 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 E0 [07:14:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 A0 0B 01 00 0E 04 04 00 45 01 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:14:40]wFMCommunicate OK [07:14:40]SAM_PROTO_GetFieldsCounters done [07:14:40]requested_item shift.num is exist - process it [07:14:40]requested_item shift.opened is exist - process it [07:14:40]req_shift_opened [07:14:40]FM_GetShiftState [07:14:40]SAM_PROTO_GetShiftState [07:14:40]wFMCommunicate request_size=4 [07:14:40]MH_SAM_APDU [07:14:40]CAPDU: 80 13 01 00 [07:14:40]Write to MH i2c: E2 08 00 25 10 80 13 01 00 00 00 00 00 B2 [07:14:40]Write i2c OK [07:14:40]MH_I2C_Read... [07:14:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:14:40]Read from MH i2c: E2 [07:14:40]MH_I2C_Read... [07:14:40]Read from MH i2c: E2 0E 00 [07:14:40]MH_I2C_Read... [07:14:40]Read from MH i2c: E2 0E 00 25 10 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 4E [07:14:40]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [07:14:40]wFMCommunicate OK [07:14:40]SAM_PROTO_GetShiftState done [07:14:40]FM_GetShiftState done [07:14:40]req_shift_opened done [07:14:40]requested_item shift.open_date is exist - process it [07:14:40]req_shift_open_date [07:14:40]req_shift_open_date done [07:14:40]produce_requested_data done [07:14:40]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68512,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [07:14:40]process_action_free print_text [07:14:40]json_value_free [07:14:40]json_value_free done [07:14:40]process_json_proto returns [07:14:40]Send response to host [07:14:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68512,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [07:14:40]free response buf [07:14:40]execute_script done [07:14:40]execute_script returns [07:14:40]free content buf [07:14:40]Sock 9.Close socket [07:14:40]Sock 9.Thread stoped [07:14:45]OFD Sender: No OFD packet to send [07:14:50]OFD Sender: No OFD packet to send [07:14:55]OFD Sender: No OFD packet to send [07:15:00]OFD Sender: No OFD packet to send [07:15:05]OFD Sender: No OFD packet to send [07:15:10]OFD Sender: No OFD packet to send [07:15:15]OFD Sender: No OFD packet to send [07:15:20]OFD Sender: No OFD packet to send [07:15:25]OFD Sender: No OFD packet to send [07:15:30]OFD Sender: No OFD packet to send [07:15:35]OFD Sender: No OFD packet to send [07:15:40]OFD Sender: No OFD packet to send [07:15:45]OFD Sender: No OFD packet to send [07:15:50]OFD Sender: No OFD packet to send [07:15:55]OFD Sender: No OFD packet to send [07:16:00]OFD Sender: No OFD packet to send [07:16:05]OFD Sender: No OFD packet to send [07:16:10]OFD Sender: No OFD packet to send [07:16:15]OFD Sender: No OFD packet to send [07:16:20]OFD Sender: No OFD packet to send [07:16:25]OFD Sender: No OFD packet to send [07:16:30]OFD Sender: No OFD packet to send [07:16:35]OFD Sender: No OFD packet to send [07:16:40]OFD Sender: No OFD packet to send [07:16:45]OFD Sender: No OFD packet to send [07:16:50]OFD Sender: No OFD packet to send [07:16:55]OFD Sender: No OFD packet to send [07:17:00]OFD Sender: No OFD packet to send [07:17:05]OFD Sender: No OFD packet to send [07:17:10]OFD Sender: No OFD packet to send [07:17:15]OFD Sender: No OFD packet to send [07:17:20]OFD Sender: No OFD packet to send [07:17:25]OFD Sender: No OFD packet to send [07:17:30]OFD Sender: No OFD packet to send [07:17:35]OFD Sender: No OFD packet to send [07:17:40]OFD Sender: No OFD packet to send [07:17:45]OFD Sender: No OFD packet to send [07:17:50]OFD Sender: No OFD packet to send [07:17:55]OFD Sender: No OFD packet to send [07:18:00]OFD Sender: No OFD packet to send [07:18:05]OFD Sender: No OFD packet to send [07:18:10]OFD Sender: No OFD packet to send [07:18:15]OFD Sender: No OFD packet to send [07:18:20]OFD Sender: No OFD packet to send [07:18:25]OFD Sender: No OFD packet to send [07:18:30]OFD Sender: No OFD packet to send [07:18:35]OFD Sender: No OFD packet to send [07:18:40]OFD Sender: No OFD packet to send [07:18:45]OFD Sender: No OFD packet to send [07:18:50]OFD Sender: No OFD packet to send [07:18:55]OFD Sender: No OFD packet to send [07:19:00]OFD Sender: No OFD packet to send [07:19:05]OFD Sender: No OFD packet to send [07:19:10]OFD Sender: No OFD packet to send [07:19:15]OFD Sender: No OFD packet to send [07:19:20]OFD Sender: No OFD packet to send [07:19:25]OFD Sender: No OFD packet to send [07:19:30]OFD Sender: No OFD packet to send [07:19:35]OFD Sender: No OFD packet to send [07:19:40]OFD Sender: No OFD packet to send [07:19:45]OFD Sender: No OFD packet to send [07:19:50]OFD Sender: No OFD packet to send [07:19:55]OFD Sender: No OFD packet to send [07:20:00]OFD Sender: No OFD packet to send [07:20:05]OFD Sender: No OFD packet to send [07:20:10]OFD Sender: No OFD packet to send [07:20:15]OFD Sender: No OFD packet to send [07:20:20]OFD Sender: No OFD packet to send [07:20:25]OFD Sender: No OFD packet to send [07:20:30]OFD Sender: No OFD packet to send [07:20:35]OFD Sender: No OFD packet to send [07:20:40]OFD Sender: No OFD packet to send [07:20:45]OFD Sender: No OFD packet to send [07:20:50]OFD Sender: No OFD packet to send [07:20:55]OFD Sender: No OFD packet to send [07:21:00]OFD Sender: No OFD packet to send [07:21:05]OFD Sender: No OFD packet to send [07:21:10]OFD Sender: No OFD packet to send [07:21:15]OFD Sender: No OFD packet to send [07:21:20]OFD Sender: No OFD packet to send [07:21:25]OFD Sender: No OFD packet to send [07:21:30]OFD Sender: No OFD packet to send [07:21:35]OFD Sender: No OFD packet to send [07:21:40]OFD Sender: No OFD packet to send [07:21:45]OFD Sender: No OFD packet to send [07:21:50]OFD Sender: No OFD packet to send [07:21:55]OFD Sender: No OFD packet to send [07:22:00]OFD Sender: No OFD packet to send [07:22:05]OFD Sender: No OFD packet to send [07:22:10]OFD Sender: No OFD packet to send [07:22:15]OFD Sender: No OFD packet to send [07:22:20]OFD Sender: No OFD packet to send [07:22:25]OFD Sender: No OFD packet to send [07:22:30]OFD Sender: No OFD packet to send [07:22:35]OFD Sender: No OFD packet to send [07:22:40]OFD Sender: No OFD packet to send [07:22:45]OFD Sender: No OFD packet to send [07:22:50]OFD Sender: No OFD packet to send [07:22:55]OFD Sender: No OFD packet to send [07:23:00]OFD Sender: No OFD packet to send [07:23:05]OFD Sender: No OFD packet to send [07:23:10]OFD Sender: No OFD packet to send [07:23:15]OFD Sender: No OFD packet to send [07:23:20]OFD Sender: No OFD packet to send [07:23:25]OFD Sender: No OFD packet to send [07:23:30]OFD Sender: No OFD packet to send [07:23:35]OFD Sender: No OFD packet to send [07:23:40]OFD Sender: No OFD packet to send [07:23:45]OFD Sender: No OFD packet to send [07:23:50]OFD Sender: No OFD packet to send [07:23:55]OFD Sender: No OFD packet to send [07:24:00]OFD Sender: No OFD packet to send [07:24:05]OFD Sender: No OFD packet to send [07:24:10]OFD Sender: No OFD packet to send [07:24:15]OFD Sender: No OFD packet to send [07:24:20]OFD Sender: No OFD packet to send [07:24:25]OFD Sender: No OFD packet to send [07:24:30]OFD Sender: No OFD packet to send [07:24:35]OFD Sender: No OFD packet to send [07:24:40]OFD Sender: No OFD packet to send [07:24:45]OFD Sender: No OFD packet to send [07:24:50]OFD Sender: No OFD packet to send [07:24:55]OFD Sender: No OFD packet to send [07:25:00]OFD Sender: No OFD packet to send [07:25:05]OFD Sender: No OFD packet to send [07:25:10]OFD Sender: No OFD packet to send [07:25:15]OFD Sender: No OFD packet to send [07:25:20]OFD Sender: No OFD packet to send [07:25:25]OFD Sender: No OFD packet to send [07:25:30]OFD Sender: No OFD packet to send [07:25:35]OFD Sender: No OFD packet to send [07:25:40]OFD Sender: No OFD packet to send [07:25:45]OFD Sender: No OFD packet to send [07:25:50]OFD Sender: No OFD packet to send [07:25:55]OFD Sender: No OFD packet to send [07:26:00]OFD Sender: No OFD packet to send [07:26:05]OFD Sender: No OFD packet to send [07:26:10]OFD Sender: No OFD packet to send [07:26:15]OFD Sender: No OFD packet to send [07:26:20]OFD Sender: No OFD packet to send [07:26:25]OFD Sender: No OFD packet to send [07:26:30]OFD Sender: No OFD packet to send [07:26:35]OFD Sender: No OFD packet to send [07:26:40]OFD Sender: No OFD packet to send [07:26:45]OFD Sender: No OFD packet to send [07:26:50]OFD Sender: No OFD packet to send [07:26:55]OFD Sender: No OFD packet to send [07:27:00]OFD Sender: No OFD packet to send [07:27:05]OFD Sender: No OFD packet to send [07:27:10]OFD Sender: No OFD packet to send [07:27:15]OFD Sender: No OFD packet to send [07:27:20]OFD Sender: No OFD packet to send [07:27:25]OFD Sender: No OFD packet to send [07:27:30]OFD Sender: No OFD packet to send [07:27:35]OFD Sender: No OFD packet to send [07:27:40]OFD Sender: No OFD packet to send [07:27:45]OFD Sender: No OFD packet to send [07:27:50]OFD Sender: No OFD packet to send [07:27:55]OFD Sender: No OFD packet to send [07:28:00]OFD Sender: No OFD packet to send [07:28:05]OFD Sender: No OFD packet to send [07:28:10]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:51]OFD Sender: No OFD packet to send [07:30:56]OFD Sender: No OFD packet to send [07:31:01]OFD Sender: No OFD packet to send [07:31:06]OFD Sender: No OFD packet to send [07:31:11]OFD Sender: No OFD packet to send [07:31:16]OFD Sender: No OFD packet to send [07:31:21]OFD Sender: No OFD packet to send [07:31:26]OFD Sender: No OFD packet to send [07:31:31]OFD Sender: No OFD packet to send [07:31:36]OFD Sender: No OFD packet to send [07:31:41]OFD Sender: No OFD packet to send [07:31:46]OFD Sender: No OFD packet to send [07:31:51]OFD Sender: No OFD packet to send [07:31:56]OFD Sender: No OFD packet to send [07:32:01]OFD Sender: No OFD packet to send [07:32:06]OFD Sender: No OFD packet to send [07:32:11]OFD Sender: No OFD packet to send [07:32:16]OFD Sender: No OFD packet to send [07:32:21]OFD Sender: No OFD packet to send [07:32:26]OFD Sender: No OFD packet to send [07:32:31]OFD Sender: No OFD packet to send [07:32:36]OFD Sender: No OFD packet to send [07:32:41]OFD Sender: No OFD packet to send [07:32:46]OFD Sender: No OFD packet to send [07:32:51]OFD Sender: No OFD packet to send [07:32:56]OFD Sender: No OFD packet to send [07:33:01]OFD Sender: No OFD packet to send [07:33:06]OFD Sender: No OFD packet to send [07:33:11]OFD Sender: No OFD packet to send [07:33:16]OFD Sender: No OFD packet to send [07:33:21]OFD Sender: No OFD packet to send [07:33:26]OFD Sender: No OFD packet to send [07:33:31]OFD Sender: No OFD packet to send [07:33:36]OFD Sender: No OFD packet to send [07:33:41]OFD Sender: No OFD packet to send [07:33:46]OFD Sender: No OFD packet to send [07:33:51]OFD Sender: No OFD packet to send [07:33:56]OFD Sender: No OFD packet to send [07:34:01]OFD Sender: No OFD packet to send [07:34:06]OFD Sender: No OFD packet to send [07:34:11]OFD Sender: No OFD packet to send [07:34:16]OFD Sender: No OFD packet to send [07:34:21]OFD Sender: No OFD packet to send [07:34:26]OFD Sender: No OFD packet to send [07:34:31]OFD Sender: No OFD packet to send [07:34:36]OFD Sender: No OFD packet to send [07:34:41]OFD Sender: No OFD packet to send [07:34:46]OFD Sender: No OFD packet to send [07:34:51]OFD Sender: No OFD packet to send [07:34:56]OFD Sender: No OFD packet to send [07:35:01]OFD Sender: No OFD packet to send [07:35:06]OFD Sender: No OFD packet to send [07:35:11]OFD Sender: No OFD packet to send [07:35:16]OFD Sender: No OFD packet to send [07:35:21]OFD Sender: No OFD packet to send [07:35:26]OFD Sender: No OFD packet to send [07:35:31]OFD Sender: No OFD packet to send [07:35:36]OFD Sender: No OFD packet to send [07:35:41]OFD Sender: No OFD packet to send [07:35:46]OFD Sender: No OFD packet to send [07:35:51]OFD Sender: No OFD packet to send [07:35:56]OFD Sender: No OFD packet to send [07:36:01]OFD Sender: No OFD packet to send [07:36:06]OFD Sender: No OFD packet to send [07:36:11]OFD Sender: No OFD packet to send [07:36:16]OFD Sender: No OFD packet to send [07:36:21]OFD Sender: No OFD packet to send [07:36:26]OFD Sender: No OFD packet to send [07:36:31]OFD Sender: No OFD packet to send [07:36:36]OFD Sender: No OFD packet to send [07:36:41]OFD Sender: No OFD packet to send [07:36:46]OFD Sender: No OFD packet to send [07:36:51]OFD Sender: No OFD packet to send [07:36:56]OFD Sender: No OFD packet to send [07:37:01]OFD Sender: No OFD packet to send [07:37:06]OFD Sender: No OFD packet to send [07:37:11]OFD Sender: No OFD packet to send [07:37:16]OFD Sender: No OFD packet to send [07:37:21]OFD Sender: No OFD packet to send [07:37:26]OFD Sender: No OFD packet to send [07:37:31]OFD Sender: No OFD packet to send [07:37:36]OFD Sender: No OFD packet to send [07:37:41]OFD Sender: No OFD packet to send [07:37:46]OFD Sender: No OFD packet to send [07:37:51]OFD Sender: No OFD packet to send [07:37:56]OFD Sender: No OFD packet to send [07:38:01]OFD Sender: No OFD packet to send [07:38:06]OFD Sender: No OFD packet to send [07:38:11]OFD Sender: No OFD packet to send [07:38:16]OFD Sender: No OFD packet to send [07:38:21]OFD Sender: No OFD packet to send [07:38:26]OFD Sender: No OFD packet to send [07:38:31]OFD Sender: No OFD packet to send [07:38:36]OFD Sender: No OFD packet to send [07:38:41]OFD Sender: No OFD packet to send [07:38:46]OFD Sender: No OFD packet to send [07:38:51]OFD Sender: No OFD packet to send [07:38:56]OFD Sender: No OFD packet to send [07:39:01]OFD Sender: No OFD packet to send [07:39:06]OFD Sender: No OFD packet to send [07:39:11]OFD Sender: No OFD packet to send [07:39:16]OFD Sender: No OFD packet to send [07:39:21]OFD Sender: No OFD packet to send [07:39:26]OFD Sender: No OFD packet to send [07:39:31]OFD Sender: No OFD packet to send [07:39:36]OFD Sender: No OFD packet to send [07:39:41]OFD Sender: No OFD packet to send [07:39:46]OFD Sender: No OFD packet to send [07:39:51]OFD Sender: No OFD packet to send [07:39:56]OFD Sender: No OFD packet to send [07:40:01]OFD Sender: No OFD packet to send [07:40:06]OFD Sender: No OFD packet to send [07:40:11]OFD Sender: No OFD packet to send [07:40:16]OFD Sender: No OFD packet to send [07:40:21]OFD Sender: No OFD packet to send [07:40:26]OFD Sender: No OFD packet to send [07:40:31]OFD Sender: No OFD packet to send [07:40:36]OFD Sender: No OFD packet to send [07:40:41]OFD Sender: No OFD packet to send [07:40:46]OFD Sender: No OFD packet to send [07:40:51]OFD Sender: No OFD packet to send [07:40:56]OFD Sender: No OFD packet to send [07:41:01]OFD Sender: No OFD packet to send [07:41:06]OFD Sender: No OFD packet to send [07:41:11]OFD Sender: No OFD packet to send [07:41:16]OFD Sender: No OFD packet to send [07:41:21]OFD Sender: No OFD packet to send [07:41:26]OFD Sender: No OFD packet to send [07:41:31]OFD Sender: No OFD packet to send [07:41:36]OFD Sender: No OFD packet to send [07:41:41]OFD Sender: No OFD packet to send [07:41:46]OFD Sender: No OFD packet to send [07:41:51]OFD Sender: No OFD packet to send [07:41:56]OFD Sender: No OFD packet to send [07:42:01]OFD Sender: No OFD packet to send [07:42:06]OFD Sender: No OFD packet to send [07:42:11]OFD Sender: No OFD packet to send [07:42:16]OFD Sender: No OFD packet to send [07:42:21]OFD Sender: No OFD packet to send [07:42:26]OFD Sender: No OFD packet to send [07:42:31]OFD Sender: No OFD packet to send [07:42:36]OFD Sender: No OFD packet to send [07:42:41]OFD Sender: No OFD packet to send [07:42:46]OFD Sender: No OFD packet to send [07:42:51]OFD Sender: No OFD packet to send [07:42:56]OFD Sender: No OFD packet to send [07:43:01]OFD Sender: No OFD packet to send [07:43:06]OFD Sender: No OFD packet to send [07:43:11]OFD Sender: No OFD packet to send [07:43:16]OFD Sender: No OFD packet to send [07:43:21]OFD Sender: No OFD packet to send [07:43:26]OFD Sender: No OFD packet to send [07:43:31]OFD Sender: No OFD packet to send [07:43:36]OFD Sender: No OFD packet to send [07:43:41]OFD Sender: No OFD packet to send [07:43:46]OFD Sender: No OFD packet to send [07:43:51]OFD Sender: No OFD packet to send [07:43:56]OFD Sender: No OFD packet to send [07:44:01]OFD Sender: No OFD packet to send [07:44:06]OFD Sender: No OFD packet to send [07:44:11]OFD Sender: No OFD packet to send [07:44:16]OFD Sender: No OFD packet to send [07:44:21]OFD Sender: No OFD packet to send [07:44:26]OFD Sender: No OFD packet to send [07:44:31]OFD Sender: No OFD packet to send [07:44:36]OFD Sender: No OFD packet to send [07:44:41]OFD Sender: No OFD packet to send [07:44:46]OFD Sender: No OFD packet to send [07:44:51]OFD Sender: No OFD packet to send [07:44:56]OFD Sender: No OFD packet to send [07:45:01]OFD Sender: No OFD packet to send [07:45:06]OFD Sender: No OFD packet to send [07:45:11]OFD Sender: No OFD packet to send [07:45:16]OFD Sender: No OFD packet to send [07:45:21]OFD Sender: No OFD packet to send [07:45:26]OFD Sender: No OFD packet to send [07:45:31]OFD Sender: No OFD packet to send [07:45:36]OFD Sender: No OFD packet to send [07:45:41]OFD Sender: No OFD packet to send [07:45:46]OFD Sender: No OFD packet to send [07:45:51]OFD Sender: No OFD packet to send [07:45:56]OFD Sender: No OFD packet to send [07:46:01]OFD Sender: No OFD packet to send [07:46:06]OFD Sender: No OFD packet to send [07:46:11]OFD Sender: No OFD packet to send [07:46:16]OFD Sender: No OFD packet to send [07:46:21]OFD Sender: No OFD packet to send [07:46:26]OFD Sender: No OFD packet to send [07:46:31]OFD Sender: No OFD packet to send [07:46:36]OFD Sender: No OFD packet to send [07:46:41]OFD Sender: No OFD packet to send [07:46:46]OFD Sender: No OFD packet to send [07:46:51]OFD Sender: No OFD packet to send [07:46:56]OFD Sender: No OFD packet to send [07:47:01]OFD Sender: No OFD packet to send [07:47:06]OFD Sender: No OFD packet to send [07:47:11]OFD Sender: No OFD packet to send [07:47:16]OFD Sender: No OFD packet to send [07:47:21]OFD Sender: No OFD packet to send [07:47:26]OFD Sender: No OFD packet to send [07:47:31]OFD Sender: No OFD packet to send [07:47:36]OFD Sender: No OFD packet to send [07:47:41]OFD Sender: No OFD packet to send [07:47:46]OFD Sender: No OFD packet to send [07:47:51]OFD Sender: No OFD packet to send [07:47:56]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:27]OFD Sender: No OFD packet to send [07:50:32]OFD Sender: No OFD packet to send [07:50:37]OFD Sender: No OFD packet to send [07:50:42]OFD Sender: No OFD packet to send [07:50:47]OFD Sender: No OFD packet to send [07:50:52]OFD Sender: No OFD packet to send [07:50:57]OFD Sender: No OFD packet to send [07:51:02]OFD Sender: No OFD packet to send [07:51:07]OFD Sender: No OFD packet to send [07:51:12]OFD Sender: No OFD packet to send [07:51:17]OFD Sender: No OFD packet to send [07:51:22]OFD Sender: No OFD packet to send [07:51:27]OFD Sender: No OFD packet to send [07:51:32]OFD Sender: No OFD packet to send [07:51:37]OFD Sender: No OFD packet to send [07:51:42]OFD Sender: No OFD packet to send [07:51:47]OFD Sender: No OFD packet to send [07:51:52]OFD Sender: No OFD packet to send [07:51:57]OFD Sender: No OFD packet to send [07:52:02]OFD Sender: No OFD packet to send [07:52:07]OFD Sender: No OFD packet to send [07:52:12]OFD Sender: No OFD packet to send [07:52:17]OFD Sender: No OFD packet to send [07:52:22]OFD Sender: No OFD packet to send [07:52:27]OFD Sender: No OFD packet to send [07:52:32]OFD Sender: No OFD packet to send [07:52:37]OFD Sender: No OFD packet to send [07:52:42]OFD Sender: No OFD packet to send [07:52:47]OFD Sender: No OFD packet to send [07:52:52]OFD Sender: No OFD packet to send [07:52:57]OFD Sender: No OFD packet to send [07:53:02]OFD Sender: No OFD packet to send [07:53:07]OFD Sender: No OFD packet to send [07:53:12]OFD Sender: No OFD packet to send [07:53:17]OFD Sender: No OFD packet to send [07:53:22]OFD Sender: No OFD packet to send [07:53:27]OFD Sender: No OFD packet to send [07:53:32]OFD Sender: No OFD packet to send [07:53:37]OFD Sender: No OFD packet to send [07:53:42]OFD Sender: No OFD packet to send [07:53:47]OFD Sender: No OFD packet to send [07:53:52]OFD Sender: No OFD packet to send [07:53:57]OFD Sender: No OFD packet to send [07:54:02]OFD Sender: No OFD packet to send [07:54:07]OFD Sender: No OFD packet to send [07:54:12]OFD Sender: No OFD packet to send [07:54:17]OFD Sender: No OFD packet to send [07:54:22]OFD Sender: No OFD packet to send [07:54:27]OFD Sender: No OFD packet to send [07:54:32]OFD Sender: No OFD packet to send [07:54:37]OFD Sender: No OFD packet to send [07:54:42]OFD Sender: No OFD packet to send [07:54:47]OFD Sender: No OFD packet to send [07:54:52]OFD Sender: No OFD packet to send [07:54:57]OFD Sender: No OFD packet to send [07:55:02]OFD Sender: No OFD packet to send [07:55:07]OFD Sender: No OFD packet to send [07:55:12]OFD Sender: No OFD packet to send [07:55:17]OFD Sender: No OFD packet to send [07:55:22]OFD Sender: No OFD packet to send [07:55:27]OFD Sender: No OFD packet to send [07:55:32]OFD Sender: No OFD packet to send [07:55:37]OFD Sender: No OFD packet to send [07:55:42]OFD Sender: No OFD packet to send [07:55:47]OFD Sender: No OFD packet to send [07:55:52]OFD Sender: No OFD packet to send [07:55:57]OFD Sender: No OFD packet to send [07:56:02]OFD Sender: No OFD packet to send [07:56:07]OFD Sender: No OFD packet to send [07:56:12]OFD Sender: No OFD packet to send [07:56:17]OFD Sender: No OFD packet to send [07:56:22]OFD Sender: No OFD packet to send [07:56:27]OFD Sender: No OFD packet to send [07:56:32]OFD Sender: No OFD packet to send [07:56:37]OFD Sender: No OFD packet to send [07:56:42]OFD Sender: No OFD packet to send [07:56:47]OFD Sender: No OFD packet to send [07:56:52]OFD Sender: No OFD packet to send [07:56:57]OFD Sender: No OFD packet to send [07:57:02]OFD Sender: No OFD packet to send [07:57:07]OFD Sender: No OFD packet to send [07:57:12]OFD Sender: No OFD packet to send [07:57:17]OFD Sender: No OFD packet to send [07:57:22]OFD Sender: No OFD packet to send [07:57:27]OFD Sender: No OFD packet to send [07:57:32]OFD Sender: No OFD packet to send [07:57:37]OFD Sender: No OFD packet to send [07:57:42]OFD Sender: No OFD packet to send [07:57:47]OFD Sender: No OFD packet to send [07:57:52]OFD Sender: No OFD packet to send [07:57:57]OFD Sender: No OFD packet to send [07:58:02]OFD Sender: No OFD packet to send [07:58:07]OFD Sender: No OFD packet to send [07:58:12]OFD Sender: No OFD packet to send [07:58:17]OFD Sender: No OFD packet to send [07:58:22]OFD Sender: No OFD packet to send [07:58:27]OFD Sender: No OFD packet to send [07:58:32]OFD Sender: No OFD packet to send [07:58:37]OFD Sender: No OFD packet to send [07:58:42]OFD Sender: No OFD packet to send [07:58:47]OFD Sender: No OFD packet to send [07:58:52]OFD Sender: No OFD packet to send [07:58:57]OFD Sender: No OFD packet to send [07:59:02]OFD Sender: No OFD packet to send [07:59:07]OFD Sender: No OFD packet to send [07:59:12]OFD Sender: No OFD packet to send [07:59:17]OFD Sender: No OFD packet to send [07:59:22]OFD Sender: No OFD packet to send [07:59:27]OFD Sender: No OFD packet to send [07:59:32]OFD Sender: No OFD packet to send [07:59:37]OFD Sender: No OFD packet to send [07:59:42]OFD Sender: No OFD packet to send [07:59:47]OFD Sender: No OFD packet to send [07:59:52]OFD Sender: No OFD packet to send [07:59:57]OFD Sender: No OFD packet to send [08:00:02]OFD Sender: No OFD packet to send [08:00:07]OFD Sender: No OFD packet to send [08:00:12]OFD Sender: No OFD packet to send [08:00:17]OFD Sender: No OFD packet to send [08:00:22]OFD Sender: No OFD packet to send [08:00:27]OFD Sender: No OFD packet to send [08:00:32]OFD Sender: No OFD packet to send [08:00:37]OFD Sender: No OFD packet to send [08:00:42]OFD Sender: No OFD packet to send [08:00:47]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:52]OFD Sender: No OFD packet to send [08:01:57]OFD Sender: No OFD packet to send [08:02:02]OFD Sender: No OFD packet to send [08:02:07]OFD Sender: No OFD packet to send [08:02:12]OFD Sender: No OFD packet to send [08:02:17]OFD Sender: No OFD packet to send [08:02:22]OFD Sender: No OFD packet to send [08:02:27]OFD Sender: No OFD packet to send [08:02:32]OFD Sender: No OFD packet to send [08:02:37]OFD Sender: No OFD packet to send [08:02:42]OFD Sender: No OFD packet to send [08:02:47]OFD Sender: No OFD packet to send [08:02:52]OFD Sender: No OFD packet to send [08:02:57]OFD Sender: No OFD packet to send [08:03:02]OFD Sender: No OFD packet to send [08:03:07]OFD Sender: No OFD packet to send [08:03:12]OFD Sender: No OFD packet to send [08:03:17]accept exits with 7 [08:03:17]New connection [08:03:17]New thread 3067084132 created [08:03:17]Thread 3067227492 joined [08:03:17]Waiting for new connection... [08:03:17] Sock 7.Parse request [08:03:17]Sock 7.Check first char [08:03:17]Sock 7.First char is OK [08:03:17]request: POST /json_proto HTTP/1.0 [08:03:17]Method: POST [08:03:17]URL: /json_proto [08:03:17]Method is POST - this is cgi request [08:03:17]url: /json_proto [08:03:17]query_string will be loaded in cgi processing [08:03:17]execute_cgi json_proto POST (null) [08:03:17]execute_cgi path=json_proto method=POST [08:03:17]POST find Content-Length [08:03:17]Host: 172.17.36.132:8080 [08:03:17]Content-Length: 671 [08:03:17]Content-Type: application/json [08:03:17] [08:03:17]POST finish read [08:03:17]Found Content-Length = 671 [08:03:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706628", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.90, "quantity" : 11.790, "sum" : 800.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:03:17]execute_script... [08: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)706628", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.90, "quantity" : 11.790, "sum" : 800.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:03:17]POST & json_proto [08:03:17]process_json_proto [08:03:17]json parsed OK: [08:03:17]protocol is kg_v1.0 [08:03:17]action value=close_receipt [08:03:17]process_action close_receipt [08:03:17]cmd_close_receipt [08:03:17]MH_GetDate [08:03:17]Write to MH i2c: F0 00 00 26 10 25 [08:03:17]Write i2c OK [08:03:17]MH_I2C_Read... [08:03:17]Read from MH i2c: F0 [08:03:17]MH_I2C_Read... [08:03:17]Read from MH i2c: F0 09 00 [08:03:17]MH_I2C_Read... [08:03:17]Read from MH i2c: F0 09 00 26 10 00 48 CA 5E 66 B2 22 B0 64 EC [08:03:17]GetLastDocTimeStamp 1717485220 [08:03:17]current date 1717488200 [08:03:17]FM_GetShiftState [08:03:17]SAM_PROTO_GetShiftState [08:03:17]wFMCommunicate request_size=4 [08:03:17]MH_SAM_APDU [08:03:17]CAPDU: 80 13 01 00 [08:03:17]Write to MH i2c: E2 08 00 27 10 80 13 01 00 00 00 00 00 B4 [08:03:17]Write i2c OK [08:03:17]MH_I2C_Read... [08:03:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:03:17]Read from MH i2c: E2 [08:03:17]MH_I2C_Read... [08:03:17]Read from MH i2c: E2 0E 00 [08:03:17]MH_I2C_Read... [08:03:17]Read from MH i2c: E2 0E 00 27 10 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 50 [08:03:17]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [08:03:17]wFMCommunicate OK [08:03:17]SAM_PROTO_GetShiftState done [08:03:17]FM_GetShiftState done [08:03:17]opened in 1717460590 [08:03:17]opened+sec_in_day 1717546990 [08:03:17]quantity*price = 80054 [08:03:17]sum+1 = 80055 [08:03:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 85.01 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 11 04.06.2024 08:03 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68513 ФПД: 88264355680506 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T080320&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68513&fm=88264355680506&tin=02508201610067®Number=0000000000098096&sum=80000 [08:03:18]StoreToDocumentArchive [08:03:18]shift 325 fd 68513 [08:03:18]save to /storage/0325/doc_00068513 [08:03:18]save last doc name /storage/0325/doc_00068513 to /storage/kkm_last_doc_name [08:03:18]save OK [08:03:18]Clear old archive folders... [08:03:18]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:03:18]tlvbuf is 00A39B00 [08:03:18]SAM_PROTO_ClearQueue [08:03:18]wFMCommunicate request_size=4 [08:03:18]MH_SAM_APDU [08:03:18]CAPDU: 80 09 00 00 [08:03:18]Write to MH i2c: E2 08 00 34 10 80 09 00 00 00 00 00 00 B6 [08:03:18]Write i2c OK [08:03:18]MH_I2C_Read... [08:03:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:03:18]Read from MH i2c: E2 [08:03:18]MH_I2C_Read... [08:03:18]Read from MH i2c: E2 03 00 [08:03:18]MH_I2C_Read... [08:03:18]Read from MH i2c: E2 03 00 34 10 00 90 00 B8 [08:03:18]RAPDU: 90 00 [08:03:18]wFMCommunicate OK [08:03:18]SAM_PROTO_ClearQueue done [08:03:18]KKMCreateOFDPacket [08:03:18]OFDProtocolAddRootSTLVToBuf [08:03:18]FM_MakeSignedData [08:03:18]FM_MakeSignedData [08:03:18]SAM_PROTO_SignData [08:03:18]wFMCommunicate request_size=4 [08:03:18]MH_SAM_APDU [08:03:18]CAPDU: 80 0D 01 02 [08:03:18]Write to MH i2c: E2 08 00 35 10 80 0D 01 02 00 00 00 00 BE [08:03:18]Write i2c OK [08:03:18]MH_I2C_Read... [08:03:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:03:18]Read from MH i2c: E2 [08:03:18]MH_I2C_Read... [08:03:18]Read from MH i2c: E2 03 00 [08:03:18]MH_I2C_Read... [08:03:18]Read from MH i2c: E2 03 00 35 10 00 90 00 B9 [08:03:18]RAPDU: 90 00 [08:03:18]wFMCommunicate OK [08:03:18]wFMCommunicate request_size=255 [08:03:18]MH_SAM_APDU [08:03:18]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 2E 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 B6 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 0B 00 00 00 F4 03 04 00 48 CA 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 A1 0B 01 00 35 04 06 00 [08:03:18]Write to MH i2c: E2 02 01 36 10 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 2E 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 B6 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 0B 00 00 00 F4 03 04 00 48 CA 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 A1 0B 01 00 35 04 06 00 00 00 1E [08:03:18]Write i2c OK [08:03:18]MH_I2C_Read... [08:03:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:03:19]Read from MH i2c: E2 [08:03:19]MH_I2C_Read... [08:03:19]Read from MH i2c: E2 03 00 [08:03:19]MH_I2C_Read... [08:03:19]Read from MH i2c: E2 03 00 36 10 00 90 00 BA [08:03:19]RAPDU: 90 00 [08:03:19]wFMCommunicate OK [08:03:19]wFMCommunicate request_size=11 [08:03:19]MH_SAM_APDU [08:03:19]CAPDU: 80 0D 02 02 06 50 46 A5 91 10 FA [08:03:19]Write to MH i2c: E2 0E 00 37 10 80 0D 02 02 06 00 50 46 A5 91 10 FA 00 00 A3 [08:03:19]Write i2c OK [08:03:19]MH_I2C_Read... [08:03:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:03:19]Read from MH i2c: E2 [08:03:19]MH_I2C_Read... [08:03:19]Read from MH i2c: E2 03 00 [08:03:19]MH_I2C_Read... [08:03:19]Read from MH i2c: E2 03 00 37 10 00 90 00 BB [08:03:19]RAPDU: 90 00 [08:03:19]wFMCommunicate OK [08:03:19]wFMCommunicate request_size=4 [08:03:19]MH_SAM_APDU [08:03:19]CAPDU: 80 0D 03 02 [08:03:19]Write to MH i2c: E2 08 00 38 10 80 0D 03 02 00 00 00 00 C3 [08:03:19]Write i2c OK [08:03:19]MH_I2C_Read... [08:03:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:03:19]Read from MH i2c: E2 [08:03:19]MH_I2C_Read... [08:03:19]Read from MH i2c: E2 0B 00 [08:03:19]MH_I2C_Read... [08:03:19]Read from MH i2c: E2 0B 00 38 10 00 E8 BE BF 71 25 D1 DC 89 90 00 F5 [08:03:19]RAPDU: E8 BE BF 71 25 D1 DC 89 90 00 [08:03:19]wFMCommunicate OK [08:03:19]SAM_PROTO_SignData done [08:03:19]FM_MakeSignedData done [08:03:19]CreateOFDProtocolMessage [08:03:19]wFMCommunicate request_size=4 [08:03:19]MH_SAM_APDU [08:03:19]CAPDU: 80 11 00 00 [08:03:19]Write to MH i2c: E2 08 00 39 10 80 11 00 00 00 00 00 00 C3 [08:03:19]Write i2c OK [08:03:19]MH_I2C_Read... [08:03:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:03:19]Read from MH i2c: E2 [08:03:19]MH_I2C_Read... [08:03:19]Read from MH i2c: E2 17 00 [08:03:19]MH_I2C_Read... [08:03:19]Read from MH i2c: E2 17 00 39 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 0E [08:03:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [08:03:19]wFMCommunicate OK [08:03:19]CreateOFDProtocolMessage done [08:03:19]OFDSenderStorePacket 68513 [08:03:19]StoreOFDPacket docnum=68513 [08:03:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 8B EB 08 01 56 1E 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 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 2E 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 B6 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 0B 00 00 00 F4 03 04 00 48 CA 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 A1 0B 01 00 35 04 06 00 50 46 A5 91 10 FA E8 BE BF 71 25 D1 DC 89 [08:03:19]CheckFolder [08:03:19]dirname=/storage/ofd_packets [08:03:19]CheckFolder done [08:03:19]ProducePacketName [08:03:19]name=ofd_packets/00068513 [08:03:19]NVStorageSaveData ofd_packets/00068513 [08:03:19]File name is /storage/ofd_packets/00068513 [08:03:19]Write 302 bytes [08:03:19]NVStorageSaveData done [08:03:19]OFDSenderStorePacket done [08:03:19]KKMCreateOFDPacket done [08:03:19]NVStorageSaveData kkm_last_timestamp [08:03:19]File name is /storage/kkm_last_timestamp [08:03:19]Write 4 bytes [08:03:19]NVStorageSaveData done [08:03:19]ExternCall_PrintAddStr [08:03:19]wPrintStart [08:03:19]Write to MH i2c: 01 00 00 3A 10 4A [08:03:19]Write i2c OK [08:03:19]MH_I2C_Read... [08:03:19]Read from MH i2c: 01 [08:03:19]MH_I2C_Read... [08:03:19]Read from MH i2c: 01 07 00 [08:03:19]MH_I2C_Read... [08:03:19]Read from MH i2c: 01 07 00 3A 10 00 00 00 00 00 FF 0F 5F [08:03:19]RasterBufferAndPrint [08:03:19]line Счет N : (1)706628 [08:03:19]line ИНН: 02508201610067 [08:03:19]line Контрольно-Кассовый Чек [08:03:19]line ПРОДАЖА [08:03:19]line ТРК (МРК, ГНК) : 62 [08:03:19]line Товар: 2710124130 [08:03:19]line Super-92-К-5 [08:03:19]line 11.790 * 67.90 [08:03:19]line = 800.54 [08:03:19]line НДС 12% НСП 1% [08:03:19]line > о реализуемом товаре [08:03:19]line ОКРУГЛЕНИЕ: -0.54 [08:03:19]line ИТОГО: 800.00 [08:03:19]line Внесено: 800.00 [08:03:19]line СДАЧА: 0.00 [08:03:19]line НСП 1% : 7.08 [08:03:19]line НДС 12% : 85.01 [08:03:19]line Наличными: 800.00 [08:03:19]line Безнал.: 0.00 [08:03:19]line Место: АЗС № 62 "Партнер Нефть" [08:03:19]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [08:03:19]line СНО: Общий режим [08:03:19]line Чек 11 04.06.2024 08:03 [08:03:19]line Смена: 325 ФФД: 1.0 [08:03:19]line ЗНМ: 0300000181 [08:03:19]line РНМ: 0000000000098096 [08:03:19]line Версия ККМ: 001 [08:03:19]line ФМ: 0000000000965400 [08:03:19]line ФД: 68513 [08:03:19]line ФПД: 88264355680506 [08:03:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T080320&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68513&fm=88264355680506&tin=02508201610067®Number=0000000000098096&sum=80000 [08:03:19]OFD Sender: Processing packet 68513 [packets to send 26, broken 25] [08:03:19]ProducePacketName [08:03:19]name=ofd_packets/00068513 [08:03:19]OFD Sender: To server: pG, [08:03:19]CommunicateWithHost lk.salyk.kg:30040 [08:03:19]ConnectInit lk.salyk.kg [08:03:19]written 0, free lines is 4095 [08:03:19]Connected sock=10 [08:03:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 8B EB 08 01 56 1E 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 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 2E 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 B6 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 0B 00 00 00 F4 03 04 00 48 CA 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 A1 0B 01 00 35 04 06 00 50 46 A5 91 10 FA E8 BE BF 71 25 D1 DC 89 [08:03:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 E0 11 47 00 4F 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 39 36 35 34 30 30 10 04 04 00 A1 0B 01 00 F4 03 04 00 42 71 5E 66 B6 04 01 00 00 41 46 6D A8 69 2E 50 69 [08:03:19]CommunicateWithHost err = 0 [08:03:19]CheckOFDResponse [08:03:19]1017 (14) - 77093643461234 [08:03:19]1041 (16) - 0000000000965400 [08:03:19]1040 (4) - 68513 [08:03:19]1012 (4) - 04.06.2024 01:43 [08:03:19]1206 (1) - 0 [08:03:19]OFD Sender: Remove packet 68513 [08:03:19]ProducePacketName [08:03:19]name=ofd_packets/00068513 [08:03:19]NVStorageDeleteData [08:03:20]Write to MH i2c: 01 00 00 65 10 75 [08:03:20]Write i2c OK [08:03:20]MH_I2C_Read... [08:03:20]Read from MH i2c: 01 [08:03:20]MH_I2C_Read... [08:03:20]Read from MH i2c: 01 07 00 [08:03:20]MH_I2C_Read... [08:03:20]Read from MH i2c: 01 07 00 65 10 00 00 00 00 00 D4 0C 5C [08:03:20]RasterBufferAndPrint [08:03:20]line [08:03:20]line [08:03:20]line [08:03:20]line [08:03:20]line [08:03:20]written 0, free lines is 3292 [08:03:20]MH_Cut [08:03:20]Write to MH i2c: D1 01 00 6C 10 01 4E [08:03:20]Write i2c OK [08:03:20]MH_I2C_Read... [08:03:20]Read from MH i2c: D1 [08:03:20]MH_I2C_Read... [08:03:20]Read from MH i2c: D1 01 00 [08:03:20]MH_I2C_Read... [08:03:20]Read from MH i2c: D1 01 00 6C 10 00 4D [08:03:20]Write to MH i2c: 01 00 00 6D 10 7D [08:03:20]Write i2c OK [08:03:20]MH_I2C_Read... [08:03:20]OFD Sender: No OFD packet to send [08:03:20]*** Cut start [08:03:20]*** Partial cut [08:03:20]*** CUTSNS_PIN = 1 [08:03:20]*** CUTSNS_PIN = 0 [08:03:21]*** Brake cut motor [08:03:21]Read from MH i2c: 01 [08:03:21]MH_I2C_Read... [08:03:21]*** Stop cut motor [08:03:21]*** Cut end [08:03:21]Read from MH i2c: 01 07 00 [08:03:21]MH_I2C_Read... [08:03:21]Read from MH i2c: 01 07 00 6D 10 00 00 00 00 00 FF 0F 92 [08:03:21]process_action close_receipt done [08:03:21]requested_data is exist [08:03:21]produce_requested_data [08:03:21]requested_item fm.sn is exist - process it [08:03:21]wFMCommunicate request_size=4 [08:03:21]MH_SAM_APDU [08:03:21]CAPDU: 80 11 00 00 [08:03:21]Write to MH i2c: E2 08 00 6E 10 80 11 00 00 00 00 00 00 F8 [08:03:21]Write i2c OK [08:03:21]MH_I2C_Read... [08:03:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:03:21]Read from MH i2c: E2 [08:03:21]MH_I2C_Read... [08:03:21]Read from MH i2c: E2 17 00 [08:03:21]MH_I2C_Read... [08:03:21]Read from MH i2c: E2 17 00 6E 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 43 [08:03:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [08:03:21]wFMCommunicate OK [08:03:21]requested_item fd.num is exist - process it [08:03:21]SAM_PROTO_GetFieldsCounters [08:03:21]wFMCommunicate request_size=4 [08:03:21]MH_SAM_APDU [08:03:21]CAPDU: 80 13 00 00 [08:03:21]Write to MH i2c: E2 08 00 6F 10 80 13 00 00 00 00 00 00 FB [08:03:21]Write i2c OK [08:03:21]MH_I2C_Read... [08:03:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:03:21]Read from MH i2c: E2 [08:03:21]MH_I2C_Read... [08:03:21]Read from MH i2c: E2 62 00 [08:03:21]MH_I2C_Read... [08:03:21]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 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 A1 0B 01 00 0E 04 04 00 45 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 2F [08:03:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 A1 0B 01 00 0E 04 04 00 45 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 [08:03:21]wFMCommunicate OK [08:03:21]SAM_PROTO_GetFieldsCounters done [08:03:21]requested_item shift.num is exist - process it [08:03:21]requested_item shift.opened is exist - process it [08:03:21]req_shift_opened [08:03:21]FM_GetShiftState [08:03:21]SAM_PROTO_GetShiftState [08:03:21]wFMCommunicate request_size=4 [08:03:21]MH_SAM_APDU [08:03:21]CAPDU: 80 13 01 00 [08:03:21]Write to MH i2c: E2 08 00 70 10 80 13 01 00 00 00 00 00 FD [08:03:21]Write i2c OK [08:03:21]MH_I2C_Read... [08:03:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:03:21]Read from MH i2c: E2 [08:03:21]MH_I2C_Read... [08:03:21]Read from MH i2c: E2 0E 00 [08:03:21]MH_I2C_Read... [08:03:21]Read from MH i2c: E2 0E 00 70 10 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 99 [08:03:21]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [08:03:21]wFMCommunicate OK [08:03:21]SAM_PROTO_GetShiftState done [08:03:21]FM_GetShiftState done [08:03:21]req_shift_opened done [08:03:21]requested_item shift.open_date is exist - process it [08:03:21]req_shift_open_date [08:03:21]req_shift_open_date done [08:03:21]produce_requested_data done [08:03:21]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68513,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [08:03:21]process_action_free close_receipt [08:03:21]json_value_free [08:03:21]json_value_free done [08:03:21]process_json_proto returns [08:03:21]Send response to host [08:03:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68513,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [08:03:21]free response buf [08:03:21]execute_script done [08:03:21]execute_script returns [08:03:21]free content buf [08:03:21]Sock 7.Close socket [08:03:21]Sock 7.Thread stoped [08:03:25]OFD Sender: No OFD packet to send [08:03:30]OFD Sender: No OFD packet to send [08:03:35]OFD Sender: No OFD packet to send [08:03:40]OFD Sender: No OFD packet to send [08:03:45]OFD Sender: No OFD packet to send [08:03:50]OFD Sender: No OFD packet to send [08:03:55]OFD Sender: No OFD packet to send [08:04:00]OFD Sender: No OFD packet to send [08:04:05]OFD Sender: No OFD packet to send [08:04:10]OFD Sender: No OFD packet to send [08:04:15]OFD Sender: No OFD packet to send [08:04:20]OFD Sender: No OFD packet to send [08:04:25]OFD Sender: No OFD packet to send [08:04:30]OFD Sender: No OFD packet to send [08:04:35]OFD Sender: No OFD packet to send [08:04:40]OFD Sender: No OFD packet to send [08:04:45]OFD Sender: No OFD packet to send [08:04:50]OFD Sender: No OFD packet to send [08:04:55]OFD Sender: No OFD packet to send [08:05:00]OFD Sender: No OFD packet to send [08:05:05]OFD Sender: No OFD packet to send [08:05:10]OFD Sender: No OFD packet to send [08:05:15]OFD Sender: No OFD packet to send [08:05:20]OFD Sender: No OFD packet to send [08:05:25]OFD Sender: No OFD packet to send [08:05:30]OFD Sender: No OFD packet to send [08:05:35]OFD Sender: No OFD packet to send [08:05:40]OFD Sender: No OFD packet to send [08:05:45]OFD Sender: No OFD packet to send [08:05:50]OFD Sender: No OFD packet to send [08:05:55]OFD Sender: No OFD packet to send [08:06:00]OFD Sender: No OFD packet to send [08:06:05]OFD Sender: No OFD packet to send [08:06:10]OFD Sender: No OFD packet to send [08:06:15]OFD Sender: No OFD packet to send [08:06:20]OFD Sender: No OFD packet to send [08:06:22]accept exits with 9 [08:06:22]New connection [08:06:22]New thread 3067227492 created [08:06:22]Thread 3067084132 joined [08:06:22]Waiting for new connection... [08:06:22] Sock 9.Parse request [08:06:22]Sock 9.Check first char [08:06:22]Sock 9.First char is OK [08:06:22]request: POST /json_proto HTTP/1.0 [08:06:22]Method: POST [08:06:22]URL: /json_proto [08:06:22]Method is POST - this is cgi request [08:06:22]url: /json_proto [08:06:22]query_string will be loaded in cgi processing [08:06:22]execute_cgi json_proto POST (null) [08:06:22]execute_cgi path=json_proto method=POST [08:06:22]POST find Content-Length [08:06:22]Host: 172.17.36.132:8080 [08:06:22]Content-Length: 677 [08:06:22]Content-Type: application/json [08:06:22] [08:06:22]POST finish read [08:06:22]Found Content-Length = 677 [08:06:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706629", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 3.800, "sum" : 254.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 254.00, "total" : 254.00, "payments": [ { "type": 0, "sum" : 254.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:06:22]execute_script... [08:06: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)706629", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 3.800, "sum" : 254.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 254.00, "total" : 254.00, "payments": [ { "type": 0, "sum" : 254.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:06:22]POST & json_proto [08:06:22]process_json_proto [08:06:22]json parsed OK: [08:06:22]protocol is kg_v1.0 [08:06:22]action value=close_receipt [08:06:22]process_action close_receipt [08:06:22]cmd_close_receipt [08:06:22]MH_GetDate [08:06:22]Write to MH i2c: F0 00 00 71 10 70 [08:06:22]Write i2c OK [08:06:22]MH_I2C_Read... [08:06:22]Read from MH i2c: F0 [08:06:22]MH_I2C_Read... [08:06:22]Read from MH i2c: F0 09 00 [08:06:22]MH_I2C_Read... [08:06:22]Read from MH i2c: F0 09 00 71 10 00 01 CB 5E 66 B2 22 B0 64 F1 [08:06:22]GetLastDocTimeStamp 1717488200 [08:06:22]current date 1717488385 [08:06:22]FM_GetShiftState [08:06:22]SAM_PROTO_GetShiftState [08:06:22]wFMCommunicate request_size=4 [08:06:22]MH_SAM_APDU [08:06:22]CAPDU: 80 13 01 00 [08:06:22]Write to MH i2c: E2 08 00 72 10 80 13 01 00 00 00 00 00 FF [08:06:22]Write i2c OK [08:06:22]MH_I2C_Read... [08:06:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:06:22]Read from MH i2c: E2 [08:06:22]MH_I2C_Read... [08:06:22]Read from MH i2c: E2 0E 00 [08:06:22]MH_I2C_Read... [08:06:22]Read from MH i2c: E2 0E 00 72 10 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 9B [08:06:22]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [08:06:22]wFMCommunicate OK [08:06:22]SAM_PROTO_GetShiftState done [08:06:22]FM_GetShiftState done [08:06:22]opened in 1717460590 [08:06:22]opened+sec_in_day 1717546990 [08:06:22]quantity*price = 25422 [08:06:22]sum+1 = 25423 [08:06:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 254.00 Внесено: 254.00 СДАЧА: 0.00 НСП 1% : 2.25 НДС 12% : 27.00 Наличными: 254.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 12 04.06.2024 08:06 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68514 ФПД: 126215979906357 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T080625&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68514&fm=126215979906357&tin=02508201610067®Number=0000000000098096&sum=25400 [08:06:23]StoreToDocumentArchive [08:06:23]shift 325 fd 68514 [08:06:23]save to /storage/0325/doc_00068514 [08:06:23]save last doc name /storage/0325/doc_00068514 to /storage/kkm_last_doc_name [08:06:23]save OK [08:06:23]Clear old archive folders... [08:06:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:06:23]tlvbuf is 00A39A80 [08:06:23]SAM_PROTO_ClearQueue [08:06:23]wFMCommunicate request_size=4 [08:06:23]MH_SAM_APDU [08:06:23]CAPDU: 80 09 00 00 [08:06:23]Write to MH i2c: E2 08 00 7F 10 80 09 00 00 00 00 00 00 01 [08:06:23]Write i2c OK [08:06:23]MH_I2C_Read... [08:06:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:06:23]Read from MH i2c: E2 [08:06:23]MH_I2C_Read... [08:06:23]Read from MH i2c: E2 03 00 [08:06:23]MH_I2C_Read... [08:06:23]Read from MH i2c: E2 03 00 7F 10 00 90 00 03 [08:06:23]RAPDU: 90 00 [08:06:23]wFMCommunicate OK [08:06:23]SAM_PROTO_ClearQueue done [08:06:23]KKMCreateOFDPacket [08:06:23]OFDProtocolAddRootSTLVToBuf [08:06:23]FM_MakeSignedData [08:06:23]FM_MakeSignedData [08:06:23]SAM_PROTO_SignData [08:06:23]wFMCommunicate request_size=4 [08:06:23]MH_SAM_APDU [08:06:23]CAPDU: 80 0D 01 02 [08:06:23]Write to MH i2c: E2 08 00 80 10 80 0D 01 02 00 00 00 00 09 [08:06:23]Write i2c OK [08:06:23]MH_I2C_Read... [08:06:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:06:23]Read from MH i2c: E2 [08:06:23]MH_I2C_Read... [08:06:23]Read from MH i2c: E2 03 00 [08:06:23]MH_I2C_Read... [08:06:23]Read from MH i2c: E2 03 00 80 10 00 90 00 04 [08:06:23]RAPDU: 90 00 [08:06:23]wFMCommunicate OK [08:06:23]wFMCommunicate request_size=255 [08:06:23]MH_SAM_APDU [08:06:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D8 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 4E 63 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 63 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 0A 00 00 00 00 07 04 06 00 38 63 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 01 CB 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 A2 0B 01 00 35 04 06 00 72 [08:06:23]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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D8 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 4E 63 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 63 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 0A 00 00 00 00 07 04 06 00 38 63 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 01 CB 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 A2 0B 01 00 35 04 06 00 72 00 00 93 [08:06:23]Write i2c OK [08:06:23]MH_I2C_Read... [08:06:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:06:24]Read from MH i2c: E2 [08:06:24]MH_I2C_Read... [08:06:24]Read from MH i2c: E2 03 00 [08:06:24]MH_I2C_Read... [08:06:24]Read from MH i2c: E2 03 00 81 10 00 90 00 05 [08:06:24]RAPDU: 90 00 [08:06:24]wFMCommunicate OK [08:06:24]wFMCommunicate request_size=10 [08:06:24]MH_SAM_APDU [08:06:24]CAPDU: 80 0D 02 02 05 CA F2 A5 B5 35 [08:06:24]Write to MH i2c: E2 0D 00 82 10 80 0D 02 02 05 00 CA F2 A5 B5 35 00 00 61 [08:06:24]Write i2c OK [08:06:24]MH_I2C_Read... [08:06:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:06:24]Read from MH i2c: E2 [08:06:24]MH_I2C_Read... [08:06:24]Read from MH i2c: E2 03 00 [08:06:24]MH_I2C_Read... [08:06:24]Read from MH i2c: E2 03 00 82 10 00 90 00 06 [08:06:24]RAPDU: 90 00 [08:06:24]wFMCommunicate OK [08:06:24]wFMCommunicate request_size=4 [08:06:24]MH_SAM_APDU [08:06:24]CAPDU: 80 0D 03 02 [08:06:24]Write to MH i2c: E2 08 00 83 10 80 0D 03 02 00 00 00 00 0E [08:06:24]Write i2c OK [08:06:24]MH_I2C_Read... [08:06:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:06:24]Read from MH i2c: E2 [08:06:24]MH_I2C_Read... [08:06:24]Read from MH i2c: E2 0B 00 [08:06:24]MH_I2C_Read... [08:06:24]Read from MH i2c: E2 0B 00 83 10 00 7B 49 B5 F1 20 39 01 36 90 00 09 [08:06:24]RAPDU: 7B 49 B5 F1 20 39 01 36 90 00 [08:06:24]wFMCommunicate OK [08:06:24]SAM_PROTO_SignData done [08:06:24]FM_MakeSignedData done [08:06:24]CreateOFDProtocolMessage [08:06:24]wFMCommunicate request_size=4 [08:06:24]MH_SAM_APDU [08:06:24]CAPDU: 80 11 00 00 [08:06:24]Write to MH i2c: E2 08 00 84 10 80 11 00 00 00 00 00 00 0E [08:06:24]Write i2c OK [08:06:24]MH_I2C_Read... [08:06:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:06:24]Read from MH i2c: E2 [08:06:24]MH_I2C_Read... [08:06:24]Read from MH i2c: E2 17 00 [08:06:24]MH_I2C_Read... [08:06:24]Read from MH i2c: E2 17 00 84 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 59 [08:06:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [08:06:24]wFMCommunicate OK [08:06:24]CreateOFDProtocolMessage done [08:06:24]OFDSenderStorePacket 68514 [08:06:24]StoreOFDPacket docnum=68514 [08:06:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 51 17 07 01 AE 09 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D8 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 4E 63 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 63 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 0A 00 00 00 00 07 04 06 00 38 63 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 01 CB 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 A2 0B 01 00 35 04 06 00 72 CA F2 A5 B5 35 7B 49 B5 F1 20 39 01 36 [08:06:24]CheckFolder [08:06:24]dirname=/storage/ofd_packets [08:06:24]CheckFolder done [08:06:24]ProducePacketName [08:06:24]name=ofd_packets/00068514 [08:06:24]NVStorageSaveData ofd_packets/00068514 [08:06:24]File name is /storage/ofd_packets/00068514 [08:06:24]Write 301 bytes [08:06:24]NVStorageSaveData done [08:06:24]OFDSenderStorePacket done [08:06:24]KKMCreateOFDPacket done [08:06:24]NVStorageSaveData kkm_last_timestamp [08:06:24]File name is /storage/kkm_last_timestamp [08:06:24]Write 4 bytes [08:06:24]NVStorageSaveData done [08:06:24]ExternCall_PrintAddStr [08:06:24]wPrintStart [08:06:24]Write to MH i2c: 01 00 00 85 10 95 [08:06:24]Write i2c OK [08:06:24]MH_I2C_Read... [08:06:24]Read from MH i2c: 01 [08:06:24]MH_I2C_Read... [08:06:24]Read from MH i2c: 01 07 00 [08:06:24]MH_I2C_Read... [08:06:24]Read from MH i2c: 01 07 00 85 10 00 00 00 00 00 FF 0F AA [08:06:24]RasterBufferAndPrint [08:06:24]line Счет N : (1)706629 [08:06:24]line ИНН: 02508201610067 [08:06:24]line Контрольно-Кассовый Чек [08:06:24]line ПРОДАЖА [08:06:24]line ТРК (МРК, ГНК) : 32 [08:06:24]line Товар: 2710124130 [08:06:24]line Аи-92-К-4 [08:06:24]line 3.800 * 66.90 [08:06:24]line = 254.22 [08:06:24]line НДС 12% НСП 1% [08:06:24]line > о реализуемом товаре [08:06:24]line ОКРУГЛЕНИЕ: -0.22 [08:06:24]line ИТОГО: 254.00 [08:06:24]line Внесено: 254.00 [08:06:24]line СДАЧА: 0.00 [08:06:24]line НСП 1% : 2.25 [08:06:24]line НДС 12% : 27.00 [08:06:24]line Наличными: 254.00 [08:06:24]line Безнал.: 0.00 [08:06:24]line Место: АЗС № 62 "Партнер Нефть" [08:06:24]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [08:06:24]line СНО: Общий режим [08:06:24]line Чек 12 04.06.2024 08:06 [08:06:24]line Смена: 325 ФФД: 1.0 [08:06:24]line ЗНМ: 0300000181 [08:06:24]line РНМ: 0000000000098096 [08:06:24]line Версия ККМ: 001 [08:06:24]line ФМ: 0000000000965400 [08:06:24]line ФД: 68514 [08:06:24]line ФПД: 126215979906357 [08:06:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T080625&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68514&fm=126215979906357&tin=02508201610067®Number=0000000000098096&sum=25400 [08:06:24]OFD Sender: Processing packet 68514 [packets to send 26, broken 25] [08:06:24]ProducePacketName [08:06:24]name=ofd_packets/00068514 [08:06:24]OFD Sender: To server: pG, [08:06:24]CommunicateWithHost lk.salyk.kg:30040 [08:06:24]ConnectInit lk.salyk.kg [08:06:24]written 0, free lines is 4095 [08:06:24]Connected sock=10 [08:06:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 51 17 07 01 AE 09 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D8 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 4E 63 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 63 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 0A 00 00 00 00 07 04 06 00 38 63 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 01 CB 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 A2 0B 01 00 35 04 06 00 72 CA F2 A5 B5 35 7B 49 B5 F1 20 39 01 36 [08:06:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 06 40 47 00 57 93 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 A2 0B 01 00 F4 03 04 00 FB 71 5E 66 B6 04 01 00 00 39 A1 10 6B DE 68 37 7D [08:06:24]CommunicateWithHost err = 0 [08:06:24]CheckOFDResponse [08:06:24]1017 (14) - 77093643461234 [08:06:24]1041 (16) - 0000000000965400 [08:06:24]1040 (4) - 68514 [08:06:24]1012 (4) - 04.06.2024 01:46 [08:06:24]1206 (1) - 0 [08:06:24]OFD Sender: Remove packet 68514 [08:06:24]ProducePacketName [08:06:24]name=ofd_packets/00068514 [08:06:24]NVStorageDeleteData [08:06:25]Write to MH i2c: 01 00 00 B0 10 C0 [08:06:25]Write i2c OK [08:06:25]MH_I2C_Read... [08:06:25]Read from MH i2c: 01 [08:06:25]MH_I2C_Read... [08:06:25]Read from MH i2c: 01 07 00 [08:06:25]MH_I2C_Read... [08:06:25]Read from MH i2c: 01 07 00 B0 10 00 00 00 00 00 CD 0C A0 [08:06:25]RasterBufferAndPrint [08:06:25]line [08:06:25]line [08:06:25]line [08:06:25]line [08:06:25]line [08:06:25]written 0, free lines is 3284 [08:06:25]MH_Cut [08:06:25]Write to MH i2c: D1 01 00 B7 10 01 99 [08:06:25]Write i2c OK [08:06:25]MH_I2C_Read... [08:06:25]Read from MH i2c: D1 [08:06:25]MH_I2C_Read... [08:06:25]Read from MH i2c: D1 01 00 [08:06:25]MH_I2C_Read... [08:06:25]Read from MH i2c: D1 01 00 B7 10 00 98 [08:06:25]Write to MH i2c: 01 00 00 B8 10 C8 [08:06:25]Write i2c OK [08:06:25]MH_I2C_Read... [08:06:25]OFD Sender: No OFD packet to send [08:06:25]*** Cut start [08:06:25]*** Partial cut [08:06:25]*** CUTSNS_PIN = 1 [08:06:25]*** CUTSNS_PIN = 0 [08:06:26]*** Brake cut motor [08:06:26]Read from MH i2c: 01 [08:06:26]MH_I2C_Read... [08:06:26]*** Stop cut motor [08:06:26]*** Cut end [08:06:26]Read from MH i2c: 01 07 00 [08:06:26]MH_I2C_Read... [08:06:26]Read from MH i2c: 01 07 00 B8 10 00 00 00 00 00 FF 0F DD [08:06:26]process_action close_receipt done [08:06:26]requested_data is exist [08:06:26]produce_requested_data [08:06:26]requested_item fm.sn is exist - process it [08:06:26]wFMCommunicate request_size=4 [08:06:26]MH_SAM_APDU [08:06:26]CAPDU: 80 11 00 00 [08:06:26]Write to MH i2c: E2 08 00 B9 10 80 11 00 00 00 00 00 00 43 [08:06:26]Write i2c OK [08:06:26]MH_I2C_Read... [08:06:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:06:26]Read from MH i2c: E2 [08:06:26]MH_I2C_Read... [08:06:26]Read from MH i2c: E2 17 00 [08:06:26]MH_I2C_Read... [08:06:26]Read from MH i2c: E2 17 00 B9 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 8E [08:06:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [08:06:26]wFMCommunicate OK [08:06:26]requested_item fd.num is exist - process it [08:06:26]SAM_PROTO_GetFieldsCounters [08:06:26]wFMCommunicate request_size=4 [08:06:26]MH_SAM_APDU [08:06:26]CAPDU: 80 13 00 00 [08:06:26]Write to MH i2c: E2 08 00 BA 10 80 13 00 00 00 00 00 00 46 [08:06:26]Write i2c OK [08:06:26]MH_I2C_Read... [08:06:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:06:26]Read from MH i2c: E2 [08:06:26]MH_I2C_Read... [08:06:26]Read from MH i2c: E2 62 00 [08:06:26]MH_I2C_Read... [08:06:26]Read from MH i2c: E2 62 00 BA 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 A2 0B 01 00 0E 04 04 00 45 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 7E [08:06:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 A2 0B 01 00 0E 04 04 00 45 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 [08:06:26]wFMCommunicate OK [08:06:26]SAM_PROTO_GetFieldsCounters done [08:06:26]requested_item shift.num is exist - process it [08:06:26]requested_item shift.opened is exist - process it [08:06:26]req_shift_opened [08:06:26]FM_GetShiftState [08:06:26]SAM_PROTO_GetShiftState [08:06:26]wFMCommunicate request_size=4 [08:06:26]MH_SAM_APDU [08:06:26]CAPDU: 80 13 01 00 [08:06:26]Write to MH i2c: E2 08 00 BB 10 80 13 01 00 00 00 00 00 48 [08:06:26]Write i2c OK [08:06:26]MH_I2C_Read... [08:06:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:06:26]Read from MH i2c: E2 [08:06:26]MH_I2C_Read... [08:06:26]Read from MH i2c: E2 0E 00 [08:06:26]MH_I2C_Read... [08:06:26]Read from MH i2c: E2 0E 00 BB 10 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 E4 [08:06:26]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [08:06:26]wFMCommunicate OK [08:06:26]SAM_PROTO_GetShiftState done [08:06:26]FM_GetShiftState done [08:06:26]req_shift_opened done [08:06:26]requested_item shift.open_date is exist - process it [08:06:26]req_shift_open_date [08:06:26]req_shift_open_date done [08:06:26]produce_requested_data done [08:06:26]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68514,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [08:06:26]process_action_free close_receipt [08:06:26]json_value_free [08:06:26]json_value_free done [08:06:26]process_json_proto returns [08:06:26]Send response to host [08:06:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68514,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [08:06:26]free response buf [08:06:26]execute_script done [08:06:26]execute_script returns [08:06:26]free content buf [08:06:26]Sock 9.Close socket [08:06:26]Sock 9.Thread stoped [08:06:30]OFD Sender: No OFD packet to send [08:06:35]OFD Sender: No OFD packet to send [08:06:40]OFD Sender: No OFD packet to send [08:06:45]OFD Sender: No OFD packet to send [08:06:50]OFD Sender: No OFD packet to send [08:06:55]OFD Sender: No OFD packet to send [08:07:00]OFD Sender: No OFD packet to send [08:07:05]OFD Sender: No OFD packet to send [08:07:10]OFD Sender: No OFD packet to send [08:07:15]OFD Sender: No OFD packet to send [08:07:20]OFD Sender: No OFD packet to send [08:07:25]OFD Sender: No OFD packet to send [08:07:30]OFD Sender: No OFD packet to send [08:07:35]OFD Sender: No OFD packet to send [08:07:40]OFD Sender: No OFD packet to send [08:07:45]OFD Sender: No OFD packet to send [08:07:50]OFD Sender: No OFD packet to send [08:07:55]OFD Sender: No OFD packet to send [08:08:00]OFD Sender: No OFD packet to send [08:08:05]OFD Sender: No OFD packet to send [08:08:10]OFD Sender: No OFD packet to send [08:08:15]OFD Sender: No OFD packet to send [08:08:20]OFD Sender: No OFD packet to send [08:08:25]OFD Sender: No OFD packet to send [08:08:30]OFD Sender: No OFD packet to send [08:08:35]OFD Sender: No OFD packet to send [08:08:40]OFD Sender: No OFD packet to send [08:08:45]OFD Sender: No OFD packet to send [08:08:50]OFD Sender: No OFD packet to send [08:08:55]OFD Sender: No OFD packet to send [08:09:00]OFD Sender: No OFD packet to send [08:09:05]OFD Sender: No OFD packet to send [08:09:10]OFD Sender: No OFD packet to send [08:09:15]OFD Sender: No OFD packet to send [08:09:20]OFD Sender: No OFD packet to send [08:09:25]OFD Sender: No OFD packet to send [08:09:30]OFD Sender: No OFD packet to send [08:09:35]OFD Sender: No OFD packet to send [08:09:35]accept exits with 7 [08:09:35]New connection [08:09:35]New thread 3067084132 created [08:09:35]Thread 3067227492 joined [08:09:35]Waiting for new connection... [08:09:35] Sock 7.Parse request [08:09:35]Sock 7.Check first char [08:09:35]Sock 7.First char is OK [08:09:35]request: POST /json_proto HTTP/1.0 [08:09:35]Method: POST [08:09:35]URL: /json_proto [08:09:35]Method is POST - this is cgi request [08:09:35]url: /json_proto [08:09:35]query_string will be loaded in cgi processing [08:09:35]execute_cgi json_proto POST (null) [08:09:35]execute_cgi path=json_proto method=POST [08:09:35]POST find Content-Length [08:09:35]Host: 172.17.36.132:8080 [08:09:35]Content-Length: 1201 [08:09:35]Content-Type: application/json [08:09:35] [08:09:35]POST finish read [08:09:35]Found Content-Length = 1201 [08:09:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0418\u0441\u043C\u0430\u043D\u0430\u043B\u0438\u0435\u0432 \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)706630\u000A04.06.2024 07:46\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(\u043B)-\u041A-4\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\u000A3747812\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:09:35]execute_script... [08:09:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0418\u0441\u043C\u0430\u043D\u0430\u043B\u0438\u0435\u0432 \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)706630\u000A04.06.2024 07:46\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(\u043B)-\u041A-4\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\u000A3747812\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:09:35]POST & json_proto [08:09:35]process_json_proto [08:09:35]json parsed OK: [08:09:35]protocol is kg_v1.0 [08:09:35]action value=print_text [08:09:35]process_action print_text [08:09:35]cmd_print_text [08:09:35]ExternCall_PrintAddStr [08:09:35]wPrintStart [08:09:35]Write to MH i2c: 01 00 00 BC 10 CC [08:09:35]Write i2c OK [08:09:35]MH_I2C_Read... [08:09:35]Read from MH i2c: 01 [08:09:35]MH_I2C_Read... [08:09:35]Read from MH i2c: 01 07 00 [08:09:35]MH_I2C_Read... [08:09:35]Read from MH i2c: 01 07 00 BC 10 00 00 00 00 00 FF 0F E1 [08:09:35]RasterBufferAndPrint [08:09:35]line *****ТОВАРНЫЙ ЧЕК***** [08:09:35]line АЗС 62 [08:09:35]line Партнер нефть [08:09:35]line 02508201610067 [08:09:35]line Кассир : Исманалиев Д. [08:09:35]line Счет N : (1)706630 [08:09:35]line 04.06.2024 07:46 [08:09:35]line ПРОДАЖА [08:09:35]line ТРК (МРК, ГНК): 51 [08:09:35]line Вид ГСМ : 2710194210 [08:09:35]line ДТ(л)-К-4 [08:09:35]line 10.000 x 72.90 [08:09:35]line ИТОГ: 729.00 [08:09:35]line Тип оплаты: Талоны: Партнер нефть [08:09:35]line 3747812 [08:09:35]line ______________________ [08:09:35]line (подпись) [08:09:35]written 0, free lines is 4095 [08:09:35]Write to MH i2c: 01 00 00 D0 10 E0 [08:09:35]Write i2c OK [08:09:35]MH_I2C_Read... [08:09:35]Read from MH i2c: 01 [08:09:35]MH_I2C_Read... [08:09:35]Read from MH i2c: 01 07 00 [08:09:35]MH_I2C_Read... [08:09:35]Read from MH i2c: 01 07 00 D0 10 00 00 00 00 00 12 0E 07 [08:09:35]RasterBufferAndPrint [08:09:35]line [08:09:35]line [08:09:35]line [08:09:35]line [08:09:35]line [08:09:35]written 0, free lines is 3604 [08:09:35]MH_Cut [08:09:35]Write to MH i2c: D1 01 00 D7 10 01 B9 [08:09:35]Write i2c OK [08:09:35]MH_I2C_Read... [08:09:35]Read from MH i2c: D1 [08:09:35]MH_I2C_Read... [08:09:35]Read from MH i2c: D1 01 00 [08:09:35]MH_I2C_Read... [08:09:35]Read from MH i2c: D1 01 00 D7 10 00 B8 [08:09:35]Write to MH i2c: 01 00 00 D8 10 E8 [08:09:35]Write i2c OK [08:09:35]MH_I2C_Read... [08:09:36]*** Cut start [08:09:36]*** Partial cut [08:09:36]*** CUTSNS_PIN = 1 [08:09:36]*** CUTSNS_PIN = 0 [08:09:36]*** Brake cut motor [08:09:37]Read from MH i2c: 01 [08:09:37]MH_I2C_Read... [08:09:37]*** Stop cut motor [08:09:37]*** Cut end [08:09:37]Read from MH i2c: 01 07 00 [08:09:37]MH_I2C_Read... [08:09:37]Read from MH i2c: 01 07 00 D8 10 00 00 00 00 00 FF 0F FD [08:09:37]process_action print_text done [08:09:37]requested_data is exist [08:09:37]produce_requested_data [08:09:37]requested_item fm.sn is exist - process it [08:09:37]wFMCommunicate request_size=4 [08:09:37]MH_SAM_APDU [08:09:37]CAPDU: 80 11 00 00 [08:09:37]Write to MH i2c: E2 08 00 D9 10 80 11 00 00 00 00 00 00 63 [08:09:37]Write i2c OK [08:09:37]MH_I2C_Read... [08:09:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:09:37]Read from MH i2c: E2 [08:09:37]MH_I2C_Read... [08:09:37]Read from MH i2c: E2 17 00 [08:09:37]MH_I2C_Read... [08:09:37]Read from MH i2c: E2 17 00 D9 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 AE [08:09:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [08:09:37]wFMCommunicate OK [08:09:37]requested_item fd.num is exist - process it [08:09:37]SAM_PROTO_GetFieldsCounters [08:09:37]wFMCommunicate request_size=4 [08:09:37]MH_SAM_APDU [08:09:37]CAPDU: 80 13 00 00 [08:09:37]Write to MH i2c: E2 08 00 DA 10 80 13 00 00 00 00 00 00 66 [08:09:37]Write i2c OK [08:09:37]MH_I2C_Read... [08:09:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:09:37]Read from MH i2c: E2 [08:09:37]MH_I2C_Read... [08:09:37]Read from MH i2c: E2 62 00 [08:09:37]MH_I2C_Read... [08:09:37]Read from MH i2c: E2 62 00 DA 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 A2 0B 01 00 0E 04 04 00 45 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 9E [08:09:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 A2 0B 01 00 0E 04 04 00 45 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 [08:09:37]wFMCommunicate OK [08:09:37]SAM_PROTO_GetFieldsCounters done [08:09:37]requested_item shift.num is exist - process it [08:09:37]requested_item shift.opened is exist - process it [08:09:37]req_shift_opened [08:09:37]FM_GetShiftState [08:09:37]SAM_PROTO_GetShiftState [08:09:37]wFMCommunicate request_size=4 [08:09:37]MH_SAM_APDU [08:09:37]CAPDU: 80 13 01 00 [08:09:37]Write to MH i2c: E2 08 00 DB 10 80 13 01 00 00 00 00 00 68 [08:09:37]Write i2c OK [08:09:37]MH_I2C_Read... [08:09:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:09:37]Read from MH i2c: E2 [08:09:37]MH_I2C_Read... [08:09:37]Read from MH i2c: E2 0E 00 [08:09:37]MH_I2C_Read... [08:09:37]Read from MH i2c: E2 0E 00 DB 10 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 04 [08:09:37]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [08:09:37]wFMCommunicate OK [08:09:37]SAM_PROTO_GetShiftState done [08:09:37]FM_GetShiftState done [08:09:37]req_shift_opened done [08:09:37]requested_item shift.open_date is exist - process it [08:09:37]req_shift_open_date [08:09:37]req_shift_open_date done [08:09:37]produce_requested_data done [08:09:37]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68514,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [08:09:37]process_action_free print_text [08:09:37]json_value_free [08:09:37]json_value_free done [08:09:37]process_json_proto returns [08:09:37]Send response to host [08:09:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68514,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [08:09:37]free response buf [08:09:37]execute_script done [08:09:37]execute_script returns [08:09:37]free content buf [08:09:37]Sock 7.Close socket [08:09:37]Sock 7.Thread stoped [08:09:40]OFD Sender: No OFD packet to send [08:09:45]OFD Sender: No OFD packet to send [08:09:50]OFD Sender: No OFD packet to send [08:09:55]OFD Sender: No OFD packet to send [08:10:00]OFD Sender: No OFD packet to send [08:10:05]OFD Sender: No OFD packet to send [08:10:10]OFD Sender: No OFD packet to send [08:10:15]OFD Sender: No OFD packet to send [08:10:20]OFD Sender: No OFD packet to send [08:10:25]OFD Sender: No OFD packet to send [08:10:30]OFD Sender: No OFD packet to send [08:10:35]OFD Sender: No OFD packet to send [08:10:40]OFD Sender: No OFD packet to send [08:10:45]OFD Sender: No OFD packet to send [08:10:50]OFD Sender: No OFD packet to send [08:10:55]OFD Sender: No OFD packet to send [08:11:00]OFD Sender: No OFD packet to send [08:11:05]OFD Sender: No OFD packet to send [08:11:10]OFD Sender: No OFD packet to send [08:11:15]OFD Sender: No OFD packet to send [08:11:20]OFD Sender: No OFD packet to send [08:11:25]OFD Sender: No OFD packet to send [08:11:30]OFD Sender: No OFD packet to send [08:11:35]OFD Sender: No OFD packet to send [08:11:40]OFD Sender: No OFD packet to send [08:11:45]OFD Sender: No OFD packet to send [08:11:50]OFD Sender: No OFD packet to send [08:11:55]OFD Sender: No OFD packet to send [08:12:00]OFD Sender: No OFD packet to send [08:12:05]OFD Sender: No OFD packet to send [08:12:10]OFD Sender: No OFD packet to send [08:12:15]OFD Sender: No OFD packet to send [08:12:20]OFD Sender: No OFD packet to send [08:12:25]OFD Sender: No OFD packet to send [08:12:30]OFD Sender: No OFD packet to send [08:12:35]OFD Sender: No OFD packet to send [08:12:40]OFD Sender: No OFD packet to send [08:12:45]OFD Sender: No OFD packet to send [08:12:50]OFD Sender: No OFD packet to send [08:12:55]OFD Sender: No OFD packet to send [08:13:00]OFD Sender: No OFD packet to send [08:13:05]OFD Sender: No OFD packet to send [08:13:10]OFD Sender: No OFD packet to send [08:13:15]OFD Sender: No OFD packet to send [08:13:20]OFD Sender: No OFD packet to send [08:13:25]OFD Sender: No OFD packet to send [08:13:30]OFD Sender: No OFD packet to send [08:13:35]OFD Sender: No OFD packet to send [08:13:40]OFD Sender: No OFD packet to send [08:13:45]OFD Sender: No OFD packet to send [08:13:50]OFD Sender: No OFD packet to send [08:13:55]OFD Sender: No OFD packet to send [08:14:00]OFD Sender: No OFD packet to send [08:14:05]OFD Sender: No OFD packet to send [08:14:10]OFD Sender: No OFD packet to send [08:14:15]OFD Sender: No OFD packet to send [08:14:20]OFD Sender: No OFD packet to send [08:14:25]OFD Sender: No OFD packet to send [08:14:30]OFD Sender: No OFD packet to send [08:14:35]OFD Sender: No OFD packet to send [08:14:40]OFD Sender: No OFD packet to send [08:14:45]OFD Sender: No OFD packet to send [08:14:50]OFD Sender: No OFD packet to send [08:14:55]OFD Sender: No OFD packet to send [08:15:00]OFD Sender: No OFD packet to send [08:15:05]OFD Sender: No OFD packet to send [08:15:10]OFD Sender: No OFD packet to send [08:15:15]OFD Sender: No OFD packet to send [08:15:20]OFD Sender: No OFD packet to send [08:15:25]OFD Sender: No OFD packet to send [08:15:30]OFD Sender: No OFD packet to send [08:15:35]OFD Sender: No OFD packet to send [08:15:40]OFD Sender: No OFD packet to send [08:15:45]OFD Sender: No OFD packet to send [08:15:50]OFD Sender: No OFD packet to send [08:15:55]OFD Sender: No OFD packet to send [08:16:00]OFD Sender: No OFD packet to send [08:16:05]OFD Sender: No OFD packet to send [08:16:10]OFD Sender: No OFD packet to send [08:16:15]OFD Sender: No OFD packet to send [08:16:20]OFD Sender: No OFD packet to send [08:16:25]OFD Sender: No OFD packet to send [08:16:30]OFD Sender: No OFD packet to send [08:16:35]OFD Sender: No OFD packet to send [08:16:40]OFD Sender: No OFD packet to send [08:16:45]OFD Sender: No OFD packet to send [08:16:50]OFD Sender: No OFD packet to send [08:16:55]OFD Sender: No OFD packet to send [08:17:00]OFD Sender: No OFD packet to send [08:17:05]OFD Sender: No OFD packet to send [08:17:10]OFD Sender: No OFD packet to send [08:17:15]OFD Sender: No OFD packet to send [08:17:20]OFD Sender: No OFD packet to send [08:17:25]OFD Sender: No OFD packet to send [08:17:30]OFD Sender: No OFD packet to send [08:17:35]OFD Sender: No OFD packet to send [08:17:40]OFD Sender: No OFD packet to send [08:17:45]OFD Sender: No OFD packet to send [08:17:50]OFD Sender: No OFD packet to send [08:17:55]accept exits with 9 [08:17:55]New connection [08:17:55]New thread 3067227492 created [08:17:55]Thread 3067084132 joined [08:17:55]Waiting for new connection... [08:17:55] Sock 9.Parse request [08:17:55]Sock 9.Check first char [08:17:55]Sock 9.First char is OK [08:17:55]request: POST /json_proto HTTP/1.0 [08:17:55]Method: POST [08:17:55]URL: /json_proto [08:17:55]Method is POST - this is cgi request [08:17:55]url: /json_proto [08:17:55]query_string will be loaded in cgi processing [08:17:55]execute_cgi json_proto POST (null) [08:17:55]execute_cgi path=json_proto method=POST [08:17:55]POST find Content-Length [08:17:55]Host: 172.17.36.132:8080 [08:17:55]Content-Length: 682 [08:17:55]Content-Type: application/json [08:17:55] [08:17:55]POST finish read [08:17:55]Found Content-Length = 682 [08:17:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706631", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 13.540, "sum" : 1000.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:17:55]execute_script... [08:17: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)706631", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 13.540, "sum" : 1000.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:17:55]POST & json_proto [08:17:55]process_json_proto [08:17:55]json parsed OK: [08:17:55]protocol is kg_v1.0 [08:17:55]action value=close_receipt [08:17:55]process_action close_receipt [08:17:55]cmd_close_receipt [08:17:55]MH_GetDate [08:17:55]Write to MH i2c: F0 00 00 DC 10 DB [08:17:55]Write i2c OK [08:17:55]MH_I2C_Read... [08:17:55]Read from MH i2c: F0 [08:17:55]MH_I2C_Read... [08:17:55]Read from MH i2c: F0 09 00 [08:17:55]MH_I2C_Read... [08:17:55]Read from MH i2c: F0 09 00 DC 10 00 B7 CD 5E 66 B2 22 B0 64 14 [08:17:55]GetLastDocTimeStamp 1717488385 [08:17:55]current date 1717489079 [08:17:55]FM_GetShiftState [08:17:55]SAM_PROTO_GetShiftState [08:17:55]wFMCommunicate request_size=4 [08:17:55]MH_SAM_APDU [08:17:55]CAPDU: 80 13 01 00 [08:17:55]Write to MH i2c: E2 08 00 DD 10 80 13 01 00 00 00 00 00 6A [08:17:55]Write i2c OK [08:17:55]MH_I2C_Read... [08:17:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:17:55]Read from MH i2c: E2 [08:17:55]MH_I2C_Read... [08:17:55]Read from MH i2c: E2 0E 00 [08:17:55]MH_I2C_Read... [08:17:55]Read from MH i2c: E2 0E 00 DD 10 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 06 [08:17:55]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [08:17:55]wFMCommunicate OK [08:17:55]SAM_PROTO_GetShiftState done [08:17:55]FM_GetShiftState done [08:17:55]opened in 1717460590 [08:17:55]opened+sec_in_day 1717546990 [08:17:55]quantity*price = 100060 [08:17:55]sum+1 = 100062 [08:17:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 13 04.06.2024 08:17 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68515 ФПД: 77723752658557 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T081759&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68515&fm=77723752658557&tin=02508201610067®Number=0000000000098096&sum=100000 [08:17:57]StoreToDocumentArchive [08:17:57]shift 325 fd 68515 [08:17:57]save to /storage/0325/doc_00068515 [08:17:57]save last doc name /storage/0325/doc_00068515 to /storage/kkm_last_doc_name [08:17:57]save OK [08:17:57]Clear old archive folders... [08:17:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:17:57]tlvbuf is 00A22410 [08:17:57]SAM_PROTO_ClearQueue [08:17:57]wFMCommunicate request_size=4 [08:17:57]MH_SAM_APDU [08:17:57]CAPDU: 80 09 00 00 [08:17:57]Write to MH i2c: E2 08 00 EA 10 80 09 00 00 00 00 00 00 6C [08:17:57]Write i2c OK [08:17:57]MH_I2C_Read... [08:17:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:17:57]Read from MH i2c: E2 [08:17:57]MH_I2C_Read... [08:17:57]Read from MH i2c: E2 03 00 [08:17:57]MH_I2C_Read... [08:17:57]Read from MH i2c: E2 03 00 EA 10 00 90 00 6E [08:17:57]RAPDU: 90 00 [08:17:57]wFMCommunicate OK [08:17:57]SAM_PROTO_ClearQueue done [08:17:57]KKMCreateOFDPacket [08:17:57]OFDProtocolAddRootSTLVToBuf [08:17:57]FM_MakeSignedData [08:17:57]FM_MakeSignedData [08:17:57]SAM_PROTO_SignData [08:17:57]wFMCommunicate request_size=4 [08:17:57]MH_SAM_APDU [08:17:57]CAPDU: 80 0D 01 02 [08:17:57]Write to MH i2c: E2 08 00 EB 10 80 0D 01 02 00 00 00 00 74 [08:17:57]Write i2c OK [08:17:57]MH_I2C_Read... [08:17:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:17:57]Read from MH i2c: E2 [08:17:57]MH_I2C_Read... [08:17:57]Read from MH i2c: E2 03 00 [08:17:57]MH_I2C_Read... [08:17:57]Read from MH i2c: E2 03 00 EB 10 00 90 00 6F [08:17:57]RAPDU: 90 00 [08:17:57]wFMCommunicate OK [08:17:57]wFMCommunicate request_size=255 [08:17:57]MH_SAM_APDU [08:17:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 B7 CD 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 A3 0B 01 00 35 04 06 00 46 [08:17:57]Write to MH i2c: E2 02 01 EC 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 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 B7 CD 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 A3 0B 01 00 35 04 06 00 46 00 00 F8 [08:17:57]Write i2c OK [08:17:57]MH_I2C_Read... [08:17:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:17:57]Read from MH i2c: E2 [08:17:57]MH_I2C_Read... [08:17:57]Read from MH i2c: E2 03 00 [08:17:57]MH_I2C_Read... [08:17:57]Read from MH i2c: E2 03 00 EC 10 00 90 00 70 [08:17:57]RAPDU: 90 00 [08:17:57]wFMCommunicate OK [08:17:57]wFMCommunicate request_size=10 [08:17:57]MH_SAM_APDU [08:17:57]CAPDU: 80 0D 02 02 05 B0 78 AA F6 7D [08:17:57]Write to MH i2c: E2 0D 00 ED 10 80 0D 02 02 05 00 B0 78 AA F6 7D 00 00 C6 [08:17:57]Write i2c OK [08:17:57]MH_I2C_Read... [08:17:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:17:57]Read from MH i2c: E2 [08:17:57]MH_I2C_Read... [08:17:57]Read from MH i2c: E2 03 00 [08:17:57]MH_I2C_Read... [08:17:57]Read from MH i2c: E2 03 00 ED 10 00 90 00 71 [08:17:57]RAPDU: 90 00 [08:17:57]wFMCommunicate OK [08:17:57]wFMCommunicate request_size=4 [08:17:57]MH_SAM_APDU [08:17:57]CAPDU: 80 0D 03 02 [08:17:57]Write to MH i2c: E2 08 00 EE 10 80 0D 03 02 00 00 00 00 79 [08:17:57]Write i2c OK [08:17:57]MH_I2C_Read... [08:17:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:17:57]Read from MH i2c: E2 [08:17:57]MH_I2C_Read... [08:17:57]Read from MH i2c: E2 0B 00 [08:17:57]MH_I2C_Read... [08:17:57]Read from MH i2c: E2 0B 00 EE 10 00 2C 10 EB 0B 87 50 CC 4B 90 00 9A [08:17:57]RAPDU: 2C 10 EB 0B 87 50 CC 4B 90 00 [08:17:57]wFMCommunicate OK [08:17:57]SAM_PROTO_SignData done [08:17:57]FM_MakeSignedData done [08:17:57]CreateOFDProtocolMessage [08:17:57]wFMCommunicate request_size=4 [08:17:57]MH_SAM_APDU [08:17:57]CAPDU: 80 11 00 00 [08:17:57]Write to MH i2c: E2 08 00 EF 10 80 11 00 00 00 00 00 00 79 [08:17:57]Write i2c OK [08:17:57]MH_I2C_Read... [08:17:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:17:57]Read from MH i2c: E2 [08:17:57]MH_I2C_Read... [08:17:57]Read from MH i2c: E2 17 00 [08:17:57]MH_I2C_Read... [08:17:57]Read from MH i2c: E2 17 00 EF 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 C4 [08:17:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [08:17:57]wFMCommunicate OK [08:17:57]CreateOFDProtocolMessage done [08:17:57]OFDSenderStorePacket 68515 [08:17:57]StoreOFDPacket docnum=68515 [08:17:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 30 EA 07 01 AE BF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 B7 CD 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 A3 0B 01 00 35 04 06 00 46 B0 78 AA F6 7D 2C 10 EB 0B 87 50 CC 4B [08:17:57]CheckFolder [08:17:57]dirname=/storage/ofd_packets [08:17:57]CheckFolder done [08:17:57]ProducePacketName [08:17:57]name=ofd_packets/00068515 [08:17:57]NVStorageSaveData ofd_packets/00068515 [08:17:57]File name is /storage/ofd_packets/00068515 [08:17:57]Write 301 bytes [08:17:57]NVStorageSaveData done [08:17:57]OFDSenderStorePacket done [08:17:57]KKMCreateOFDPacket done [08:17:57]NVStorageSaveData kkm_last_timestamp [08:17:57]File name is /storage/kkm_last_timestamp [08:17:57]Write 4 bytes [08:17:57]NVStorageSaveData done [08:17:57]ExternCall_PrintAddStr [08:17:57]wPrintStart [08:17:57]Write to MH i2c: 01 00 00 F0 10 00 [08:17:57]Write i2c OK [08:17:57]MH_I2C_Read... [08:17:57]Read from MH i2c: 01 [08:17:57]MH_I2C_Read... [08:17:57]Read from MH i2c: 01 07 00 [08:17:57]MH_I2C_Read... [08:17:57]Read from MH i2c: 01 07 00 F0 10 00 00 00 00 00 FF 0F 15 [08:17:57]RasterBufferAndPrint [08:17:57]line Счет N : (1)706631 [08:17:57]line ИНН: 02508201610067 [08:17:57]line Контрольно-Кассовый Чек [08:17:57]line ПРОДАЖА [08:17:57]line ТРК (МРК, ГНК) : 43 [08:17:57]line Товар: 2710124500 [08:17:57]line Аи-95-К-5 [08:17:57]line 13.540 * 73.90 [08:17:57]line = 1000.61 [08:17:57]line НДС 12% НСП 1% [08:17:57]line > о реализуемом товаре [08:17:57]line ОКРУГЛЕНИЕ: -0.61 [08:17:57]line ИТОГО: 1000.00 [08:17:57]line Внесено: 1000.00 [08:17:57]line СДАЧА: 0.00 [08:17:57]line НСП 1% : 8.85 [08:17:57]line НДС 12% : 106.26 [08:17:57]line Наличными: 1000.00 [08:17:57]line Безнал.: 0.00 [08:17:57]line Место: АЗС № 62 "Партнер Нефть" [08:17:57]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [08:17:57]line СНО: Общий режим [08:17:57]line Чек 13 04.06.2024 08:17 [08:17:57]line Смена: 325 ФФД: 1.0 [08:17:57]line ЗНМ: 0300000181 [08:17:57]line РНМ: 0000000000098096 [08:17:57]line Версия ККМ: 001 [08:17:57]line ФМ: 0000000000965400 [08:17:57]line ФД: 68515 [08:17:57]line ФПД: 77723752658557 [08:17:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T081759&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68515&fm=77723752658557&tin=02508201610067®Number=0000000000098096&sum=100000 [08:17:57]OFD Sender: Processing packet 68515 [packets to send 26, broken 25] [08:17:57]ProducePacketName [08:17:57]name=ofd_packets/00068515 [08:17:57]OFD Sender: To server: pG, [08:17:57]CommunicateWithHost lk.salyk.kg:30040 [08:17:57]ConnectInit lk.salyk.kg [08:17:57]written 0, free lines is 4095 [08:17:58]Connected sock=10 [08:17:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 30 EA 07 01 AE BF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 B7 CD 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 A3 0B 01 00 35 04 06 00 46 B0 78 AA F6 7D 2C 10 EB 0B 87 50 CC 4B [08:17:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 6F D3 47 00 44 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 39 36 35 34 30 30 10 04 04 00 A3 0B 01 00 F4 03 04 00 B0 74 5E 66 B6 04 01 00 00 87 56 FE 43 98 E1 CA 91 [08:17:58]CommunicateWithHost err = 0 [08:17:58]CheckOFDResponse [08:17:58]1017 (14) - 77093643461234 [08:17:58]1041 (16) - 0000000000965400 [08:17:58]1040 (4) - 68515 [08:17:58]1012 (4) - 04.06.2024 01:58 [08:17:58]1206 (1) - 0 [08:17:58]OFD Sender: Remove packet 68515 [08:17:58]ProducePacketName [08:17:58]name=ofd_packets/00068515 [08:17:58]NVStorageDeleteData [08:17:58]Write to MH i2c: 01 00 00 1B 11 2C [08:17:58]Write i2c OK [08:17:58]MH_I2C_Read... [08:17:58]Read from MH i2c: 01 [08:17:58]MH_I2C_Read... [08:17:58]Read from MH i2c: 01 07 00 [08:17:58]MH_I2C_Read... [08:17:58]Read from MH i2c: 01 07 00 1B 11 00 00 00 00 00 C9 0C 08 [08:17:58]RasterBufferAndPrint [08:17:58]line [08:17:58]line [08:17:58]line [08:17:58]line [08:17:58]line [08:17:58]written 0, free lines is 3277 [08:17:58]MH_Cut [08:17:58]Write to MH i2c: D1 01 00 22 11 01 05 [08:17:58]Write i2c OK [08:17:58]MH_I2C_Read... [08:17:58]Read from MH i2c: D1 [08:17:58]MH_I2C_Read... [08:17:58]Read from MH i2c: D1 01 00 [08:17:58]MH_I2C_Read... [08:17:58]Read from MH i2c: D1 01 00 22 11 00 04 [08:17:58]Write to MH i2c: 01 00 00 23 11 34 [08:17:58]Write i2c OK [08:17:58]MH_I2C_Read... [08:17:58]OFD Sender: No OFD packet to send [08:17:59]*** Cut start [08:17:59]*** Partial cut [08:17:59]*** CUTSNS_PIN = 1 [08:17:59]*** CUTSNS_PIN = 0 [08:17:59]*** Brake cut motor [08:17:59]Read from MH i2c: 01 [08:17:59]MH_I2C_Read... [08:17:59]*** Stop cut motor [08:17:59]*** Cut end [08:17:59]Read from MH i2c: 01 07 00 [08:17:59]MH_I2C_Read... [08:17:59]Read from MH i2c: 01 07 00 23 11 00 00 00 00 00 FF 0F 49 [08:17:59]process_action close_receipt done [08:17:59]requested_data is exist [08:17:59]produce_requested_data [08:17:59]requested_item fm.sn is exist - process it [08:17:59]wFMCommunicate request_size=4 [08:17:59]MH_SAM_APDU [08:17:59]CAPDU: 80 11 00 00 [08:17:59]Write to MH i2c: E2 08 00 24 11 80 11 00 00 00 00 00 00 AF [08:17:59]Write i2c OK [08:17:59]MH_I2C_Read... [08:17:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:17:59]Read from MH i2c: E2 [08:17:59]MH_I2C_Read... [08:17:59]Read from MH i2c: E2 17 00 [08:17:59]MH_I2C_Read... [08:17:59]Read from MH i2c: E2 17 00 24 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 FA [08:17:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [08:17:59]wFMCommunicate OK [08:17:59]requested_item fd.num is exist - process it [08:17:59]SAM_PROTO_GetFieldsCounters [08:17:59]wFMCommunicate request_size=4 [08:17:59]MH_SAM_APDU [08:17:59]CAPDU: 80 13 00 00 [08:17:59]Write to MH i2c: E2 08 00 25 11 80 13 00 00 00 00 00 00 B2 [08:17:59]Write i2c OK [08:17:59]MH_I2C_Read... [08:18:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:18:00]Read from MH i2c: E2 [08:18:00]MH_I2C_Read... [08:18:00]Read from MH i2c: E2 62 00 [08:18:00]MH_I2C_Read... [08:18:00]Read from MH i2c: E2 62 00 25 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 A3 0B 01 00 0E 04 04 00 45 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 EE [08:18:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 A3 0B 01 00 0E 04 04 00 45 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 [08:18:00]wFMCommunicate OK [08:18:00]SAM_PROTO_GetFieldsCounters done [08:18:00]requested_item shift.num is exist - process it [08:18:00]requested_item shift.opened is exist - process it [08:18:00]req_shift_opened [08:18:00]FM_GetShiftState [08:18:00]SAM_PROTO_GetShiftState [08:18:00]wFMCommunicate request_size=4 [08:18:00]MH_SAM_APDU [08:18:00]CAPDU: 80 13 01 00 [08:18:00]Write to MH i2c: E2 08 00 26 11 80 13 01 00 00 00 00 00 B4 [08:18:00]Write i2c OK [08:18:00]MH_I2C_Read... [08:18:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:18:00]Read from MH i2c: E2 [08:18:00]MH_I2C_Read... [08:18:00]Read from MH i2c: E2 0E 00 [08:18:00]MH_I2C_Read... [08:18:00]Read from MH i2c: E2 0E 00 26 11 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 50 [08:18:00]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [08:18:00]wFMCommunicate OK [08:18:00]SAM_PROTO_GetShiftState done [08:18:00]FM_GetShiftState done [08:18:00]req_shift_opened done [08:18:00]requested_item shift.open_date is exist - process it [08:18:00]req_shift_open_date [08:18:00]req_shift_open_date done [08:18:00]produce_requested_data done [08:18:00]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68515,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [08:18:00]process_action_free close_receipt [08:18:00]json_value_free [08:18:00]json_value_free done [08:18:00]process_json_proto returns [08:18:00]Send response to host [08:18:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68515,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [08:18:00]free response buf [08:18:00]execute_script done [08:18:00]execute_script returns [08:18:00]free content buf [08:18:00]Sock 9.Close socket [08:18:00]Sock 9.Thread stoped [08:18:03]OFD Sender: No OFD packet to send [08:18:08]OFD Sender: No OFD packet to send [08:18:13]OFD Sender: No OFD packet to send [08:18:18]OFD Sender: No OFD packet to send [08:18:23]OFD Sender: No OFD packet to send [08:18:28]OFD Sender: No OFD packet to send [08:18:33]OFD Sender: No OFD packet to send [08:18:38]OFD Sender: No OFD packet to send [08:18:43]OFD Sender: No OFD packet to send [08:18:48]OFD Sender: No OFD packet to send [08:18:53]OFD Sender: No OFD packet to send [08:18:58]OFD Sender: No OFD packet to send [08:19:03]OFD Sender: No OFD packet to send [08:19:08]OFD Sender: No OFD packet to send [08:19:13]OFD Sender: No OFD packet to send [08:19:18]OFD Sender: No OFD packet to send [08:19:23]OFD Sender: No OFD packet to send [08:19:28]OFD Sender: No OFD packet to send [08:19:33]OFD Sender: No OFD packet to send [08:19:38]OFD Sender: No OFD packet to send [08:19:43]OFD Sender: No OFD packet to send [08:19:48]OFD Sender: No OFD packet to send [08:19:53]OFD Sender: No OFD packet to send [08:19:58]OFD Sender: No OFD packet to send [08:20:03]OFD Sender: No OFD packet to send [08:20:08]OFD Sender: No OFD packet to send [08:20:13]OFD Sender: No OFD packet to send [08:20:18]OFD Sender: No OFD packet to send [08:20:23]OFD Sender: No OFD packet to send [08:20:28]OFD Sender: No OFD packet to send [08:20:33]OFD Sender: No OFD packet to send [08:20:38]OFD Sender: No OFD packet to send [08:20:43]OFD Sender: No OFD packet to send [08:20:48]OFD Sender: No OFD packet to send [08:20:53]OFD Sender: No OFD packet to send [08:20:58]OFD Sender: No OFD packet to send [08:21:03]OFD Sender: No OFD packet to send [08:21:08]OFD Sender: No OFD packet to send [08:21:13]OFD Sender: No OFD packet to send [08:21:18]OFD Sender: No OFD packet to send [08:21:23]OFD Sender: No OFD packet to send [08:21:28]OFD Sender: No OFD packet to send [08:21:33]OFD Sender: No OFD packet to send [08:21:38]OFD Sender: No OFD packet to send [08:21:43]OFD Sender: No OFD packet to send [08:21:48]OFD Sender: No OFD packet to send [08:21:53]OFD Sender: No OFD packet to send [08:21:58]OFD Sender: No OFD packet to send [08:22:03]OFD Sender: No OFD packet to send [08:22:08]OFD Sender: No OFD packet to send [08:22:13]OFD Sender: No OFD packet to send [08:22:18]OFD Sender: No OFD packet to send [08:22:23]OFD Sender: No OFD packet to send [08:22:28]OFD Sender: No OFD packet to send [08:22:33]OFD Sender: No OFD packet to send [08:22:38]OFD Sender: No OFD packet to send [08:22:43]OFD Sender: No OFD packet to send [08:22:48]OFD Sender: No OFD packet to send [08:22:53]OFD Sender: No OFD packet to send [08:22:58]OFD Sender: No OFD packet to send [08:23:03]OFD Sender: No OFD packet to send [08:23:08]OFD Sender: No OFD packet to send [08:23:13]OFD Sender: No OFD packet to send [08:23:18]OFD Sender: No OFD packet to send [08:23:23]OFD Sender: No OFD packet to send [08:23:28]OFD Sender: No OFD packet to send [08:23:33]OFD Sender: No OFD packet to send [08:23:39]OFD Sender: No OFD packet to send [08:23:44]OFD Sender: No OFD packet to send [08:23:49]OFD Sender: No OFD packet to send [08:23:54]OFD Sender: No OFD packet to send [08:23:59]OFD Sender: No OFD packet to send [08:24:04]OFD Sender: No OFD packet to send [08:24:09]OFD Sender: No OFD packet to send [08:24:14]OFD Sender: No OFD packet to send [08:24:19]OFD Sender: No OFD packet to send [08:24:24]OFD Sender: No OFD packet to send [08:24:29]OFD Sender: No OFD packet to send [08:24:34]OFD Sender: No OFD packet to send [08:24:39]OFD Sender: No OFD packet to send [08:24:44]OFD Sender: No OFD packet to send [08:24:49]OFD Sender: No OFD packet to send [08:24:54]OFD Sender: No OFD packet to send [08:24:59]OFD Sender: No OFD packet to send [08:25:04]OFD Sender: No OFD packet to send [08:25:09]OFD Sender: No OFD packet to send [08:25:14]OFD Sender: No OFD packet to send [08:25:19]OFD Sender: No OFD packet to send [08:25:24]OFD Sender: No OFD packet to send [08:25:29]OFD Sender: No OFD packet to send [08:25:34]OFD Sender: No OFD packet to send [08:25:39]OFD Sender: No OFD packet to send [08:25:44]OFD Sender: No OFD packet to send [08:25:49]OFD Sender: No OFD packet to send [08:25:54]OFD Sender: No OFD packet to send [08:25:59]OFD Sender: No OFD packet to send [08:26:04]OFD Sender: No OFD packet to send [08:26:09]OFD Sender: No OFD packet to send [08:26:14]OFD Sender: No OFD packet to send [08:26:19]OFD Sender: No OFD packet to send [08:26:24]OFD Sender: No OFD packet to send [08:26:29]OFD Sender: No OFD packet to send [08:26:34]OFD Sender: No OFD packet to send [08:26:39]OFD Sender: No OFD packet to send [08:26:44]OFD Sender: No OFD packet to send [08:26:49]OFD Sender: No OFD packet to send [08:26:54]OFD Sender: No OFD packet to send [08:26:59]OFD Sender: No OFD packet to send [08:27:04]OFD Sender: No OFD packet to send [08:27:09]OFD Sender: No OFD packet to send [08:27:14]OFD Sender: No OFD packet to send [08:27:19]OFD Sender: No OFD packet to send [08:27:24]OFD Sender: No OFD packet to send [08:27:29]OFD Sender: No OFD packet to send [08:27:34]OFD Sender: No OFD packet to send [08:27:39]OFD Sender: No OFD packet to send [08:27:44]OFD Sender: No OFD packet to send [08:27:49]OFD Sender: No OFD packet to send [08:27:54]OFD Sender: No OFD packet to send [08:27:59]OFD Sender: No OFD packet to send [08:28:04]OFD Sender: No OFD packet to send [08:28:09]OFD Sender: No OFD packet to send [08:28:14]OFD Sender: No OFD packet to send [08:28:19]OFD Sender: No OFD packet to send [08:28:24]OFD Sender: No OFD packet to send [08:28:29]OFD Sender: No OFD packet to send [08:28:34]OFD Sender: No OFD packet to send [08:28:39]OFD Sender: No OFD packet to send [08:28:44]OFD Sender: No OFD packet to send [08:28:49]OFD Sender: No OFD packet to send [08:28:54]OFD Sender: No OFD packet to send [08:28:59]OFD Sender: No OFD packet to send [08:29:04]OFD Sender: No OFD packet to send [08:29:09]OFD Sender: No OFD packet to send [08:29:14]OFD Sender: No OFD packet to send [08:29:19]OFD Sender: No OFD packet to send [08:29:24]OFD Sender: No OFD packet to send [08:29:29]OFD Sender: No OFD packet to send [08:29:34]OFD Sender: No OFD packet to send [08:29:39]OFD Sender: No OFD packet to send [08:29:44]OFD Sender: No OFD packet to send [08:29:49]OFD Sender: No OFD packet to send [08:29:54]OFD Sender: No OFD packet to send [08:29:59]OFD Sender: No OFD packet to send [08:30:04]OFD Sender: No OFD packet to send [08:30:09]OFD Sender: No OFD packet to send [08:30:14]OFD Sender: No OFD packet to send [08:30:19]OFD Sender: No OFD packet to send [08:30:24]OFD Sender: No OFD packet to send [08:30:29]OFD Sender: No OFD packet to send [08:30:34]OFD Sender: No OFD packet to send [08:30:39]OFD Sender: No OFD packet to send [08:30:44]OFD Sender: No OFD packet to send [08:30:49]OFD Sender: No OFD packet to send [08:30:54]OFD Sender: No OFD packet to send [08:30:59]OFD Sender: No OFD packet to send [08:31:04]OFD Sender: No OFD packet to send [08:31:09]OFD Sender: No OFD packet to send [08:31:14]OFD Sender: No OFD packet to send [08:31:19]OFD Sender: No OFD packet to send [08:31:24]OFD Sender: No OFD packet to send [08:31:29]OFD Sender: No OFD packet to send [08:31:34]OFD Sender: No OFD packet to send [08:31:39]OFD Sender: No OFD packet to send [08:31:44]OFD Sender: No OFD packet to send [08:31:49]OFD Sender: No OFD packet to send [08:31:54]OFD Sender: No OFD packet to send [08:31:59]OFD Sender: No OFD packet to send [08:32:04]OFD Sender: No OFD packet to send [08:32:09]OFD Sender: No OFD packet to send [08:32:14]OFD Sender: No OFD packet to send [08:32:19]OFD Sender: No OFD packet to send [08:32:24]OFD Sender: No OFD packet to send [08:32:29]OFD Sender: No OFD packet to send [08:32:34]accept exits with 7 [08:32:34]New connection [08:32:34]New thread 3067084132 created [08:32:34]Thread 3067227492 joined [08:32:34]Waiting for new connection... [08:32:34] Sock 7.Parse request [08:32:34]Sock 7.Check first char [08:32:34]Sock 7.First char is OK [08:32:34]request: POST /json_proto HTTP/1.0 [08:32:34]Method: POST [08:32:34]URL: /json_proto [08:32:34]Method is POST - this is cgi request [08:32:34]url: /json_proto [08:32:34]query_string will be loaded in cgi processing [08:32:34]execute_cgi json_proto POST (null) [08:32:34]execute_cgi path=json_proto method=POST [08:32:34]POST find Content-Length [08:32:34]Host: 172.17.36.132:8080 [08:32:34]Content-Length: 687 [08:32:34]Content-Type: application/json [08:32:34] [08:32:34]POST finish read [08:32:34]Found Content-Length = 687 [08:32:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706632", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:32:34]execute_script... [08:32: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)706632", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:32:34]POST & json_proto [08:32:34]process_json_proto [08:32:34]json parsed OK: [08:32:34]protocol is kg_v1.0 [08:32:34]action value=close_receipt [08:32:34]process_action close_receipt [08:32:34]cmd_close_receipt [08:32:34]MH_GetDate [08:32:34]Write to MH i2c: F0 00 00 27 11 27 [08:32:34]Write i2c OK [08:32:34]MH_I2C_Read... [08:32:34]Read from MH i2c: F0 [08:32:34]MH_I2C_Read... [08:32:34]Read from MH i2c: F0 09 00 [08:32:34]MH_I2C_Read... [08:32:34]Read from MH i2c: F0 09 00 27 11 00 25 D1 5E 66 B2 22 B0 64 D2 [08:32:34]GetLastDocTimeStamp 1717489079 [08:32:34]current date 1717489957 [08:32:34]FM_GetShiftState [08:32:34]SAM_PROTO_GetShiftState [08:32:34]wFMCommunicate request_size=4 [08:32:34]MH_SAM_APDU [08:32:34]CAPDU: 80 13 01 00 [08:32:34]Write to MH i2c: E2 08 00 28 11 80 13 01 00 00 00 00 00 B6 [08:32:34]OFD Sender: No OFD packet to send [08:32:34]Write i2c OK [08:32:34]MH_I2C_Read... [08:32:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:32:34]Read from MH i2c: E2 [08:32:34]MH_I2C_Read... [08:32:34]Read from MH i2c: E2 0E 00 [08:32:34]MH_I2C_Read... [08:32:34]Read from MH i2c: E2 0E 00 28 11 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 52 [08:32:34]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [08:32:34]wFMCommunicate OK [08:32:34]SAM_PROTO_GetShiftState done [08:32:34]FM_GetShiftState done [08:32:34]opened in 1717460590 [08:32:34]opened+sec_in_day 1717546990 [08:32:34]quantity*price = 100018 [08:32:34]sum+1 = 100020 [08:32:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 14 04.06.2024 08:32 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68516 ФПД: 99678274385938 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T083237&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68516&fm=99678274385938&tin=02508201610067®Number=0000000000098096&sum=100000 [08:32:35]StoreToDocumentArchive [08:32:35]shift 325 fd 68516 [08:32:35]save to /storage/0325/doc_00068516 [08:32:35]save last doc name /storage/0325/doc_00068516 to /storage/kkm_last_doc_name [08:32:35]save OK [08:32:35]Clear old archive folders... [08:32:35]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:32:35]tlvbuf is B6F985C0 [08:32:35]SAM_PROTO_ClearQueue [08:32:35]wFMCommunicate request_size=4 [08:32:35]MH_SAM_APDU [08:32:35]CAPDU: 80 09 00 00 [08:32:35]Write to MH i2c: E2 08 00 35 11 80 09 00 00 00 00 00 00 B8 [08:32:35]Write i2c OK [08:32:35]MH_I2C_Read... [08:32:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:32:35]Read from MH i2c: E2 [08:32:35]MH_I2C_Read... [08:32:35]Read from MH i2c: E2 03 00 [08:32:35]MH_I2C_Read... [08:32:35]Read from MH i2c: E2 03 00 35 11 00 90 00 BA [08:32:35]RAPDU: 90 00 [08:32:35]wFMCommunicate OK [08:32:35]SAM_PROTO_ClearQueue done [08:32:35]KKMCreateOFDPacket [08:32:35]OFDProtocolAddRootSTLVToBuf [08:32:35]FM_MakeSignedData [08:32:35]FM_MakeSignedData [08:32:35]SAM_PROTO_SignData [08:32:35]wFMCommunicate request_size=4 [08:32:35]MH_SAM_APDU [08:32:35]CAPDU: 80 0D 01 02 [08:32:35]Write to MH i2c: E2 08 00 36 11 80 0D 01 02 00 00 00 00 C0 [08:32:35]Write i2c OK [08:32:35]MH_I2C_Read... [08:32:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:32:35]Read from MH i2c: E2 [08:32:35]MH_I2C_Read... [08:32:35]Read from MH i2c: E2 03 00 [08:32:35]MH_I2C_Read... [08:32:35]Read from MH i2c: E2 03 00 36 11 00 90 00 BB [08:32:35]RAPDU: 90 00 [08:32:35]wFMCommunicate OK [08:32:35]wFMCommunicate request_size=255 [08:32:35]MH_SAM_APDU [08:32:35]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 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 0E 00 00 00 F4 03 04 00 25 D1 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 A4 0B 01 00 35 04 06 00 [08:32:35]Write to MH i2c: E2 02 01 37 11 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 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 0E 00 00 00 F4 03 04 00 25 D1 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 A4 0B 01 00 35 04 06 00 00 00 CA [08:32:35]Write i2c OK [08:32:35]MH_I2C_Read... [08:32:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:32:35]Read from MH i2c: E2 [08:32:35]MH_I2C_Read... [08:32:35]Read from MH i2c: E2 03 00 [08:32:35]MH_I2C_Read... [08:32:35]Read from MH i2c: E2 03 00 37 11 00 90 00 BC [08:32:35]RAPDU: 90 00 [08:32:35]wFMCommunicate OK [08:32:35]wFMCommunicate request_size=11 [08:32:35]MH_SAM_APDU [08:32:35]CAPDU: 80 0D 02 02 06 5A A8 28 22 F8 12 [08:32:35]Write to MH i2c: E2 0E 00 38 11 80 0D 02 02 06 00 5A A8 28 22 F8 12 00 00 25 [08:32:35]Write i2c OK [08:32:35]MH_I2C_Read... [08:32:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:32:36]Read from MH i2c: E2 [08:32:36]MH_I2C_Read... [08:32:36]Read from MH i2c: E2 03 00 [08:32:36]MH_I2C_Read... [08:32:36]Read from MH i2c: E2 03 00 38 11 00 90 00 BD [08:32:36]RAPDU: 90 00 [08:32:36]wFMCommunicate OK [08:32:36]wFMCommunicate request_size=4 [08:32:36]MH_SAM_APDU [08:32:36]CAPDU: 80 0D 03 02 [08:32:36]Write to MH i2c: E2 08 00 39 11 80 0D 03 02 00 00 00 00 C5 [08:32:36]Write i2c OK [08:32:36]MH_I2C_Read... [08:32:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:32:36]Read from MH i2c: E2 [08:32:36]MH_I2C_Read... [08:32:36]Read from MH i2c: E2 0B 00 [08:32:36]MH_I2C_Read... [08:32:36]Read from MH i2c: E2 0B 00 39 11 00 F7 53 9A 12 09 15 50 65 90 00 8F [08:32:36]RAPDU: F7 53 9A 12 09 15 50 65 90 00 [08:32:36]wFMCommunicate OK [08:32:36]SAM_PROTO_SignData done [08:32:36]FM_MakeSignedData done [08:32:36]CreateOFDProtocolMessage [08:32:36]wFMCommunicate request_size=4 [08:32:36]MH_SAM_APDU [08:32:36]CAPDU: 80 11 00 00 [08:32:36]Write to MH i2c: E2 08 00 3A 11 80 11 00 00 00 00 00 00 C5 [08:32:36]Write i2c OK [08:32:36]MH_I2C_Read... [08:32:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:32:36]Read from MH i2c: E2 [08:32:36]MH_I2C_Read... [08:32:36]Read from MH i2c: E2 17 00 [08:32:36]MH_I2C_Read... [08:32:36]Read from MH i2c: E2 17 00 3A 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 10 [08:32:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [08:32:36]wFMCommunicate OK [08:32:36]CreateOFDProtocolMessage done [08:32:36]OFDSenderStorePacket 68516 [08:32:36]StoreOFDPacket docnum=68516 [08:32:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 85 AB 08 01 D5 08 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 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 0E 00 00 00 F4 03 04 00 25 D1 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 A4 0B 01 00 35 04 06 00 5A A8 28 22 F8 12 F7 53 9A 12 09 15 50 65 [08:32:36]CheckFolder [08:32:36]dirname=/storage/ofd_packets [08:32:36]CheckFolder done [08:32:36]ProducePacketName [08:32:36]name=ofd_packets/00068516 [08:32:36]NVStorageSaveData ofd_packets/00068516 [08:32:36]File name is /storage/ofd_packets/00068516 [08:32:36]Write 302 bytes [08:32:36]NVStorageSaveData done [08:32:36]OFDSenderStorePacket done [08:32:36]KKMCreateOFDPacket done [08:32:36]NVStorageSaveData kkm_last_timestamp [08:32:36]File name is /storage/kkm_last_timestamp [08:32:36]Write 4 bytes [08:32:36]NVStorageSaveData done [08:32:36]ExternCall_PrintAddStr [08:32:36]wPrintStart [08:32:36]Write to MH i2c: 01 00 00 3B 11 4C [08:32:36]Write i2c OK [08:32:36]MH_I2C_Read... [08:32:36]Read from MH i2c: 01 [08:32:36]MH_I2C_Read... [08:32:36]Read from MH i2c: 01 07 00 [08:32:36]MH_I2C_Read... [08:32:36]Read from MH i2c: 01 07 00 3B 11 00 00 00 00 00 FF 0F 61 [08:32:36]RasterBufferAndPrint [08:32:36]line Счет N : (1)706632 [08:32:36]line ИНН: 02508201610067 [08:32:36]line Контрольно-Кассовый Чек [08:32:36]line ПРОДАЖА [08:32:36]line ТРК (МРК, ГНК) : 11 [08:32:36]line Товар: 2710194210 [08:32:36]line ДТ(л)-К-4 [08:32:36]line 13.720 * 72.90 [08:32:36]line = 1000.19 [08:32:36]line НДС 12% НСП 1% [08:32:36]line > о реализуемом товаре [08:32:36]line ОКРУГЛЕНИЕ: -0.19 [08:32:36]line ИТОГО: 1000.00 [08:32:36]line Внесено: 1000.00 [08:32:36]line СДАЧА: 0.00 [08:32:36]line НСП 1% : 8.85 [08:32:36]line НДС 12% : 106.21 [08:32:36]line Наличными: 1000.00 [08:32:36]line Безнал.: 0.00 [08:32:36]line Место: АЗС № 62 "Партнер Нефть" [08:32:36]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [08:32:36]line СНО: Общий режим [08:32:36]line Чек 14 04.06.2024 08:32 [08:32:36]line Смена: 325 ФФД: 1.0 [08:32:36]line ЗНМ: 0300000181 [08:32:36]line РНМ: 0000000000098096 [08:32:36]line Версия ККМ: 001 [08:32:36]line ФМ: 0000000000965400 [08:32:36]line ФД: 68516 [08:32:36]line ФПД: 99678274385938 [08:32:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T083237&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68516&fm=99678274385938&tin=02508201610067®Number=0000000000098096&sum=100000 [08:32:36]OFD Sender: Processing packet 68516 [packets to send 26, broken 25] [08:32:36]ProducePacketName [08:32:36]name=ofd_packets/00068516 [08:32:36]OFD Sender: To server: pG, [08:32:36]CommunicateWithHost lk.salyk.kg:30040 [08:32:36]ConnectInit lk.salyk.kg [08:32:36]written 0, free lines is 4095 [08:32:36]Connected sock=10 [08:32:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 85 AB 08 01 D5 08 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 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 0E 00 00 00 F4 03 04 00 25 D1 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 A4 0B 01 00 35 04 06 00 5A A8 28 22 F8 12 F7 53 9A 12 09 15 50 65 [08:32:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 2B B9 47 00 D7 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 39 36 35 34 30 30 10 04 04 00 A4 0B 01 00 F4 03 04 00 1F 78 5E 66 B6 04 01 00 00 B6 B3 A6 AC 53 99 88 32 [08:32:36]CommunicateWithHost err = 0 [08:32:36]CheckOFDResponse [08:32:36]1017 (14) - 77093643461234 [08:32:36]1041 (16) - 0000000000965400 [08:32:36]1040 (4) - 68516 [08:32:36]1012 (4) - 04.06.2024 02:12 [08:32:36]1206 (1) - 0 [08:32:36]OFD Sender: Remove packet 68516 [08:32:36]ProducePacketName [08:32:36]name=ofd_packets/00068516 [08:32:36]NVStorageDeleteData [08:32:36]Write to MH i2c: 01 00 00 66 11 77 [08:32:36]Write i2c OK [08:32:36]MH_I2C_Read... [08:32:36]Read from MH i2c: 01 [08:32:36]MH_I2C_Read... [08:32:36]Read from MH i2c: 01 07 00 [08:32:36]MH_I2C_Read... [08:32:36]Read from MH i2c: 01 07 00 66 11 00 00 00 00 00 D9 0C 63 [08:32:36]RasterBufferAndPrint [08:32:36]line [08:32:36]line [08:32:36]line [08:32:36]line [08:32:36]line [08:32:36]written 0, free lines is 3295 [08:32:36]MH_Cut [08:32:36]Write to MH i2c: D1 01 00 6D 11 01 50 [08:32:36]Write i2c OK [08:32:36]MH_I2C_Read... [08:32:36]Read from MH i2c: D1 [08:32:36]MH_I2C_Read... [08:32:36]Read from MH i2c: D1 01 00 [08:32:36]MH_I2C_Read... [08:32:36]Read from MH i2c: D1 01 00 6D 11 00 4F [08:32:36]Write to MH i2c: 01 00 00 6E 11 7F [08:32:36]Write i2c OK [08:32:36]MH_I2C_Read... [08:32:37]OFD Sender: No OFD packet to send [08:32:37]*** Cut start [08:32:37]*** Partial cut [08:32:37]*** CUTSNS_PIN = 1 [08:32:37]*** CUTSNS_PIN = 0 [08:32:38]*** Brake cut motor [08:32:38]Read from MH i2c: 01 [08:32:38]MH_I2C_Read... [08:32:38]*** Stop cut motor [08:32:38]*** Cut end [08:32:38]Read from MH i2c: 01 07 00 [08:32:38]MH_I2C_Read... [08:32:38]Read from MH i2c: 01 07 00 6E 11 00 00 00 00 00 FF 0F 94 [08:32:38]process_action close_receipt done [08:32:38]requested_data is exist [08:32:38]produce_requested_data [08:32:38]requested_item fm.sn is exist - process it [08:32:38]wFMCommunicate request_size=4 [08:32:38]MH_SAM_APDU [08:32:38]CAPDU: 80 11 00 00 [08:32:38]Write to MH i2c: E2 08 00 6F 11 80 11 00 00 00 00 00 00 FA [08:32:38]Write i2c OK [08:32:38]MH_I2C_Read... [08:32:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:32:38]Read from MH i2c: E2 [08:32:38]MH_I2C_Read... [08:32:38]Read from MH i2c: E2 17 00 [08:32:38]MH_I2C_Read... [08:32:38]Read from MH i2c: E2 17 00 6F 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 45 [08:32:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [08:32:38]wFMCommunicate OK [08:32:38]requested_item fd.num is exist - process it [08:32:38]SAM_PROTO_GetFieldsCounters [08:32:38]wFMCommunicate request_size=4 [08:32:38]MH_SAM_APDU [08:32:38]CAPDU: 80 13 00 00 [08:32:38]Write to MH i2c: E2 08 00 70 11 80 13 00 00 00 00 00 00 FD [08:32:38]Write i2c OK [08:32:38]MH_I2C_Read... [08:32:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:32:38]Read from MH i2c: E2 [08:32:38]MH_I2C_Read... [08:32:38]Read from MH i2c: E2 62 00 [08:32:38]MH_I2C_Read... [08:32:38]Read from MH i2c: E2 62 00 70 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 A4 0B 01 00 0E 04 04 00 45 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 3D [08:32:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 A4 0B 01 00 0E 04 04 00 45 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 [08:32:38]wFMCommunicate OK [08:32:38]SAM_PROTO_GetFieldsCounters done [08:32:38]requested_item shift.num is exist - process it [08:32:38]requested_item shift.opened is exist - process it [08:32:38]req_shift_opened [08:32:38]FM_GetShiftState [08:32:38]SAM_PROTO_GetShiftState [08:32:38]wFMCommunicate request_size=4 [08:32:38]MH_SAM_APDU [08:32:38]CAPDU: 80 13 01 00 [08:32:38]Write to MH i2c: E2 08 00 71 11 80 13 01 00 00 00 00 00 FF [08:32:38]Write i2c OK [08:32:38]MH_I2C_Read... [08:32:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:32:38]Read from MH i2c: E2 [08:32:38]MH_I2C_Read... [08:32:38]Read from MH i2c: E2 0E 00 [08:32:38]MH_I2C_Read... [08:32:38]Read from MH i2c: E2 0E 00 71 11 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 9B [08:32:38]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [08:32:38]wFMCommunicate OK [08:32:38]SAM_PROTO_GetShiftState done [08:32:38]FM_GetShiftState done [08:32:38]req_shift_opened done [08:32:38]requested_item shift.open_date is exist - process it [08:32:38]req_shift_open_date [08:32:38]req_shift_open_date done [08:32:38]produce_requested_data done [08:32:38]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68516,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [08:32:38]process_action_free close_receipt [08:32:38]json_value_free [08:32:38]json_value_free done [08:32:38]process_json_proto returns [08:32:38]Send response to host [08:32:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68516,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [08:32:38]free response buf [08:32:38]execute_script done [08:32:38]execute_script returns [08:32:38]free content buf [08:32:38]Sock 7.Close socket [08:32:38]Sock 7.Thread stoped [08:32:42]OFD Sender: No OFD packet to send [08:32:47]OFD Sender: No OFD packet to send [08:32:52]OFD Sender: No OFD packet to send [08:32:57]OFD Sender: No OFD packet to send [08:33:02]OFD Sender: No OFD packet to send [08:33:07]OFD Sender: No OFD packet to send [08:33:12]OFD Sender: No OFD packet to send [08:33:17]OFD Sender: No OFD packet to send [08:33:22]OFD Sender: No OFD packet to send [08:33:27]OFD Sender: No OFD packet to send [08:33:32]OFD Sender: No OFD packet to send [08:33:37]OFD Sender: No OFD packet to send [08:33:42]OFD Sender: No OFD packet to send [08:33:47]OFD Sender: No OFD packet to send [08:33:52]OFD Sender: No OFD packet to send [08:33:55]accept exits with 9 [08:33:55]New connection [08:33:55]New thread 3067227492 created [08:33:55]Thread 3067084132 joined [08:33:55]Waiting for new connection... [08:33:55] Sock 9.Parse request [08:33:55]Sock 9.Check first char [08:33:55]Sock 9.First char is OK [08:33:55]request: POST /json_proto HTTP/1.0 [08:33:55]Method: POST [08:33:55]URL: /json_proto [08:33:55]Method is POST - this is cgi request [08:33:55]url: /json_proto [08:33:55]query_string will be loaded in cgi processing [08:33:55]execute_cgi json_proto POST (null) [08:33:55]execute_cgi path=json_proto method=POST [08:33:55]POST find Content-Length [08:33:55]Host: 172.17.36.132:8080 [08:33:55]Content-Length: 1207 [08:33:55]Content-Type: application/json [08:33:55] [08:33:55]POST finish read [08:33:55]Found Content-Length = 1207 [08:33:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0418\u0441\u043C\u0430\u043D\u0430\u043B\u0438\u0435\u0432 \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)706633\u000A04.06.2024 08:11\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-4\u000A 20.000 x 66.90\u000A\u0418\u0422\u041E\u0413: 1338.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\u000A91344\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:33:55]execute_script... [08:33:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0418\u0441\u043C\u0430\u043D\u0430\u043B\u0438\u0435\u0432 \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)706633\u000A04.06.2024 08:11\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-4\u000A 20.000 x 66.90\u000A\u0418\u0422\u041E\u0413: 1338.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\u000A91344\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:33:55]POST & json_proto [08:33:55]process_json_proto [08:33:55]json parsed OK: [08:33:55]protocol is kg_v1.0 [08:33:55]action value=print_text [08:33:55]process_action print_text [08:33:55]cmd_print_text [08:33:55]ExternCall_PrintAddStr [08:33:55]wPrintStart [08:33:55]Write to MH i2c: 01 00 00 72 11 83 [08:33:55]Write i2c OK [08:33:55]MH_I2C_Read... [08:33:55]Read from MH i2c: 01 [08:33:55]MH_I2C_Read... [08:33:55]Read from MH i2c: 01 07 00 [08:33:55]MH_I2C_Read... [08:33:55]Read from MH i2c: 01 07 00 72 11 00 00 00 00 00 FF 0F 98 [08:33:55]RasterBufferAndPrint [08:33:55]line *****ТОВАРНЫЙ ЧЕК***** [08:33:55]line АЗС 62 [08:33:55]line Партнер нефть [08:33:55]line 02508201610067 [08:33:55]line Кассир : Исманалиев Д. [08:33:55]line Счет N : (1)706633 [08:33:55]line 04.06.2024 08:11 [08:33:55]line ПРОДАЖА [08:33:55]line ТРК (МРК, ГНК): 32 [08:33:55]line Вид ГСМ : 2710124130 [08:33:55]line Аи-92-К-4 [08:33:55]line 20.000 x 66.90 [08:33:55]line ИТОГ: 1338.00 [08:33:55]line Тип оплаты: Талоны: Топливная Карта [08:33:55]line 91344 [08:33:55]line ______________________ [08:33:55]line (подпись) [08:33:55]written 0, free lines is 4095 [08:33:56]Write to MH i2c: 01 00 00 86 11 97 [08:33:56]Write i2c OK [08:33:56]MH_I2C_Read... [08:33:56]Read from MH i2c: 01 [08:33:56]MH_I2C_Read... [08:33:56]Read from MH i2c: 01 07 00 [08:33:56]MH_I2C_Read... [08:33:56]Read from MH i2c: 01 07 00 86 11 00 00 00 00 00 13 0E BF [08:33:56]RasterBufferAndPrint [08:33:56]line [08:33:56]line [08:33:56]line [08:33:56]line [08:33:56]line [08:33:56]written 0, free lines is 3605 [08:33:56]MH_Cut [08:33:56]Write to MH i2c: D1 01 00 8D 11 01 70 [08:33:56]Write i2c OK [08:33:56]MH_I2C_Read... [08:33:56]Read from MH i2c: D1 [08:33:56]MH_I2C_Read... [08:33:56]Read from MH i2c: D1 01 00 [08:33:56]MH_I2C_Read... [08:33:56]Read from MH i2c: D1 01 00 8D 11 00 6F [08:33:56]Write to MH i2c: 01 00 00 8E 11 9F [08:33:56]Write i2c OK [08:33:56]MH_I2C_Read... [08:33:56]*** Cut start [08:33:56]*** Partial cut [08:33:56]*** CUTSNS_PIN = 1 [08:33:56]*** CUTSNS_PIN = 0 [08:33:56]*** Brake cut motor [08:33:57]Read from MH i2c: 01 [08:33:57]MH_I2C_Read... [08:33:57]Read from MH i2c: 01 07 00 [08:33:57]MH_I2C_Read... [08:33:57]*** Stop cut motor [08:33:57]*** Cut end [08:33:57]Read from MH i2c: 01 07 00 8E 11 00 00 00 00 00 FF 0F B4 [08:33:57]process_action print_text done [08:33:57]requested_data is exist [08:33:57]produce_requested_data [08:33:57]requested_item fm.sn is exist - process it [08:33:57]wFMCommunicate request_size=4 [08:33:57]MH_SAM_APDU [08:33:57]CAPDU: 80 11 00 00 [08:33:57]Write to MH i2c: E2 08 00 8F 11 80 11 00 00 00 00 00 00 1A [08:33:57]Write i2c OK [08:33:57]MH_I2C_Read... [08:33:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:33:57]Read from MH i2c: E2 [08:33:57]MH_I2C_Read... [08:33:57]Read from MH i2c: E2 17 00 [08:33:57]MH_I2C_Read... [08:33:57]Read from MH i2c: E2 17 00 8F 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 65 [08:33:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [08:33:57]wFMCommunicate OK [08:33:57]requested_item fd.num is exist - process it [08:33:57]SAM_PROTO_GetFieldsCounters [08:33:57]wFMCommunicate request_size=4 [08:33:57]MH_SAM_APDU [08:33:57]CAPDU: 80 13 00 00 [08:33:57]Write to MH i2c: E2 08 00 90 11 80 13 00 00 00 00 00 00 1D [08:33:57]Write i2c OK [08:33:57]MH_I2C_Read... [08:33:57]OFD Sender: No OFD packet to send [08:33:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:33:57]Read from MH i2c: E2 [08:33:57]MH_I2C_Read... [08:33:57]Read from MH i2c: E2 62 00 [08:33:57]MH_I2C_Read... [08:33:57]Read from MH i2c: E2 62 00 90 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 A4 0B 01 00 0E 04 04 00 45 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 5D [08:33:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 A4 0B 01 00 0E 04 04 00 45 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 [08:33:57]wFMCommunicate OK [08:33:57]SAM_PROTO_GetFieldsCounters done [08:33:57]requested_item shift.num is exist - process it [08:33:57]requested_item shift.opened is exist - process it [08:33:57]req_shift_opened [08:33:57]FM_GetShiftState [08:33:57]SAM_PROTO_GetShiftState [08:33:57]wFMCommunicate request_size=4 [08:33:57]MH_SAM_APDU [08:33:57]CAPDU: 80 13 01 00 [08:33:57]Write to MH i2c: E2 08 00 91 11 80 13 01 00 00 00 00 00 1F [08:33:57]Write i2c OK [08:33:57]MH_I2C_Read... [08:33:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:33:57]Read from MH i2c: E2 [08:33:57]MH_I2C_Read... [08:33:57]Read from MH i2c: E2 0E 00 [08:33:57]MH_I2C_Read... [08:33:57]Read from MH i2c: E2 0E 00 91 11 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 BB [08:33:57]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [08:33:57]wFMCommunicate OK [08:33:57]SAM_PROTO_GetShiftState done [08:33:57]FM_GetShiftState done [08:33:57]req_shift_opened done [08:33:57]requested_item shift.open_date is exist - process it [08:33:57]req_shift_open_date [08:33:57]req_shift_open_date done [08:33:57]produce_requested_data done [08:33:57]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68516,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [08:33:57]process_action_free print_text [08:33:57]json_value_free [08:33:57]json_value_free done [08:33:57]process_json_proto returns [08:33:57]Send response to host [08:33:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68516,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [08:33:57]free response buf [08:33:57]execute_script done [08:33:57]execute_script returns [08:33:57]free content buf [08:33:57]Sock 9.Close socket [08:33:57]Sock 9.Thread stoped [08:34:02]OFD Sender: No OFD packet to send [08:34:07]OFD Sender: No OFD packet to send [08:34:12]OFD Sender: No OFD packet to send [08:34:17]OFD Sender: No OFD packet to send [08:34:22]OFD Sender: No OFD packet to send [08:34:27]OFD Sender: No OFD packet to send [08:34:32]OFD Sender: No OFD packet to send [08:34:37]OFD Sender: No OFD packet to send [08:34:42]OFD Sender: No OFD packet to send [08:34:47]OFD Sender: No OFD packet to send [08:34:52]OFD Sender: No OFD packet to send [08:34:57]OFD Sender: No OFD packet to send [08:35:02]OFD Sender: No OFD packet to send [08:35:07]OFD Sender: No OFD packet to send [08:35:12]OFD Sender: No OFD packet to send [08:35:17]OFD Sender: No OFD packet to send [08:35:22]OFD Sender: No OFD packet to send [08:35:27]OFD Sender: No OFD packet to send [08:35:32]OFD Sender: No OFD packet to send [08:35:37]OFD Sender: No OFD packet to send [08:35:42]OFD Sender: No OFD packet to send [08:35:47]OFD Sender: No OFD packet to send [08:35:52]OFD Sender: No OFD packet to send [08:35:57]OFD Sender: No OFD packet to send [08:36:02]OFD Sender: No OFD packet to send [08:36:07]OFD Sender: No OFD packet to send [08:36:12]OFD Sender: No OFD packet to send [08:36:17]OFD Sender: No OFD packet to send [08:36:22]OFD Sender: No OFD packet to send [08:36:27]OFD Sender: No OFD packet to send [08:36:32]OFD Sender: No OFD packet to send [08:36:37]OFD Sender: No OFD packet to send [08:36:42]OFD Sender: No OFD packet to send [08:36:47]OFD Sender: No OFD packet to send [08:36:52]OFD Sender: No OFD packet to send [08:36:57]OFD Sender: No OFD packet to send [08:37:02]OFD Sender: No OFD packet to send [08:37:07]OFD Sender: No OFD packet to send [08:37:12]OFD Sender: No OFD packet to send [08:37:17]OFD Sender: No OFD packet to send [08:37:22]OFD Sender: No OFD packet to send [08:37:27]OFD Sender: No OFD packet to send [08:37:32]OFD Sender: No OFD packet to send [08:37:37]OFD Sender: No OFD packet to send [08:37:42]OFD Sender: No OFD packet to send [08:37:47]OFD Sender: No OFD packet to send [08:37:52]OFD Sender: No OFD packet to send [08:37:57]OFD Sender: No OFD packet to send [08:38:02]OFD Sender: No OFD packet to send [08:38:07]OFD Sender: No OFD packet to send [08:38:12]OFD Sender: No OFD packet to send [08:38:17]OFD Sender: No OFD packet to send [08:38:22]OFD Sender: No OFD packet to send [08:38:27]OFD Sender: No OFD packet to send [08:38:32]OFD Sender: No OFD packet to send [08:38:37]OFD Sender: No OFD packet to send [08:38:42]OFD Sender: No OFD packet to send [08:38:47]OFD Sender: No OFD packet to send [08:38:52]OFD Sender: No OFD packet to send [08:38:57]OFD Sender: No OFD packet to send [08:39:02]OFD Sender: No OFD packet to send [08:39:07]OFD Sender: No OFD packet to send [08:39:12]OFD Sender: No OFD packet to send [08:39:17]OFD Sender: No OFD packet to send [08:39:22]OFD Sender: No OFD packet to send [08:39:27]OFD Sender: No OFD packet to send [08:39:32]OFD Sender: No OFD packet to send [08:39:37]OFD Sender: No OFD packet to send [08:39:42]OFD Sender: No OFD packet to send [08:39:47]OFD Sender: No OFD packet to send [08:39:52]OFD Sender: No OFD packet to send [08:39:57]OFD Sender: No OFD packet to send [08:40:02]OFD Sender: No OFD packet to send [08:40:07]OFD Sender: No OFD packet to send [08:40:12]OFD Sender: No OFD packet to send [08:40:17]OFD Sender: No OFD packet to send [08:40:22]OFD Sender: No OFD packet to send [08:40:27]OFD Sender: No OFD packet to send [08:40:32]OFD Sender: No OFD packet to send [08:40:37]OFD Sender: No OFD packet to send [08:40:42]OFD Sender: No OFD packet to send [08:40:47]OFD Sender: No OFD packet to send [08:40:52]OFD Sender: No OFD packet to send [08:40:57]OFD Sender: No OFD packet to send [08:41:02]OFD Sender: No OFD packet to send [08:41:07]OFD Sender: No OFD packet to send [08:41:12]OFD Sender: No OFD packet to send [08:41:17]OFD Sender: No OFD packet to send [08:41:22]OFD Sender: No OFD packet to send [08:41:27]OFD Sender: No OFD packet to send [08:41:32]OFD Sender: No OFD packet to send [08:41:37]OFD Sender: No OFD packet to send [08:41:42]OFD Sender: No OFD packet to send [08:41:47]OFD Sender: No OFD packet to send [08:41:52]OFD Sender: No OFD packet to send [08:41:57]OFD Sender: No OFD packet to send [08:42:02]OFD Sender: No OFD packet to send [08:42:07]OFD Sender: No OFD packet to send [08:42:12]OFD Sender: No OFD packet to send [08:42:17]OFD Sender: No OFD packet to send [08:42:22]OFD Sender: No OFD packet to send [08:42:27]OFD Sender: No OFD packet to send [08:42:32]OFD Sender: No OFD packet to send [08:42:37]OFD Sender: No OFD packet to send [08:42:42]OFD Sender: No OFD packet to send [08:42:47]OFD Sender: No OFD packet to send [08:42:52]OFD Sender: No OFD packet to send [08:42:57]OFD Sender: No OFD packet to send [08:43:02]OFD Sender: No OFD packet to send [08:43:07]OFD Sender: No OFD packet to send [08:43:12]OFD Sender: No OFD packet to send [08:43:17]OFD Sender: No OFD packet to send [08:43:22]OFD Sender: No OFD packet to send [08:43:27]OFD Sender: No OFD packet to send [08:43:32]OFD Sender: No OFD packet to send [08:43:37]OFD Sender: No OFD packet to send [08:43:42]OFD Sender: No OFD packet to send [08:43:47]OFD Sender: No OFD packet to send [08:43:52]OFD Sender: No OFD packet to send [08:43:57]OFD Sender: No OFD packet to send [08:44:02]OFD Sender: No OFD packet to send [08:44:07]OFD Sender: No OFD packet to send [08:44:12]OFD Sender: No OFD packet to send [08:44:17]OFD Sender: No OFD packet to send [08:44:22]OFD Sender: No OFD packet to send [08:44:27]OFD Sender: No OFD packet to send [08:44:32]OFD Sender: No OFD packet to send [08:44:37]OFD Sender: No OFD packet to send [08:44:42]OFD Sender: No OFD packet to send [08:44:47]OFD Sender: No OFD packet to send [08:44:52]OFD Sender: No OFD packet to send [08:44:57]OFD Sender: No OFD packet to send [08:45:02]OFD Sender: No OFD packet to send [08:45:07]OFD Sender: No OFD packet to send [08:45:12]OFD Sender: No OFD packet to send [08:45:17]OFD Sender: No OFD packet to send [08:45:22]OFD Sender: No OFD packet to send [08:45:27]OFD Sender: No OFD packet to send [08:45:32]OFD Sender: No OFD packet to send [08:45:37]OFD Sender: No OFD packet to send [08:45:42]OFD Sender: No OFD packet to send [08:45:47]OFD Sender: No OFD packet to send [08:45:52]OFD Sender: No OFD packet to send [08:45:57]OFD Sender: No OFD packet to send [08:46:02]OFD Sender: No OFD packet to send [08:46:07]OFD Sender: No OFD packet to send [08:46:12]OFD Sender: No OFD packet to send [08:46:18]OFD Sender: No OFD packet to send [08:46:23]OFD Sender: No OFD packet to send [08:46:28]OFD Sender: No OFD packet to send [08:46:33]OFD Sender: No OFD packet to send [08:46:35]accept exits with 7 [08:46:35]New connection [08:46:35]New thread 3067084132 created [08:46:35]Thread 3067227492 joined [08:46:35]Waiting for new connection... [08:46:35] Sock 7.Parse request [08:46:35]Sock 7.Check first char [08:46:35]Sock 7.First char is OK [08:46:35]request: POST /json_proto HTTP/1.0 [08:46:35]Method: POST [08:46:35]URL: /json_proto [08:46:35]Method is POST - this is cgi request [08:46:35]url: /json_proto [08:46:35]query_string will be loaded in cgi processing [08:46:35]execute_cgi json_proto POST (null) [08:46:35]execute_cgi path=json_proto method=POST [08:46:35]POST find Content-Length [08:46:35]Host: 172.17.36.132:8080 [08:46:35]Content-Length: 677 [08:46:35]Content-Type: application/json [08:46:35] [08:46:35]POST finish read [08:46:35]Found Content-Length = 677 [08:46:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706634", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:46:35]execute_script... [08:46: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)706634", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:46:35]POST & json_proto [08:46:35]process_json_proto [08:46:35]json parsed OK: [08:46:35]protocol is kg_v1.0 [08:46:35]action value=close_receipt [08:46:35]process_action close_receipt [08:46:35]cmd_close_receipt [08:46:35]MH_GetDate [08:46:35]Write to MH i2c: F0 00 00 92 11 92 [08:46:35]Write i2c OK [08:46:35]MH_I2C_Read... [08:46:35]Read from MH i2c: F0 [08:46:35]MH_I2C_Read... [08:46:35]Read from MH i2c: F0 09 00 [08:46:35]MH_I2C_Read... [08:46:35]Read from MH i2c: F0 09 00 92 11 00 6F D4 5E 66 B2 22 B0 64 8A [08:46:35]GetLastDocTimeStamp 1717489957 [08:46:35]current date 1717490799 [08:46:35]FM_GetShiftState [08:46:35]SAM_PROTO_GetShiftState [08:46:35]wFMCommunicate request_size=4 [08:46:35]MH_SAM_APDU [08:46:35]CAPDU: 80 13 01 00 [08:46:35]Write to MH i2c: E2 08 00 93 11 80 13 01 00 00 00 00 00 21 [08:46:35]Write i2c OK [08:46:35]MH_I2C_Read... [08:46:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:46:35]Read from MH i2c: E2 [08:46:35]MH_I2C_Read... [08:46:35]Read from MH i2c: E2 0E 00 [08:46:35]MH_I2C_Read... [08:46:35]Read from MH i2c: E2 0E 00 93 11 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 BD [08:46:35]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [08:46:35]wFMCommunicate OK [08:46:35]SAM_PROTO_GetShiftState done [08:46:35]FM_GetShiftState done [08:46:35]opened in 1717460590 [08:46:35]opened+sec_in_day 1717546990 [08:46:35]quantity*price = 60009 [08:46:35]sum+1 = 60010 [08:46:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 15 04.06.2024 08:46 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68517 ФПД: 274246426298126 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T084639&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68517&fm=274246426298126&tin=02508201610067®Number=0000000000098096&sum=60000 [08:46:36]StoreToDocumentArchive [08:46:36]shift 325 fd 68517 [08:46:36]save to /storage/0325/doc_00068517 [08:46:36]save last doc name /storage/0325/doc_00068517 to /storage/kkm_last_doc_name [08:46:36]save OK [08:46:36]Clear old archive folders... [08:46:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:46:36]tlvbuf is B6F9B950 [08:46:36]SAM_PROTO_ClearQueue [08:46:36]wFMCommunicate request_size=4 [08:46:36]MH_SAM_APDU [08:46:36]CAPDU: 80 09 00 00 [08:46:36]Write to MH i2c: E2 08 00 A0 11 80 09 00 00 00 00 00 00 23 [08:46:36]Write i2c OK [08:46:36]MH_I2C_Read... [08:46:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:46:36]Read from MH i2c: E2 [08:46:36]MH_I2C_Read... [08:46:36]Read from MH i2c: E2 03 00 [08:46:36]MH_I2C_Read... [08:46:36]Read from MH i2c: E2 03 00 A0 11 00 90 00 25 [08:46:36]RAPDU: 90 00 [08:46:36]wFMCommunicate OK [08:46:36]SAM_PROTO_ClearQueue done [08:46:36]KKMCreateOFDPacket [08:46:36]OFDProtocolAddRootSTLVToBuf [08:46:36]FM_MakeSignedData [08:46:36]FM_MakeSignedData [08:46:36]SAM_PROTO_SignData [08:46:36]wFMCommunicate request_size=4 [08:46:36]MH_SAM_APDU [08:46:36]CAPDU: 80 0D 01 02 [08:46:36]Write to MH i2c: E2 08 00 A1 11 80 0D 01 02 00 00 00 00 2B [08:46:36]Write i2c OK [08:46:36]MH_I2C_Read... [08:46:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:46:36]Read from MH i2c: E2 [08:46:36]MH_I2C_Read... [08:46:36]Read from MH i2c: E2 03 00 [08:46:36]MH_I2C_Read... [08:46:36]Read from MH i2c: E2 03 00 A1 11 00 90 00 26 [08:46:36]RAPDU: 90 00 [08:46:36]wFMCommunicate OK [08:46:36]wFMCommunicate request_size=255 [08:46:36]MH_SAM_APDU [08:46: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 34 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 6F D4 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 A5 0B 01 00 35 04 06 00 F9 [08:46:36]Write to MH i2c: E2 02 01 A2 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 34 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 6F D4 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 A5 0B 01 00 35 04 06 00 F9 00 00 9B [08:46:36]Write i2c OK [08:46:36]MH_I2C_Read... [08:46:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:46:37]Read from MH i2c: E2 [08:46:37]MH_I2C_Read... [08:46:37]Read from MH i2c: E2 03 00 [08:46:37]MH_I2C_Read... [08:46:37]Read from MH i2c: E2 03 00 A2 11 00 90 00 27 [08:46:37]RAPDU: 90 00 [08:46:37]wFMCommunicate OK [08:46:37]wFMCommunicate request_size=10 [08:46:37]MH_SAM_APDU [08:46:37]CAPDU: 80 0D 02 02 05 6C F8 D2 07 0E [08:46:37]Write to MH i2c: E2 0D 00 A3 11 80 0D 02 02 05 00 6C F8 D2 07 0E 00 00 83 [08:46:37]Write i2c OK [08:46:37]MH_I2C_Read... [08:46:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:46:37]Read from MH i2c: E2 [08:46:37]MH_I2C_Read... [08:46:37]Read from MH i2c: E2 03 00 [08:46:37]MH_I2C_Read... [08:46:37]Read from MH i2c: E2 03 00 A3 11 00 90 00 28 [08:46:37]RAPDU: 90 00 [08:46:37]wFMCommunicate OK [08:46:37]wFMCommunicate request_size=4 [08:46:37]MH_SAM_APDU [08:46:37]CAPDU: 80 0D 03 02 [08:46:37]Write to MH i2c: E2 08 00 A4 11 80 0D 03 02 00 00 00 00 30 [08:46:37]Write i2c OK [08:46:37]MH_I2C_Read... [08:46:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:46:37]Read from MH i2c: E2 [08:46:37]MH_I2C_Read... [08:46:37]Read from MH i2c: E2 0B 00 [08:46:37]MH_I2C_Read... [08:46:37]Read from MH i2c: E2 0B 00 A4 11 00 72 0A 5E E2 B5 5E 88 A7 90 00 2F [08:46:37]RAPDU: 72 0A 5E E2 B5 5E 88 A7 90 00 [08:46:37]wFMCommunicate OK [08:46:37]SAM_PROTO_SignData done [08:46:37]FM_MakeSignedData done [08:46:37]CreateOFDProtocolMessage [08:46:37]wFMCommunicate request_size=4 [08:46:37]MH_SAM_APDU [08:46:37]CAPDU: 80 11 00 00 [08:46:37]Write to MH i2c: E2 08 00 A5 11 80 11 00 00 00 00 00 00 30 [08:46:37]Write i2c OK [08:46:37]MH_I2C_Read... [08:46:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:46:37]Read from MH i2c: E2 [08:46:37]MH_I2C_Read... [08:46:37]Read from MH i2c: E2 17 00 [08:46:37]MH_I2C_Read... [08:46:37]Read from MH i2c: E2 17 00 A5 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 7B [08:46:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [08:46:37]wFMCommunicate OK [08:46:37]CreateOFDProtocolMessage done [08:46:37]OFDSenderStorePacket 68517 [08:46:37]StoreOFDPacket docnum=68517 [08:46:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 62 24 07 01 78 6E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 6F D4 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 A5 0B 01 00 35 04 06 00 F9 6C F8 D2 07 0E 72 0A 5E E2 B5 5E 88 A7 [08:46:37]CheckFolder [08:46:37]dirname=/storage/ofd_packets [08:46:37]CheckFolder done [08:46:37]ProducePacketName [08:46:37]name=ofd_packets/00068517 [08:46:37]NVStorageSaveData ofd_packets/00068517 [08:46:37]File name is /storage/ofd_packets/00068517 [08:46:37]Write 301 bytes [08:46:37]NVStorageSaveData done [08:46:37]OFDSenderStorePacket done [08:46:37]KKMCreateOFDPacket done [08:46:37]NVStorageSaveData kkm_last_timestamp [08:46:37]File name is /storage/kkm_last_timestamp [08:46:37]Write 4 bytes [08:46:37]NVStorageSaveData done [08:46:37]ExternCall_PrintAddStr [08:46:37]wPrintStart [08:46:37]Write to MH i2c: 01 00 00 A6 11 B7 [08:46:37]Write i2c OK [08:46:37]MH_I2C_Read... [08:46:37]Read from MH i2c: 01 [08:46:37]MH_I2C_Read... [08:46:37]Read from MH i2c: 01 07 00 [08:46:37]MH_I2C_Read... [08:46:37]Read from MH i2c: 01 07 00 A6 11 00 00 00 00 00 FF 0F CC [08:46:37]RasterBufferAndPrint [08:46:37]line Счет N : (1)706634 [08:46:37]line ИНН: 02508201610067 [08:46:37]line Контрольно-Кассовый Чек [08:46:37]line ПРОДАЖА [08:46:37]line ТРК (МРК, ГНК) : 32 [08:46:37]line Товар: 2710124130 [08:46:37]line Аи-92-К-4 [08:46:37]line 8.970 * 66.90 [08:46:37]line = 600.09 [08:46:37]line НДС 12% НСП 1% [08:46:37]line > о реализуемом товаре [08:46:37]line ОКРУГЛЕНИЕ: -0.09 [08:46:37]line ИТОГО: 600.00 [08:46:37]line Внесено: 600.00 [08:46:37]line СДАЧА: 0.00 [08:46:37]line НСП 1% : 5.31 [08:46:37]line НДС 12% : 63.73 [08:46:37]line Наличными: 600.00 [08:46:37]line Безнал.: 0.00 [08:46:37]line Место: АЗС № 62 "Партнер Нефть" [08:46:37]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [08:46:37]line СНО: Общий режим [08:46:37]line Чек 15 04.06.2024 08:46 [08:46:37]line Смена: 325 ФФД: 1.0 [08:46:37]line ЗНМ: 0300000181 [08:46:37]line РНМ: 0000000000098096 [08:46:37]line Версия ККМ: 001 [08:46:37]line ФМ: 0000000000965400 [08:46:37]line ФД: 68517 [08:46:37]line ФПД: 274246426298126 [08:46:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T084639&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68517&fm=274246426298126&tin=02508201610067®Number=0000000000098096&sum=60000 [08:46:37]OFD Sender: Processing packet 68517 [packets to send 26, broken 25] [08:46:37]ProducePacketName [08:46:37]name=ofd_packets/00068517 [08:46:37]OFD Sender: To server: pG, [08:46:37]CommunicateWithHost lk.salyk.kg:30040 [08:46:37]ConnectInit lk.salyk.kg [08:46:37]written 0, free lines is 4095 [08:46:37]Connected sock=10 [08:46:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 62 24 07 01 78 6E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 6F D4 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 A5 0B 01 00 35 04 06 00 F9 6C F8 D2 07 0E 72 0A 5E E2 B5 5E 88 A7 [08:46:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 3E B2 47 00 4F 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 39 36 35 34 30 30 10 04 04 00 A5 0B 01 00 F4 03 04 00 68 7B 5E 66 B6 04 01 00 00 67 56 BA 4F DB 90 2E AA [08:46:38]CommunicateWithHost err = 0 [08:46:38]CheckOFDResponse [08:46:38]1017 (14) - 77093643461234 [08:46:38]1041 (16) - 0000000000965400 [08:46:38]1040 (4) - 68517 [08:46:38]1012 (4) - 04.06.2024 02:26 [08:46:38]1206 (1) - 0 [08:46:38]OFD Sender: Remove packet 68517 [08:46:38]ProducePacketName [08:46:38]name=ofd_packets/00068517 [08:46:38]NVStorageDeleteData [08:46:38]Write to MH i2c: 01 00 00 D1 11 E2 [08:46:38]Write i2c OK [08:46:38]MH_I2C_Read... [08:46:38]Read from MH i2c: 01 [08:46:38]MH_I2C_Read... [08:46:38]Read from MH i2c: 01 07 00 [08:46:38]MH_I2C_Read... [08:46:38]Read from MH i2c: 01 07 00 D1 11 00 00 00 00 00 CF 0C C4 [08:46:38]RasterBufferAndPrint [08:46:38]line [08:46:38]line [08:46:38]line [08:46:38]line [08:46:38]line [08:46:38]written 0, free lines is 3286 [08:46:38]MH_Cut [08:46:38]Write to MH i2c: D1 01 00 D8 11 01 BB [08:46:38]Write i2c OK [08:46:38]MH_I2C_Read... [08:46:38]Read from MH i2c: D1 [08:46:38]MH_I2C_Read... [08:46:38]Read from MH i2c: D1 01 00 [08:46:38]MH_I2C_Read... [08:46:38]Read from MH i2c: D1 01 00 D8 11 00 BA [08:46:38]Write to MH i2c: 01 00 00 D9 11 EA [08:46:38]Write i2c OK [08:46:38]MH_I2C_Read... [08:46:38]OFD Sender: No OFD packet to send [08:46:38]*** Cut start [08:46:38]*** Partial cut [08:46:38]*** CUTSNS_PIN = 1 [08:46:38]*** CUTSNS_PIN = 0 [08:46:39]*** Brake cut motor [08:46:39]Read from MH i2c: 01 [08:46:39]MH_I2C_Read... [08:46:39]*** Stop cut motor [08:46:39]*** Cut end [08:46:39]Read from MH i2c: 01 07 00 [08:46:39]MH_I2C_Read... [08:46:39]Read from MH i2c: 01 07 00 D9 11 00 00 00 00 00 FF 0F FF [08:46:39]process_action close_receipt done [08:46:39]requested_data is exist [08:46:39]produce_requested_data [08:46:39]requested_item fm.sn is exist - process it [08:46:39]wFMCommunicate request_size=4 [08:46:39]MH_SAM_APDU [08:46:39]CAPDU: 80 11 00 00 [08:46:39]Write to MH i2c: E2 08 00 DA 11 80 11 00 00 00 00 00 00 65 [08:46:39]Write i2c OK [08:46:39]MH_I2C_Read... [08:46:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:46:39]Read from MH i2c: E2 [08:46:39]MH_I2C_Read... [08:46:39]Read from MH i2c: E2 17 00 [08:46:39]MH_I2C_Read... [08:46:39]Read from MH i2c: E2 17 00 DA 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 B0 [08:46:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [08:46:39]wFMCommunicate OK [08:46:39]requested_item fd.num is exist - process it [08:46:39]SAM_PROTO_GetFieldsCounters [08:46:39]wFMCommunicate request_size=4 [08:46:39]MH_SAM_APDU [08:46:39]CAPDU: 80 13 00 00 [08:46:39]Write to MH i2c: E2 08 00 DB 11 80 13 00 00 00 00 00 00 68 [08:46:39]Write i2c OK [08:46:39]MH_I2C_Read... [08:46:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:46:39]Read from MH i2c: E2 [08:46:39]MH_I2C_Read... [08:46:39]Read from MH i2c: E2 62 00 [08:46:39]MH_I2C_Read... [08:46:39]Read from MH i2c: E2 62 00 DB 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 A5 0B 01 00 0E 04 04 00 45 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 AC [08:46:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 A5 0B 01 00 0E 04 04 00 45 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 [08:46:39]wFMCommunicate OK [08:46:39]SAM_PROTO_GetFieldsCounters done [08:46:39]requested_item shift.num is exist - process it [08:46:39]requested_item shift.opened is exist - process it [08:46:39]req_shift_opened [08:46:39]FM_GetShiftState [08:46:39]SAM_PROTO_GetShiftState [08:46:39]wFMCommunicate request_size=4 [08:46:39]MH_SAM_APDU [08:46:39]CAPDU: 80 13 01 00 [08:46:39]Write to MH i2c: E2 08 00 DC 11 80 13 01 00 00 00 00 00 6A [08:46:39]Write i2c OK [08:46:39]MH_I2C_Read... [08:46:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:46:39]Read from MH i2c: E2 [08:46:39]MH_I2C_Read... [08:46:39]Read from MH i2c: E2 0E 00 [08:46:39]MH_I2C_Read... [08:46:39]Read from MH i2c: E2 0E 00 DC 11 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 06 [08:46:39]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [08:46:39]wFMCommunicate OK [08:46:39]SAM_PROTO_GetShiftState done [08:46:39]FM_GetShiftState done [08:46:39]req_shift_opened done [08:46:39]requested_item shift.open_date is exist - process it [08:46:39]req_shift_open_date [08:46:39]req_shift_open_date done [08:46:39]produce_requested_data done [08:46:39]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68517,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [08:46:39]process_action_free close_receipt [08:46:39]json_value_free [08:46:39]json_value_free done [08:46:39]process_json_proto returns [08:46:39]Send response to host [08:46:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68517,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [08:46:39]free response buf [08:46:39]execute_script done [08:46:39]execute_script returns [08:46:39]free content buf [08:46:39]Sock 7.Close socket [08:46:39]Sock 7.Thread stoped [08:46:43]OFD Sender: No OFD packet to send [08:46:48]OFD Sender: No OFD packet to send [08:46:53]OFD Sender: No OFD packet to send [08:46:58]OFD Sender: No OFD packet to send [08:47:03]OFD Sender: No OFD packet to send [08:47:08]OFD Sender: No OFD packet to send [08:47:13]OFD Sender: No OFD packet to send [08:47:18]OFD Sender: No OFD packet to send [08:47:23]OFD Sender: No OFD packet to send [08:47:28]OFD Sender: No OFD packet to send [08:47:33]OFD Sender: No OFD packet to send [08:47:38]OFD Sender: No OFD packet to send [08:47:43]OFD Sender: No OFD packet to send [08:47:48]OFD Sender: No OFD packet to send [08:47:53]OFD Sender: No OFD packet to send [08:47:58]OFD Sender: No OFD packet to send [08:48:03]OFD Sender: No OFD packet to send [08:48:08]OFD Sender: No OFD packet to send [08:48:09]accept exits with 9 [08:48:09]New connection [08:48:09]New thread 3067227492 created [08:48:09]Thread 3067084132 joined [08:48:09]Waiting for new connection... [08:48:09] Sock 9.Parse request [08:48:09]Sock 9.Check first char [08:48:09]Sock 9.First char is OK [08:48:09]request: POST /json_proto HTTP/1.0 [08:48:09]Method: POST [08:48:09]URL: /json_proto [08:48:09]Method is POST - this is cgi request [08:48:09]url: /json_proto [08:48:09]query_string will be loaded in cgi processing [08:48:09]execute_cgi json_proto POST (null) [08:48:09]execute_cgi path=json_proto method=POST [08:48:09]POST find Content-Length [08:48:09]Host: 172.17.36.132:8080 [08:48:09]Content-Length: 677 [08:48:09]Content-Type: application/json [08:48:09] [08:48:09]POST finish read [08:48:09]Found Content-Length = 677 [08:48:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706635", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 3.140, "sum" : 210.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 210.00, "total" : 210.00, "payments": [ { "type": 0, "sum" : 210.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:48:09]execute_script... [08:48: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)706635", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 3.140, "sum" : 210.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 210.00, "total" : 210.00, "payments": [ { "type": 0, "sum" : 210.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:48:09]POST & json_proto [08:48:09]process_json_proto [08:48:09]json parsed OK: [08:48:09]protocol is kg_v1.0 [08:48:09]action value=close_receipt [08:48:09]process_action close_receipt [08:48:09]cmd_close_receipt [08:48:09]MH_GetDate [08:48:09]Write to MH i2c: F0 00 00 DD 11 DD [08:48:09]Write i2c OK [08:48:09]MH_I2C_Read... [08:48:09]Read from MH i2c: F0 [08:48:09]MH_I2C_Read... [08:48:09]Read from MH i2c: F0 09 00 [08:48:09]MH_I2C_Read... [08:48:09]Read from MH i2c: F0 09 00 DD 11 00 CC D4 5E 66 B2 22 B0 64 32 [08:48:09]GetLastDocTimeStamp 1717490799 [08:48:09]current date 1717490892 [08:48:09]FM_GetShiftState [08:48:09]SAM_PROTO_GetShiftState [08:48:09]wFMCommunicate request_size=4 [08:48:09]MH_SAM_APDU [08:48:09]CAPDU: 80 13 01 00 [08:48:09]Write to MH i2c: E2 08 00 DE 11 80 13 01 00 00 00 00 00 6C [08:48:09]Write i2c OK [08:48:09]MH_I2C_Read... [08:48:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:48:09]Read from MH i2c: E2 [08:48:09]MH_I2C_Read... [08:48:09]Read from MH i2c: E2 0E 00 [08:48:09]MH_I2C_Read... [08:48:09]Read from MH i2c: E2 0E 00 DE 11 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 08 [08:48:09]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [08:48:09]wFMCommunicate OK [08:48:09]SAM_PROTO_GetShiftState done [08:48:09]FM_GetShiftState done [08:48:09]opened in 1717460590 [08:48:09]opened+sec_in_day 1717546990 [08:48:09]quantity*price = 21006 [08:48:09]sum+1 = 21008 [08:48:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 210.00 Внесено: 210.00 СДАЧА: 0.00 НСП 1% : 1.86 НДС 12% : 22.31 Наличными: 210.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 16 04.06.2024 08:48 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68518 ФПД: 239862942922892 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T084812&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68518&fm=239862942922892&tin=02508201610067®Number=0000000000098096&sum=21000 [08:48:10]StoreToDocumentArchive [08:48:10]shift 325 fd 68518 [08:48:10]save to /storage/0325/doc_00068518 [08:48:10]save last doc name /storage/0325/doc_00068518 to /storage/kkm_last_doc_name [08:48:10]save OK [08:48:10]Clear old archive folders... [08:48:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:48:10]tlvbuf is 00A018B0 [08:48:10]SAM_PROTO_ClearQueue [08:48:10]wFMCommunicate request_size=4 [08:48:10]MH_SAM_APDU [08:48:10]CAPDU: 80 09 00 00 [08:48:10]Write to MH i2c: E2 08 00 EB 11 80 09 00 00 00 00 00 00 6E [08:48:10]Write i2c OK [08:48:10]MH_I2C_Read... [08:48:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:48:10]Read from MH i2c: E2 [08:48:10]MH_I2C_Read... [08:48:10]Read from MH i2c: E2 03 00 [08:48:10]MH_I2C_Read... [08:48:10]Read from MH i2c: E2 03 00 EB 11 00 90 00 70 [08:48:10]RAPDU: 90 00 [08:48:10]wFMCommunicate OK [08:48:10]SAM_PROTO_ClearQueue done [08:48:10]KKMCreateOFDPacket [08:48:10]OFDProtocolAddRootSTLVToBuf [08:48:10]FM_MakeSignedData [08:48:10]FM_MakeSignedData [08:48:10]SAM_PROTO_SignData [08:48:10]wFMCommunicate request_size=4 [08:48:10]MH_SAM_APDU [08:48:10]CAPDU: 80 0D 01 02 [08:48:10]Write to MH i2c: E2 08 00 EC 11 80 0D 01 02 00 00 00 00 76 [08:48:10]Write i2c OK [08:48:10]MH_I2C_Read... [08:48:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:48:10]Read from MH i2c: E2 [08:48:10]MH_I2C_Read... [08:48:10]Read from MH i2c: E2 03 00 [08:48:10]MH_I2C_Read... [08:48:10]Read from MH i2c: E2 03 00 EC 11 00 90 00 71 [08:48:10]RAPDU: 90 00 [08:48:10]wFMCommunicate OK [08:48:10]wFMCommunicate request_size=255 [08:48:10]MH_SAM_APDU [08:48: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 34 FF 03 08 00 03 44 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 CC D4 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 A6 0B 01 00 35 04 06 00 DA [08:48:10]Write to MH i2c: E2 02 01 ED 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 34 FF 03 08 00 03 44 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 CC D4 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 A6 0B 01 00 35 04 06 00 DA 00 00 DE [08:48:10]Write i2c OK [08:48:10]MH_I2C_Read... [08:48:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:48:10]Read from MH i2c: E2 [08:48:10]MH_I2C_Read... [08:48:10]Read from MH i2c: E2 03 00 [08:48:10]MH_I2C_Read... [08:48:10]Read from MH i2c: E2 03 00 ED 11 00 90 00 72 [08:48:10]RAPDU: 90 00 [08:48:10]wFMCommunicate OK [08:48:10]wFMCommunicate request_size=10 [08:48:10]MH_SAM_APDU [08:48:10]CAPDU: 80 0D 02 02 05 27 71 81 F8 8C [08:48:10]Write to MH i2c: E2 0D 00 EE 11 80 0D 02 02 05 00 27 71 81 F8 8C 00 00 20 [08:48:10]Write i2c OK [08:48:10]MH_I2C_Read... [08:48:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:48:10]Read from MH i2c: E2 [08:48:10]MH_I2C_Read... [08:48:10]Read from MH i2c: E2 03 00 [08:48:10]MH_I2C_Read... [08:48:10]Read from MH i2c: E2 03 00 EE 11 00 90 00 73 [08:48:10]RAPDU: 90 00 [08:48:10]wFMCommunicate OK [08:48:10]wFMCommunicate request_size=4 [08:48:10]MH_SAM_APDU [08:48:10]CAPDU: 80 0D 03 02 [08:48:10]Write to MH i2c: E2 08 00 EF 11 80 0D 03 02 00 00 00 00 7B [08:48:10]Write i2c OK [08:48:10]MH_I2C_Read... [08:48:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:48:10]Read from MH i2c: E2 [08:48:10]MH_I2C_Read... [08:48:10]Read from MH i2c: E2 0B 00 [08:48:10]MH_I2C_Read... [08:48:10]Read from MH i2c: E2 0B 00 EF 11 00 6F 91 ED B0 9E B6 A8 A9 90 00 BE [08:48:10]RAPDU: 6F 91 ED B0 9E B6 A8 A9 90 00 [08:48:10]wFMCommunicate OK [08:48:10]SAM_PROTO_SignData done [08:48:10]FM_MakeSignedData done [08:48:10]CreateOFDProtocolMessage [08:48:10]wFMCommunicate request_size=4 [08:48:10]MH_SAM_APDU [08:48:10]CAPDU: 80 11 00 00 [08:48:10]Write to MH i2c: E2 08 00 F0 11 80 11 00 00 00 00 00 00 7B [08:48:10]Write i2c OK [08:48:10]MH_I2C_Read... [08:48:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:48:10]Read from MH i2c: E2 [08:48:10]MH_I2C_Read... [08:48:10]Read from MH i2c: E2 17 00 [08:48:10]MH_I2C_Read... [08:48:10]Read from MH i2c: E2 17 00 F0 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 C6 [08:48:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [08:48:10]wFMCommunicate OK [08:48:10]CreateOFDProtocolMessage done [08:48:10]OFDSenderStorePacket 68518 [08:48:10]StoreOFDPacket docnum=68518 [08:48:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 71 EF 07 01 EB 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 34 FF 03 08 00 03 44 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 CC D4 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 A6 0B 01 00 35 04 06 00 DA 27 71 81 F8 8C 6F 91 ED B0 9E B6 A8 A9 [08:48:10]CheckFolder [08:48:10]dirname=/storage/ofd_packets [08:48:10]CheckFolder done [08:48:10]ProducePacketName [08:48:10]name=ofd_packets/00068518 [08:48:10]NVStorageSaveData ofd_packets/00068518 [08:48:10]File name is /storage/ofd_packets/00068518 [08:48:10]Write 301 bytes [08:48:10]NVStorageSaveData done [08:48:10]OFDSenderStorePacket done [08:48:10]KKMCreateOFDPacket done [08:48:10]NVStorageSaveData kkm_last_timestamp [08:48:10]File name is /storage/kkm_last_timestamp [08:48:10]Write 4 bytes [08:48:10]NVStorageSaveData done [08:48:10]ExternCall_PrintAddStr [08:48:10]wPrintStart [08:48:10]Write to MH i2c: 01 00 00 F1 11 02 [08:48:10]Write i2c OK [08:48:10]MH_I2C_Read... [08:48:10]Read from MH i2c: 01 [08:48:10]MH_I2C_Read... [08:48:10]Read from MH i2c: 01 07 00 [08:48:10]MH_I2C_Read... [08:48:10]Read from MH i2c: 01 07 00 F1 11 00 00 00 00 00 FF 0F 17 [08:48:10]RasterBufferAndPrint [08:48:10]line Счет N : (1)706635 [08:48:10]line ИНН: 02508201610067 [08:48:10]line Контрольно-Кассовый Чек [08:48:10]line ПРОДАЖА [08:48:10]line ТРК (МРК, ГНК) : 42 [08:48:10]line Товар: 2710124130 [08:48:10]line Аи-92-К-4 [08:48:10]line 3.140 * 66.90 [08:48:10]line = 210.07 [08:48:10]line НДС 12% НСП 1% [08:48:10]line > о реализуемом товаре [08:48:10]line ОКРУГЛЕНИЕ: -0.07 [08:48:10]line ИТОГО: 210.00 [08:48:10]line Внесено: 210.00 [08:48:10]line СДАЧА: 0.00 [08:48:10]line НСП 1% : 1.86 [08:48:10]line НДС 12% : 22.31 [08:48:10]line Наличными: 210.00 [08:48:10]line Безнал.: 0.00 [08:48:10]line Место: АЗС № 62 "Партнер Нефть" [08:48:10]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [08:48:10]line СНО: Общий режим [08:48:10]line Чек 16 04.06.2024 08:48 [08:48:10]line Смена: 325 ФФД: 1.0 [08:48:10]line ЗНМ: 0300000181 [08:48:10]line РНМ: 0000000000098096 [08:48:10]line Версия ККМ: 001 [08:48:10]line ФМ: 0000000000965400 [08:48:10]line ФД: 68518 [08:48:10]line ФПД: 239862942922892 [08:48:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T084812&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68518&fm=239862942922892&tin=02508201610067®Number=0000000000098096&sum=21000 [08:48:11]OFD Sender: Processing packet 68518 [packets to send 26, broken 25] [08:48:11]ProducePacketName [08:48:11]name=ofd_packets/00068518 [08:48:11]OFD Sender: To server: pG, [08:48:11]CommunicateWithHost lk.salyk.kg:30040 [08:48:11]ConnectInit lk.salyk.kg [08:48:11]written 0, free lines is 4095 [08:48:11]Connected sock=10 [08:48:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 71 EF 07 01 EB 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 34 FF 03 08 00 03 44 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 CC D4 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 A6 0B 01 00 35 04 06 00 DA 27 71 81 F8 8C 6F 91 ED B0 9E B6 A8 A9 [08:48:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 9A 80 47 00 CD 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 39 36 35 34 30 30 10 04 04 00 A6 0B 01 00 F4 03 04 00 C5 7B 5E 66 B6 04 01 00 00 26 35 A6 33 0E C2 85 DE [08:48:11]CommunicateWithHost err = 0 [08:48:11]CheckOFDResponse [08:48:11]1017 (14) - 77093643461234 [08:48:11]1041 (16) - 0000000000965400 [08:48:11]1040 (4) - 68518 [08:48:11]1012 (4) - 04.06.2024 02:28 [08:48:11]1206 (1) - 0 [08:48:11]OFD Sender: Remove packet 68518 [08:48:11]ProducePacketName [08:48:11]name=ofd_packets/00068518 [08:48:11]NVStorageDeleteData [08:48:11]Write to MH i2c: 01 00 00 1C 12 2E [08:48:11]Write i2c OK [08:48:11]MH_I2C_Read... [08:48:11]Read from MH i2c: 01 [08:48:11]MH_I2C_Read... [08:48:11]Read from MH i2c: 01 07 00 [08:48:11]MH_I2C_Read... [08:48:11]Read from MH i2c: 01 07 00 1C 12 00 00 00 00 00 DD 0C 1E [08:48:11]RasterBufferAndPrint [08:48:11]line [08:48:11]line [08:48:11]line [08:48:11]line [08:48:11]line [08:48:11]written 0, free lines is 3299 [08:48:11]MH_Cut [08:48:11]Write to MH i2c: D1 01 00 23 12 01 07 [08:48:11]Write i2c OK [08:48:11]MH_I2C_Read... [08:48:11]Read from MH i2c: D1 [08:48:11]MH_I2C_Read... [08:48:11]Read from MH i2c: D1 01 00 [08:48:11]MH_I2C_Read... [08:48:11]Read from MH i2c: D1 01 00 23 12 00 06 [08:48:11]Write to MH i2c: 01 00 00 24 12 36 [08:48:11]Write i2c OK [08:48:11]MH_I2C_Read... [08:48:12]OFD Sender: No OFD packet to send [08:48:12]*** Cut start [08:48:12]*** Partial cut [08:48:12]*** CUTSNS_PIN = 1 [08:48:12]*** CUTSNS_PIN = 0 [08:48:12]*** Brake cut motor [08:48:13]Read from MH i2c: 01 [08:48:13]MH_I2C_Read... [08:48:13]*** Stop cut motor [08:48:13]*** Cut end [08:48:13]Read from MH i2c: 01 07 00 [08:48:13]MH_I2C_Read... [08:48:13]Read from MH i2c: 01 07 00 24 12 00 00 00 00 00 FF 0F 4B [08:48:13]process_action close_receipt done [08:48:13]requested_data is exist [08:48:13]produce_requested_data [08:48:13]requested_item fm.sn is exist - process it [08:48:13]wFMCommunicate request_size=4 [08:48:13]MH_SAM_APDU [08:48:13]CAPDU: 80 11 00 00 [08:48:13]Write to MH i2c: E2 08 00 25 12 80 11 00 00 00 00 00 00 B1 [08:48:13]Write i2c OK [08:48:13]MH_I2C_Read... [08:48:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:48:13]Read from MH i2c: E2 [08:48:13]MH_I2C_Read... [08:48:13]Read from MH i2c: E2 17 00 [08:48:13]MH_I2C_Read... [08:48:13]Read from MH i2c: E2 17 00 25 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 FC [08:48:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [08:48:13]wFMCommunicate OK [08:48:13]requested_item fd.num is exist - process it [08:48:13]SAM_PROTO_GetFieldsCounters [08:48:13]wFMCommunicate request_size=4 [08:48:13]MH_SAM_APDU [08:48:13]CAPDU: 80 13 00 00 [08:48:13]Write to MH i2c: E2 08 00 26 12 80 13 00 00 00 00 00 00 B4 [08:48:13]Write i2c OK [08:48:13]MH_I2C_Read... [08:48:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:48:13]Read from MH i2c: E2 [08:48:13]MH_I2C_Read... [08:48:13]Read from MH i2c: E2 62 00 [08:48:13]MH_I2C_Read... [08:48:13]Read from MH i2c: E2 62 00 26 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 A6 0B 01 00 0E 04 04 00 45 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 FC [08:48:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 A6 0B 01 00 0E 04 04 00 45 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 [08:48:13]wFMCommunicate OK [08:48:13]SAM_PROTO_GetFieldsCounters done [08:48:13]requested_item shift.num is exist - process it [08:48:13]requested_item shift.opened is exist - process it [08:48:13]req_shift_opened [08:48:13]FM_GetShiftState [08:48:13]SAM_PROTO_GetShiftState [08:48:13]wFMCommunicate request_size=4 [08:48:13]MH_SAM_APDU [08:48:13]CAPDU: 80 13 01 00 [08:48:13]Write to MH i2c: E2 08 00 27 12 80 13 01 00 00 00 00 00 B6 [08:48:13]Write i2c OK [08:48:13]MH_I2C_Read... [08:48:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:48:13]Read from MH i2c: E2 [08:48:13]MH_I2C_Read... [08:48:13]Read from MH i2c: E2 0E 00 [08:48:13]MH_I2C_Read... [08:48:13]Read from MH i2c: E2 0E 00 27 12 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 52 [08:48:13]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [08:48:13]wFMCommunicate OK [08:48:13]SAM_PROTO_GetShiftState done [08:48:13]FM_GetShiftState done [08:48:13]req_shift_opened done [08:48:13]requested_item shift.open_date is exist - process it [08:48:13]req_shift_open_date [08:48:13]req_shift_open_date done [08:48:13]produce_requested_data done [08:48:13]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68518,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [08:48:13]process_action_free close_receipt [08:48:13]json_value_free [08:48:13]json_value_free done [08:48:13]process_json_proto returns [08:48:13]Send response to host [08:48:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68518,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [08:48:13]free response buf [08:48:13]execute_script done [08:48:13]execute_script returns [08:48:13]free content buf [08:48:13]Sock 9.Close socket [08:48:13]Sock 9.Thread stoped [08:48:17]OFD Sender: No OFD packet to send [08:48:22]OFD Sender: No OFD packet to send [08:48:27]OFD Sender: No OFD packet to send [08:48:32]OFD Sender: No OFD packet to send [08:48:37]OFD Sender: No OFD packet to send [08:48:42]OFD Sender: No OFD packet to send [08:48:47]OFD Sender: No OFD packet to send [08:48:52]OFD Sender: No OFD packet to send [08:48:57]OFD Sender: No OFD packet to send [08:49:02]OFD Sender: No OFD packet to send [08:49:07]OFD Sender: No OFD packet to send [08:49:12]OFD Sender: No OFD packet to send [08:49:17]OFD Sender: No OFD packet to send [08:49:22]OFD Sender: No OFD packet to send [08:49:27]OFD Sender: No OFD packet to send [08:49:32]OFD Sender: No OFD packet to send [08:49:37]OFD Sender: No OFD packet to send [08:49:42]OFD Sender: No OFD packet to send [08:49:47]OFD Sender: No OFD packet to send [08:49:52]OFD Sender: No OFD packet to send [08:49:57]OFD Sender: No OFD packet to send [08:50:02]OFD Sender: No OFD packet to send [08:50:07]OFD Sender: No OFD packet to send [08:50:12]OFD Sender: No OFD packet to send [08:50:17]OFD Sender: No OFD packet to send [08:50:22]OFD Sender: No OFD packet to send [08:50:27]OFD Sender: No OFD packet to send [08:50:32]OFD Sender: No OFD packet to send [08:50:37]OFD Sender: No OFD packet to send [08:50:42]OFD Sender: No OFD packet to send [08:50:47]OFD Sender: No OFD packet to send [08:50:52]OFD Sender: No OFD packet to send [08:50:57]OFD Sender: No OFD packet to send [08:51:02]OFD Sender: No OFD packet to send [08:51:07]OFD Sender: No OFD packet to send [08:51:12]OFD Sender: No OFD packet to send [08:51:17]OFD Sender: No OFD packet to send [08:51:22]OFD Sender: No OFD packet to send [08:51:27]OFD Sender: No OFD packet to send [08:51:32]OFD Sender: No OFD packet to send [08:51:37]OFD Sender: No OFD packet to send [08:51:42]OFD Sender: No OFD packet to send [08:51:47]OFD Sender: No OFD packet to send [08:51:52]OFD Sender: No OFD packet to send [08:51:57]OFD Sender: No OFD packet to send [08:52:02]OFD Sender: No OFD packet to send [08:52:07]OFD Sender: No OFD packet to send [08:52:12]OFD Sender: No OFD packet to send [08:52:17]OFD Sender: No OFD packet to send [08:52:22]OFD Sender: No OFD packet to send [08:52:27]OFD Sender: No OFD packet to send [08:52:32]OFD Sender: No OFD packet to send [08:52:37]OFD Sender: No OFD packet to send [08:52:42]OFD Sender: No OFD packet to send [08:52:47]OFD Sender: No OFD packet to send [08:52:52]OFD Sender: No OFD packet to send [08:52:57]OFD Sender: No OFD packet to send [08:53:02]OFD Sender: No OFD packet to send [08:53:07]OFD Sender: No OFD packet to send [08:53:12]OFD Sender: No OFD packet to send [08:53:14]accept exits with 7 [08:53:14]New connection [08:53:14]New thread 3067084132 created [08:53:14]Thread 3067227492 joined [08:53:14]Waiting for new connection... [08:53:14] Sock 7.Parse request [08:53:14]Sock 7.Check first char [08:53:14]Sock 7.First char is OK [08:53:14]request: POST /json_proto HTTP/1.0 [08:53:14]Method: POST [08:53:14]URL: /json_proto [08:53:14]Method is POST - this is cgi request [08:53:14]url: /json_proto [08:53:14]query_string will be loaded in cgi processing [08:53:14]execute_cgi json_proto POST (null) [08:53:14]execute_cgi path=json_proto method=POST [08:53:14]POST find Content-Length [08:53:14]Host: 172.17.36.132:8080 [08:53:14]Content-Length: 687 [08:53:14]Content-Type: application/json [08:53:14] [08:53:14]POST finish read [08:53:14]Found Content-Length = 687 [08:53:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706636", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 34.300, "sum" : 2500.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:53:14]execute_script... [08:53: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)706636", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 34.300, "sum" : 2500.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:53:14]POST & json_proto [08:53:14]process_json_proto [08:53:14]json parsed OK: [08:53:14]protocol is kg_v1.0 [08:53:14]action value=close_receipt [08:53:14]process_action close_receipt [08:53:14]cmd_close_receipt [08:53:14]MH_GetDate [08:53:14]Write to MH i2c: F0 00 00 28 12 29 [08:53:14]Write i2c OK [08:53:14]MH_I2C_Read... [08:53:14]Read from MH i2c: F0 [08:53:14]MH_I2C_Read... [08:53:14]Read from MH i2c: F0 09 00 [08:53:14]MH_I2C_Read... [08:53:14]Read from MH i2c: F0 09 00 28 12 00 FE D5 5E 66 B2 22 B0 64 B1 [08:53:14]GetLastDocTimeStamp 1717490892 [08:53:14]current date 1717491198 [08:53:14]FM_GetShiftState [08:53:14]SAM_PROTO_GetShiftState [08:53:14]wFMCommunicate request_size=4 [08:53:14]MH_SAM_APDU [08:53:14]CAPDU: 80 13 01 00 [08:53:14]Write to MH i2c: E2 08 00 29 12 80 13 01 00 00 00 00 00 B8 [08:53:14]Write i2c OK [08:53:14]MH_I2C_Read... [08:53:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:53:14]Read from MH i2c: E2 [08:53:14]MH_I2C_Read... [08:53:14]Read from MH i2c: E2 0E 00 [08:53:14]MH_I2C_Read... [08:53:14]Read from MH i2c: E2 0E 00 29 12 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 54 [08:53:14]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [08:53:14]wFMCommunicate OK [08:53:14]SAM_PROTO_GetShiftState done [08:53:14]FM_GetShiftState done [08:53:14]opened in 1717460590 [08:53:14]opened+sec_in_day 1717546990 [08:53:14]quantity*price = 250047 [08:53:14]sum+1 = 250048 [08:53:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.13 НДС 12% : 265.54 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 17 04.06.2024 08:53 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68519 ФПД: 37920055219917 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T085318&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68519&fm=37920055219917&tin=02508201610067®Number=0000000000098096&sum=250000 [08:53:15]StoreToDocumentArchive [08:53:15]shift 325 fd 68519 [08:53:15]save to /storage/0325/doc_00068519 [08:53:15]save last doc name /storage/0325/doc_00068519 to /storage/kkm_last_doc_name [08:53:15]save OK [08:53:15]Clear old archive folders... [08:53:15]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:53:15]tlvbuf is 00A41E20 [08:53:15]SAM_PROTO_ClearQueue [08:53:15]wFMCommunicate request_size=4 [08:53:15]MH_SAM_APDU [08:53:15]CAPDU: 80 09 00 00 [08:53:15]Write to MH i2c: E2 08 00 36 12 80 09 00 00 00 00 00 00 BA [08:53:15]Write i2c OK [08:53:15]MH_I2C_Read... [08:53:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:53:16]Read from MH i2c: E2 [08:53:16]MH_I2C_Read... [08:53:16]Read from MH i2c: E2 03 00 [08:53:16]MH_I2C_Read... [08:53:16]Read from MH i2c: E2 03 00 36 12 00 90 00 BC [08:53:16]RAPDU: 90 00 [08:53:16]wFMCommunicate OK [08:53:16]SAM_PROTO_ClearQueue done [08:53:16]KKMCreateOFDPacket [08:53:16]OFDProtocolAddRootSTLVToBuf [08:53:16]FM_MakeSignedData [08:53:16]FM_MakeSignedData [08:53:16]SAM_PROTO_SignData [08:53:16]wFMCommunicate request_size=4 [08:53:16]MH_SAM_APDU [08:53:16]CAPDU: 80 0D 01 02 [08:53:16]Write to MH i2c: E2 08 00 37 12 80 0D 01 02 00 00 00 00 C2 [08:53:16]Write i2c OK [08:53:16]MH_I2C_Read... [08:53:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:53:16]Read from MH i2c: E2 [08:53:16]MH_I2C_Read... [08:53:16]Read from MH i2c: E2 03 00 [08:53:16]MH_I2C_Read... [08:53:16]Read from MH i2c: E2 03 00 37 12 00 90 00 BD [08:53:16]RAPDU: 90 00 [08:53:16]wFMCommunicate OK [08:53:16]wFMCommunicate request_size=255 [08:53:16]MH_SAM_APDU [08:53:16]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 FC 85 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 BF D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 FE D5 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 A7 0B 01 00 35 04 06 00 [08:53:16]Write to MH i2c: E2 02 01 38 12 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 FC 85 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 BF D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 FE D5 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 A7 0B 01 00 35 04 06 00 00 00 E3 [08:53:16]Write i2c OK [08:53:16]MH_I2C_Read... [08:53:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:53:16]Read from MH i2c: E2 [08:53:16]MH_I2C_Read... [08:53:16]Read from MH i2c: E2 03 00 [08:53:16]MH_I2C_Read... [08:53:16]Read from MH i2c: E2 03 00 38 12 00 90 00 BE [08:53:16]RAPDU: 90 00 [08:53:16]wFMCommunicate OK [08:53:16]wFMCommunicate request_size=11 [08:53:16]MH_SAM_APDU [08:53:16]CAPDU: 80 0D 02 02 06 22 7C F3 6B D6 CD [08:53:16]Write to MH i2c: E2 0E 00 39 12 80 0D 02 02 06 00 22 7C F3 6B D6 CD 00 00 70 [08:53:16]Write i2c OK [08:53:16]MH_I2C_Read... [08:53:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:53:16]Read from MH i2c: E2 [08:53:16]MH_I2C_Read... [08:53:16]Read from MH i2c: E2 03 00 [08:53:16]MH_I2C_Read... [08:53:16]Read from MH i2c: E2 03 00 39 12 00 90 00 BF [08:53:16]RAPDU: 90 00 [08:53:16]wFMCommunicate OK [08:53:16]wFMCommunicate request_size=4 [08:53:16]MH_SAM_APDU [08:53:16]CAPDU: 80 0D 03 02 [08:53:16]Write to MH i2c: E2 08 00 3A 12 80 0D 03 02 00 00 00 00 C7 [08:53:16]Write i2c OK [08:53:16]MH_I2C_Read... [08:53:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:53:16]Read from MH i2c: E2 [08:53:16]MH_I2C_Read... [08:53:16]Read from MH i2c: E2 0B 00 [08:53:16]MH_I2C_Read... [08:53:16]Read from MH i2c: E2 0B 00 3A 12 00 21 DB 3A B0 D4 9B 06 E1 90 00 04 [08:53:16]RAPDU: 21 DB 3A B0 D4 9B 06 E1 90 00 [08:53:16]wFMCommunicate OK [08:53:16]SAM_PROTO_SignData done [08:53:16]FM_MakeSignedData done [08:53:16]CreateOFDProtocolMessage [08:53:16]wFMCommunicate request_size=4 [08:53:16]MH_SAM_APDU [08:53:16]CAPDU: 80 11 00 00 [08:53:16]Write to MH i2c: E2 08 00 3B 12 80 11 00 00 00 00 00 00 C7 [08:53:16]Write i2c OK [08:53:16]MH_I2C_Read... [08:53:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:53:16]Read from MH i2c: E2 [08:53:16]MH_I2C_Read... [08:53:16]Read from MH i2c: E2 17 00 [08:53:16]MH_I2C_Read... [08:53:16]Read from MH i2c: E2 17 00 3B 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 12 [08:53:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [08:53:16]wFMCommunicate OK [08:53:16]CreateOFDProtocolMessage done [08:53:16]OFDSenderStorePacket 68519 [08:53:16]StoreOFDPacket docnum=68519 [08:53:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 33 71 08 01 28 4B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 FC 85 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 BF D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 FE D5 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 A7 0B 01 00 35 04 06 00 22 7C F3 6B D6 CD 21 DB 3A B0 D4 9B 06 E1 [08:53:16]CheckFolder [08:53:16]dirname=/storage/ofd_packets [08:53:16]CheckFolder done [08:53:16]ProducePacketName [08:53:16]name=ofd_packets/00068519 [08:53:16]NVStorageSaveData ofd_packets/00068519 [08:53:16]File name is /storage/ofd_packets/00068519 [08:53:16]Write 302 bytes [08:53:16]NVStorageSaveData done [08:53:16]OFDSenderStorePacket done [08:53:16]KKMCreateOFDPacket done [08:53:16]NVStorageSaveData kkm_last_timestamp [08:53:16]File name is /storage/kkm_last_timestamp [08:53:16]Write 4 bytes [08:53:16]NVStorageSaveData done [08:53:16]ExternCall_PrintAddStr [08:53:16]wPrintStart [08:53:16]Write to MH i2c: 01 00 00 3C 12 4E [08:53:16]Write i2c OK [08:53:16]MH_I2C_Read... [08:53:16]Read from MH i2c: 01 [08:53:16]MH_I2C_Read... [08:53:16]Read from MH i2c: 01 07 00 [08:53:16]MH_I2C_Read... [08:53:16]Read from MH i2c: 01 07 00 3C 12 00 00 00 00 00 FF 0F 63 [08:53:16]RasterBufferAndPrint [08:53:16]line Счет N : (1)706636 [08:53:16]line ИНН: 02508201610067 [08:53:16]line Контрольно-Кассовый Чек [08:53:16]line ПРОДАЖА [08:53:16]line ТРК (МРК, ГНК) : 61 [08:53:16]line Товар: 2710194210 [08:53:16]line ДТ(л)-К-4 [08:53:16]line 34.300 * 72.90 [08:53:16]line = 2500.47 [08:53:16]line НДС 12% НСП 1% [08:53:16]line > о реализуемом товаре [08:53:16]line ОКРУГЛЕНИЕ: -0.47 [08:53:16]line ИТОГО: 2500.00 [08:53:16]line Внесено: 2500.00 [08:53:16]line СДАЧА: 0.00 [08:53:16]line НСП 1% : 22.13 [08:53:16]line НДС 12% : 265.54 [08:53:16]line Наличными: 2500.00 [08:53:16]line Безнал.: 0.00 [08:53:16]line Место: АЗС № 62 "Партнер Нефть" [08:53:16]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [08:53:16]line СНО: Общий режим [08:53:16]line Чек 17 04.06.2024 08:53 [08:53:16]line Смена: 325 ФФД: 1.0 [08:53:16]line ЗНМ: 0300000181 [08:53:16]line РНМ: 0000000000098096 [08:53:16]line Версия ККМ: 001 [08:53:16]line ФМ: 0000000000965400 [08:53:16]line ФД: 68519 [08:53:16]line ФПД: 37920055219917 [08:53:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T085318&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68519&fm=37920055219917&tin=02508201610067®Number=0000000000098096&sum=250000 [08:53:16]written 0, free lines is 4095 [08:53:16]OFD Sender: Processing packet 68519 [packets to send 26, broken 25] [08:53:16]ProducePacketName [08:53:16]name=ofd_packets/00068519 [08:53:16]OFD Sender: To server: pG, [08:53:16]CommunicateWithHost lk.salyk.kg:30040 [08:53:16]ConnectInit lk.salyk.kg [08:53:16]Connected sock=10 [08:53:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 33 71 08 01 28 4B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 FC 85 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 BF D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 FE D5 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 A7 0B 01 00 35 04 06 00 22 7C F3 6B D6 CD 21 DB 3A B0 D4 9B 06 E1 [08:53:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 8E 68 47 00 3A 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 39 36 35 34 30 30 10 04 04 00 A7 0B 01 00 F4 03 04 00 F7 7C 5E 66 B6 04 01 00 00 2C E1 89 78 3B 1B 64 82 [08:53:16]CommunicateWithHost err = 0 [08:53:16]CheckOFDResponse [08:53:16]1017 (14) - 77093643461234 [08:53:16]1041 (16) - 0000000000965400 [08:53:16]1040 (4) - 68519 [08:53:16]1012 (4) - 04.06.2024 02:33 [08:53:16]1206 (1) - 0 [08:53:16]OFD Sender: Remove packet 68519 [08:53:16]ProducePacketName [08:53:16]name=ofd_packets/00068519 [08:53:16]NVStorageDeleteData [08:53:16]Write to MH i2c: 01 00 00 67 12 79 [08:53:16]Write i2c OK [08:53:16]MH_I2C_Read... [08:53:16]Read from MH i2c: 01 [08:53:16]MH_I2C_Read... [08:53:16]Read from MH i2c: 01 07 00 [08:53:16]MH_I2C_Read... [08:53:16]Read from MH i2c: 01 07 00 67 12 00 00 00 00 00 DC 0C 68 [08:53:16]RasterBufferAndPrint [08:53:16]line [08:53:16]line [08:53:16]line [08:53:16]line [08:53:16]line [08:53:16]written 0, free lines is 3298 [08:53:16]MH_Cut [08:53:16]Write to MH i2c: D1 01 00 6E 12 01 52 [08:53:16]Write i2c OK [08:53:16]MH_I2C_Read... [08:53:16]Read from MH i2c: D1 [08:53:16]MH_I2C_Read... [08:53:16]Read from MH i2c: D1 01 00 [08:53:16]MH_I2C_Read... [08:53:16]Read from MH i2c: D1 01 00 6E 12 00 51 [08:53:16]Write to MH i2c: 01 00 00 6F 12 81 [08:53:16]Write i2c OK [08:53:16]MH_I2C_Read... [08:53:17]OFD Sender: No OFD packet to send [08:53:17]*** Cut start [08:53:17]*** Partial cut [08:53:17]*** CUTSNS_PIN = 1 [08:53:17]*** CUTSNS_PIN = 0 [08:53:18]*** Brake cut motor [08:53:18]Read from MH i2c: 01 [08:53:18]MH_I2C_Read... [08:53:18]*** Stop cut motor [08:53:18]*** Cut end [08:53:18]Read from MH i2c: 01 07 00 [08:53:18]MH_I2C_Read... [08:53:18]Read from MH i2c: 01 07 00 6F 12 00 00 00 00 00 FF 0F 96 [08:53:18]process_action close_receipt done [08:53:18]requested_data is exist [08:53:18]produce_requested_data [08:53:18]requested_item fm.sn is exist - process it [08:53:18]wFMCommunicate request_size=4 [08:53:18]MH_SAM_APDU [08:53:18]CAPDU: 80 11 00 00 [08:53:18]Write to MH i2c: E2 08 00 70 12 80 11 00 00 00 00 00 00 FC [08:53:18]Write i2c OK [08:53:18]MH_I2C_Read... [08:53:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:53:18]Read from MH i2c: E2 [08:53:18]MH_I2C_Read... [08:53:18]Read from MH i2c: E2 17 00 [08:53:18]MH_I2C_Read... [08:53:18]Read from MH i2c: E2 17 00 70 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 47 [08:53:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [08:53:18]wFMCommunicate OK [08:53:18]requested_item fd.num is exist - process it [08:53:18]SAM_PROTO_GetFieldsCounters [08:53:18]wFMCommunicate request_size=4 [08:53:18]MH_SAM_APDU [08:53:18]CAPDU: 80 13 00 00 [08:53:18]Write to MH i2c: E2 08 00 71 12 80 13 00 00 00 00 00 00 FF [08:53:18]Write i2c OK [08:53:18]MH_I2C_Read... [08:53:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:53:18]Read from MH i2c: E2 [08:53:18]MH_I2C_Read... [08:53:18]Read from MH i2c: E2 62 00 [08:53:18]MH_I2C_Read... [08:53:18]Read from MH i2c: E2 62 00 71 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 A7 0B 01 00 0E 04 04 00 45 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 4B [08:53:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 A7 0B 01 00 0E 04 04 00 45 01 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:53:18]wFMCommunicate OK [08:53:18]SAM_PROTO_GetFieldsCounters done [08:53:18]requested_item shift.num is exist - process it [08:53:18]requested_item shift.opened is exist - process it [08:53:18]req_shift_opened [08:53:18]FM_GetShiftState [08:53:18]SAM_PROTO_GetShiftState [08:53:18]wFMCommunicate request_size=4 [08:53:18]MH_SAM_APDU [08:53:18]CAPDU: 80 13 01 00 [08:53:18]Write to MH i2c: E2 08 00 72 12 80 13 01 00 00 00 00 00 01 [08:53:18]Write i2c OK [08:53:18]MH_I2C_Read... [08:53:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:53:18]Read from MH i2c: E2 [08:53:18]MH_I2C_Read... [08:53:18]Read from MH i2c: E2 0E 00 [08:53:18]MH_I2C_Read... [08:53:18]Read from MH i2c: E2 0E 00 72 12 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 9D [08:53:18]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [08:53:18]wFMCommunicate OK [08:53:18]SAM_PROTO_GetShiftState done [08:53:18]FM_GetShiftState done [08:53:18]req_shift_opened done [08:53:18]requested_item shift.open_date is exist - process it [08:53:18]req_shift_open_date [08:53:18]req_shift_open_date done [08:53:18]produce_requested_data done [08:53:18]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68519,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [08:53:18]process_action_free close_receipt [08:53:18]json_value_free [08:53:18]json_value_free done [08:53:18]process_json_proto returns [08:53:18]Send response to host [08:53:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68519,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [08:53:18]free response buf [08:53:18]execute_script done [08:53:18]execute_script returns [08:53:18]free content buf [08:53:18]Sock 7.Close socket [08:53:18]Sock 7.Thread stoped [08:53:22]OFD Sender: No OFD packet to send [08:53:27]OFD Sender: No OFD packet to send [08:53:32]OFD Sender: No OFD packet to send [08:53:37]OFD Sender: No OFD packet to send [08:53:42]OFD Sender: No OFD packet to send [08:53:47]OFD Sender: No OFD packet to send [08:53:52]OFD Sender: No OFD packet to send [08:53:57]OFD Sender: No OFD packet to send [08:54:02]OFD Sender: No OFD packet to send [08:54:07]OFD Sender: No OFD packet to send [08:54:12]OFD Sender: No OFD packet to send [08:54:17]OFD Sender: No OFD packet to send [08:54:22]OFD Sender: No OFD packet to send [08:54:27]OFD Sender: No OFD packet to send [08:54:32]OFD Sender: No OFD packet to send [08:54:37]OFD Sender: No OFD packet to send [08:54:42]OFD Sender: No OFD packet to send [08:54:47]OFD Sender: No OFD packet to send [08:54:52]OFD Sender: No OFD packet to send [08:54:57]OFD Sender: No OFD packet to send [08:55:02]OFD Sender: No OFD packet to send [08:55:07]OFD Sender: No OFD packet to send [08:55:12]OFD Sender: No OFD packet to send [08:55:17]OFD Sender: No OFD packet to send [08:55:22]OFD Sender: No OFD packet to send [08:55:27]OFD Sender: No OFD packet to send [08:55:32]OFD Sender: No OFD packet to send [08:55:37]OFD Sender: No OFD packet to send [08:55:42]OFD Sender: No OFD packet to send [08:55:47]OFD Sender: No OFD packet to send [08:55:52]OFD Sender: No OFD packet to send [08:55:57]OFD Sender: No OFD packet to send [08:56:02]OFD Sender: No OFD packet to send [08:56:07]OFD Sender: No OFD packet to send [08:56:12]OFD Sender: No OFD packet to send [08:56:13]accept exits with 9 [08:56:13]New connection [08:56:13]New thread 3067227492 created [08:56:13]Thread 3067084132 joined [08:56:13]Waiting for new connection... [08:56:13] Sock 9.Parse request [08:56:13]Sock 9.Check first char [08:56:13]Sock 9.First char is OK [08:56:13]request: POST /json_proto HTTP/1.0 [08:56:13]Method: POST [08:56:13]URL: /json_proto [08:56:13]Method is POST - this is cgi request [08:56:13]url: /json_proto [08:56:13]query_string will be loaded in cgi processing [08:56:13]execute_cgi json_proto POST (null) [08:56:13]execute_cgi path=json_proto method=POST [08:56:13]POST find Content-Length [08:56:13]Host: 172.17.36.132:8080 [08:56:13]Content-Length: 1169 [08:56:13]Content-Type: application/json [08:56:13] [08:56:13]POST finish read [08:56:13]Found Content-Length = 1169 [08:56:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0418\u0441\u043C\u0430\u043D\u0430\u043B\u0438\u0435\u0432 \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)706637\u000A04.06.2024 08:33\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-4\u000A 30.000 x 66.90\u000A\u0418\u0422\u041E\u0413: 2007.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30111753\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:56:13]execute_script... [08:56:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0418\u0441\u043C\u0430\u043D\u0430\u043B\u0438\u0435\u0432 \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)706637\u000A04.06.2024 08:33\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-4\u000A 30.000 x 66.90\u000A\u0418\u0422\u041E\u0413: 2007.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30111753\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:56:13]POST & json_proto [08:56:13]process_json_proto [08:56:13]json parsed OK: [08:56:13]protocol is kg_v1.0 [08:56:13]action value=print_text [08:56:13]process_action print_text [08:56:13]cmd_print_text [08:56:13]ExternCall_PrintAddStr [08:56:13]wPrintStart [08:56:13]Write to MH i2c: 01 00 00 73 12 85 [08:56:13]Write i2c OK [08:56:13]MH_I2C_Read... [08:56:13]Read from MH i2c: 01 [08:56:13]MH_I2C_Read... [08:56:13]Read from MH i2c: 01 07 00 [08:56:13]MH_I2C_Read... [08:56:13]Read from MH i2c: 01 07 00 73 12 00 00 00 00 00 FF 0F 9A [08:56:13]RasterBufferAndPrint [08:56:13]line *****ТОВАРНЫЙ ЧЕК***** [08:56:13]line АЗС 62 [08:56:13]line Партнер нефть [08:56:13]line 02508201610067 [08:56:13]line Кассир : Исманалиев Д. [08:56:13]line Счет N : (1)706637 [08:56:13]line 04.06.2024 08:33 [08:56:13]line ПРОДАЖА [08:56:13]line ТРК (МРК, ГНК): 32 [08:56:13]line Вид ГСМ : 2710124130 [08:56:13]line Аи-92-К-4 [08:56:13]line 30.000 x 66.90 [08:56:13]line ИТОГ: 2007.00 [08:56:13]line Тип оплаты: Талоны: ТК ГПНА Online [08:56:13]line 30111753 [08:56:13]line ______________________ [08:56:13]line (подпись) [08:56:13]written 0, free lines is 4095 [08:56:13]Write to MH i2c: 01 00 00 87 12 99 [08:56:13]Write i2c OK [08:56:13]MH_I2C_Read... [08:56:13]Read from MH i2c: 01 [08:56:13]MH_I2C_Read... [08:56:13]Read from MH i2c: 01 07 00 [08:56:13]MH_I2C_Read... [08:56:13]Read from MH i2c: 01 07 00 87 12 00 00 00 00 00 12 0E C0 [08:56:13]RasterBufferAndPrint [08:56:13]line [08:56:13]line [08:56:13]line [08:56:13]line [08:56:13]line [08:56:13]written 0, free lines is 3604 [08:56:13]MH_Cut [08:56:13]Write to MH i2c: D1 01 00 8E 12 01 72 [08:56:13]Write i2c OK [08:56:13]MH_I2C_Read... [08:56:13]Read from MH i2c: D1 [08:56:13]MH_I2C_Read... [08:56:13]Read from MH i2c: D1 01 00 [08:56:13]MH_I2C_Read... [08:56:13]Read from MH i2c: D1 01 00 8E 12 00 71 [08:56:13]Write to MH i2c: 01 00 00 8F 12 A1 [08:56:13]Write i2c OK [08:56:13]MH_I2C_Read... [08:56:14]*** Cut start [08:56:14]*** Partial cut [08:56:14]*** CUTSNS_PIN = 1 [08:56:14]*** CUTSNS_PIN = 0 [08:56:14]*** Brake cut motor [08:56:14]Read from MH i2c: 01 [08:56:14]MH_I2C_Read... [08:56:14]Read from MH i2c: 01 *** Stop cut motor [08:56:14]*** Cut end [08:56:14]07 00 [08:56:14]MH_I2C_Read... [08:56:14]Read from MH i2c: 01 07 00 8F 12 00 00 00 00 00 FF 0F B6 [08:56:14]process_action print_text done [08:56:14]requested_data is exist [08:56:14]produce_requested_data [08:56:14]requested_item fm.sn is exist - process it [08:56:14]wFMCommunicate request_size=4 [08:56:14]MH_SAM_APDU [08:56:14]CAPDU: 80 11 00 00 [08:56:14]Write to MH i2c: E2 08 00 90 12 80 11 00 00 00 00 00 00 1C [08:56:14]Write i2c OK [08:56:14]MH_I2C_Read... [08:56:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:56:14]Read from MH i2c: E2 [08:56:14]MH_I2C_Read... [08:56:14]Read from MH i2c: E2 17 00 [08:56:14]MH_I2C_Read... [08:56:14]Read from MH i2c: E2 17 00 90 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 67 [08:56:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [08:56:14]wFMCommunicate OK [08:56:14]requested_item fd.num is exist - process it [08:56:14]SAM_PROTO_GetFieldsCounters [08:56:14]wFMCommunicate request_size=4 [08:56:14]MH_SAM_APDU [08:56:14]CAPDU: 80 13 00 00 [08:56:14]Write to MH i2c: E2 08 00 91 12 80 13 00 00 00 00 00 00 1F [08:56:14]Write i2c OK [08:56:14]MH_I2C_Read... [08:56:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:56:15]Read from MH i2c: E2 [08:56:15]MH_I2C_Read... [08:56:15]Read from MH i2c: E2 62 00 [08:56:15]MH_I2C_Read... [08:56:15]Read from MH i2c: E2 62 00 91 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 A7 0B 01 00 0E 04 04 00 45 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 6B [08:56:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 A7 0B 01 00 0E 04 04 00 45 01 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:56:15]wFMCommunicate OK [08:56:15]SAM_PROTO_GetFieldsCounters done [08:56:15]requested_item shift.num is exist - process it [08:56:15]requested_item shift.opened is exist - process it [08:56:15]req_shift_opened [08:56:15]FM_GetShiftState [08:56:15]SAM_PROTO_GetShiftState [08:56:15]wFMCommunicate request_size=4 [08:56:15]MH_SAM_APDU [08:56:15]CAPDU: 80 13 01 00 [08:56:15]Write to MH i2c: E2 08 00 92 12 80 13 01 00 00 00 00 00 21 [08:56:15]Write i2c OK [08:56:15]MH_I2C_Read... [08:56:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:56:15]Read from MH i2c: E2 [08:56:15]MH_I2C_Read... [08:56:15]Read from MH i2c: E2 0E 00 [08:56:15]MH_I2C_Read... [08:56:15]Read from MH i2c: E2 0E 00 92 12 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 BD [08:56:15]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [08:56:15]wFMCommunicate OK [08:56:15]SAM_PROTO_GetShiftState done [08:56:15]FM_GetShiftState done [08:56:15]req_shift_opened done [08:56:15]requested_item shift.open_date is exist - process it [08:56:15]req_shift_open_date [08:56:15]req_shift_open_date done [08:56:15]produce_requested_data done [08:56:15]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68519,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [08:56:15]process_action_free print_text [08:56:15]json_value_free [08:56:15]json_value_free done [08:56:15]process_json_proto returns [08:56:15]Send response to host [08:56:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68519,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [08:56:15]free response buf [08:56:15]execute_script done [08:56:15]execute_script returns [08:56:15]free content buf [08:56:15]Sock 9.Close socket [08:56:15]Sock 9.Thread stoped [08:56:17]OFD Sender: No OFD packet to send [08:56:22]OFD Sender: No OFD packet to send [08:56:27]OFD Sender: No OFD packet to send [08:56:32]OFD Sender: No OFD packet to send [08:56:37]OFD Sender: No OFD packet to send [08:56:42]OFD Sender: No OFD packet to send [08:56:47]OFD Sender: No OFD packet to send [08:56:52]OFD Sender: No OFD packet to send [08:56:57]OFD Sender: No OFD packet to send [08:57:02]OFD Sender: No OFD packet to send [08:57:07]OFD Sender: No OFD packet to send [08:57:12]OFD Sender: No OFD packet to send [08:57:17]OFD Sender: No OFD packet to send [08:57:22]OFD Sender: No OFD packet to send [08:57:27]OFD Sender: No OFD packet to send [08:57:32]OFD Sender: No OFD packet to send [08:57:37]OFD Sender: No OFD packet to send [08:57:42]OFD Sender: No OFD packet to send [08:57:47]OFD Sender: No OFD packet to send [08:57:52]OFD Sender: No OFD packet to send [08:57:57]OFD Sender: No OFD packet to send [08:58:02]OFD Sender: No OFD packet to send [08:58:07]OFD Sender: No OFD packet to send [08:58:12]OFD Sender: No OFD packet to send [08:58:17]OFD Sender: No OFD packet to send [08:58:22]OFD Sender: No OFD packet to send [08:58:27]OFD Sender: No OFD packet to send [08:58:32]OFD Sender: No OFD packet to send [08:58:37]OFD Sender: No OFD packet to send [08:58:42]OFD Sender: No OFD packet to send [08:58:47]OFD Sender: No OFD packet to send [08:58:52]OFD Sender: No OFD packet to send [08:58:57]OFD Sender: No OFD packet to send [08:59:02]OFD Sender: No OFD packet to send [08:59:07]OFD Sender: No OFD packet to send [08:59:12]OFD Sender: No OFD packet to send [08:59:17]OFD Sender: No OFD packet to send [08:59:22]OFD Sender: No OFD packet to send [08:59:27]OFD Sender: No OFD packet to send [08:59:32]OFD Sender: No OFD packet to send [08:59:37]OFD Sender: No OFD packet to send [08:59:42]OFD Sender: No OFD packet to send [08:59:47]OFD Sender: No OFD packet to send [08:59:52]OFD Sender: No OFD packet to send [08:59:57]OFD Sender: No OFD packet to send [09:00:02]OFD Sender: No OFD packet to send [09:00:07]OFD Sender: No OFD packet to send [09:00:12]OFD Sender: No OFD packet to send [09:00:17]OFD Sender: No OFD packet to send [09:00:22]OFD Sender: No OFD packet to send [09:00:27]OFD Sender: No OFD packet to send [09:00:32]OFD Sender: No OFD packet to send [09:00:37]OFD Sender: No OFD packet to send [09:00:42]OFD Sender: No OFD packet to send [09:00:47]OFD Sender: No OFD packet to send [09:00:52]OFD Sender: No OFD packet to send [09:00:57]OFD Sender: No OFD packet to send [09:01:02]OFD Sender: No OFD packet to send [09:01:07]OFD Sender: No OFD packet to send [09:01:12]OFD Sender: No OFD packet to send [09:01:17]OFD Sender: No OFD packet to send [09:01:22]OFD Sender: No OFD packet to send [09:01:27]OFD Sender: No OFD packet to send [09:01:32]OFD Sender: No OFD packet to send [09:01:37]OFD Sender: No OFD packet to send [09:01:42]OFD Sender: No OFD packet to send [09:01:47]OFD Sender: No OFD packet to send [09:01:52]OFD Sender: No OFD packet to send [09:01:57]OFD Sender: No OFD packet to send [09:02:02]OFD Sender: No OFD packet to send [09:02:07]OFD Sender: No OFD packet to send [09:02:12]OFD Sender: No OFD packet to send [09:02:17]OFD Sender: No OFD packet to send [09:02:22]OFD Sender: No OFD packet to send [09:02:27]OFD Sender: No OFD packet to send [09:02:32]OFD Sender: No OFD packet to send [09:02:37]OFD Sender: No OFD packet to send [09:02:42]OFD Sender: No OFD packet to send [09:02:47]OFD Sender: No OFD packet to send [09:02:52]OFD Sender: No OFD packet to send [09:02:57]OFD Sender: No OFD packet to send [09:03:02]OFD Sender: No OFD packet to send [09:03:07]OFD Sender: No OFD packet to send [09:03:12]OFD Sender: No OFD packet to send [09:03:17]OFD Sender: No OFD packet to send [09:03:22]OFD Sender: No OFD packet to send [09:03:27]OFD Sender: No OFD packet to send [09:03:31]accept exits with 7 [09:03:31]New connection [09:03:31]New thread 3067084132 created [09:03:31]Thread 3067227492 joined [09:03:31]Waiting for new connection... [09:03:31] Sock 7.Parse request [09:03:31]Sock 7.Check first char [09:03:31]Sock 7.First char is OK [09:03:31]request: POST /json_proto HTTP/1.0 [09:03:31]Method: POST [09:03:31]URL: /json_proto [09:03:31]Method is POST - this is cgi request [09:03:31]url: /json_proto [09:03:31]query_string will be loaded in cgi processing [09:03:31]execute_cgi json_proto POST (null) [09:03:31]execute_cgi path=json_proto method=POST [09:03:31]POST find Content-Length [09:03:31]Host: 172.17.36.132:8080 [09:03:31]Content-Length: 677 [09:03:31]Content-Type: application/json [09:03:31] [09:03:31]POST finish read [09:03:31]Found Content-Length = 677 [09:03:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706639", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:03:31]execute_script... [09:03: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)706639", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:03:31]POST & json_proto [09:03:31]process_json_proto [09:03:31]json parsed OK: [09:03:31]protocol is kg_v1.0 [09:03:31]action value=close_receipt [09:03:31]process_action close_receipt [09:03:31]cmd_close_receipt [09:03:31]MH_GetDate [09:03:31]Write to MH i2c: F0 00 00 93 12 94 [09:03:31]Write i2c OK [09:03:31]MH_I2C_Read... [09:03:31]Read from MH i2c: F0 [09:03:31]MH_I2C_Read... [09:03:31]Read from MH i2c: F0 09 00 [09:03:31]MH_I2C_Read... [09:03:31]Read from MH i2c: F0 09 00 93 12 00 67 D8 5E 66 B2 22 B0 64 88 [09:03:31]GetLastDocTimeStamp 1717491198 [09:03:31]current date 1717491815 [09:03:31]FM_GetShiftState [09:03:31]SAM_PROTO_GetShiftState [09:03:31]wFMCommunicate request_size=4 [09:03:31]MH_SAM_APDU [09:03:31]CAPDU: 80 13 01 00 [09:03:31]Write to MH i2c: E2 08 00 94 12 80 13 01 00 00 00 00 00 23 [09:03:31]Write i2c OK [09:03:31]MH_I2C_Read... [09:03:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:03:31]Read from MH i2c: E2 [09:03:31]MH_I2C_Read... [09:03:31]Read from MH i2c: E2 0E 00 [09:03:31]MH_I2C_Read... [09:03:31]Read from MH i2c: E2 0E 00 94 12 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 BF [09:03:31]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [09:03:31]wFMCommunicate OK [09:03:31]SAM_PROTO_GetShiftState done [09:03:31]FM_GetShiftState done [09:03:31]opened in 1717460590 [09:03:31]opened+sec_in_day 1717546990 [09:03:31]quantity*price = 50041 [09:03:31]sum+1 = 50042 [09:03:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 18 04.06.2024 09:03 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68520 ФПД: 109067557834895 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T090335&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68520&fm=109067557834895&tin=02508201610067®Number=0000000000098096&sum=50000 [09:03:32]StoreToDocumentArchive [09:03:32]shift 325 fd 68520 [09:03:32]save to /storage/0325/doc_00068520 [09:03:32]save last doc name /storage/0325/doc_00068520 to /storage/kkm_last_doc_name [09:03:32]save OK [09:03:32]Clear old archive folders... [09:03:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:03:32]tlvbuf is 00A22CD0 [09:03:32]SAM_PROTO_ClearQueue [09:03:32]wFMCommunicate request_size=4 [09:03:32]MH_SAM_APDU [09:03:32]CAPDU: 80 09 00 00 [09:03:32]Write to MH i2c: E2 08 00 A1 12 80 09 00 00 00 00 00 00 25 [09:03:32]Write i2c OK [09:03:32]MH_I2C_Read... [09:03:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:03:32]Read from MH i2c: E2 [09:03:32]MH_I2C_Read... [09:03:32]Read from MH i2c: E2 03 00 [09:03:32]MH_I2C_Read... [09:03:32]Read from MH i2c: E2 03 00 A1 12 00 90 00 27 [09:03:32]RAPDU: 90 00 [09:03:32]wFMCommunicate OK [09:03:32]SAM_PROTO_ClearQueue done [09:03:32]KKMCreateOFDPacket [09:03:32]OFDProtocolAddRootSTLVToBuf [09:03:32]FM_MakeSignedData [09:03:32]FM_MakeSignedData [09:03:32]SAM_PROTO_SignData [09:03:32]wFMCommunicate request_size=4 [09:03:32]MH_SAM_APDU [09:03:32]CAPDU: 80 0D 01 02 [09:03:32]Write to MH i2c: E2 08 00 A2 12 80 0D 01 02 00 00 00 00 2D [09:03:32]Write i2c OK [09:03:32]MH_I2C_Read... [09:03:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:03:32]Read from MH i2c: E2 [09:03:32]MH_I2C_Read... [09:03:32]Read from MH i2c: E2 03 00 [09:03:32]MH_I2C_Read... [09:03:32]Read from MH i2c: E2 03 00 A2 12 00 90 00 28 [09:03:32]RAPDU: 90 00 [09:03:32]wFMCommunicate OK [09:03:32]wFMCommunicate request_size=255 [09:03:32]MH_SAM_APDU [09:03: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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 67 D8 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 A8 0B 01 00 35 04 06 00 63 [09:03:32]Write to MH i2c: E2 02 01 A3 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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 67 D8 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 A8 0B 01 00 35 04 06 00 63 00 00 2C [09:03:32]Write i2c OK [09:03:32]MH_I2C_Read... [09:03:32]OFD Sender: No OFD packet to send [09:03:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:03:33]Read from MH i2c: E2 [09:03:33]MH_I2C_Read... [09:03:33]Read from MH i2c: E2 03 00 [09:03:33]MH_I2C_Read... [09:03:33]Read from MH i2c: E2 03 00 A3 12 00 90 00 29 [09:03:33]RAPDU: 90 00 [09:03:33]wFMCommunicate OK [09:03:33]wFMCommunicate request_size=10 [09:03:33]MH_SAM_APDU [09:03:33]CAPDU: 80 0D 02 02 05 32 45 0A 90 8F [09:03:33]Write to MH i2c: E2 0D 00 A4 12 80 0D 02 02 05 00 32 45 0A 90 8F 00 00 DA [09:03:33]Write i2c OK [09:03:33]MH_I2C_Read... [09:03:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:03:33]Read from MH i2c: E2 [09:03:33]MH_I2C_Read... [09:03:33]Read from MH i2c: E2 03 00 [09:03:33]MH_I2C_Read... [09:03:33]Read from MH i2c: E2 03 00 A4 12 00 90 00 2A [09:03:33]RAPDU: 90 00 [09:03:33]wFMCommunicate OK [09:03:33]wFMCommunicate request_size=4 [09:03:33]MH_SAM_APDU [09:03:33]CAPDU: 80 0D 03 02 [09:03:33]Write to MH i2c: E2 08 00 A5 12 80 0D 03 02 00 00 00 00 32 [09:03:33]Write i2c OK [09:03:33]MH_I2C_Read... [09:03:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:03:33]Read from MH i2c: E2 [09:03:33]MH_I2C_Read... [09:03:33]Read from MH i2c: E2 0B 00 [09:03:33]MH_I2C_Read... [09:03:33]Read from MH i2c: E2 0B 00 A5 12 00 B4 BE 68 43 9A 2D 55 0C 90 00 78 [09:03:33]RAPDU: B4 BE 68 43 9A 2D 55 0C 90 00 [09:03:33]wFMCommunicate OK [09:03:33]SAM_PROTO_SignData done [09:03:33]FM_MakeSignedData done [09:03:33]CreateOFDProtocolMessage [09:03:33]wFMCommunicate request_size=4 [09:03:33]MH_SAM_APDU [09:03:33]CAPDU: 80 11 00 00 [09:03:33]Write to MH i2c: E2 08 00 A6 12 80 11 00 00 00 00 00 00 32 [09:03:33]Write i2c OK [09:03:33]MH_I2C_Read... [09:03:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:03:33]Read from MH i2c: E2 [09:03:33]MH_I2C_Read... [09:03:33]Read from MH i2c: E2 17 00 [09:03:33]MH_I2C_Read... [09:03:33]Read from MH i2c: E2 17 00 A6 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 7D [09:03:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [09:03:33]wFMCommunicate OK [09:03:33]CreateOFDProtocolMessage done [09:03:33]OFDSenderStorePacket 68520 [09:03:33]StoreOFDPacket docnum=68520 [09:03:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 FC C1 07 01 C6 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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 67 D8 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 A8 0B 01 00 35 04 06 00 63 32 45 0A 90 8F B4 BE 68 43 9A 2D 55 0C [09:03:33]CheckFolder [09:03:33]dirname=/storage/ofd_packets [09:03:33]CheckFolder done [09:03:33]ProducePacketName [09:03:33]name=ofd_packets/00068520 [09:03:33]NVStorageSaveData ofd_packets/00068520 [09:03:33]File name is /storage/ofd_packets/00068520 [09:03:33]Write 301 bytes [09:03:33]NVStorageSaveData done [09:03:33]OFDSenderStorePacket done [09:03:33]KKMCreateOFDPacket done [09:03:33]NVStorageSaveData kkm_last_timestamp [09:03:33]File name is /storage/kkm_last_timestamp [09:03:33]Write 4 bytes [09:03:33]NVStorageSaveData done [09:03:33]ExternCall_PrintAddStr [09:03:33]wPrintStart [09:03:33]Write to MH i2c: 01 00 00 A7 12 B9 [09:03:33]Write i2c OK [09:03:33]MH_I2C_Read... [09:03:33]Read from MH i2c: 01 [09:03:33]MH_I2C_Read... [09:03:33]Read from MH i2c: 01 07 00 [09:03:33]MH_I2C_Read... [09:03:33]Read from MH i2c: 01 07 00 A7 12 00 00 00 00 00 FF 0F CE [09:03:33]RasterBufferAndPrint [09:03:33]line Счет N : (1)706639 [09:03:33]line ИНН: 02508201610067 [09:03:33]line Контрольно-Кассовый Чек [09:03:33]line ПРОДАЖА [09:03:33]line ТРК (МРК, ГНК) : 63 [09:03:33]line Товар: 2710124130 [09:03:33]line Аи-92-К-4 [09:03:33]line 7.480 * 66.90 [09:03:33]line = 500.41 [09:03:33]line НДС 12% НСП 1% [09:03:33]line > о реализуемом товаре [09:03:33]line ОКРУГЛЕНИЕ: -0.41 [09:03:33]line ИТОГО: 500.00 [09:03:33]line Внесено: 500.00 [09:03:33]line СДАЧА: 0.00 [09:03:33]line НСП 1% : 4.43 [09:03:33]line НДС 12% : 53.14 [09:03:33]line Наличными: 500.00 [09:03:33]line Безнал.: 0.00 [09:03:33]line Место: АЗС № 62 "Партнер Нефть" [09:03:33]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [09:03:33]line СНО: Общий режим [09:03:33]line Чек 18 04.06.2024 09:03 [09:03:33]line Смена: 325 ФФД: 1.0 [09:03:33]line ЗНМ: 0300000181 [09:03:33]line РНМ: 0000000000098096 [09:03:33]line Версия ККМ: 001 [09:03:33]line ФМ: 0000000000965400 [09:03:33]line ФД: 68520 [09:03:33]line ФПД: 109067557834895 [09:03:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T090335&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68520&fm=109067557834895&tin=02508201610067®Number=0000000000098096&sum=50000 [09:03:33]OFD Sender: Processing packet 68520 [packets to send 26, broken 25] [09:03:33]ProducePacketName [09:03:33]name=ofd_packets/00068520 [09:03:33]OFD Sender: To server: pG, [09:03:33]CommunicateWithHost lk.salyk.kg:30040 [09:03:33]ConnectInit lk.salyk.kg [09:03:33]written 0, free lines is 4095 [09:03:33]Connected sock=10 [09:03:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 FC C1 07 01 C6 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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 67 D8 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 A8 0B 01 00 35 04 06 00 63 32 45 0A 90 8F B4 BE 68 43 9A 2D 55 0C [09:03:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 8D 8A 47 00 A4 E3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 A8 0B 01 00 F4 03 04 00 60 7F 5E 66 B6 04 01 00 00 AD C5 60 F4 D2 33 28 4D [09:03:33]CommunicateWithHost err = 0 [09:03:33]CheckOFDResponse [09:03:33]1017 (14) - 77093643461234 [09:03:33]1041 (16) - 0000000000965400 [09:03:33]1040 (4) - 68520 [09:03:33]1012 (4) - 04.06.2024 02:43 [09:03:33]1206 (1) - 0 [09:03:33]OFD Sender: Remove packet 68520 [09:03:33]ProducePacketName [09:03:33]name=ofd_packets/00068520 [09:03:33]NVStorageDeleteData [09:03:34]Write to MH i2c: 01 00 00 D2 12 E4 [09:03:34]Write i2c OK [09:03:34]MH_I2C_Read... [09:03:34]Read from MH i2c: 01 [09:03:34]MH_I2C_Read... [09:03:34]Read from MH i2c: 01 07 00 [09:03:34]MH_I2C_Read... [09:03:34]Read from MH i2c: 01 07 00 D2 12 00 00 00 00 00 CF 0C C6 [09:03:34]RasterBufferAndPrint [09:03:34]line [09:03:34]line [09:03:34]line [09:03:34]line [09:03:34]line [09:03:34]written 0, free lines is 3286 [09:03:34]MH_Cut [09:03:34]Write to MH i2c: D1 01 00 D9 12 01 BD [09:03:34]Write i2c OK [09:03:34]MH_I2C_Read... [09:03:34]Read from MH i2c: D1 [09:03:34]MH_I2C_Read... [09:03:34]Read from MH i2c: D1 01 00 [09:03:34]MH_I2C_Read... [09:03:34]Read from MH i2c: D1 01 00 D9 12 00 BC [09:03:34]Write to MH i2c: 01 00 00 DA 12 EC [09:03:34]Write i2c OK [09:03:34]MH_I2C_Read... [09:03:34]OFD Sender: No OFD packet to send [09:03:34]*** Cut start [09:03:34]*** Partial cut [09:03:34]*** CUTSNS_PIN = 1 [09:03:34]*** CUTSNS_PIN = 0 [09:03:35]*** Brake cut motor [09:03:35]Read from MH i2c: 01 [09:03:35]MH_I2C_Read... [09:03:35]*** Stop cut motor [09:03:35]*** Cut end [09:03:35]Read from MH i2c: 01 07 00 [09:03:35]MH_I2C_Read... [09:03:35]Read from MH i2c: 01 07 00 DA 12 00 00 00 00 00 FF 0F 01 [09:03:35]process_action close_receipt done [09:03:35]requested_data is exist [09:03:35]produce_requested_data [09:03:35]requested_item fm.sn is exist - process it [09:03:35]wFMCommunicate request_size=4 [09:03:35]MH_SAM_APDU [09:03:35]CAPDU: 80 11 00 00 [09:03:35]Write to MH i2c: E2 08 00 DB 12 80 11 00 00 00 00 00 00 67 [09:03:35]Write i2c OK [09:03:35]MH_I2C_Read... [09:03:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:03:35]Read from MH i2c: E2 [09:03:35]MH_I2C_Read... [09:03:35]Read from MH i2c: E2 17 00 [09:03:35]MH_I2C_Read... [09:03:35]Read from MH i2c: E2 17 00 DB 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 B2 [09:03:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [09:03:35]wFMCommunicate OK [09:03:35]requested_item fd.num is exist - process it [09:03:35]SAM_PROTO_GetFieldsCounters [09:03:35]wFMCommunicate request_size=4 [09:03:35]MH_SAM_APDU [09:03:35]CAPDU: 80 13 00 00 [09:03:35]Write to MH i2c: E2 08 00 DC 12 80 13 00 00 00 00 00 00 6A [09:03:35]Write i2c OK [09:03:35]MH_I2C_Read... [09:03:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:03:35]Read from MH i2c: E2 [09:03:35]MH_I2C_Read... [09:03:35]Read from MH i2c: E2 62 00 [09:03:35]MH_I2C_Read... [09:03:35]Read from MH i2c: E2 62 00 DC 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 A8 0B 01 00 0E 04 04 00 45 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 BA [09:03:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 A8 0B 01 00 0E 04 04 00 45 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 [09:03:35]wFMCommunicate OK [09:03:35]SAM_PROTO_GetFieldsCounters done [09:03:35]requested_item shift.num is exist - process it [09:03:35]requested_item shift.opened is exist - process it [09:03:35]req_shift_opened [09:03:35]FM_GetShiftState [09:03:35]SAM_PROTO_GetShiftState [09:03:35]wFMCommunicate request_size=4 [09:03:35]MH_SAM_APDU [09:03:35]CAPDU: 80 13 01 00 [09:03:35]Write to MH i2c: E2 08 00 DD 12 80 13 01 00 00 00 00 00 6C [09:03:35]Write i2c OK [09:03:35]MH_I2C_Read... [09:03:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:03:35]Read from MH i2c: E2 [09:03:35]MH_I2C_Read... [09:03:35]Read from MH i2c: E2 0E 00 [09:03:35]MH_I2C_Read... [09:03:35]Read from MH i2c: E2 0E 00 DD 12 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 08 [09:03:35]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [09:03:35]wFMCommunicate OK [09:03:35]SAM_PROTO_GetShiftState done [09:03:35]FM_GetShiftState done [09:03:35]req_shift_opened done [09:03:35]requested_item shift.open_date is exist - process it [09:03:35]req_shift_open_date [09:03:35]req_shift_open_date done [09:03:35]produce_requested_data done [09:03:35]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68520,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [09:03:35]process_action_free close_receipt [09:03:35]json_value_free [09:03:35]json_value_free done [09:03:35]process_json_proto returns [09:03:35]Send response to host [09:03:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68520,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [09:03:35]free response buf [09:03:35]execute_script done [09:03:35]execute_script returns [09:03:35]free content buf [09:03:35]Sock 7.Close socket [09:03:35]Sock 7.Thread stoped [09:03:38]accept exits with 9 [09:03:38]New connection [09:03:38]New thread 3067227492 created [09:03:38]Thread 3067084132 joined [09:03:38]Waiting for new connection... [09:03:38] Sock 9.Parse request [09:03:38]Sock 9.Check first char [09:03:38]Sock 9.First char is OK [09:03:38]request: POST /json_proto HTTP/1.0 [09:03:38]Method: POST [09:03:38]URL: /json_proto [09:03:38]Method is POST - this is cgi request [09:03:38]url: /json_proto [09:03:38]query_string will be loaded in cgi processing [09:03:38]execute_cgi json_proto POST (null) [09:03:38]execute_cgi path=json_proto method=POST [09:03:38]POST find Content-Length [09:03:38]Host: 172.17.36.132:8080 [09:03:38]Content-Length: 833 [09:03:38]Content-Type: application/json [09:03:38] [09:03:38]POST finish read [09:03:38]Found Content-Length = 833 [09:03:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706638", "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" : 67.90, "quantity" : 8.690, "sum" : 590.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 590.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:03:38]execute_script... [09:03: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)706638", "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" : 67.90, "quantity" : 8.690, "sum" : 590.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 590.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:03:38]POST & json_proto [09:03:38]process_json_proto [09:03:38]json parsed OK: [09:03:38]protocol is kg_v1.0 [09:03:38]action value=close_receipt [09:03:38]process_action close_receipt [09:03:38]cmd_close_receipt [09:03:38]MH_GetDate [09:03:38]Write to MH i2c: F0 00 00 DE 12 DF [09:03:38]Write i2c OK [09:03:38]MH_I2C_Read... [09:03:38]Read from MH i2c: F0 [09:03:38]MH_I2C_Read... [09:03:38]Read from MH i2c: F0 09 00 [09:03:38]MH_I2C_Read... [09:03:38]Read from MH i2c: F0 09 00 DE 12 00 6D D8 5E 66 B2 22 B0 64 D9 [09:03:38]GetLastDocTimeStamp 1717491815 [09:03:38]current date 1717491821 [09:03:38]FM_GetShiftState [09:03:38]SAM_PROTO_GetShiftState [09:03:38]wFMCommunicate request_size=4 [09:03:38]MH_SAM_APDU [09:03:38]CAPDU: 80 13 01 00 [09:03:38]Write to MH i2c: E2 08 00 DF 12 80 13 01 00 00 00 00 00 6E [09:03:38]Write i2c OK [09:03:38]MH_I2C_Read... [09:03:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:03:38]Read from MH i2c: E2 [09:03:38]MH_I2C_Read... [09:03:38]Read from MH i2c: E2 0E 00 [09:03:38]MH_I2C_Read... [09:03:38]Read from MH i2c: E2 0E 00 DF 12 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 0A [09:03:38]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [09:03:38]wFMCommunicate OK [09:03:38]SAM_PROTO_GetShiftState done [09:03:38]FM_GetShiftState done [09:03:38]opened in 1717460590 [09:03:38]opened+sec_in_day 1717546990 [09:03:38]quantity*price = 59005 [09:03:38]sum+1 = 59006 [09:03:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 590.05 НСП 1% : 5.22 НДС 12% : 62.66 Наличными: 0.00 Безнал.: 590.05 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 19 04.06.2024 09:03 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000965400 ФД: 68521 ФПД: 62429775763157 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T090342&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68521&fm=62429775763157&tin=02508201610067®Number=0000000000098096&sum=59005 [09:03:39]StoreToDocumentArchive [09:03:39]shift 325 fd 68521 [09:03:39]save to /storage/0325/doc_00068521 [09:03:39]save last doc name /storage/0325/doc_00068521 to /storage/kkm_last_doc_name [09:03:39]save OK [09:03:39]Clear old archive folders... [09:03:39]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:03:39]tlvbuf is 00A5A360 [09:03:39]SAM_PROTO_ClearQueue [09:03:39]wFMCommunicate request_size=4 [09:03:39]MH_SAM_APDU [09:03:39]CAPDU: 80 09 00 00 [09:03:39]Write to MH i2c: E2 08 00 EC 12 80 09 00 00 00 00 00 00 70 [09:03:39]Write i2c OK [09:03:39]MH_I2C_Read... [09:03:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:03:39]Read from MH i2c: E2 [09:03:39]MH_I2C_Read... [09:03:39]Read from MH i2c: E2 03 00 [09:03:39]MH_I2C_Read... [09:03:39]Read from MH i2c: E2 03 00 EC 12 00 90 00 72 [09:03:39]RAPDU: 90 00 [09:03:39]wFMCommunicate OK [09:03:39]SAM_PROTO_ClearQueue done [09:03:39]KKMCreateOFDPacket [09:03:39]OFDProtocolAddRootSTLVToBuf [09:03:39]FM_MakeSignedData [09:03:39]FM_MakeSignedData [09:03:39]SAM_PROTO_SignData [09:03:39]wFMCommunicate request_size=4 [09:03:39]MH_SAM_APDU [09:03:39]CAPDU: 80 0D 01 02 [09:03:39]Write to MH i2c: E2 08 00 ED 12 80 0D 01 02 00 00 00 00 78 [09:03:39]Write i2c OK [09:03:39]MH_I2C_Read... [09:03:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:03:39]Read from MH i2c: E2 [09:03:39]MH_I2C_Read... [09:03:39]Read from MH i2c: E2 03 00 [09:03:39]MH_I2C_Read... [09:03:39]Read from MH i2c: E2 03 00 ED 12 00 90 00 73 [09:03:39]RAPDU: 90 00 [09:03:39]wFMCommunicate OK [09:03:39]wFMCommunicate request_size=255 [09:03:39]MH_SAM_APDU [09:03:39]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 21 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 7D E6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7D E6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7D E6 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 6E D8 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 A9 0B 01 00 35 04 06 00 [09:03:39]Write to MH i2c: E2 02 01 EE 12 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 21 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 7D E6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7D E6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7D E6 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 6E D8 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 A9 0B 01 00 35 04 06 00 00 00 3D [09:03:39]Write i2c OK [09:03:39]MH_I2C_Read... [09:03:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:03:40]Read from MH i2c: E2 [09:03:40]MH_I2C_Read... [09:03:40]Read from MH i2c: E2 03 00 [09:03:40]MH_I2C_Read... [09:03:40]Read from MH i2c: E2 03 00 EE 12 00 90 00 74 [09:03:40]RAPDU: 90 00 [09:03:40]wFMCommunicate OK [09:03:40]wFMCommunicate request_size=11 [09:03:40]MH_SAM_APDU [09:03:40]CAPDU: 80 0D 02 02 06 38 C7 90 9B 96 D5 [09:03:40]Write to MH i2c: E2 0E 00 EF 12 80 0D 02 02 06 00 38 C7 90 9B 96 D5 00 00 1C [09:03:40]Write i2c OK [09:03:40]MH_I2C_Read... [09:03:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:03:40]Read from MH i2c: E2 [09:03:40]MH_I2C_Read... [09:03:40]Read from MH i2c: E2 03 00 [09:03:40]MH_I2C_Read... [09:03:40]Read from MH i2c: E2 03 00 EF 12 00 90 00 75 [09:03:40]RAPDU: 90 00 [09:03:40]wFMCommunicate OK [09:03:40]wFMCommunicate request_size=4 [09:03:40]MH_SAM_APDU [09:03:40]CAPDU: 80 0D 03 02 [09:03:40]Write to MH i2c: E2 08 00 F0 12 80 0D 03 02 00 00 00 00 7D [09:03:40]Write i2c OK [09:03:40]MH_I2C_Read... [09:03:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:03:40]Read from MH i2c: E2 [09:03:40]MH_I2C_Read... [09:03:40]Read from MH i2c: E2 0B 00 [09:03:40]MH_I2C_Read... [09:03:40]Read from MH i2c: E2 0B 00 F0 12 00 1B CA 32 D9 4E 35 34 45 90 00 6A [09:03:40]RAPDU: 1B CA 32 D9 4E 35 34 45 90 00 [09:03:40]wFMCommunicate OK [09:03:40]SAM_PROTO_SignData done [09:03:40]FM_MakeSignedData done [09:03:40]CreateOFDProtocolMessage [09:03:40]wFMCommunicate request_size=4 [09:03:40]MH_SAM_APDU [09:03:40]CAPDU: 80 11 00 00 [09:03:40]Write to MH i2c: E2 08 00 F1 12 80 11 00 00 00 00 00 00 7D [09:03:40]Write i2c OK [09:03:40]MH_I2C_Read... [09:03:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:03:40]Read from MH i2c: E2 [09:03:40]MH_I2C_Read... [09:03:40]Read from MH i2c: E2 17 00 [09:03:40]MH_I2C_Read... [09:03:40]Read from MH i2c: E2 17 00 F1 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 C8 [09:03:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [09:03:40]wFMCommunicate OK [09:03:40]CreateOFDProtocolMessage done [09:03:40]OFDSenderStorePacket 68521 [09:03:40]StoreOFDPacket docnum=68521 [09:03:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 42 B8 08 01 11 1A 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 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 21 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 7D E6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7D E6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7D E6 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 6E D8 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 A9 0B 01 00 35 04 06 00 38 C7 90 9B 96 D5 1B CA 32 D9 4E 35 34 45 [09:03:40]CheckFolder [09:03:40]dirname=/storage/ofd_packets [09:03:40]CheckFolder done [09:03:40]ProducePacketName [09:03:40]name=ofd_packets/00068521 [09:03:40]NVStorageSaveData ofd_packets/00068521 [09:03:40]File name is /storage/ofd_packets/00068521 [09:03:40]Write 302 bytes [09:03:40]NVStorageSaveData done [09:03:40]OFDSenderStorePacket done [09:03:40]KKMCreateOFDPacket done [09:03:40]NVStorageSaveData kkm_last_timestamp [09:03:40]File name is /storage/kkm_last_timestamp [09:03:40]Write 4 bytes [09:03:40]NVStorageSaveData done [09:03:40]ExternCall_PrintAddStr [09:03:40]wPrintStart [09:03:40]Write to MH i2c: 01 00 00 F2 12 04 [09:03:40]Write i2c OK [09:03:40]MH_I2C_Read... [09:03:40]Read from MH i2c: 01 [09:03:40]MH_I2C_Read... [09:03:40]Read from MH i2c: 01 07 00 [09:03:40]MH_I2C_Read... [09:03:40]Read from MH i2c: 01 07 00 F2 12 00 00 00 00 00 FF 0F 19 [09:03:40]RasterBufferAndPrint [09:03:40]line Счет N : (1)706638 [09:03:40]line ИНН: 02508201610067 [09:03:40]line Контрольно-Кассовый Чек [09:03:40]line ПРОДАЖА [09:03:40]line ТРК (МРК, ГНК) : 41 [09:03:40]line Товар: 2710124130 [09:03:40]line Super-92-К-5 [09:03:40]line 8.690 * 67.90 [09:03:40]line = 590.05 [09:03:40]line НДС 12% НСП 1% [09:03:40]line > о реализуемом товаре [09:03:40]line ИТОГО: 590.05 [09:03:40]line НСП 1% : 5.22 [09:03:40]line НДС 12% : 62.66 [09:03:40]line Наличными: 0.00 [09:03:40]line Безнал.: 590.05 [09:03:40]line Место: АЗС № 62 "Партнер Нефть" [09:03:40]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [09:03:40]line СНО: Общий режим [09:03:40]line Чек 19 04.06.2024 09:03 [09:03:40]line Смена: 325 ФФД: 1.0 [09:03:40]line ЗНМ: 0300000181 [09:03:40]line РНМ: 0000000000098096 [09:03:40]line Версия ККМ: 001 [09:03:40]line Платежная система: АКБ Кыргызстан [09:03:40]line ФМ: 0000000000965400 [09:03:40]line ФД: 68521 [09:03:40]line ФПД: 62429775763157 [09:03:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T090342&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68521&fm=62429775763157&tin=02508201610067®Number=0000000000098096&sum=59005 [09:03:40]written 0, free lines is 4095 [09:03:40]OFD Sender: Processing packet 68521 [packets to send 26, broken 25] [09:03:40]ProducePacketName [09:03:40]name=ofd_packets/00068521 [09:03:40]OFD Sender: To server: pG, [09:03:40]CommunicateWithHost lk.salyk.kg:30040 [09:03:40]ConnectInit lk.salyk.kg [09:03:40]Connected sock=10 [09:03:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 42 B8 08 01 11 1A 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 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 21 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 7D E6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7D E6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7D E6 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 6E D8 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 A9 0B 01 00 35 04 06 00 38 C7 90 9B 96 D5 1B CA 32 D9 4E 35 34 45 [09:03:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 67 63 47 00 73 0C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 A9 0B 01 00 F4 03 04 00 66 7F 5E 66 B6 04 01 00 00 EA 02 A5 B5 30 22 8E 1F [09:03:40]CommunicateWithHost err = 0 [09:03:40]CheckOFDResponse [09:03:40]1017 (14) - 77093643461234 [09:03:40]1041 (16) - 0000000000965400 [09:03:40]1040 (4) - 68521 [09:03:40]1012 (4) - 04.06.2024 02:43 [09:03:40]1206 (1) - 0 [09:03:40]OFD Sender: Remove packet 68521 [09:03:40]ProducePacketName [09:03:40]name=ofd_packets/00068521 [09:03:40]NVStorageDeleteData [09:03:40]Write to MH i2c: 01 00 00 1C 13 2F [09:03:40]Write i2c OK [09:03:40]MH_I2C_Read... [09:03:40]Read from MH i2c: 01 [09:03:40]MH_I2C_Read... [09:03:40]Read from MH i2c: 01 07 00 [09:03:40]MH_I2C_Read... [09:03:40]Read from MH i2c: 01 07 00 1C 13 00 00 00 00 00 ED 0C 2F [09:03:40]RasterBufferAndPrint [09:03:40]line [09:03:40]line [09:03:40]line [09:03:40]line [09:03:40]line [09:03:40]written 0, free lines is 3318 [09:03:40]MH_Cut [09:03:40]Write to MH i2c: D1 01 00 23 13 01 08 [09:03:40]Write i2c OK [09:03:40]MH_I2C_Read... [09:03:40]Read from MH i2c: D1 [09:03:40]MH_I2C_Read... [09:03:40]Read from MH i2c: D1 01 00 [09:03:40]MH_I2C_Read... [09:03:40]Read from MH i2c: D1 01 00 23 13 00 07 [09:03:40]Write to MH i2c: 01 00 00 24 13 37 [09:03:40]Write i2c OK [09:03:40]MH_I2C_Read... [09:03:40]OFD Sender: No OFD packet to send [09:03:41]*** Cut start [09:03:41]*** Partial cut [09:03:41]*** CUTSNS_PIN = 1 [09:03:41]*** CUTSNS_PIN = 0 [09:03:41]*** Brake cut motor [09:03:42]Read from MH i2c: 01 [09:03:42]MH_I2C_Read... [09:03:42]*** Stop cut motor [09:03:42]*** Cut end [09:03:42]Read from MH i2c: 01 07 00 [09:03:42]MH_I2C_Read... [09:03:42]Read from MH i2c: 01 07 00 24 13 00 00 00 00 00 FF 0F 4C [09:03:42]process_action close_receipt done [09:03:42]requested_data is exist [09:03:42]produce_requested_data [09:03:42]requested_item fm.sn is exist - process it [09:03:42]wFMCommunicate request_size=4 [09:03:42]MH_SAM_APDU [09:03:42]CAPDU: 80 11 00 00 [09:03:42]Write to MH i2c: E2 08 00 25 13 80 11 00 00 00 00 00 00 B2 [09:03:42]Write i2c OK [09:03:42]MH_I2C_Read... [09:03:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:03:42]Read from MH i2c: E2 [09:03:42]MH_I2C_Read... [09:03:42]Read from MH i2c: E2 17 00 [09:03:42]MH_I2C_Read... [09:03:42]Read from MH i2c: E2 17 00 25 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 FD [09:03:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [09:03:42]wFMCommunicate OK [09:03:42]requested_item fd.num is exist - process it [09:03:42]SAM_PROTO_GetFieldsCounters [09:03:42]wFMCommunicate request_size=4 [09:03:42]MH_SAM_APDU [09:03:42]CAPDU: 80 13 00 00 [09:03:42]Write to MH i2c: E2 08 00 26 13 80 13 00 00 00 00 00 00 B5 [09:03:42]Write i2c OK [09:03:42]MH_I2C_Read... [09:03:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:03:42]Read from MH i2c: E2 [09:03:42]MH_I2C_Read... [09:03:42]Read from MH i2c: E2 62 00 [09:03:42]MH_I2C_Read... [09:03:42]Read from MH i2c: E2 62 00 26 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 A9 0B 01 00 0E 04 04 00 45 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 09 [09:03:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 A9 0B 01 00 0E 04 04 00 45 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 [09:03:42]wFMCommunicate OK [09:03:42]SAM_PROTO_GetFieldsCounters done [09:03:42]requested_item shift.num is exist - process it [09:03:42]requested_item shift.opened is exist - process it [09:03:42]req_shift_opened [09:03:42]FM_GetShiftState [09:03:42]SAM_PROTO_GetShiftState [09:03:42]wFMCommunicate request_size=4 [09:03:42]MH_SAM_APDU [09:03:42]CAPDU: 80 13 01 00 [09:03:42]Write to MH i2c: E2 08 00 27 13 80 13 01 00 00 00 00 00 B7 [09:03:42]Write i2c OK [09:03:42]MH_I2C_Read... [09:03:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:03:42]Read from MH i2c: E2 [09:03:42]MH_I2C_Read... [09:03:42]Read from MH i2c: E2 0E 00 [09:03:42]MH_I2C_Read... [09:03:42]Read from MH i2c: E2 0E 00 27 13 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 53 [09:03:42]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [09:03:42]wFMCommunicate OK [09:03:42]SAM_PROTO_GetShiftState done [09:03:42]FM_GetShiftState done [09:03:42]req_shift_opened done [09:03:42]requested_item shift.open_date is exist - process it [09:03:42]req_shift_open_date [09:03:42]req_shift_open_date done [09:03:42]produce_requested_data done [09:03:42]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68521,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [09:03:42]process_action_free close_receipt [09:03:42]json_value_free [09:03:42]json_value_free done [09:03:42]process_json_proto returns [09:03:42]Send response to host [09:03:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68521,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [09:03:42]free response buf [09:03:42]execute_script done [09:03:42]execute_script returns [09:03:42]free content buf [09:03:42]Sock 9.Close socket [09:03:42]Sock 9.Thread stoped [09:03:45]OFD Sender: No OFD packet to send [09:03:50]OFD Sender: No OFD packet to send [09:03:56]OFD Sender: No OFD packet to send [09:04:01]OFD Sender: No OFD packet to send [09:04:06]OFD Sender: No OFD packet to send [09:04:11]OFD Sender: No OFD packet to send [09:04:16]OFD Sender: No OFD packet to send [09:04:21]OFD Sender: No OFD packet to send [09:04:26]OFD Sender: No OFD packet to send [09:04:31]OFD Sender: No OFD packet to send [09:04:36]OFD Sender: No OFD packet to send [09:04:41]OFD Sender: No OFD packet to send [09:04:43]accept exits with 7 [09:04:43]New connection [09:04:43]New thread 3067084132 created [09:04:43]Thread 3067227492 joined [09:04:43]Waiting for new connection... [09:04:43] Sock 7.Parse request [09:04:43]Sock 7.Check first char [09:04:43]Sock 7.First char is OK [09:04:43]request: POST /json_proto HTTP/1.0 [09:04:43]Method: POST [09:04:43]URL: /json_proto [09:04:43]Method is POST - this is cgi request [09:04:43]url: /json_proto [09:04:43]query_string will be loaded in cgi processing [09:04:43]execute_cgi json_proto POST (null) [09:04:43]execute_cgi path=json_proto method=POST [09:04:43]POST find Content-Length [09:04:43]Host: 172.17.36.132:8080 [09:04:43]Content-Length: 682 [09:04:43]Content-Type: application/json [09:04:43] [09:04:43]POST finish read [09:04:43]Found Content-Length = 682 [09:04:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706640", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 27.070, "sum" : 2000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:04:43]execute_script... [09:04: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)706640", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 27.070, "sum" : 2000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:04:43]POST & json_proto [09:04:43]process_json_proto [09:04:43]json parsed OK: [09:04:43]protocol is kg_v1.0 [09:04:43]action value=close_receipt [09:04:43]process_action close_receipt [09:04:43]cmd_close_receipt [09:04:43]MH_GetDate [09:04:43]Write to MH i2c: F0 00 00 28 13 2A [09:04:43]Write i2c OK [09:04:43]MH_I2C_Read... [09:04:43]Read from MH i2c: F0 [09:04:43]MH_I2C_Read... [09:04:43]Read from MH i2c: F0 09 00 [09:04:43]MH_I2C_Read... [09:04:43]Read from MH i2c: F0 09 00 28 13 00 AE D8 5E 66 B2 22 B0 64 65 [09:04:43]GetLastDocTimeStamp 1717491822 [09:04:43]current date 1717491886 [09:04:43]FM_GetShiftState [09:04:43]SAM_PROTO_GetShiftState [09:04:43]wFMCommunicate request_size=4 [09:04:43]MH_SAM_APDU [09:04:43]CAPDU: 80 13 01 00 [09:04:43]Write to MH i2c: E2 08 00 29 13 80 13 01 00 00 00 00 00 B9 [09:04:43]Write i2c OK [09:04:43]MH_I2C_Read... [09:04:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:04:43]Read from MH i2c: E2 [09:04:43]MH_I2C_Read... [09:04:43]Read from MH i2c: E2 0E 00 [09:04:43]MH_I2C_Read... [09:04:43]Read from MH i2c: E2 0E 00 29 13 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 55 [09:04:43]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [09:04:43]wFMCommunicate OK [09:04:43]SAM_PROTO_GetShiftState done [09:04:43]FM_GetShiftState done [09:04:43]opened in 1717460590 [09:04:43]opened+sec_in_day 1717546990 [09:04:43]quantity*price = 200047 [09:04:43]sum+1 = 200048 [09:04:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.44 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 20 04.06.2024 09:04 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68522 ФПД: 203358753843139 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T090446&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68522&fm=203358753843139&tin=02508201610067®Number=0000000000098096&sum=200000 [09:04:44]StoreToDocumentArchive [09:04:44]shift 325 fd 68522 [09:04:44]save to /storage/0325/doc_00068522 [09:04:44]save last doc name /storage/0325/doc_00068522 to /storage/kkm_last_doc_name [09:04:44]save OK [09:04:44]Clear old archive folders... [09:04:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:04:44]tlvbuf is 00A42800 [09:04:44]SAM_PROTO_ClearQueue [09:04:44]wFMCommunicate request_size=4 [09:04:44]MH_SAM_APDU [09:04:44]CAPDU: 80 09 00 00 [09:04:44]Write to MH i2c: E2 08 00 36 13 80 09 00 00 00 00 00 00 BB [09:04:44]Write i2c OK [09:04:44]MH_I2C_Read... [09:04:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:04:44]Read from MH i2c: E2 [09:04:44]MH_I2C_Read... [09:04:44]Read from MH i2c: E2 03 00 [09:04:44]MH_I2C_Read... [09:04:44]Read from MH i2c: E2 03 00 36 13 00 90 00 BD [09:04:44]RAPDU: 90 00 [09:04:44]wFMCommunicate OK [09:04:44]SAM_PROTO_ClearQueue done [09:04:44]KKMCreateOFDPacket [09:04:44]OFDProtocolAddRootSTLVToBuf [09:04:44]FM_MakeSignedData [09:04:44]FM_MakeSignedData [09:04:44]SAM_PROTO_SignData [09:04:44]wFMCommunicate request_size=4 [09:04:44]MH_SAM_APDU [09:04:44]CAPDU: 80 0D 01 02 [09:04:44]Write to MH i2c: E2 08 00 37 13 80 0D 01 02 00 00 00 00 C3 [09:04:44]Write i2c OK [09:04:44]MH_I2C_Read... [09:04:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:04:44]Read from MH i2c: E2 [09:04:44]MH_I2C_Read... [09:04:44]Read from MH i2c: E2 03 00 [09:04:44]MH_I2C_Read... [09:04:44]Read from MH i2c: E2 03 00 37 13 00 90 00 BE [09:04:44]RAPDU: 90 00 [09:04:44]wFMCommunicate OK [09:04:44]wFMCommunicate request_size=255 [09:04:44]MH_SAM_APDU [09:04:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 BE 69 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 AE D8 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 AA 0B 01 00 35 04 06 00 B8 [09:04:44]Write to MH i2c: E2 02 01 38 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 BE 69 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 AE D8 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 AA 0B 01 00 35 04 06 00 B8 00 00 60 [09:04:44]Write i2c OK [09:04:44]MH_I2C_Read... [09:04:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:04:44]Read from MH i2c: E2 [09:04:44]MH_I2C_Read... [09:04:44]Read from MH i2c: E2 03 00 [09:04:44]MH_I2C_Read... [09:04:44]Read from MH i2c: E2 03 00 38 13 00 90 00 BF [09:04:44]RAPDU: 90 00 [09:04:44]wFMCommunicate OK [09:04:44]wFMCommunicate request_size=10 [09:04:44]MH_SAM_APDU [09:04:44]CAPDU: 80 0D 02 02 05 F4 26 48 E7 C3 [09:04:44]Write to MH i2c: E2 0D 00 39 13 80 0D 02 02 05 00 F4 26 48 E7 C3 00 00 DC [09:04:44]Write i2c OK [09:04:44]MH_I2C_Read... [09:04:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:04:44]Read from MH i2c: E2 [09:04:44]MH_I2C_Read... [09:04:44]Read from MH i2c: E2 03 00 [09:04:44]MH_I2C_Read... [09:04:44]Read from MH i2c: E2 03 00 39 13 00 90 00 C0 [09:04:44]RAPDU: 90 00 [09:04:44]wFMCommunicate OK [09:04:44]wFMCommunicate request_size=4 [09:04:44]MH_SAM_APDU [09:04:44]CAPDU: 80 0D 03 02 [09:04:44]Write to MH i2c: E2 08 00 3A 13 80 0D 03 02 00 00 00 00 C8 [09:04:44]Write i2c OK [09:04:44]MH_I2C_Read... [09:04:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:04:44]Read from MH i2c: E2 [09:04:44]MH_I2C_Read... [09:04:44]Read from MH i2c: E2 0B 00 [09:04:44]MH_I2C_Read... [09:04:44]Read from MH i2c: E2 0B 00 3A 13 00 B9 08 8F 77 1C CC B3 2B 90 00 56 [09:04:44]RAPDU: B9 08 8F 77 1C CC B3 2B 90 00 [09:04:44]wFMCommunicate OK [09:04:44]SAM_PROTO_SignData done [09:04:44]FM_MakeSignedData done [09:04:44]CreateOFDProtocolMessage [09:04:44]wFMCommunicate request_size=4 [09:04:44]MH_SAM_APDU [09:04:44]CAPDU: 80 11 00 00 [09:04:44]Write to MH i2c: E2 08 00 3B 13 80 11 00 00 00 00 00 00 C8 [09:04:44]Write i2c OK [09:04:44]MH_I2C_Read... [09:04:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:04:44]Read from MH i2c: E2 [09:04:44]MH_I2C_Read... [09:04:44]Read from MH i2c: E2 17 00 [09:04:44]MH_I2C_Read... [09:04:44]Read from MH i2c: E2 17 00 3B 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 13 [09:04:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [09:04:44]wFMCommunicate OK [09:04:44]CreateOFDProtocolMessage done [09:04:44]OFDSenderStorePacket 68522 [09:04:44]StoreOFDPacket docnum=68522 [09:04:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 27 C7 07 01 26 93 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 BE 69 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 AE D8 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 AA 0B 01 00 35 04 06 00 B8 F4 26 48 E7 C3 B9 08 8F 77 1C CC B3 2B [09:04:44]CheckFolder [09:04:44]dirname=/storage/ofd_packets [09:04:44]CheckFolder done [09:04:44]ProducePacketName [09:04:44]name=ofd_packets/00068522 [09:04:44]NVStorageSaveData ofd_packets/00068522 [09:04:44]File name is /storage/ofd_packets/00068522 [09:04:44]Write 301 bytes [09:04:44]NVStorageSaveData done [09:04:44]OFDSenderStorePacket done [09:04:44]KKMCreateOFDPacket done [09:04:44]NVStorageSaveData kkm_last_timestamp [09:04:44]File name is /storage/kkm_last_timestamp [09:04:44]Write 4 bytes [09:04:44]NVStorageSaveData done [09:04:44]ExternCall_PrintAddStr [09:04:44]wPrintStart [09:04:44]Write to MH i2c: 01 00 00 3C 13 4F [09:04:44]Write i2c OK [09:04:44]MH_I2C_Read... [09:04:44]Read from MH i2c: 01 [09:04:44]MH_I2C_Read... [09:04:44]Read from MH i2c: 01 07 00 [09:04:44]MH_I2C_Read... [09:04:44]Read from MH i2c: 01 07 00 3C 13 00 00 00 00 00 FF 0F 64 [09:04:44]RasterBufferAndPrint [09:04:44]line Счет N : (1)706640 [09:04:44]line ИНН: 02508201610067 [09:04:44]line Контрольно-Кассовый Чек [09:04:44]line ПРОДАЖА [09:04:44]line ТРК (МРК, ГНК) : 24 [09:04:44]line Товар: 2710124500 [09:04:44]line Аи-95-К-5 [09:04:44]line 27.070 * 73.90 [09:04:44]line = 2000.47 [09:04:44]line НДС 12% НСП 1% [09:04:44]line > о реализуемом товаре [09:04:44]line ОКРУГЛЕНИЕ: -0.47 [09:04:44]line ИТОГО: 2000.00 [09:04:44]line Внесено: 2000.00 [09:04:44]line СДАЧА: 0.00 [09:04:44]line НСП 1% : 17.70 [09:04:44]line НДС 12% : 212.44 [09:04:44]line Наличными: 2000.00 [09:04:44]line Безнал.: 0.00 [09:04:44]line Место: АЗС № 62 "Партнер Нефть" [09:04:44]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [09:04:44]line СНО: Общий режим [09:04:44]line Чек 20 04.06.2024 09:04 [09:04:44]line Смена: 325 ФФД: 1.0 [09:04:44]line ЗНМ: 0300000181 [09:04:44]line РНМ: 0000000000098096 [09:04:44]line Версия ККМ: 001 [09:04:44]line ФМ: 0000000000965400 [09:04:44]line ФД: 68522 [09:04:44]line ФПД: 203358753843139 [09:04:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T090446&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68522&fm=203358753843139&tin=02508201610067®Number=0000000000098096&sum=200000 [09:04:45]OFD Sender: Processing packet 68522 [packets to send 26, broken 25] [09:04:45]ProducePacketName [09:04:45]name=ofd_packets/00068522 [09:04:45]OFD Sender: To server: pG, [09:04:45]CommunicateWithHost lk.salyk.kg:30040 [09:04:45]ConnectInit lk.salyk.kg [09:04:45]written 0, free lines is 4095 [09:04:45]Connected sock=10 [09:04:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 27 C7 07 01 26 93 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 BE 69 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 AE D8 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 AA 0B 01 00 35 04 06 00 B8 F4 26 48 E7 C3 B9 08 8F 77 1C CC B3 2B [09:04:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 83 99 47 00 47 2E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 AA 0B 01 00 F4 03 04 00 A7 7F 5E 66 B6 04 01 00 00 08 09 1E 3E 6E E5 46 FD [09:04:45]CommunicateWithHost err = 0 [09:04:45]CheckOFDResponse [09:04:45]1017 (14) - 77093643461234 [09:04:45]1041 (16) - 0000000000965400 [09:04:45]1040 (4) - 68522 [09:04:45]1012 (4) - 04.06.2024 02:44 [09:04:45]1206 (1) - 0 [09:04:45]OFD Sender: Remove packet 68522 [09:04:45]ProducePacketName [09:04:45]name=ofd_packets/00068522 [09:04:45]NVStorageDeleteData [09:04:45]Write to MH i2c: 01 00 00 67 13 7A [09:04:45]Write i2c OK [09:04:45]MH_I2C_Read... [09:04:45]Read from MH i2c: 01 [09:04:45]MH_I2C_Read... [09:04:45]Read from MH i2c: 01 07 00 [09:04:45]MH_I2C_Read... [09:04:45]Read from MH i2c: 01 07 00 67 13 00 00 00 00 00 F6 0C 83 [09:04:45]RasterBufferAndPrint [09:04:45]line [09:04:45]line [09:04:45]line [09:04:45]line [09:04:45]line [09:04:45]written 0, free lines is 3326 [09:04:45]MH_Cut [09:04:45]Write to MH i2c: D1 01 00 6E 13 01 53 [09:04:45]Write i2c OK [09:04:45]MH_I2C_Read... [09:04:45]Read from MH i2c: D1 [09:04:45]MH_I2C_Read... [09:04:45]Read from MH i2c: D1 01 00 [09:04:45]MH_I2C_Read... [09:04:45]Read from MH i2c: D1 01 00 6E 13 00 52 [09:04:45]Write to MH i2c: 01 00 00 6F 13 82 [09:04:45]Write i2c OK [09:04:45]MH_I2C_Read... [09:04:45]OFD Sender: No OFD packet to send [09:04:46]*** Cut start [09:04:46]*** Partial cut [09:04:46]*** CUTSNS_PIN = 1 [09:04:46]*** CUTSNS_PIN = 0 [09:04:46]*** Brake cut motor [09:04:47]Read from MH i2c: 01 [09:04:47]MH_I2C_Read... [09:04:47]*** Stop cut motor [09:04:47]*** Cut end [09:04:47]Read from MH i2c: 01 07 00 [09:04:47]MH_I2C_Read... [09:04:47]Read from MH i2c: 01 07 00 6F 13 00 00 00 00 00 FF 0F 97 [09:04:47]process_action close_receipt done [09:04:47]requested_data is exist [09:04:47]produce_requested_data [09:04:47]requested_item fm.sn is exist - process it [09:04:47]wFMCommunicate request_size=4 [09:04:47]MH_SAM_APDU [09:04:47]CAPDU: 80 11 00 00 [09:04:47]Write to MH i2c: E2 08 00 70 13 80 11 00 00 00 00 00 00 FD [09:04:47]Write i2c OK [09:04:47]MH_I2C_Read... [09:04:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:04:47]Read from MH i2c: E2 [09:04:47]MH_I2C_Read... [09:04:47]Read from MH i2c: E2 17 00 [09:04:47]MH_I2C_Read... [09:04:47]Read from MH i2c: E2 17 00 70 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 48 [09:04:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [09:04:47]wFMCommunicate OK [09:04:47]requested_item fd.num is exist - process it [09:04:47]SAM_PROTO_GetFieldsCounters [09:04:47]wFMCommunicate request_size=4 [09:04:47]MH_SAM_APDU [09:04:47]CAPDU: 80 13 00 00 [09:04:47]Write to MH i2c: E2 08 00 71 13 80 13 00 00 00 00 00 00 00 [09:04:47]Write i2c OK [09:04:47]MH_I2C_Read... [09:04:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:04:47]Read from MH i2c: E2 [09:04:47]MH_I2C_Read... [09:04:47]Read from MH i2c: E2 62 00 [09:04:47]MH_I2C_Read... [09:04:47]Read from MH i2c: E2 62 00 71 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 AA 0B 01 00 0E 04 04 00 45 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 [09:04:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 AA 0B 01 00 0E 04 04 00 45 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 [09:04:47]wFMCommunicate OK [09:04:47]SAM_PROTO_GetFieldsCounters done [09:04:47]requested_item shift.num is exist - process it [09:04:47]requested_item shift.opened is exist - process it [09:04:47]req_shift_opened [09:04:47]FM_GetShiftState [09:04:47]SAM_PROTO_GetShiftState [09:04:47]wFMCommunicate request_size=4 [09:04:47]MH_SAM_APDU [09:04:47]CAPDU: 80 13 01 00 [09:04:47]Write to MH i2c: E2 08 00 72 13 80 13 01 00 00 00 00 00 02 [09:04:47]Write i2c OK [09:04:47]MH_I2C_Read... [09:04:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:04:47]Read from MH i2c: E2 [09:04:47]MH_I2C_Read... [09:04:47]Read from MH i2c: E2 0E 00 [09:04:47]MH_I2C_Read... [09:04:47]Read from MH i2c: E2 0E 00 72 13 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 9E [09:04:47]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [09:04:47]wFMCommunicate OK [09:04:47]SAM_PROTO_GetShiftState done [09:04:47]FM_GetShiftState done [09:04:47]req_shift_opened done [09:04:47]requested_item shift.open_date is exist - process it [09:04:47]req_shift_open_date [09:04:47]req_shift_open_date done [09:04:47]produce_requested_data done [09:04:47]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68522,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [09:04:47]process_action_free close_receipt [09:04:47]json_value_free [09:04:47]json_value_free done [09:04:47]process_json_proto returns [09:04:47]Send response to host [09:04:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68522,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [09:04:47]free response buf [09:04:47]execute_script done [09:04:47]execute_script returns [09:04:47]free content buf [09:04:47]Sock 7.Close socket [09:04:47]Sock 7.Thread stoped [09:04:50]OFD Sender: No OFD packet to send [09:04:55]OFD Sender: No OFD packet to send [09:05:00]OFD Sender: No OFD packet to send [09:05:05]OFD Sender: No OFD packet to send [09:05:10]OFD Sender: No OFD packet to send [09:05:15]OFD Sender: No OFD packet to send [09:05:20]OFD Sender: No OFD packet to send [09:05:25]OFD Sender: No OFD packet to send [09:05:30]OFD Sender: No OFD packet to send [09:05:35]OFD Sender: No OFD packet to send [09:05:40]OFD Sender: No OFD packet to send [09:05:45]OFD Sender: No OFD packet to send [09:05:50]OFD Sender: No OFD packet to send [09:05:55]OFD Sender: No OFD packet to send [09:06:00]OFD Sender: No OFD packet to send [09:06: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:41]OFD Sender: No OFD packet to send [09:13:46]OFD Sender: No OFD packet to send [09:13:51]OFD Sender: No OFD packet to send [09:13:56]OFD Sender: No OFD packet to send [09:14:01]OFD Sender: No OFD packet to send [09:14:06]OFD Sender: No OFD packet to send [09:14:11]OFD Sender: No OFD packet to send [09:14:16]OFD Sender: No OFD packet to send [09:14:21]OFD Sender: No OFD packet to send [09:14:26]OFD Sender: No OFD packet to send [09:14:31]OFD Sender: No OFD packet to send [09:14:36]OFD Sender: No OFD packet to send [09:14:41]OFD Sender: No OFD packet to send [09:14:46]OFD Sender: No OFD packet to send [09:14:51]OFD Sender: No OFD packet to send [09:14:56]OFD Sender: No OFD packet to send [09:15:01]OFD Sender: No OFD packet to send [09:15:06]OFD Sender: No OFD packet to send [09:15:11]OFD Sender: No OFD packet to send [09:15:16]OFD Sender: No OFD packet to send [09:15:21]OFD Sender: No OFD packet to send [09:15:26]OFD Sender: No OFD packet to send [09:15:31]OFD Sender: No OFD packet to send [09:15:36]OFD Sender: No OFD packet to send [09:15:41]OFD Sender: No OFD packet to send [09:15:46]OFD Sender: No OFD packet to send [09:15:51]OFD Sender: No OFD packet to send [09:15:56]OFD Sender: No OFD packet to send [09:16:01]OFD Sender: No OFD packet to send [09:16:06]OFD Sender: No OFD packet to send [09:16:11]OFD Sender: No OFD packet to send [09:16:16]OFD Sender: No OFD packet to send [09:16:21]OFD Sender: No OFD packet to send [09:16:26]OFD Sender: No OFD packet to send [09:16:31]OFD Sender: No OFD packet to send [09:16:36]OFD Sender: No OFD packet to send [09:16:41]OFD Sender: No OFD packet to send [09:16:46]OFD Sender: No OFD packet to send [09:16:51]OFD Sender: No OFD packet to send [09:16:56]OFD Sender: No OFD packet to send [09:17:01]OFD Sender: No OFD packet to send [09:17:06]OFD Sender: No OFD packet to send [09:17:11]OFD Sender: No OFD packet to send [09:17:16]OFD Sender: No OFD packet to send [09:17:21]OFD Sender: No OFD packet to send [09:17:26]OFD Sender: No OFD packet to send [09:17:31]OFD Sender: No OFD packet to send [09:17:36]OFD Sender: No OFD packet to send [09:17:41]OFD Sender: No OFD packet to send [09:17:46]OFD Sender: No OFD packet to send [09:17:51]OFD Sender: No OFD packet to send [09:17:56]OFD Sender: No OFD packet to send [09:18:01]OFD Sender: No OFD packet to send [09:18:06]OFD Sender: No OFD packet to send [09:18:11]OFD Sender: No OFD packet to send [09:18:16]OFD Sender: No OFD packet to send [09:18:21]OFD Sender: No OFD packet to send [09:18:26]OFD Sender: No OFD packet to send [09:18:31]OFD Sender: No OFD packet to send [09:18:36]OFD Sender: No OFD packet to send [09:18:41]OFD Sender: No OFD packet to send [09:18:46]OFD Sender: No OFD packet to send [09:18:51]OFD Sender: No OFD packet to send [09:18:56]OFD Sender: No OFD packet to send [09:19:01]OFD Sender: No OFD packet to send [09:19:06]OFD Sender: No OFD packet to send [09:19:11]OFD Sender: No OFD packet to send [09:19:16]OFD Sender: No OFD packet to send [09:19:21]OFD Sender: No OFD packet to send [09:19:26]OFD Sender: No OFD packet to send [09:19:31]OFD Sender: No OFD packet to send [09:19:36]OFD Sender: No OFD packet to send [09:19:41]OFD Sender: No OFD packet to send [09:19:46]OFD Sender: No OFD packet to send [09:19:51]OFD Sender: No OFD packet to send [09:19:56]OFD Sender: No OFD packet to send [09:20:01]OFD Sender: No OFD packet to send [09:20:06]OFD Sender: No OFD packet to send [09:20:11]OFD Sender: No OFD packet to send [09:20:16]OFD Sender: No OFD packet to send [09:20:21]OFD Sender: No OFD packet to send [09:20:26]OFD Sender: No OFD packet to send [09:20:29]accept exits with 9 [09:20:29]New connection [09:20:29]New thread 3067227492 created [09:20:29]Thread 3067084132 joined [09:20:29]Waiting for new connection... [09:20:29] Sock 9.Parse request [09:20:29]Sock 9.Check first char [09:20:29]Sock 9.First char is OK [09:20:29]request: POST /json_proto HTTP/1.0 [09:20:29]Method: POST [09:20:29]URL: /json_proto [09:20:29]Method is POST - this is cgi request [09:20:29]url: /json_proto [09:20:29]query_string will be loaded in cgi processing [09:20:29]execute_cgi json_proto POST (null) [09:20:29]execute_cgi path=json_proto method=POST [09:20:29]POST find Content-Length [09:20:29]Host: 172.17.36.132:8080 [09:20:29]Content-Length: 1169 [09:20:29]Content-Type: application/json [09:20:29] [09:20:29]POST finish read [09:20:29]Found Content-Length = 1169 [09:20:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0418\u0441\u043C\u0430\u043D\u0430\u043B\u0438\u0435\u0432 \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)706641\u000A04.06.2024 08:57\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 53\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-4\u000A 15.000 x 66.90\u000A\u0418\u0422\u041E\u0413: 1003.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30111795\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:20:29]execute_script... [09:20:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0418\u0441\u043C\u0430\u043D\u0430\u043B\u0438\u0435\u0432 \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)706641\u000A04.06.2024 08:57\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 53\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-4\u000A 15.000 x 66.90\u000A\u0418\u0422\u041E\u0413: 1003.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30111795\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:20:29]POST & json_proto [09:20:29]process_json_proto [09:20:29]json parsed OK: [09:20:29]protocol is kg_v1.0 [09:20:29]action value=print_text [09:20:29]process_action print_text [09:20:29]cmd_print_text [09:20:29]ExternCall_PrintAddStr [09:20:29]wPrintStart [09:20:29]Write to MH i2c: 01 00 00 73 13 86 [09:20:29]Write i2c OK [09:20:29]MH_I2C_Read... [09:20:29]Read from MH i2c: 01 [09:20:29]MH_I2C_Read... [09:20:29]Read from MH i2c: 01 07 00 [09:20:29]MH_I2C_Read... [09:20:29]Read from MH i2c: 01 07 00 73 13 00 00 00 00 00 FF 0F 9B [09:20:29]RasterBufferAndPrint [09:20:29]line *****ТОВАРНЫЙ ЧЕК***** [09:20:29]line АЗС 62 [09:20:29]line Партнер нефть [09:20:29]line 02508201610067 [09:20:29]line Кассир : Исманалиев Д. [09:20:29]line Счет N : (1)706641 [09:20:29]line 04.06.2024 08:57 [09:20:29]line ПРОДАЖА [09:20:29]line ТРК (МРК, ГНК): 53 [09:20:29]line Вид ГСМ : 2710124130 [09:20:29]line Аи-92-К-4 [09:20:29]line 15.000 x 66.90 [09:20:29]line ИТОГ: 1003.50 [09:20:29]line Тип оплаты: Талоны: ТК ГПНА Online [09:20:29]line 30111795 [09:20:29]line ______________________ [09:20:29]line (подпись) [09:20:29]written 0, free lines is 4095 [09:20:29]Write to MH i2c: 01 00 00 87 13 9A [09:20:29]Write i2c OK [09:20:29]MH_I2C_Read... [09:20:29]Read from MH i2c: 01 [09:20:29]MH_I2C_Read... [09:20:29]Read from MH i2c: 01 07 00 [09:20:29]MH_I2C_Read... [09:20:29]Read from MH i2c: 01 07 00 87 13 00 00 00 00 00 11 0E C0 [09:20:29]RasterBufferAndPrint [09:20:29]line [09:20:29]line [09:20:29]line [09:20:29]line [09:20:29]line [09:20:29]written 0, free lines is 3602 [09:20:29]MH_Cut [09:20:29]Write to MH i2c: D1 01 00 8E 13 01 73 [09:20:29]Write i2c OK [09:20:29]MH_I2C_Read... [09:20:29]Read from MH i2c: D1 [09:20:29]MH_I2C_Read... [09:20:29]Read from MH i2c: D1 01 00 [09:20:29]MH_I2C_Read... [09:20:29]Read from MH i2c: D1 01 00 8E 13 00 72 [09:20:29]Write to MH i2c: 01 00 00 8F 13 A2 [09:20:29]Write i2c OK [09:20:29]MH_I2C_Read... [09:20:30]*** Cut start [09:20:30]*** Partial cut [09:20:30]*** CUTSNS_PIN = 1 [09:20:30]*** CUTSNS_PIN = 0 [09:20:30]*** Brake cut motor [09:20:31]Read from MH i2c: 01 [09:20:31]MH_I2C_Read... [09:20:31]Read from MH i2c: 01 07 00 [09:20:31]MH_I2C_Read... [09:20:31]*** Stop cut motor [09:20:31]*** Cut end [09:20:31]Read from MH i2c: 01 07 00 8F 13 00 00 00 00 00 FF 0F B7 [09:20:31]process_action print_text done [09:20:31]requested_data is exist [09:20:31]produce_requested_data [09:20:31]requested_item fm.sn is exist - process it [09:20:31]wFMCommunicate request_size=4 [09:20:31]MH_SAM_APDU [09:20:31]CAPDU: 80 11 00 00 [09:20:31]Write to MH i2c: E2 08 00 90 13 80 11 00 00 00 00 00 00 1D [09:20:31]Write i2c OK [09:20:31]MH_I2C_Read... [09:20:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:20:31]Read from MH i2c: E2 [09:20:31]MH_I2C_Read... [09:20:31]Read from MH i2c: E2 17 00 [09:20:31]MH_I2C_Read... [09:20:31]Read from MH i2c: E2 17 00 90 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 68 [09:20:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [09:20:31]wFMCommunicate OK [09:20:31]requested_item fd.num is exist - process it [09:20:31]SAM_PROTO_GetFieldsCounters [09:20:31]wFMCommunicate request_size=4 [09:20:31]MH_SAM_APDU [09:20:31]CAPDU: 80 13 00 00 [09:20:31]Write to MH i2c: E2 08 00 91 13 80 13 00 00 00 00 00 00 20 [09:20:31]Write i2c OK [09:20:31]MH_I2C_Read... [09:20:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:20:31]Read from MH i2c: E2 [09:20:31]MH_I2C_Read... [09:20:31]Read from MH i2c: E2 62 00 [09:20:31]MH_I2C_Read... [09:20:31]Read from MH i2c: E2 62 00 91 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 AA 0B 01 00 0E 04 04 00 45 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 78 [09:20:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 AA 0B 01 00 0E 04 04 00 45 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 [09:20:31]wFMCommunicate OK [09:20:31]SAM_PROTO_GetFieldsCounters done [09:20:31]requested_item shift.num is exist - process it [09:20:31]requested_item shift.opened is exist - process it [09:20:31]req_shift_opened [09:20:31]FM_GetShiftState [09:20:31]SAM_PROTO_GetShiftState [09:20:31]wFMCommunicate request_size=4 [09:20:31]MH_SAM_APDU [09:20:31]CAPDU: 80 13 01 00 [09:20:31]Write to MH i2c: E2 08 00 92 13 80 13 01 00 00 00 00 00 22 [09:20:31]Write i2c OK [09:20:31]MH_I2C_Read... [09:20:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:20:31]Read from MH i2c: E2 [09:20:31]MH_I2C_Read... [09:20:31]Read from MH i2c: E2 0E 00 [09:20:31]MH_I2C_Read... [09:20:31]Read from MH i2c: E2 0E 00 92 13 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 BE [09:20:31]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [09:20:31]wFMCommunicate OK [09:20:31]SAM_PROTO_GetShiftState done [09:20:31]FM_GetShiftState done [09:20:31]req_shift_opened done [09:20:31]requested_item shift.open_date is exist - process it [09:20:31]req_shift_open_date [09:20:31]req_shift_open_date done [09:20:31]produce_requested_data done [09:20:31]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68522,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [09:20:31]process_action_free print_text [09:20:31]json_value_free [09:20:31]json_value_free done [09:20:31]process_json_proto returns [09:20:31]Send response to host [09:20:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68522,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [09:20:31]free response buf [09:20:31]execute_script done [09:20:31]execute_script returns [09:20:31]free content buf [09:20:31]Sock 9.Close socket [09:20:31]Sock 9.Thread stoped [09:20:31]OFD Sender: No OFD packet to send [09:20:36]OFD Sender: No OFD packet to send [09:20:41]OFD Sender: No OFD packet to send [09:20:46]OFD Sender: No OFD packet to send [09:20:51]OFD Sender: No OFD packet to send [09:20:56]OFD Sender: No OFD packet to send [09:21:01]OFD Sender: No OFD packet to send [09:21:06]OFD Sender: No OFD packet to send [09:21:11]OFD Sender: No OFD packet to send [09:21:16]OFD Sender: No OFD packet to send [09:21:21]OFD Sender: No OFD packet to send [09:21:26]OFD Sender: No OFD packet to send [09:21:31]OFD Sender: No OFD packet to send [09:21:36]OFD Sender: No OFD packet to send [09:21:41]OFD Sender: No OFD packet to send [09:21:46]OFD Sender: No OFD packet to send [09:21:51]OFD Sender: No OFD packet to send [09:21:56]OFD Sender: No OFD packet to send [09:22:01]OFD Sender: No OFD packet to send [09:22:06]OFD Sender: No OFD packet to send [09:22:11]OFD Sender: No OFD packet to send [09:22:16]OFD Sender: No OFD packet to send [09:22:21]OFD Sender: No OFD packet to send [09:22:26]OFD Sender: No OFD packet to send [09:22:31]OFD Sender: No OFD packet to send [09:22:36]OFD Sender: No OFD packet to send [09:22:41]OFD Sender: No OFD packet to send [09:22:46]OFD Sender: No OFD packet to send [09:22:51]OFD Sender: No OFD packet to send [09:22:56]OFD Sender: No OFD packet to send [09:23:01]OFD Sender: No OFD packet to send [09:23:06]OFD Sender: No OFD packet to send [09:23:11]OFD Sender: No OFD packet to send [09:23:16]OFD Sender: No OFD packet to send [09:23:21]OFD Sender: No OFD packet to send [09:23:26]OFD Sender: No OFD packet to send [09:23:31]OFD Sender: No OFD packet to send [09:23:36]OFD Sender: No OFD packet to send [09:23:41]OFD Sender: No OFD packet to send [09:23:46]OFD Sender: No OFD packet to send [09:23:51]OFD Sender: No OFD packet to send [09:23:56]OFD Sender: No OFD packet to send [09:24:01]OFD Sender: No OFD packet to send [09:24:06]OFD Sender: No OFD packet to send [09:24:11]OFD Sender: No OFD packet to send [09:24:16]OFD Sender: No OFD packet to send [09:24:21]OFD Sender: No OFD packet to send [09:24:26]accept exits with 7 [09:24:26]New connection [09:24:26]New thread 3067084132 created [09:24:26]Thread 3067227492 joined [09:24:26]Waiting for new connection... [09:24:26] Sock 7.Parse request [09:24:26]Sock 7.Check first char [09:24:26]Sock 7.First char is OK [09:24:26]request: POST /json_proto HTTP/1.0 [09:24:26]Method: POST [09:24:26]URL: /json_proto [09:24:26]Method is POST - this is cgi request [09:24:26]url: /json_proto [09:24:26]query_string will be loaded in cgi processing [09:24:26]execute_cgi json_proto POST (null) [09:24:26]execute_cgi path=json_proto method=POST [09:24:26]POST find Content-Length [09:24:26]Host: 172.17.36.132:8080 [09:24:26]Content-Length: 682 [09:24:26]Content-Type: application/json [09:24:26] [09:24:26]POST finish read [09:24:26]Found Content-Length = 682 [09:24:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706642", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 20.300, "sum" : 1500.17, "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" ] } } [09:24:26]execute_script... [09:24: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)706642", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 20.300, "sum" : 1500.17, "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" ] } } [09:24:26]POST & json_proto [09:24:26]process_json_proto [09:24:26]json parsed OK: [09:24:26]protocol is kg_v1.0 [09:24:26]action value=close_receipt [09:24:26]process_action close_receipt [09:24:26]cmd_close_receipt [09:24:26]MH_GetDate [09:24:26]Write to MH i2c: F0 00 00 93 13 95 [09:24:26]Write i2c OK [09:24:26]MH_I2C_Read... [09:24:26]Read from MH i2c: F0 [09:24:26]MH_I2C_Read... [09:24:26]Read from MH i2c: F0 09 00 [09:24:26]MH_I2C_Read... [09:24:26]Read from MH i2c: F0 09 00 93 13 00 4D DD 5E 66 B2 22 B0 64 74 [09:24:26]GetLastDocTimeStamp 1717491886 [09:24:26]current date 1717493069 [09:24:26]FM_GetShiftState [09:24:26]SAM_PROTO_GetShiftState [09:24:26]wFMCommunicate request_size=4 [09:24:26]MH_SAM_APDU [09:24:26]CAPDU: 80 13 01 00 [09:24:26]Write to MH i2c: E2 08 00 94 13 80 13 01 00 00 00 00 00 24 [09:24:26]Write i2c OK [09:24:26]MH_I2C_Read... [09:24:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:24:26]Read from MH i2c: E2 [09:24:26]MH_I2C_Read... [09:24:26]Read from MH i2c: E2 0E 00 [09:24:26]MH_I2C_Read... [09:24:26]Read from MH i2c: E2 0E 00 94 13 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 C0 [09:24:26]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [09:24:26]wFMCommunicate OK [09:24:26]SAM_PROTO_GetShiftState done [09:24:26]FM_GetShiftState done [09:24:26]opened in 1717460590 [09:24:26]opened+sec_in_day 1717546990 [09:24:26]quantity*price = 150017 [09:24:26]sum+1 = 150018 [09:24:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.17 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.31 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 21 04.06.2024 09:24 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68523 ФПД: 75900237046517 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T092430&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68523&fm=75900237046517&tin=02508201610067®Number=0000000000098096&sum=150000 [09:24:27]StoreToDocumentArchive [09:24:27]shift 325 fd 68523 [09:24:27]save to /storage/0325/doc_00068523 [09:24:27]save last doc name /storage/0325/doc_00068523 to /storage/kkm_last_doc_name [09:24:27]save OK [09:24:27]Clear old archive folders... [09:24:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:24:27]tlvbuf is 00A07AF0 [09:24:27]SAM_PROTO_ClearQueue [09:24:27]wFMCommunicate request_size=4 [09:24:27]MH_SAM_APDU [09:24:27]CAPDU: 80 09 00 00 [09:24:27]Write to MH i2c: E2 08 00 A1 13 80 09 00 00 00 00 00 00 26 [09:24:27]Write i2c OK [09:24:27]MH_I2C_Read... [09:24:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:24:27]Read from MH i2c: E2 [09:24:27]MH_I2C_Read... [09:24:27]Read from MH i2c: E2 03 00 [09:24:27]MH_I2C_Read... [09:24:27]Read from MH i2c: E2 03 00 A1 13 00 90 00 28 [09:24:27]RAPDU: 90 00 [09:24:27]wFMCommunicate OK [09:24:27]SAM_PROTO_ClearQueue done [09:24:27]KKMCreateOFDPacket [09:24:27]OFDProtocolAddRootSTLVToBuf [09:24:27]FM_MakeSignedData [09:24:27]FM_MakeSignedData [09:24:27]SAM_PROTO_SignData [09:24:27]wFMCommunicate request_size=4 [09:24:27]MH_SAM_APDU [09:24:27]CAPDU: 80 0D 01 02 [09:24:27]Write to MH i2c: E2 08 00 A2 13 80 0D 01 02 00 00 00 00 2E [09:24:27]Write i2c OK [09:24:27]MH_I2C_Read... [09:24:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:24:27]Read from MH i2c: E2 [09:24:27]MH_I2C_Read... [09:24:27]Read from MH i2c: E2 03 00 [09:24:27]MH_I2C_Read... [09:24:27]Read from MH i2c: E2 03 00 A2 13 00 90 00 29 [09:24:27]RAPDU: 90 00 [09:24:27]wFMCommunicate OK [09:24:27]wFMCommunicate request_size=255 [09:24:27]MH_SAM_APDU [09:24:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 4C 4F 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 01 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 3B 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 15 00 00 00 F4 03 04 00 4E DD 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 AB 0B 01 00 35 04 06 00 45 [09:24:27]Write to MH i2c: E2 02 01 A3 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 4C 4F 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 01 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 3B 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 15 00 00 00 F4 03 04 00 4E DD 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 AB 0B 01 00 35 04 06 00 45 00 00 87 [09:24:27]Write i2c OK [09:24:27]MH_I2C_Read... [09:24:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:24:27]Read from MH i2c: E2 [09:24:27]MH_I2C_Read... [09:24:27]Read from MH i2c: E2 03 00 [09:24:27]MH_I2C_Read... [09:24:27]Read from MH i2c: E2 03 00 A3 13 00 90 00 2A [09:24:27]RAPDU: 90 00 [09:24:27]wFMCommunicate OK [09:24:27]wFMCommunicate request_size=10 [09:24:27]MH_SAM_APDU [09:24:27]CAPDU: 80 0D 02 02 05 07 E6 AA E2 F5 [09:24:27]Write to MH i2c: E2 0D 00 A4 13 80 0D 02 02 05 00 07 E6 AA E2 F5 00 00 A9 [09:24:27]Write i2c OK [09:24:27]MH_I2C_Read... [09:24:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:24:27]Read from MH i2c: E2 [09:24:27]MH_I2C_Read... [09:24:27]Read from MH i2c: E2 03 00 [09:24:27]MH_I2C_Read... [09:24:27]Read from MH i2c: E2 03 00 A4 13 00 90 00 2B [09:24:27]RAPDU: 90 00 [09:24:27]wFMCommunicate OK [09:24:27]wFMCommunicate request_size=4 [09:24:27]MH_SAM_APDU [09:24:27]CAPDU: 80 0D 03 02 [09:24:27]Write to MH i2c: E2 08 00 A5 13 80 0D 03 02 00 00 00 00 33 [09:24:27]Write i2c OK [09:24:27]MH_I2C_Read... [09:24:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:24:27]Read from MH i2c: E2 [09:24:27]MH_I2C_Read... [09:24:27]Read from MH i2c: E2 0B 00 [09:24:27]MH_I2C_Read... [09:24:27]Read from MH i2c: E2 0B 00 A5 13 00 98 C7 0B D5 F5 68 FB B8 90 00 83 [09:24:27]RAPDU: 98 C7 0B D5 F5 68 FB B8 90 00 [09:24:27]wFMCommunicate OK [09:24:27]SAM_PROTO_SignData done [09:24:27]FM_MakeSignedData done [09:24:27]CreateOFDProtocolMessage [09:24:27]wFMCommunicate request_size=4 [09:24:27]MH_SAM_APDU [09:24:27]CAPDU: 80 11 00 00 [09:24:27]Write to MH i2c: E2 08 00 A6 13 80 11 00 00 00 00 00 00 33 [09:24:27]Write i2c OK [09:24:27]MH_I2C_Read... [09:24:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:24:28]Read from MH i2c: E2 [09:24:28]MH_I2C_Read... [09:24:28]Read from MH i2c: E2 17 00 [09:24:28]MH_I2C_Read... [09:24:28]Read from MH i2c: E2 17 00 A6 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 7E [09:24:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [09:24:28]wFMCommunicate OK [09:24:28]CreateOFDProtocolMessage done [09:24:28]OFDSenderStorePacket 68523 [09:24:28]StoreOFDPacket docnum=68523 [09:24:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 0A 01 07 01 18 82 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 4C 4F 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 01 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 3B 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 15 00 00 00 F4 03 04 00 4E DD 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 AB 0B 01 00 35 04 06 00 45 07 E6 AA E2 F5 98 C7 0B D5 F5 68 FB B8 [09:24:28]CheckFolder [09:24:28]dirname=/storage/ofd_packets [09:24:28]CheckFolder done [09:24:28]ProducePacketName [09:24:28]name=ofd_packets/00068523 [09:24:28]NVStorageSaveData ofd_packets/00068523 [09:24:28]File name is /storage/ofd_packets/00068523 [09:24:28]Write 301 bytes [09:24:28]NVStorageSaveData done [09:24:28]OFDSenderStorePacket done [09:24:28]KKMCreateOFDPacket done [09:24:28]NVStorageSaveData kkm_last_timestamp [09:24:28]File name is /storage/kkm_last_timestamp [09:24:28]Write 4 bytes [09:24:28]NVStorageSaveData done [09:24:28]ExternCall_PrintAddStr [09:24:28]wPrintStart [09:24:28]Write to MH i2c: 01 00 00 A7 13 BA [09:24:28]Write i2c OK [09:24:28]MH_I2C_Read... [09:24:28]Read from MH i2c: 01 [09:24:28]MH_I2C_Read... [09:24:28]Read from MH i2c: 01 07 00 [09:24:28]MH_I2C_Read... [09:24:28]Read from MH i2c: 01 07 00 A7 13 00 00 00 00 00 FF 0F CF [09:24:28]RasterBufferAndPrint [09:24:28]line Счет N : (1)706642 [09:24:28]line ИНН: 02508201610067 [09:24:28]line Контрольно-Кассовый Чек [09:24:28]line ПРОДАЖА [09:24:28]line ТРК (МРК, ГНК) : 43 [09:24:28]line Товар: 2710124500 [09:24:28]line Аи-95-К-5 [09:24:28]line 20.300 * 73.90 [09:24:28]line = 1500.17 [09:24:28]line НДС 12% НСП 1% [09:24:28]line > о реализуемом товаре [09:24:28]line ОКРУГЛЕНИЕ: -0.17 [09:24:28]line ИТОГО: 1500.00 [09:24:28]line Внесено: 1500.00 [09:24:28]line СДАЧА: 0.00 [09:24:28]line НСП 1% : 13.28 [09:24:28]line НДС 12% : 159.31 [09:24:28]line Наличными: 1500.00 [09:24:28]line Безнал.: 0.00 [09:24:28]line Место: АЗС № 62 "Партнер Нефть" [09:24:28]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [09:24:28]line СНО: Общий режим [09:24:28]line Чек 21 04.06.2024 09:24 [09:24:28]line Смена: 325 ФФД: 1.0 [09:24:28]line ЗНМ: 0300000181 [09:24:28]line РНМ: 0000000000098096 [09:24:28]line Версия ККМ: 001 [09:24:28]line ФМ: 0000000000965400 [09:24:28]line ФД: 68523 [09:24:28]line ФПД: 75900237046517 [09:24:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T092430&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68523&fm=75900237046517&tin=02508201610067®Number=0000000000098096&sum=150000 [09:24:28]OFD Sender: Processing packet 68523 [packets to send 26, broken 25] [09:24:28]ProducePacketName [09:24:28]name=ofd_packets/00068523 [09:24:28]OFD Sender: To server: pG, [09:24:28]CommunicateWithHost lk.salyk.kg:30040 [09:24:28]ConnectInit lk.salyk.kg [09:24:28]written 0, free lines is 4095 [09:24:28]Connected sock=10 [09:24:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 0A 01 07 01 18 82 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 4C 4F 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 01 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 3B 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 15 00 00 00 F4 03 04 00 4E DD 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 AB 0B 01 00 35 04 06 00 45 07 E6 AA E2 F5 98 C7 0B D5 F5 68 FB B8 [09:24:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 96 57 47 00 35 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 39 36 35 34 30 30 10 04 04 00 AB 0B 01 00 F4 03 04 00 47 84 5E 66 B6 04 01 00 00 2F 3E D9 22 2C BA D0 4E [09:24:28]CommunicateWithHost err = 0 [09:24:28]CheckOFDResponse [09:24:28]1017 (14) - 77093643461234 [09:24:28]1041 (16) - 0000000000965400 [09:24:28]1040 (4) - 68523 [09:24:28]1012 (4) - 04.06.2024 03:04 [09:24:28]1206 (1) - 0 [09:24:28]OFD Sender: Remove packet 68523 [09:24:28]ProducePacketName [09:24:28]name=ofd_packets/00068523 [09:24:28]NVStorageDeleteData [09:24:28]Write to MH i2c: 01 00 00 D2 13 E5 [09:24:28]Write i2c OK [09:24:28]MH_I2C_Read... [09:24:28]Read from MH i2c: 01 [09:24:28]MH_I2C_Read... [09:24:28]Read from MH i2c: 01 07 00 [09:24:28]MH_I2C_Read... [09:24:28]Read from MH i2c: 01 07 00 D2 13 00 00 00 00 00 C5 0C BD [09:24:28]RasterBufferAndPrint [09:24:28]line [09:24:28]line [09:24:28]line [09:24:28]line [09:24:28]line [09:24:28]written 0, free lines is 3275 [09:24:28]MH_Cut [09:24:28]Write to MH i2c: D1 01 00 D9 13 01 BE [09:24:28]Write i2c OK [09:24:28]MH_I2C_Read... [09:24:28]Read from MH i2c: D1 [09:24:28]MH_I2C_Read... [09:24:28]Read from MH i2c: D1 01 00 [09:24:28]MH_I2C_Read... [09:24:28]Read from MH i2c: D1 01 00 D9 13 00 BD [09:24:28]Write to MH i2c: 01 00 00 DA 13 ED [09:24:28]Write i2c OK [09:24:28]MH_I2C_Read... [09:24:29]OFD Sender: No OFD packet to send [09:24:29]*** Cut start [09:24:29]*** Partial cut [09:24:29]*** CUTSNS_PIN = 1 [09:24:29]*** CUTSNS_PIN = 0 [09:24:29]*** Brake cut motor [09:24:30]Read from MH i2c: 01 [09:24:30]MH_I2C_Read... [09:24:30]*** Stop cut motor [09:24:30]Read from MH i2c: 01 07 00 [09:24:30]MH_I2C_Read... [09:24:30]*** Cut end [09:24:30]Read from MH i2c: 01 07 00 DA 13 00 00 00 00 00 FF 0F 02 [09:24:30]process_action close_receipt done [09:24:30]requested_data is exist [09:24:30]produce_requested_data [09:24:30]requested_item fm.sn is exist - process it [09:24:30]wFMCommunicate request_size=4 [09:24:30]MH_SAM_APDU [09:24:30]CAPDU: 80 11 00 00 [09:24:30]Write to MH i2c: E2 08 00 DB 13 80 11 00 00 00 00 00 00 68 [09:24:30]Write i2c OK [09:24:30]MH_I2C_Read... [09:24:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:24:30]Read from MH i2c: E2 [09:24:30]MH_I2C_Read... [09:24:30]Read from MH i2c: E2 17 00 [09:24:30]MH_I2C_Read... [09:24:30]Read from MH i2c: E2 17 00 DB 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 B3 [09:24:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [09:24:30]wFMCommunicate OK [09:24:30]requested_item fd.num is exist - process it [09:24:30]SAM_PROTO_GetFieldsCounters [09:24:30]wFMCommunicate request_size=4 [09:24:30]MH_SAM_APDU [09:24:30]CAPDU: 80 13 00 00 [09:24:30]Write to MH i2c: E2 08 00 DC 13 80 13 00 00 00 00 00 00 6B [09:24:30]Write i2c OK [09:24:30]MH_I2C_Read... [09:24:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:24:30]Read from MH i2c: E2 [09:24:30]MH_I2C_Read... [09:24:30]Read from MH i2c: E2 62 00 [09:24:30]MH_I2C_Read... [09:24:30]Read from MH i2c: E2 62 00 DC 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 AB 0B 01 00 0E 04 04 00 45 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 C7 [09:24:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 AB 0B 01 00 0E 04 04 00 45 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 [09:24:30]wFMCommunicate OK [09:24:30]SAM_PROTO_GetFieldsCounters done [09:24:30]requested_item shift.num is exist - process it [09:24:30]requested_item shift.opened is exist - process it [09:24:30]req_shift_opened [09:24:30]FM_GetShiftState [09:24:30]SAM_PROTO_GetShiftState [09:24:30]wFMCommunicate request_size=4 [09:24:30]MH_SAM_APDU [09:24:30]CAPDU: 80 13 01 00 [09:24:30]Write to MH i2c: E2 08 00 DD 13 80 13 01 00 00 00 00 00 6D [09:24:30]Write i2c OK [09:24:30]MH_I2C_Read... [09:24:30]Read from MH i2c: E2 [09:24:30]MH_I2C_Read... [09:24:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:24:30]Read from MH i2c: E2 0E 00 [09:24:30]MH_I2C_Read... [09:24:30]Read from MH i2c: E2 0E 00 DD 13 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 09 [09:24:30]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [09:24:30]wFMCommunicate OK [09:24:30]SAM_PROTO_GetShiftState done [09:24:30]FM_GetShiftState done [09:24:30]req_shift_opened done [09:24:30]requested_item shift.open_date is exist - process it [09:24:30]req_shift_open_date [09:24:30]req_shift_open_date done [09:24:30]produce_requested_data done [09:24:30]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68523,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [09:24:30]process_action_free close_receipt [09:24:30]json_value_free [09:24:30]json_value_free done [09:24:30]process_json_proto returns [09:24:30]Send response to host [09:24:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68523,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [09:24:30]free response buf [09:24:30]execute_script done [09:24:30]execute_script returns [09:24:30]free content buf [09:24:30]Sock 7.Close socket [09:24:30]Sock 7.Thread stoped [09:24:34]OFD Sender: No OFD packet to send [09:24:39]OFD Sender: No OFD packet to send [09:24:44]OFD Sender: No OFD packet to send [09:24:49]OFD Sender: No OFD packet to send [09:24:54]OFD Sender: No OFD packet to send [09:24:59]OFD Sender: No OFD packet to send [09:25:04]OFD Sender: No OFD packet to send [09:25:09]OFD Sender: No OFD packet to send [09:25:14]OFD Sender: No OFD packet to send [09:25:19]OFD Sender: No OFD packet to send [09:25:24]OFD Sender: No OFD packet to send [09:25:29]OFD Sender: No OFD packet to send [09:25:34]OFD Sender: No OFD packet to send [09:25:39]OFD Sender: No OFD packet to send [09:25:44]OFD Sender: No OFD packet to send [09:25:49]OFD Sender: No OFD packet to send [09:25:54]OFD Sender: No OFD packet to send [09:25:59]OFD Sender: No OFD packet to send [09:26:04]OFD Sender: No OFD packet to send [09:26:09]OFD Sender: No OFD packet to send [09:26:14]OFD Sender: No OFD packet to send [09:26:19]OFD Sender: No OFD packet to send [09:26:24]OFD Sender: No OFD packet to send [09:26:29]OFD Sender: No OFD packet to send [09:26:34]OFD Sender: No OFD packet to send [09:26:39]OFD Sender: No OFD packet to send [09:26:44]OFD Sender: No OFD packet to send [09:26:49]OFD Sender: No OFD packet to send [09:26:54]OFD Sender: No OFD packet to send [09:26: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:14]OFD Sender: No OFD packet to send [09:28:19]OFD Sender: No OFD packet to send [09:28:24]OFD Sender: No OFD packet to send [09:28:29]OFD Sender: No OFD packet to send [09:28:34]OFD Sender: No OFD packet to send [09:28:39]OFD Sender: No OFD packet to send [09:28:44]OFD Sender: No OFD packet to send [09:28:49]OFD Sender: No OFD packet to send [09:28:54]OFD Sender: No OFD packet to send [09:28:59]OFD Sender: No OFD packet to send [09:29:04]OFD Sender: No OFD packet to send [09:29:09]OFD Sender: No OFD packet to send [09:29:14]OFD Sender: No OFD packet to send [09:29:19]OFD Sender: No OFD packet to send [09:29:21]accept exits with 9 [09:29:21]New connection [09:29:21]New thread 3067227492 created [09:29:21]Thread 3067084132 joined [09:29:21]Waiting for new connection... [09:29:21] Sock 9.Parse request [09:29:21]Sock 9.Check first char [09:29:21]Sock 9.First char is OK [09:29:21]request: POST /json_proto HTTP/1.0 [09:29:21]Method: POST [09:29:21]URL: /json_proto [09:29:21]Method is POST - this is cgi request [09:29:21]url: /json_proto [09:29:21]query_string will be loaded in cgi processing [09:29:21]execute_cgi json_proto POST (null) [09:29:21]execute_cgi path=json_proto method=POST [09:29:21]POST find Content-Length [09:29:21]Host: 172.17.36.132:8080 [09:29:21]Content-Length: 687 [09:29:21]Content-Type: application/json [09:29:21] [09:29:21]POST finish read [09:29:21]Found Content-Length = 687 [09:29:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706643", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "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:29:21]execute_script... [09:29: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)706643", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "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:29:21]POST & json_proto [09:29:21]process_json_proto [09:29:21]json parsed OK: [09:29:21]protocol is kg_v1.0 [09:29:21]action value=close_receipt [09:29:21]process_action close_receipt [09:29:21]cmd_close_receipt [09:29:21]MH_GetDate [09:29:21]Write to MH i2c: F0 00 00 DE 13 E0 [09:29:21]Write i2c OK [09:29:21]MH_I2C_Read... [09:29:21]Read from MH i2c: F0 [09:29:21]MH_I2C_Read... [09:29:21]Read from MH i2c: F0 09 00 [09:29:21]MH_I2C_Read... [09:29:21]Read from MH i2c: F0 09 00 DE 13 00 75 DE 5E 66 B2 22 B0 64 E8 [09:29:21]GetLastDocTimeStamp 1717493070 [09:29:21]current date 1717493365 [09:29:21]FM_GetShiftState [09:29:21]SAM_PROTO_GetShiftState [09:29:21]wFMCommunicate request_size=4 [09:29:21]MH_SAM_APDU [09:29:21]CAPDU: 80 13 01 00 [09:29:21]Write to MH i2c: E2 08 00 DF 13 80 13 01 00 00 00 00 00 6F [09:29:21]Write i2c OK [09:29:21]MH_I2C_Read... [09:29:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:29:21]Read from MH i2c: E2 [09:29:21]MH_I2C_Read... [09:29:21]Read from MH i2c: E2 0E 00 [09:29:21]MH_I2C_Read... [09:29:21]Read from MH i2c: E2 0E 00 DF 13 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 0B [09:29:21]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [09:29:21]wFMCommunicate OK [09:29:21]SAM_PROTO_GetShiftState done [09:29:21]FM_GetShiftState done [09:29:21]opened in 1717460590 [09:29:21]opened+sec_in_day 1717546990 [09:29:21]quantity*price = 100018 [09:29:21]sum+1 = 100020 [09:29: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 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 22 04.06.2024 09:29 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68524 ФПД: 6541627036616 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T092925&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68524&fm=6541627036616&tin=02508201610067®Number=0000000000098096&sum=100000 [09:29:22]StoreToDocumentArchive [09:29:22]shift 325 fd 68524 [09:29:22]save to /storage/0325/doc_00068524 [09:29:22]save last doc name /storage/0325/doc_00068524 to /storage/kkm_last_doc_name [09:29:22]save OK [09:29:22]Clear old archive folders... [09:29:22]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:29:22]tlvbuf is B6EEB270 [09:29:22]SAM_PROTO_ClearQueue [09:29:22]wFMCommunicate request_size=4 [09:29:22]MH_SAM_APDU [09:29:22]CAPDU: 80 09 00 00 [09:29:22]Write to MH i2c: E2 08 00 EC 13 80 09 00 00 00 00 00 00 71 [09:29:22]Write i2c OK [09:29:22]MH_I2C_Read... [09:29:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:29:22]Read from MH i2c: E2 [09:29:22]MH_I2C_Read... [09:29:22]Read from MH i2c: E2 03 00 [09:29:22]MH_I2C_Read... [09:29:22]Read from MH i2c: E2 03 00 EC 13 00 90 00 73 [09:29:22]RAPDU: 90 00 [09:29:22]wFMCommunicate OK [09:29:22]SAM_PROTO_ClearQueue done [09:29:22]KKMCreateOFDPacket [09:29:22]OFDProtocolAddRootSTLVToBuf [09:29:22]FM_MakeSignedData [09:29:22]FM_MakeSignedData [09:29:22]SAM_PROTO_SignData [09:29:22]wFMCommunicate request_size=4 [09:29:22]MH_SAM_APDU [09:29:22]CAPDU: 80 0D 01 02 [09:29:22]Write to MH i2c: E2 08 00 ED 13 80 0D 01 02 00 00 00 00 79 [09:29:22]Write i2c OK [09:29:22]MH_I2C_Read... [09:29:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:29:22]Read from MH i2c: E2 [09:29:22]MH_I2C_Read... [09:29:22]Read from MH i2c: E2 03 00 [09:29:22]MH_I2C_Read... [09:29:22]Read from MH i2c: E2 03 00 ED 13 00 90 00 74 [09:29:22]RAPDU: 90 00 [09:29:22]wFMCommunicate OK [09:29:22]wFMCommunicate request_size=255 [09:29:22]MH_SAM_APDU [09:29:22]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 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 16 00 00 00 F4 03 04 00 75 DE 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 AC 0B 01 00 35 04 06 00 [09:29:22]Write to MH i2c: E2 02 01 EE 13 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 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 16 00 00 00 F4 03 04 00 75 DE 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 AC 0B 01 00 35 04 06 00 00 00 F0 [09:29:22]Write i2c OK [09:29:22]MH_I2C_Read... [09:29:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:29:22]Read from MH i2c: E2 [09:29:22]MH_I2C_Read... [09:29:22]Read from MH i2c: E2 03 00 [09:29:22]MH_I2C_Read... [09:29:22]Read from MH i2c: E2 03 00 EE 13 00 90 00 75 [09:29:22]RAPDU: 90 00 [09:29:22]wFMCommunicate OK [09:29:22]wFMCommunicate request_size=11 [09:29:22]MH_SAM_APDU [09:29:22]CAPDU: 80 0D 02 02 06 05 F3 17 5B 13 C8 [09:29:22]Write to MH i2c: E2 0E 00 EF 13 80 0D 02 02 06 00 05 F3 17 5B 13 C8 00 00 CD [09:29:22]Write i2c OK [09:29:22]MH_I2C_Read... [09:29:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:29:22]Read from MH i2c: E2 [09:29:22]MH_I2C_Read... [09:29:22]Read from MH i2c: E2 03 00 [09:29:22]MH_I2C_Read... [09:29:22]Read from MH i2c: E2 03 00 EF 13 00 90 00 76 [09:29:22]RAPDU: 90 00 [09:29:22]wFMCommunicate OK [09:29:22]wFMCommunicate request_size=4 [09:29:22]MH_SAM_APDU [09:29:22]CAPDU: 80 0D 03 02 [09:29:22]Write to MH i2c: E2 08 00 F0 13 80 0D 03 02 00 00 00 00 7E [09:29:22]Write i2c OK [09:29:22]MH_I2C_Read... [09:29:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:29:23]Read from MH i2c: E2 [09:29:23]MH_I2C_Read... [09:29:23]Read from MH i2c: E2 0B 00 [09:29:23]MH_I2C_Read... [09:29:23]Read from MH i2c: E2 0B 00 F0 13 00 48 B8 0A 68 EF 19 A4 96 90 00 33 [09:29:23]RAPDU: 48 B8 0A 68 EF 19 A4 96 90 00 [09:29:23]wFMCommunicate OK [09:29:23]SAM_PROTO_SignData done [09:29:23]FM_MakeSignedData done [09:29:23]CreateOFDProtocolMessage [09:29:23]wFMCommunicate request_size=4 [09:29:23]MH_SAM_APDU [09:29:23]CAPDU: 80 11 00 00 [09:29:23]Write to MH i2c: E2 08 00 F1 13 80 11 00 00 00 00 00 00 7E [09:29:23]Write i2c OK [09:29:23]MH_I2C_Read... [09:29:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:29:23]Read from MH i2c: E2 [09:29:23]MH_I2C_Read... [09:29:23]Read from MH i2c: E2 17 00 [09:29:23]MH_I2C_Read... [09:29:23]Read from MH i2c: E2 17 00 F1 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 C9 [09:29:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [09:29:23]wFMCommunicate OK [09:29:23]CreateOFDProtocolMessage done [09:29:23]OFDSenderStorePacket 68524 [09:29:23]StoreOFDPacket docnum=68524 [09:29:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 DD 81 08 01 A5 C0 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 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 16 00 00 00 F4 03 04 00 75 DE 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 AC 0B 01 00 35 04 06 00 05 F3 17 5B 13 C8 48 B8 0A 68 EF 19 A4 96 [09:29:23]CheckFolder [09:29:23]dirname=/storage/ofd_packets [09:29:23]CheckFolder done [09:29:23]ProducePacketName [09:29:23]name=ofd_packets/00068524 [09:29:23]NVStorageSaveData ofd_packets/00068524 [09:29:23]File name is /storage/ofd_packets/00068524 [09:29:23]Write 302 bytes [09:29:23]NVStorageSaveData done [09:29:23]OFDSenderStorePacket done [09:29:23]KKMCreateOFDPacket done [09:29:23]NVStorageSaveData kkm_last_timestamp [09:29:23]File name is /storage/kkm_last_timestamp [09:29:23]Write 4 bytes [09:29:23]NVStorageSaveData done [09:29:23]ExternCall_PrintAddStr [09:29:23]wPrintStart [09:29:23]Write to MH i2c: 01 00 00 F2 13 05 [09:29:23]Write i2c OK [09:29:23]MH_I2C_Read... [09:29:23]Read from MH i2c: 01 [09:29:23]MH_I2C_Read... [09:29:23]Read from MH i2c: 01 07 00 [09:29:23]MH_I2C_Read... [09:29:23]Read from MH i2c: 01 07 00 F2 13 00 00 00 00 00 FF 0F 1A [09:29:23]RasterBufferAndPrint [09:29:23]line Счет N : (1)706643 [09:29:23]line ИНН: 02508201610067 [09:29:23]line Контрольно-Кассовый Чек [09:29:23]line ПРОДАЖА [09:29:23]line ТРК (МРК, ГНК) : 21 [09:29:23]line Товар: 2710194210 [09:29:23]line ДТ(л)-К-4 [09:29:23]line 13.720 * 72.90 [09:29:23]line = 1000.19 [09:29:23]line НДС 12% НСП 1% [09:29:23]line > о реализуемом товаре [09:29:23]line ОКРУГЛЕНИЕ: -0.19 [09:29:23]line ИТОГО: 1000.00 [09:29:23]line Внесено: 1000.00 [09:29:23]line СДАЧА: 0.00 [09:29:23]line НСП 1% : 8.85 [09:29:23]line НДС 12% : 106.21 [09:29:23]line Наличными: 1000.00 [09:29:23]line Безнал.: 0.00 [09:29:23]line Место: АЗС № 62 "Партнер Нефть" [09:29:23]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [09:29:23]line СНО: Общий режим [09:29:23]line Чек 22 04.06.2024 09:29 [09:29:23]line Смена: 325 ФФД: 1.0 [09:29:23]line ЗНМ: 0300000181 [09:29:23]line РНМ: 0000000000098096 [09:29:23]line Версия ККМ: 001 [09:29:23]line ФМ: 0000000000965400 [09:29:23]line ФД: 68524 [09:29:23]line ФПД: 6541627036616 [09:29:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T092925&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68524&fm=6541627036616&tin=02508201610067®Number=0000000000098096&sum=100000 [09:29:23]OFD Sender: Processing packet 68524 [packets to send 26, broken 25] [09:29:23]ProducePacketName [09:29:23]name=ofd_packets/00068524 [09:29:23]OFD Sender: To server: pG, [09:29:23]CommunicateWithHost lk.salyk.kg:30040 [09:29:23]ConnectInit lk.salyk.kg [09:29:23]written 0, free lines is 4095 [09:29:23]Connected sock=10 [09:29:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 DD 81 08 01 A5 C0 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 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 16 00 00 00 F4 03 04 00 75 DE 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 AC 0B 01 00 35 04 06 00 05 F3 17 5B 13 C8 48 B8 0A 68 EF 19 A4 96 [09:29:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 3F 61 47 00 29 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 39 36 35 34 30 30 10 04 04 00 AC 0B 01 00 F4 03 04 00 6E 85 5E 66 B6 04 01 00 00 FC 50 44 CF 1E 7A 46 AD [09:29:23]CommunicateWithHost err = 0 [09:29:23]CheckOFDResponse [09:29:23]1017 (14) - 77093643461234 [09:29:23]1041 (16) - 0000000000965400 [09:29:23]1040 (4) - 68524 [09:29:23]1012 (4) - 04.06.2024 03:09 [09:29:23]1206 (1) - 0 [09:29:23]OFD Sender: Remove packet 68524 [09:29:23]ProducePacketName [09:29:23]name=ofd_packets/00068524 [09:29:23]NVStorageDeleteData [09:29:23]Write to MH i2c: 01 00 00 1D 14 31 [09:29:23]Write i2c OK [09:29:23]MH_I2C_Read... [09:29:23]Read from MH i2c: 01 [09:29:23]MH_I2C_Read... [09:29:23]Read from MH i2c: 01 07 00 [09:29:23]MH_I2C_Read... [09:29:23]Read from MH i2c: 01 07 00 1D 14 00 00 00 00 00 D9 0C 1D [09:29:23]RasterBufferAndPrint [09:29:23]line [09:29:23]line [09:29:23]line [09:29:23]line [09:29:23]line [09:29:23]written 0, free lines is 3296 [09:29:23]MH_Cut [09:29:23]Write to MH i2c: D1 01 00 24 14 01 0A [09:29:23]Write i2c OK [09:29:23]MH_I2C_Read... [09:29:23]Read from MH i2c: D1 [09:29:23]MH_I2C_Read... [09:29:23]Read from MH i2c: D1 01 00 [09:29:23]MH_I2C_Read... [09:29:23]Read from MH i2c: D1 01 00 24 14 00 09 [09:29:23]Write to MH i2c: 01 00 00 25 14 39 [09:29:23]Write i2c OK [09:29:23]MH_I2C_Read... [09:29:24]OFD Sender: No OFD packet to send [09:29:24]*** Cut start [09:29:24]*** Partial cut [09:29:24]*** CUTSNS_PIN = 1 [09:29:24]*** CUTSNS_PIN = 0 [09:29:24]*** Brake cut motor [09:29:25]Read from MH i2c: 01 [09:29:25]MH_I2C_Read... [09:29:25]*** Stop cut motor [09:29:25]*** Cut end [09:29:25]Read from MH i2c: 01 07 00 [09:29:25]MH_I2C_Read... [09:29:25]Read from MH i2c: 01 07 00 25 14 00 00 00 00 00 FF 0F 4E [09:29:25]process_action close_receipt done [09:29:25]requested_data is exist [09:29:25]produce_requested_data [09:29:25]requested_item fm.sn is exist - process it [09:29:25]wFMCommunicate request_size=4 [09:29:25]MH_SAM_APDU [09:29:25]CAPDU: 80 11 00 00 [09:29:25]Write to MH i2c: E2 08 00 26 14 80 11 00 00 00 00 00 00 B4 [09:29:25]Write i2c OK [09:29:25]MH_I2C_Read... [09:29:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:29:25]Read from MH i2c: E2 [09:29:25]MH_I2C_Read... [09:29:25]Read from MH i2c: E2 17 00 [09:29:25]MH_I2C_Read... [09:29:25]Read from MH i2c: E2 17 00 26 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 FF [09:29:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [09:29:25]wFMCommunicate OK [09:29:25]requested_item fd.num is exist - process it [09:29:25]SAM_PROTO_GetFieldsCounters [09:29:25]wFMCommunicate request_size=4 [09:29:25]MH_SAM_APDU [09:29:25]CAPDU: 80 13 00 00 [09:29:25]Write to MH i2c: E2 08 00 27 14 80 13 00 00 00 00 00 00 B7 [09:29:25]Write i2c OK [09:29:25]MH_I2C_Read... [09:29:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:29:25]Read from MH i2c: E2 [09:29:25]MH_I2C_Read... [09:29:25]Read from MH i2c: E2 62 00 [09:29:25]MH_I2C_Read... [09:29:25]Read from MH i2c: E2 62 00 27 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 AC 0B 01 00 0E 04 04 00 45 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 17 [09:29:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 AC 0B 01 00 0E 04 04 00 45 01 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:29:25]wFMCommunicate OK [09:29:25]SAM_PROTO_GetFieldsCounters done [09:29:25]requested_item shift.num is exist - process it [09:29:25]requested_item shift.opened is exist - process it [09:29:25]req_shift_opened [09:29:25]FM_GetShiftState [09:29:25]SAM_PROTO_GetShiftState [09:29:25]wFMCommunicate request_size=4 [09:29:25]MH_SAM_APDU [09:29:25]CAPDU: 80 13 01 00 [09:29:25]Write to MH i2c: E2 08 00 28 14 80 13 01 00 00 00 00 00 B9 [09:29:25]Write i2c OK [09:29:25]MH_I2C_Read... [09:29:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:29:25]Read from MH i2c: E2 [09:29:25]MH_I2C_Read... [09:29:25]Read from MH i2c: E2 0E 00 [09:29:25]MH_I2C_Read... [09:29:25]Read from MH i2c: E2 0E 00 28 14 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 55 [09:29:25]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [09:29:25]wFMCommunicate OK [09:29:25]SAM_PROTO_GetShiftState done [09:29:25]FM_GetShiftState done [09:29:25]req_shift_opened done [09:29:25]requested_item shift.open_date is exist - process it [09:29:25]req_shift_open_date [09:29:25]req_shift_open_date done [09:29:25]produce_requested_data done [09:29:25]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68524,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [09:29:25]process_action_free close_receipt [09:29:25]json_value_free [09:29:25]json_value_free done [09:29:25]process_json_proto returns [09:29:25]Send response to host [09:29:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68524,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [09:29:25]free response buf [09:29:25]execute_script done [09:29:25]execute_script returns [09:29:25]free content buf [09:29:25]Sock 9.Close socket [09:29:25]Sock 9.Thread stoped [09:29:29]OFD Sender: No OFD packet to send [09:29:34]OFD Sender: No OFD packet to send [09:29:39]OFD Sender: No OFD packet to send [09:29:44]OFD Sender: No OFD packet to send [09:29:49]OFD Sender: No OFD packet to send [09:29:54]OFD Sender: No OFD packet to send [09:29:59]OFD Sender: No OFD packet to send [09:30:04]OFD Sender: No OFD packet to send [09:30:09]OFD Sender: No OFD packet to send [09:30:14]OFD Sender: No OFD packet to send [09:30:19]OFD Sender: No OFD packet to send [09:30:24]OFD Sender: No OFD packet to send [09:30:29]OFD Sender: No OFD packet to send [09:30:34]OFD Sender: No OFD packet to send [09:30:39]OFD Sender: No OFD packet to send [09:30:44]OFD Sender: No OFD packet to send [09:30:49]OFD Sender: No OFD packet to send [09:30:54]OFD Sender: No OFD packet to send [09:30:59]OFD Sender: No OFD packet to send [09:31:04]OFD Sender: No OFD packet to send [09:31:09]OFD Sender: No OFD packet to send [09:31:14]OFD Sender: No OFD packet to send [09:31:19]OFD Sender: No OFD packet to send [09:31:24]OFD Sender: No OFD packet to send [09:31:29]OFD Sender: No OFD packet to send [09:31:34]OFD Sender: No OFD packet to send [09:31:39]OFD Sender: No OFD packet to send [09:31:44]OFD Sender: No OFD packet to send [09:31:49]OFD Sender: No OFD packet to send [09:31:54]OFD Sender: No OFD packet to send [09:31:59]OFD Sender: No OFD packet to send [09:32:04]OFD Sender: No OFD packet to send [09:32:09]OFD Sender: No OFD packet to send [09:32:14]OFD Sender: No OFD packet to send [09:32:19]OFD Sender: No OFD packet to send [09:32:24]OFD Sender: No OFD packet to send [09:32:29]OFD Sender: No OFD packet to send [09:32:34]OFD Sender: No OFD packet to send [09:32:39]OFD Sender: No OFD packet to send [09:32:43]accept exits with 7 [09:32:43]New connection [09:32:43]New thread 3067084132 created [09:32:43]Thread 3067227492 joined [09:32:43]Waiting for new connection... [09:32:43] Sock 7.Parse request [09:32:43]Sock 7.Check first char [09:32:43]Sock 7.First char is OK [09:32:43]request: POST /json_proto HTTP/1.0 [09:32:43]Method: POST [09:32:43]URL: /json_proto [09:32:43]Method is POST - this is cgi request [09:32:43]url: /json_proto [09:32:43]query_string will be loaded in cgi processing [09:32:43]execute_cgi json_proto POST (null) [09:32:43]execute_cgi path=json_proto method=POST [09:32:43]POST find Content-Length [09:32:43]Host: 172.17.36.132:8080 [09:32:43]Content-Length: 682 [09:32:43]Content-Type: application/json [09:32:43] [09:32:43]POST finish read [09:32:43]Found Content-Length = 682 [09:32:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706644", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:32:43]execute_script... [09:32: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)706644", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:32:43]POST & json_proto [09:32:43]process_json_proto [09:32:43]json parsed OK: [09:32:43]protocol is kg_v1.0 [09:32:43]action value=close_receipt [09:32:43]process_action close_receipt [09:32:43]cmd_close_receipt [09:32:43]MH_GetDate [09:32:43]Write to MH i2c: F0 00 00 29 14 2C [09:32:43]Write i2c OK [09:32:43]MH_I2C_Read... [09:32:43]Read from MH i2c: F0 [09:32:43]MH_I2C_Read... [09:32:43]Read from MH i2c: F0 09 00 [09:32:43]MH_I2C_Read... [09:32:43]Read from MH i2c: F0 09 00 29 14 00 3F DF 5E 66 B2 22 B0 64 FF [09:32:43]GetLastDocTimeStamp 1717493365 [09:32:43]current date 1717493567 [09:32:43]FM_GetShiftState [09:32:43]SAM_PROTO_GetShiftState [09:32:43]wFMCommunicate request_size=4 [09:32:43]MH_SAM_APDU [09:32:43]CAPDU: 80 13 01 00 [09:32:43]Write to MH i2c: E2 08 00 2A 14 80 13 01 00 00 00 00 00 BB [09:32:43]Write i2c OK [09:32:43]MH_I2C_Read... [09:32:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:32:43]Read from MH i2c: E2 [09:32:43]MH_I2C_Read... [09:32:43]Read from MH i2c: E2 0E 00 [09:32:43]MH_I2C_Read... [09:32:43]Read from MH i2c: E2 0E 00 2A 14 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 57 [09:32:43]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [09:32:43]wFMCommunicate OK [09:32:43]SAM_PROTO_GetShiftState done [09:32:43]FM_GetShiftState done [09:32:43]opened in 1717460590 [09:32:43]opened+sec_in_day 1717546990 [09:32:43]quantity*price = 100015 [09:32:43]sum+1 = 100017 [09:32:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 23 04.06.2024 09:32 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68525 ФПД: 133036120800869 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T093247&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68525&fm=133036120800869&tin=02508201610067®Number=0000000000098096&sum=100000 [09:32:44]StoreToDocumentArchive [09:32:44]shift 325 fd 68525 [09:32:44]save to /storage/0325/doc_00068525 [09:32:44]save last doc name /storage/0325/doc_00068525 to /storage/kkm_last_doc_name [09:32:44]save OK [09:32:44]Clear old archive folders... [09:32:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:32:44]tlvbuf is 00A0E610 [09:32:44]SAM_PROTO_ClearQueue [09:32:44]wFMCommunicate request_size=4 [09:32:44]MH_SAM_APDU [09:32:44]CAPDU: 80 09 00 00 [09:32:44]Write to MH i2c: E2 08 00 37 14 80 09 00 00 00 00 00 00 BD [09:32:44]Write i2c OK [09:32:44]MH_I2C_Read... [09:32:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:32:44]Read from MH i2c: E2 [09:32:44]MH_I2C_Read... [09:32:44]Read from MH i2c: E2 03 00 [09:32:44]MH_I2C_Read... [09:32:44]Read from MH i2c: E2 03 00 37 14 00 90 00 BF [09:32:44]RAPDU: 90 00 [09:32:44]wFMCommunicate OK [09:32:44]SAM_PROTO_ClearQueue done [09:32:44]KKMCreateOFDPacket [09:32:44]OFDProtocolAddRootSTLVToBuf [09:32:44]FM_MakeSignedData [09:32:44]FM_MakeSignedData [09:32:44]SAM_PROTO_SignData [09:32:44]wFMCommunicate request_size=4 [09:32:44]MH_SAM_APDU [09:32:44]CAPDU: 80 0D 01 02 [09:32:44]Write to MH i2c: E2 08 00 38 14 80 0D 01 02 00 00 00 00 C5 [09:32:44]Write i2c OK [09:32:44]MH_I2C_Read... [09:32:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:32:44]Read from MH i2c: E2 [09:32:44]MH_I2C_Read... [09:32:44]Read from MH i2c: E2 03 00 [09:32:44]MH_I2C_Read... [09:32:44]Read from MH i2c: E2 03 00 38 14 00 90 00 C0 [09:32:44]RAPDU: 90 00 [09:32:44]wFMCommunicate OK [09:32:44]wFMCommunicate request_size=255 [09:32:44]MH_SAM_APDU [09:32:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 3F DF 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 AD 0B 01 00 35 04 06 00 78 [09:32:44]Write to MH i2c: E2 02 01 39 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 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 3F DF 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 AD 0B 01 00 35 04 06 00 78 00 00 BC [09:32:44]Write i2c OK [09:32:44]MH_I2C_Read... [09:32:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:32:44]Read from MH i2c: E2 [09:32:44]MH_I2C_Read... [09:32:44]Read from MH i2c: E2 03 00 [09:32:44]MH_I2C_Read... [09:32:44]Read from MH i2c: E2 03 00 39 14 00 90 00 C1 [09:32:44]RAPDU: 90 00 [09:32:44]wFMCommunicate OK [09:32:44]wFMCommunicate request_size=10 [09:32:44]MH_SAM_APDU [09:32:44]CAPDU: 80 0D 02 02 05 FE E2 B8 FE 65 [09:32:44]Write to MH i2c: E2 0D 00 3A 14 80 0D 02 02 05 00 FE E2 B8 FE 65 00 00 CD [09:32:44]Write i2c OK [09:32:44]MH_I2C_Read... [09:32:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:32:44]Read from MH i2c: E2 [09:32:44]MH_I2C_Read... [09:32:44]Read from MH i2c: E2 03 00 [09:32:44]MH_I2C_Read... [09:32:44]Read from MH i2c: E2 03 00 3A 14 00 90 00 C2 [09:32:44]RAPDU: 90 00 [09:32:44]wFMCommunicate OK [09:32:44]wFMCommunicate request_size=4 [09:32:44]MH_SAM_APDU [09:32:44]CAPDU: 80 0D 03 02 [09:32:44]Write to MH i2c: E2 08 00 3B 14 80 0D 03 02 00 00 00 00 CA [09:32:44]Write i2c OK [09:32:44]MH_I2C_Read... [09:32:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:32:45]Read from MH i2c: E2 [09:32:45]MH_I2C_Read... [09:32:45]Read from MH i2c: E2 0B 00 [09:32:45]MH_I2C_Read... [09:32:45]Read from MH i2c: E2 0B 00 3B 14 00 05 81 EB 03 51 E7 A8 9C 90 00 BB [09:32:45]RAPDU: 05 81 EB 03 51 E7 A8 9C 90 00 [09:32:45]wFMCommunicate OK [09:32:45]SAM_PROTO_SignData done [09:32:45]FM_MakeSignedData done [09:32:45]CreateOFDProtocolMessage [09:32:45]wFMCommunicate request_size=4 [09:32:45]MH_SAM_APDU [09:32:45]CAPDU: 80 11 00 00 [09:32:45]Write to MH i2c: E2 08 00 3C 14 80 11 00 00 00 00 00 00 CA [09:32:45]Write i2c OK [09:32:45]MH_I2C_Read... [09:32:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:32:45]Read from MH i2c: E2 [09:32:45]MH_I2C_Read... [09:32:45]Read from MH i2c: E2 17 00 [09:32:45]MH_I2C_Read... [09:32:45]Read from MH i2c: E2 17 00 3C 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 15 [09:32:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [09:32:45]wFMCommunicate OK [09:32:45]CreateOFDProtocolMessage done [09:32:45]OFDSenderStorePacket 68525 [09:32:45]StoreOFDPacket docnum=68525 [09:32:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 25 74 07 01 DA 57 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 3F DF 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 AD 0B 01 00 35 04 06 00 78 FE E2 B8 FE 65 05 81 EB 03 51 E7 A8 9C [09:32:45]CheckFolder [09:32:45]dirname=/storage/ofd_packets [09:32:45]CheckFolder done [09:32:45]ProducePacketName [09:32:45]name=ofd_packets/00068525 [09:32:45]NVStorageSaveData ofd_packets/00068525 [09:32:45]File name is /storage/ofd_packets/00068525 [09:32:45]Write 301 bytes [09:32:45]NVStorageSaveData done [09:32:45]OFDSenderStorePacket done [09:32:45]KKMCreateOFDPacket done [09:32:45]NVStorageSaveData kkm_last_timestamp [09:32:45]File name is /storage/kkm_last_timestamp [09:32:45]Write 4 bytes [09:32:45]NVStorageSaveData done [09:32:45]ExternCall_PrintAddStr [09:32:45]wPrintStart [09:32:45]Write to MH i2c: 01 00 00 3D 14 51 [09:32:45]Write i2c OK [09:32:45]MH_I2C_Read... [09:32:45]Read from MH i2c: 01 [09:32:45]MH_I2C_Read... [09:32:45]Read from MH i2c: 01 07 00 [09:32:45]MH_I2C_Read... [09:32:45]Read from MH i2c: 01 07 00 3D 14 00 00 00 00 00 FF 0F 66 [09:32:45]RasterBufferAndPrint [09:32:45]line Счет N : (1)706644 [09:32:45]line ИНН: 02508201610067 [09:32:45]line Контрольно-Кассовый Чек [09:32:45]line ПРОДАЖА [09:32:45]line ТРК (МРК, ГНК) : 32 [09:32:45]line Товар: 2710124130 [09:32:45]line Аи-92-К-4 [09:32:45]line 14.950 * 66.90 [09:32:45]line = 1000.16 [09:32:45]line НДС 12% НСП 1% [09:32:45]line > о реализуемом товаре [09:32:45]line ОКРУГЛЕНИЕ: -0.16 [09:32:45]line ИТОГО: 1000.00 [09:32:45]line Внесено: 1000.00 [09:32:45]line СДАЧА: 0.00 [09:32:45]line НСП 1% : 8.85 [09:32:45]line НДС 12% : 106.21 [09:32:45]line Наличными: 1000.00 [09:32:45]line Безнал.: 0.00 [09:32:45]line Место: АЗС № 62 "Партнер Нефть" [09:32:45]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [09:32:45]line СНО: Общий режим [09:32:45]line Чек 23 04.06.2024 09:32 [09:32:45]line Смена: 325 ФФД: 1.0 [09:32:45]line ЗНМ: 0300000181 [09:32:45]line РНМ: 0000000000098096 [09:32:45]line Версия ККМ: 001 [09:32:45]line ФМ: 0000000000965400 [09:32:45]line ФД: 68525 [09:32:45]line ФПД: 133036120800869 [09:32:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T093247&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68525&fm=133036120800869&tin=02508201610067®Number=0000000000098096&sum=100000 [09:32:45]OFD Sender: Processing packet 68525 [packets to send 26, broken 25] [09:32:45]ProducePacketName [09:32:45]name=ofd_packets/00068525 [09:32:45]OFD Sender: To server: pG, [09:32:45]CommunicateWithHost lk.salyk.kg:30040 [09:32:45]ConnectInit lk.salyk.kg [09:32:45]written 0, free lines is 4095 [09:32:45]Connected sock=10 [09:32:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 25 74 07 01 DA 57 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 3F DF 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 AD 0B 01 00 35 04 06 00 78 FE E2 B8 FE 65 05 81 EB 03 51 E7 A8 9C [09:32:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 60 C2 47 00 63 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 39 36 35 34 30 30 10 04 04 00 AD 0B 01 00 F4 03 04 00 38 86 5E 66 B6 04 01 00 00 32 0F 80 BB 92 0A B6 76 [09:32:45]CommunicateWithHost err = 0 [09:32:45]CheckOFDResponse [09:32:45]1017 (14) - 77093643461234 [09:32:45]1041 (16) - 0000000000965400 [09:32:45]1040 (4) - 68525 [09:32:45]1012 (4) - 04.06.2024 03:12 [09:32:45]1206 (1) - 0 [09:32:45]OFD Sender: Remove packet 68525 [09:32:45]ProducePacketName [09:32:45]name=ofd_packets/00068525 [09:32:45]NVStorageDeleteData [09:32:45]Write to MH i2c: 01 00 00 68 14 7C [09:32:45]Write i2c OK [09:32:45]MH_I2C_Read... [09:32:45]Read from MH i2c: 01 [09:32:45]MH_I2C_Read... [09:32:45]Read from MH i2c: 01 07 00 [09:32:45]MH_I2C_Read... [09:32:45]Read from MH i2c: 01 07 00 68 14 00 00 00 00 00 CD 0C 5C [09:32:45]RasterBufferAndPrint [09:32:45]line [09:32:45]line [09:32:45]line [09:32:45]line [09:32:45]line [09:32:45]written 0, free lines is 3281 [09:32:45]MH_Cut [09:32:45]Write to MH i2c: D1 01 00 6F 14 01 55 [09:32:45]Write i2c OK [09:32:45]MH_I2C_Read... [09:32:45]Read from MH i2c: D1 [09:32:45]MH_I2C_Read... [09:32:45]Read from MH i2c: D1 01 00 [09:32:45]MH_I2C_Read... [09:32:45]Read from MH i2c: D1 01 00 6F 14 00 54 [09:32:45]Write to MH i2c: 01 00 00 70 14 84 [09:32:45]Write i2c OK [09:32:45]MH_I2C_Read... [09:32:46]OFD Sender: No OFD packet to send [09:32:46]*** Cut start [09:32:46]*** Partial cut [09:32:46]*** CUTSNS_PIN = 1 [09:32:46]*** CUTSNS_PIN = 0 [09:32:46]*** Brake cut motor [09:32:47]Read from MH i2c: 01 [09:32:47]MH_I2C_Read... [09:32:47]*** Stop cut motor [09:32:47]*** Cut end [09:32:47]Read from MH i2c: 01 07 00 [09:32:47]MH_I2C_Read... [09:32:47]Read from MH i2c: 01 07 00 70 14 00 00 00 00 00 FF 0F 99 [09:32:47]process_action close_receipt done [09:32:47]requested_data is exist [09:32:47]produce_requested_data [09:32:47]requested_item fm.sn is exist - process it [09:32:47]wFMCommunicate request_size=4 [09:32:47]MH_SAM_APDU [09:32:47]CAPDU: 80 11 00 00 [09:32:47]Write to MH i2c: E2 08 00 71 14 80 11 00 00 00 00 00 00 FF [09:32:47]Write i2c OK [09:32:47]MH_I2C_Read... [09:32:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:32:47]Read from MH i2c: E2 [09:32:47]MH_I2C_Read... [09:32:47]Read from MH i2c: E2 17 00 [09:32:47]MH_I2C_Read... [09:32:47]Read from MH i2c: E2 17 00 71 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 4A [09:32:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [09:32:47]wFMCommunicate OK [09:32:47]requested_item fd.num is exist - process it [09:32:47]SAM_PROTO_GetFieldsCounters [09:32:47]wFMCommunicate request_size=4 [09:32:47]MH_SAM_APDU [09:32:47]CAPDU: 80 13 00 00 [09:32:47]Write to MH i2c: E2 08 00 72 14 80 13 00 00 00 00 00 00 02 [09:32:47]Write i2c OK [09:32:47]MH_I2C_Read... [09:32:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:32:47]Read from MH i2c: E2 [09:32:47]MH_I2C_Read... [09:32:47]Read from MH i2c: E2 62 00 [09:32:47]MH_I2C_Read... [09:32:47]Read from MH i2c: E2 62 00 72 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 AD 0B 01 00 0E 04 04 00 45 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 66 [09:32:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 AD 0B 01 00 0E 04 04 00 45 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:32:47]wFMCommunicate OK [09:32:47]SAM_PROTO_GetFieldsCounters done [09:32:47]requested_item shift.num is exist - process it [09:32:47]requested_item shift.opened is exist - process it [09:32:47]req_shift_opened [09:32:47]FM_GetShiftState [09:32:47]SAM_PROTO_GetShiftState [09:32:47]wFMCommunicate request_size=4 [09:32:47]MH_SAM_APDU [09:32:47]CAPDU: 80 13 01 00 [09:32:47]Write to MH i2c: E2 08 00 73 14 80 13 01 00 00 00 00 00 04 [09:32:47]Write i2c OK [09:32:47]MH_I2C_Read... [09:32:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:32:47]Read from MH i2c: E2 [09:32:47]MH_I2C_Read... [09:32:47]Read from MH i2c: E2 0E 00 [09:32:47]MH_I2C_Read... [09:32:47]Read from MH i2c: E2 0E 00 73 14 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 A0 [09:32:47]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [09:32:47]wFMCommunicate OK [09:32:47]SAM_PROTO_GetShiftState done [09:32:47]FM_GetShiftState done [09:32:47]req_shift_opened done [09:32:47]requested_item shift.open_date is exist - process it [09:32:47]req_shift_open_date [09:32:47]req_shift_open_date done [09:32:47]produce_requested_data done [09:32:47]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68525,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [09:32:47]process_action_free close_receipt [09:32:47]json_value_free [09:32:47]json_value_free done [09:32:47]process_json_proto returns [09:32:47]Send response to host [09:32:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68525,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [09:32:47]free response buf [09:32:47]execute_script done [09:32:47]execute_script returns [09:32:47]free content buf [09:32:47]Sock 7.Close socket [09:32:47]Sock 7.Thread stoped [09:32:51]OFD Sender: No OFD packet to send [09:32:56]OFD Sender: No OFD packet to send [09:33:01]OFD Sender: No OFD packet to send [09:33:06]OFD Sender: No OFD packet to send [09:33:11]OFD Sender: No OFD packet to send [09:33:16]OFD Sender: No OFD packet to send [09:33:21]OFD Sender: No OFD packet to send [09:33:26]OFD Sender: No OFD packet to send [09:33:31]OFD Sender: No OFD packet to send [09:33:36]OFD Sender: No OFD packet to send [09:33:41]OFD Sender: No OFD packet to send [09:33:46]OFD Sender: No OFD packet to send [09:33:51]OFD Sender: No OFD packet to send [09:33:56]OFD Sender: No OFD packet to send [09:34:01]OFD Sender: No OFD packet to send [09:34:06]OFD Sender: No OFD packet to send [09:34:11]OFD Sender: No OFD packet to send [09:34:16]OFD Sender: No OFD packet to send [09:34:21]OFD Sender: No OFD packet to send [09:34:26]OFD Sender: No OFD packet to send [09:34:31]OFD Sender: No OFD packet to send [09:34:36]OFD Sender: No OFD packet to send [09:34:41]OFD Sender: No OFD packet to send [09:34:46]OFD Sender: No OFD packet to send [09:34:51]OFD Sender: No OFD packet to send [09:34:56]OFD Sender: No OFD packet to send [09:35:01]OFD Sender: No OFD packet to send [09:35:06]OFD Sender: No OFD packet to send [09:35:11]OFD Sender: No OFD packet to send [09:35:16]OFD Sender: No OFD packet to send [09:35:21]OFD Sender: No OFD packet to send [09:35:26]OFD Sender: No OFD packet to send [09:35:31]OFD Sender: No OFD packet to send [09:35:36]OFD Sender: No OFD packet to send [09:35:41]OFD Sender: No OFD packet to send [09:35:46]OFD Sender: No OFD packet to send [09:35:51]OFD Sender: No OFD packet to send [09:35:56]OFD Sender: No OFD packet to send [09:36:01]OFD Sender: No OFD packet to send [09:36:06]OFD Sender: No OFD packet to send [09:36:11]OFD Sender: No OFD packet to send [09:36:16]OFD Sender: No OFD packet to send [09:36:21]OFD Sender: No OFD packet to send [09:36:26]OFD Sender: No OFD packet to send [09:36:31]OFD Sender: No OFD packet to send [09:36:36]OFD Sender: No OFD packet to send [09:36:41]OFD Sender: No OFD packet to send [09:36:46]OFD Sender: No OFD packet to send [09:36:51]OFD Sender: No OFD packet to send [09:36:56]OFD Sender: No OFD packet to send [09:37:01]OFD Sender: No OFD packet to send [09:37:06]OFD Sender: No OFD packet to send [09:37:11]OFD Sender: No OFD packet to send [09:37:16]OFD Sender: No OFD packet to send [09:37:21]OFD Sender: No OFD packet to send [09:37:26]OFD Sender: No OFD packet to send [09:37:31]OFD Sender: No OFD packet to send [09:37:36]OFD Sender: No OFD packet to send [09:37:41]OFD Sender: No OFD packet to send [09:37:46]OFD Sender: No OFD packet to send [09:37:51]OFD Sender: No OFD packet to send [09:37:56]OFD Sender: No OFD packet to send [09:38:01]OFD Sender: No OFD packet to send [09:38:06]OFD Sender: No OFD packet to send [09:38:11]OFD Sender: No OFD packet to send [09:38:16]OFD Sender: No OFD packet to send [09:38:21]OFD Sender: No OFD packet to send [09:38:26]OFD Sender: No OFD packet to send [09:38:31]OFD Sender: No OFD packet to send [09:38:36]OFD Sender: No OFD packet to send [09:38:41]OFD Sender: No OFD packet to send [09:38:46]OFD Sender: No OFD packet to send [09:38:51]OFD Sender: No OFD packet to send [09:38:56]accept exits with 9 [09:38:56]New connection [09:38:56]New thread 3067227492 created [09:38:56]Thread 3067084132 joined [09:38:56]Waiting for new connection... [09:38:56] Sock 9.Parse request [09:38:56]Sock 9.Check first char [09:38:56]Sock 9.First char is OK [09:38:56]request: POST /json_proto HTTP/1.0 [09:38:56]Method: POST [09:38:56]URL: /json_proto [09:38:56]Method is POST - this is cgi request [09:38:56]url: /json_proto [09:38:56]query_string will be loaded in cgi processing [09:38:56]execute_cgi json_proto POST (null) [09:38:56]execute_cgi path=json_proto method=POST [09:38:56]POST find Content-Length [09:38:56]Host: 172.17.36.132:8080 [09:38:56]Content-Length: 1205 [09:38:56]Content-Type: application/json [09:38:56] [09:38:56]POST finish read [09:38:56]Found Content-Length = 1205 [09:38:56]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 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0418\u0441\u043C\u0430\u043D\u0430\u043B\u0438\u0435\u0432 \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)706645\u000A04.06.2024 09:16\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 : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 20.000 x 73.90\u000A\u0418\u0422\u041E\u0413: 1478.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A1623229/1623230\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:38:56]execute_script... [09:38:56]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 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0418\u0441\u043C\u0430\u043D\u0430\u043B\u0438\u0435\u0432 \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)706645\u000A04.06.2024 09:16\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 : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 20.000 x 73.90\u000A\u0418\u0422\u041E\u0413: 1478.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A1623229/1623230\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:38:56]POST & json_proto [09:38:56]process_json_proto [09:38:56]json parsed OK: [09:38:56]protocol is kg_v1.0 [09:38:56]action value=print_text [09:38:56]process_action print_text [09:38:56]cmd_print_text [09:38:56]ExternCall_PrintAddStr [09:38:56]wPrintStart [09:38:56]Write to MH i2c: 01 00 00 74 14 88 [09:38:56]Write i2c OK [09:38:56]MH_I2C_Read... [09:38:56]Read from MH i2c: 01 [09:38:56]MH_I2C_Read... [09:38:56]Read from MH i2c: 01 07 00 [09:38:56]MH_I2C_Read... [09:38:56]Read from MH i2c: 01 07 00 74 14 00 00 00 00 00 FF 0F 9D [09:38:56]RasterBufferAndPrint [09:38:56]line *****ТОВАРНЫЙ ЧЕК***** [09:38:56]line АЗС 62 [09:38:56]line Партнер нефть [09:38:56]line 02508201610067 [09:38:56]line Кассир : Исманалиев Д. [09:38:56]line Счет N : (1)706645 [09:38:56]line 04.06.2024 09:16 [09:38:56]line ПРОДАЖА [09:38:56]line ТРК (МРК, ГНК): 33 [09:38:56]line Вид ГСМ : 2710124500 [09:38:56]line Аи-95-К-5 [09:38:56]line 20.000 x 73.90 [09:38:56]line ИТОГ: 1478.00 [09:38:56]line Тип оплаты: Талоны: Партнер нефть [09:38:56]line 1623229/1623230 [09:38:56]line ______________________ [09:38:56]line (подпись) [09:38:56]written 0, free lines is 4095 [09:38:56]Write to MH i2c: 01 00 00 88 14 9C [09:38:56]Write i2c OK [09:38:56]MH_I2C_Read... [09:38:56]Read from MH i2c: 01 [09:38:56]MH_I2C_Read... [09:38:56]Read from MH i2c: 01 07 00 [09:38:56]MH_I2C_Read... [09:38:56]Read from MH i2c: 01 07 00 88 14 00 00 00 00 00 18 0E C9 [09:38:56]RasterBufferAndPrint [09:38:56]line [09:38:56]line [09:38:56]line [09:38:56]line [09:38:56]line [09:38:56]written 0, free lines is 3610 [09:38:56]MH_Cut [09:38:56]Write to MH i2c: D1 01 00 8F 14 01 75 [09:38:56]Write i2c OK [09:38:56]MH_I2C_Read... [09:38:56]Read from MH i2c: D1 [09:38:56]MH_I2C_Read... [09:38:56]Read from MH i2c: D1 01 00 [09:38:56]MH_I2C_Read... [09:38:56]Read from MH i2c: D1 01 00 8F 14 00 74 [09:38:56]Write to MH i2c: 01 00 00 90 14 A4 [09:38:56]Write i2c OK [09:38:56]MH_I2C_Read... [09:38:56]OFD Sender: No OFD packet to send [09:38:56]*** Cut start [09:38:56]*** Partial cut [09:38:56]*** CUTSNS_PIN = 1 [09:38:56]*** CUTSNS_PIN = 0 [09:38:57]*** Brake cut motor [09:38:57]Read from MH i2c: 01 [09:38:57]MH_I2C_Read... [09:38:57]Read from MH i2c: 01 07 00 [09:38:57]MH_I2C_Read... [09:38:57]*** Stop cut motor [09:38:57]*** Cut end [09:38:57]Read from MH i2c: 01 07 00 90 14 00 00 00 00 00 FF 0F B9 [09:38:57]process_action print_text done [09:38:57]requested_data is exist [09:38:57]produce_requested_data [09:38:57]requested_item fm.sn is exist - process it [09:38:57]wFMCommunicate request_size=4 [09:38:57]MH_SAM_APDU [09:38:57]CAPDU: 80 11 00 00 [09:38:57]Write to MH i2c: E2 08 00 91 14 80 11 00 00 00 00 00 00 1F [09:38:57]Write i2c OK [09:38:57]MH_I2C_Read... [09:38:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:38:57]Read from MH i2c: E2 [09:38:57]MH_I2C_Read... [09:38:57]Read from MH i2c: E2 17 00 [09:38:57]MH_I2C_Read... [09:38:57]Read from MH i2c: E2 17 00 91 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 6A [09:38:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [09:38:57]wFMCommunicate OK [09:38:57]requested_item fd.num is exist - process it [09:38:57]SAM_PROTO_GetFieldsCounters [09:38:57]wFMCommunicate request_size=4 [09:38:57]MH_SAM_APDU [09:38:57]CAPDU: 80 13 00 00 [09:38:57]Write to MH i2c: E2 08 00 92 14 80 13 00 00 00 00 00 00 22 [09:38:57]Write i2c OK [09:38:57]MH_I2C_Read... [09:38:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:38:57]Read from MH i2c: E2 [09:38:57]MH_I2C_Read... [09:38:57]Read from MH i2c: E2 62 00 [09:38:57]MH_I2C_Read... [09:38:57]Read from MH i2c: E2 62 00 92 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 AD 0B 01 00 0E 04 04 00 45 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 86 [09:38:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 AD 0B 01 00 0E 04 04 00 45 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:38:57]wFMCommunicate OK [09:38:57]SAM_PROTO_GetFieldsCounters done [09:38:57]requested_item shift.num is exist - process it [09:38:57]requested_item shift.opened is exist - process it [09:38:57]req_shift_opened [09:38:57]FM_GetShiftState [09:38:57]SAM_PROTO_GetShiftState [09:38:57]wFMCommunicate request_size=4 [09:38:57]MH_SAM_APDU [09:38:57]CAPDU: 80 13 01 00 [09:38:57]Write to MH i2c: E2 08 00 93 14 80 13 01 00 00 00 00 00 24 [09:38:57]Write i2c OK [09:38:57]MH_I2C_Read... [09:38:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:38:57]Read from MH i2c: E2 [09:38:57]MH_I2C_Read... [09:38:57]Read from MH i2c: E2 0E 00 [09:38:57]MH_I2C_Read... [09:38:57]Read from MH i2c: E2 0E 00 93 14 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 C0 [09:38:57]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [09:38:57]wFMCommunicate OK [09:38:57]SAM_PROTO_GetShiftState done [09:38:57]FM_GetShiftState done [09:38:57]req_shift_opened done [09:38:57]requested_item shift.open_date is exist - process it [09:38:57]req_shift_open_date [09:38:57]req_shift_open_date done [09:38:57]produce_requested_data done [09:38:57]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68525,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [09:38:57]process_action_free print_text [09:38:57]json_value_free [09:38:57]json_value_free done [09:38:57]process_json_proto returns [09:38:57]Send response to host [09:38:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68525,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [09:38:57]free response buf [09:38:57]execute_script done [09:38:57]execute_script returns [09:38:57]free content buf [09:38:57]Sock 9.Close socket [09:38:57]Sock 9.Thread stoped [09:39:01]OFD Sender: No OFD packet to send [09:39:06]OFD Sender: No OFD packet to send [09:39:11]OFD Sender: No OFD packet to send [09:39:16]OFD Sender: No OFD packet to send [09:39:21]OFD Sender: No OFD packet to send [09:39:26]OFD Sender: No OFD packet to send [09:39:31]OFD Sender: No OFD packet to send [09:39:36]OFD Sender: No OFD packet to send [09:39:41]OFD Sender: No OFD packet to send [09:39:46]OFD Sender: No OFD packet to send [09:39:51]OFD Sender: No OFD packet to send [09:39:56]OFD Sender: No OFD packet to send [09:40:01]OFD Sender: No OFD packet to send [09:40:06]OFD Sender: No OFD packet to send [09:40:11]OFD Sender: No OFD packet to send [09:40:16]OFD Sender: No OFD packet to send [09:40:21]OFD Sender: No OFD packet to send [09:40:26]OFD Sender: No OFD packet to send [09:40:31]OFD Sender: No OFD packet to send [09:40:36]OFD Sender: No OFD packet to send [09:40:41]OFD Sender: No OFD packet to send [09:40:46]OFD Sender: No OFD packet to send [09:40:51]OFD Sender: No OFD packet to send [09:40:56]OFD Sender: No OFD packet to send [09:41:01]OFD Sender: No OFD packet to send [09:41:06]OFD Sender: No OFD packet to send [09:41:11]OFD Sender: No OFD packet to send [09:41:16]OFD Sender: No OFD packet to send [09:41:21]OFD Sender: No OFD packet to send [09:41:26]OFD Sender: No OFD packet to send [09:41:31]OFD Sender: No OFD packet to send [09:41:36]OFD Sender: No OFD packet to send [09:41:41]OFD Sender: No OFD packet to send [09:41:46]OFD Sender: No OFD packet to send [09:41:51]OFD Sender: No OFD packet to send [09:41:56]OFD Sender: No OFD packet to send [09:42:01]OFD Sender: No OFD packet to send [09:42:06]OFD Sender: No OFD packet to send [09:42:11]OFD Sender: No OFD packet to send [09:42:16]OFD Sender: No OFD packet to send [09:42:21]OFD Sender: No OFD packet to send [09:42:26]OFD Sender: No OFD packet to send [09:42:31]OFD Sender: No OFD packet to send [09:42:36]OFD Sender: No OFD packet to send [09:42:41]OFD Sender: No OFD packet to send [09:42:46]OFD Sender: No OFD packet to send [09:42:51]OFD Sender: No OFD packet to send [09:42:56]OFD Sender: No OFD packet to send [09:43:01]OFD Sender: No OFD packet to send [09:43:06]OFD Sender: No OFD packet to send [09:43:11]OFD Sender: No OFD packet to send [09:43:16]OFD Sender: No OFD packet to send [09:43:21]OFD Sender: No OFD packet to send [09:43:26]OFD Sender: No OFD packet to send [09:43:31]OFD Sender: No OFD packet to send [09:43:36]OFD Sender: No OFD packet to send [09:43:41]OFD Sender: No OFD packet to send [09:43:46]OFD Sender: No OFD packet to send [09:43:51]accept exits with 7 [09:43:51]New connection [09:43:51]New thread 3067084132 created [09:43:51]Thread 3067227492 joined [09:43:51]Waiting for new connection... [09:43:51] Sock 7.Parse request [09:43:51]Sock 7.Check first char [09:43:51]Sock 7.First char is OK [09:43:51]request: POST /json_proto HTTP/1.0 [09:43:51]Method: POST [09:43:51]URL: /json_proto [09:43:51]Method is POST - this is cgi request [09:43:51]url: /json_proto [09:43:51]query_string will be loaded in cgi processing [09:43:51]execute_cgi json_proto POST (null) [09:43:51]execute_cgi path=json_proto method=POST [09:43:51]POST find Content-Length [09:43:51]Host: 172.17.36.132:8080 [09:43:51]Content-Length: 682 [09:43:51]Content-Type: application/json [09:43:51] [09:43:51]POST finish read [09:43:51]Found Content-Length = 682 [09:43:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706647", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "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" ] } } [09:43:51]execute_script... [09:43: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)706647", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "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" ] } } [09:43:51]POST & json_proto [09:43:51]process_json_proto [09:43:51]json parsed OK: [09:43:51]protocol is kg_v1.0 [09:43:51]action value=close_receipt [09:43:51]process_action close_receipt [09:43:51]cmd_close_receipt [09:43:51]MH_GetDate [09:43:51]Write to MH i2c: F0 00 00 94 14 97 [09:43:51]Write i2c OK [09:43:51]MH_I2C_Read... [09:43:51]Read from MH i2c: F0 [09:43:51]MH_I2C_Read... [09:43:51]Read from MH i2c: F0 09 00 [09:43:51]MH_I2C_Read... [09:43:51]Read from MH i2c: F0 09 00 94 14 00 DB E1 5E 66 B2 22 B0 64 08 [09:43:51]GetLastDocTimeStamp 1717493567 [09:43:51]current date 1717494235 [09:43:51]FM_GetShiftState [09:43:51]SAM_PROTO_GetShiftState [09:43:51]wFMCommunicate request_size=4 [09:43:51]MH_SAM_APDU [09:43:51]CAPDU: 80 13 01 00 [09:43:51]Write to MH i2c: E2 08 00 95 14 80 13 01 00 00 00 00 00 26 [09:43:51]Write i2c OK [09:43:51]MH_I2C_Read... [09:43:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:43:51]Read from MH i2c: E2 [09:43:51]MH_I2C_Read... [09:43:51]Read from MH i2c: E2 0E 00 [09:43:51]MH_I2C_Read... [09:43:51]Read from MH i2c: E2 0E 00 95 14 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 C2 [09:43:51]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [09:43:51]wFMCommunicate OK [09:43:51]SAM_PROTO_GetShiftState done [09:43:51]FM_GetShiftState done [09:43:51]opened in 1717460590 [09:43:51]opened+sec_in_day 1717546990 [09:43:51]quantity*price = 70056 [09:43:51]sum+1 = 70058 [09:43:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.40 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 24 04.06.2024 09:43 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68526 ФПД: 60042352157040 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T094355&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68526&fm=60042352157040&tin=02508201610067®Number=0000000000098096&sum=70000 [09:43:52]StoreToDocumentArchive [09:43:52]shift 325 fd 68526 [09:43:52]save to /storage/0325/doc_00068526 [09:43:52]save last doc name /storage/0325/doc_00068526 to /storage/kkm_last_doc_name [09:43:52]save OK [09:43:52]Clear old archive folders... [09:43:52]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:43:52]tlvbuf is B6F04580 [09:43:52]SAM_PROTO_ClearQueue [09:43:52]wFMCommunicate request_size=4 [09:43:52]MH_SAM_APDU [09:43:52]CAPDU: 80 09 00 00 [09:43:52]Write to MH i2c: E2 08 00 A2 14 80 09 00 00 00 00 00 00 28 [09:43:52]Write i2c OK [09:43:52]MH_I2C_Read... [09:43:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:43:52]Read from MH i2c: E2 [09:43:52]MH_I2C_Read... [09:43:52]Read from MH i2c: E2 03 00 [09:43:52]MH_I2C_Read... [09:43:52]Read from MH i2c: E2 03 00 A2 14 00 90 00 2A [09:43:52]RAPDU: 90 00 [09:43:52]wFMCommunicate OK [09:43:52]SAM_PROTO_ClearQueue done [09:43:52]KKMCreateOFDPacket [09:43:52]OFDProtocolAddRootSTLVToBuf [09:43:52]FM_MakeSignedData [09:43:52]FM_MakeSignedData [09:43:52]SAM_PROTO_SignData [09:43:52]wFMCommunicate request_size=4 [09:43:52]MH_SAM_APDU [09:43:52]CAPDU: 80 0D 01 02 [09:43:52]Write to MH i2c: E2 08 00 A3 14 80 0D 01 02 00 00 00 00 30 [09:43:52]Write i2c OK [09:43:52]MH_I2C_Read... [09:43:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:43:52]Read from MH i2c: E2 [09:43:52]MH_I2C_Read... [09:43:52]Read from MH i2c: E2 03 00 [09:43:52]MH_I2C_Read... [09:43:52]Read from MH i2c: E2 03 00 A3 14 00 90 00 2B [09:43:52]RAPDU: 90 00 [09:43:52]wFMCommunicate OK [09:43:52]wFMCommunicate request_size=255 [09:43:52]MH_SAM_APDU [09:43:52]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 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 18 00 00 00 F4 03 04 00 DB E1 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 AE 0B 01 00 35 04 06 00 [09:43:52]Write to MH i2c: E2 02 01 A4 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 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 18 00 00 00 F4 03 04 00 DB E1 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 AE 0B 01 00 35 04 06 00 00 00 AA [09:43:52]Write i2c OK [09:43:52]MH_I2C_Read... [09:43:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:43:53]Read from MH i2c: E2 [09:43:53]MH_I2C_Read... [09:43:53]Read from MH i2c: E2 03 00 [09:43:53]MH_I2C_Read... [09:43:53]Read from MH i2c: E2 03 00 A4 14 00 90 00 2C [09:43:53]RAPDU: 90 00 [09:43:53]wFMCommunicate OK [09:43:53]wFMCommunicate request_size=11 [09:43:53]MH_SAM_APDU [09:43:53]CAPDU: 80 0D 02 02 06 36 9B B3 12 61 70 [09:43:53]Write to MH i2c: E2 0E 00 A5 14 80 0D 02 02 06 00 36 9B B3 12 61 70 00 00 A6 [09:43:53]Write i2c OK [09:43:53]MH_I2C_Read... [09:43:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:43:53]Read from MH i2c: E2 [09:43:53]MH_I2C_Read... [09:43:53]Read from MH i2c: E2 03 00 [09:43:53]MH_I2C_Read... [09:43:53]Read from MH i2c: E2 03 00 A5 14 00 90 00 2D [09:43:53]RAPDU: 90 00 [09:43:53]wFMCommunicate OK [09:43:53]wFMCommunicate request_size=4 [09:43:53]MH_SAM_APDU [09:43:53]CAPDU: 80 0D 03 02 [09:43:53]Write to MH i2c: E2 08 00 A6 14 80 0D 03 02 00 00 00 00 35 [09:43:53]Write i2c OK [09:43:53]MH_I2C_Read... [09:43:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:43:53]Read from MH i2c: E2 [09:43:53]MH_I2C_Read... [09:43:53]Read from MH i2c: E2 0B 00 [09:43:53]MH_I2C_Read... [09:43:53]Read from MH i2c: E2 0B 00 A6 14 00 33 98 80 48 D2 30 60 FB 90 00 26 [09:43:53]RAPDU: 33 98 80 48 D2 30 60 FB 90 00 [09:43:53]wFMCommunicate OK [09:43:53]SAM_PROTO_SignData done [09:43:53]FM_MakeSignedData done [09:43:53]CreateOFDProtocolMessage [09:43:53]wFMCommunicate request_size=4 [09:43:53]MH_SAM_APDU [09:43:53]CAPDU: 80 11 00 00 [09:43:53]Write to MH i2c: E2 08 00 A7 14 80 11 00 00 00 00 00 00 35 [09:43:53]Write i2c OK [09:43:53]MH_I2C_Read... [09:43:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:43:53]Read from MH i2c: E2 [09:43:53]MH_I2C_Read... [09:43:53]Read from MH i2c: E2 17 00 [09:43:53]MH_I2C_Read... [09:43:53]Read from MH i2c: E2 17 00 A7 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 80 [09:43:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [09:43:53]wFMCommunicate OK [09:43:53]CreateOFDProtocolMessage done [09:43:53]OFDSenderStorePacket 68526 [09:43:53]StoreOFDPacket docnum=68526 [09:43:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 8C 0D 08 01 93 8E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 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 18 00 00 00 F4 03 04 00 DB E1 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 AE 0B 01 00 35 04 06 00 36 9B B3 12 61 70 33 98 80 48 D2 30 60 FB [09:43:53]CheckFolder [09:43:53]dirname=/storage/ofd_packets [09:43:53]CheckFolder done [09:43:53]ProducePacketName [09:43:53]name=ofd_packets/00068526 [09:43:53]NVStorageSaveData ofd_packets/00068526 [09:43:53]File name is /storage/ofd_packets/00068526 [09:43:53]Write 302 bytes [09:43:53]NVStorageSaveData done [09:43:53]OFDSenderStorePacket done [09:43:53]KKMCreateOFDPacket done [09:43:53]NVStorageSaveData kkm_last_timestamp [09:43:53]File name is /storage/kkm_last_timestamp [09:43:53]Write 4 bytes [09:43:53]NVStorageSaveData done [09:43:53]ExternCall_PrintAddStr [09:43:53]wPrintStart [09:43:53]Write to MH i2c: 01 00 00 A8 14 BC [09:43:53]Write i2c OK [09:43:53]MH_I2C_Read... [09:43:53]Read from MH i2c: 01 [09:43:53]MH_I2C_Read... [09:43:53]Read from MH i2c: 01 07 00 [09:43:53]MH_I2C_Read... [09:43:53]Read from MH i2c: 01 07 00 A8 14 00 00 00 00 00 FF 0F D1 [09:43:53]RasterBufferAndPrint [09:43:53]line Счет N : (1)706647 [09:43:53]line ИНН: 02508201610067 [09:43:53]line Контрольно-Кассовый Чек [09:43:53]line ПРОДАЖА [09:43:53]line ТРК (МРК, ГНК) : 61 [09:43:53]line Товар: 2710194210 [09:43:53]line ДТ(л)-К-4 [09:43:53]line 9.610 * 72.90 [09:43:53]line = 700.57 [09:43:53]line НДС 12% НСП 1% [09:43:53]line > о реализуемом товаре [09:43:53]line ОКРУГЛЕНИЕ: -0.57 [09:43:53]line ИТОГО: 700.00 [09:43:53]line Внесено: 700.00 [09:43:53]line СДАЧА: 0.00 [09:43:53]line НСП 1% : 6.20 [09:43:53]line НДС 12% : 74.40 [09:43:53]line Наличными: 700.00 [09:43:53]line Безнал.: 0.00 [09:43:53]line Место: АЗС № 62 "Партнер Нефть" [09:43:53]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [09:43:53]line СНО: Общий режим [09:43:53]line Чек 24 04.06.2024 09:43 [09:43:53]line Смена: 325 ФФД: 1.0 [09:43:53]line ЗНМ: 0300000181 [09:43:53]line РНМ: 0000000000098096 [09:43:53]line Версия ККМ: 001 [09:43:53]line ФМ: 0000000000965400 [09:43:53]line ФД: 68526 [09:43:53]line ФПД: 60042352157040 [09:43:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T094355&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68526&fm=60042352157040&tin=02508201610067®Number=0000000000098096&sum=70000 [09:43:53]OFD Sender: Processing packet 68526 [packets to send 26, broken 25] [09:43:53]ProducePacketName [09:43:53]name=ofd_packets/00068526 [09:43:53]OFD Sender: To server: pG, [09:43:53]CommunicateWithHost lk.salyk.kg:30040 [09:43:53]ConnectInit lk.salyk.kg [09:43:53]written 0, free lines is 4095 [09:43:53]Connected sock=10 [09:43:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 8C 0D 08 01 93 8E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 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 18 00 00 00 F4 03 04 00 DB E1 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 AE 0B 01 00 35 04 06 00 36 9B B3 12 61 70 33 98 80 48 D2 30 60 FB [09:43:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 7A 11 47 00 2D 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 39 36 35 34 30 30 10 04 04 00 AE 0B 01 00 F4 03 04 00 D4 88 5E 66 B6 04 01 00 00 40 A3 C1 B5 2A AB E4 1F [09:43:53]CommunicateWithHost err = 0 [09:43:53]CheckOFDResponse [09:43:53]1017 (14) - 77093643461234 [09:43:53]1041 (16) - 0000000000965400 [09:43:53]1040 (4) - 68526 [09:43:53]1012 (4) - 04.06.2024 03:24 [09:43:53]1206 (1) - 0 [09:43:53]OFD Sender: Remove packet 68526 [09:43:53]ProducePacketName [09:43:53]name=ofd_packets/00068526 [09:43:53]NVStorageDeleteData [09:43:54]Write to MH i2c: 01 00 00 D3 14 E7 [09:43:54]Write i2c OK [09:43:54]MH_I2C_Read... [09:43:54]Read from MH i2c: 01 [09:43:54]MH_I2C_Read... [09:43:54]Read from MH i2c: 01 07 00 [09:43:54]MH_I2C_Read... [09:43:54]Read from MH i2c: 01 07 00 D3 14 00 00 00 00 00 CF 0C C9 [09:43:54]RasterBufferAndPrint [09:43:54]line [09:43:54]line [09:43:54]line [09:43:54]line [09:43:54]line [09:43:54]written 0, free lines is 3283 [09:43:54]MH_Cut [09:43:54]Write to MH i2c: D1 01 00 DA 14 01 C0 [09:43:54]Write i2c OK [09:43:54]MH_I2C_Read... [09:43:54]Read from MH i2c: D1 [09:43:54]MH_I2C_Read... [09:43:54]Read from MH i2c: D1 01 00 [09:43:54]MH_I2C_Read... [09:43:54]Read from MH i2c: D1 01 00 DA 14 00 BF [09:43:54]Write to MH i2c: 01 00 00 DB 14 EF [09:43:54]Write i2c OK [09:43:54]MH_I2C_Read... [09:43:54]OFD Sender: No OFD packet to send [09:43:54]*** Cut start [09:43:54]*** Partial cut [09:43:54]*** CUTSNS_PIN = 1 [09:43:54]*** CUTSNS_PIN = 0 [09:43:55]*** Brake cut motor [09:43:55]Read from MH i2c: 01 [09:43:55]MH_I2C_Read... [09:43:55]*** Stop cut motor [09:43:55]*** Cut end [09:43:55]Read from MH i2c: 01 07 00 [09:43:55]MH_I2C_Read... [09:43:55]Read from MH i2c: 01 07 00 DB 14 00 00 00 00 00 FF 0F 04 [09:43:55]process_action close_receipt done [09:43:55]requested_data is exist [09:43:55]produce_requested_data [09:43:55]requested_item fm.sn is exist - process it [09:43:55]wFMCommunicate request_size=4 [09:43:55]MH_SAM_APDU [09:43:55]CAPDU: 80 11 00 00 [09:43:55]Write to MH i2c: E2 08 00 DC 14 80 11 00 00 00 00 00 00 6A [09:43:55]Write i2c OK [09:43:55]MH_I2C_Read... [09:43:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:43:55]Read from MH i2c: E2 [09:43:55]MH_I2C_Read... [09:43:55]Read from MH i2c: E2 17 00 [09:43:55]MH_I2C_Read... [09:43:55]Read from MH i2c: E2 17 00 DC 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 B5 [09:43:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [09:43:55]wFMCommunicate OK [09:43:55]requested_item fd.num is exist - process it [09:43:55]SAM_PROTO_GetFieldsCounters [09:43:55]wFMCommunicate request_size=4 [09:43:55]MH_SAM_APDU [09:43:55]CAPDU: 80 13 00 00 [09:43:55]Write to MH i2c: E2 08 00 DD 14 80 13 00 00 00 00 00 00 6D [09:43:55]Write i2c OK [09:43:55]MH_I2C_Read... [09:43:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:43:55]Read from MH i2c: E2 [09:43:55]MH_I2C_Read... [09:43:55]Read from MH i2c: E2 62 00 [09:43:55]MH_I2C_Read... [09:43:55]Read from MH i2c: E2 62 00 DD 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 AE 0B 01 00 0E 04 04 00 45 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 D5 [09:43:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 AE 0B 01 00 0E 04 04 00 45 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:43:55]wFMCommunicate OK [09:43:55]SAM_PROTO_GetFieldsCounters done [09:43:55]requested_item shift.num is exist - process it [09:43:55]requested_item shift.opened is exist - process it [09:43:55]req_shift_opened [09:43:55]FM_GetShiftState [09:43:55]SAM_PROTO_GetShiftState [09:43:55]wFMCommunicate request_size=4 [09:43:55]MH_SAM_APDU [09:43:55]CAPDU: 80 13 01 00 [09:43:55]Write to MH i2c: E2 08 00 DE 14 80 13 01 00 00 00 00 00 6F [09:43:55]Write i2c OK [09:43:55]MH_I2C_Read... [09:43:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:43:55]Read from MH i2c: E2 [09:43:55]MH_I2C_Read... [09:43:55]Read from MH i2c: E2 0E 00 [09:43:55]MH_I2C_Read... [09:43:55]Read from MH i2c: E2 0E 00 DE 14 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 0B [09:43:55]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [09:43:55]wFMCommunicate OK [09:43:55]SAM_PROTO_GetShiftState done [09:43:55]FM_GetShiftState done [09:43:55]req_shift_opened done [09:43:55]requested_item shift.open_date is exist - process it [09:43:55]req_shift_open_date [09:43:55]req_shift_open_date done [09:43:55]produce_requested_data done [09:43:55]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68526,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [09:43:55]process_action_free close_receipt [09:43:55]json_value_free [09:43:55]json_value_free done [09:43:55]process_json_proto returns [09:43:55]Send response to host [09:43:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68526,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [09:43:55]free response buf [09:43:55]execute_script done [09:43:55]execute_script returns [09:43:55]free content buf [09:43:55]Sock 7.Close socket [09:43:55]Sock 7.Thread stoped [09:43:59]OFD Sender: No OFD packet to send [09:44:04]OFD Sender: No OFD packet to send [09:44:09]OFD Sender: No OFD packet to send [09:44:14]OFD Sender: No OFD packet to send [09:44:19]OFD Sender: No OFD packet to send [09:44:24]OFD Sender: No OFD packet to send [09:44:29]OFD Sender: No OFD packet to send [09:44:34]OFD Sender: No OFD packet to send [09:44:39]OFD Sender: No OFD packet to send [09:44:44]OFD Sender: No OFD packet to send [09:44:49]OFD Sender: No OFD packet to send [09:44:54]OFD Sender: No OFD packet to send [09:44:59]OFD Sender: No OFD packet to send [09:45:04]OFD Sender: No OFD packet to send [09:45:09]OFD Sender: No OFD packet to send [09:45:14]OFD Sender: No OFD packet to send [09:45:19]OFD Sender: No OFD packet to send [09:45:24]OFD Sender: No OFD packet to send [09:45:29]OFD Sender: No OFD packet to send [09:45:34]OFD Sender: No OFD packet to send [09:45:39]OFD Sender: No OFD packet to send [09:45:44]OFD Sender: No OFD packet to send [09:45:49]OFD Sender: No OFD packet to send [09:45:54]OFD Sender: No OFD packet to send [09:45:59]OFD Sender: No OFD packet to send [09:46:04]OFD Sender: No OFD packet to send [09:46:09]OFD Sender: No OFD packet to send [09:46:14]OFD Sender: No OFD packet to send [09:46:19]OFD Sender: No OFD packet to send [09:46:24]OFD Sender: No OFD packet to send [09:46:29]OFD Sender: No OFD packet to send [09:46:34]OFD Sender: No OFD packet to send [09:46:39]OFD Sender: No OFD packet to send [09:46:44]OFD Sender: No OFD packet to send [09:46:49]OFD Sender: No OFD packet to send [09:46:54]OFD Sender: No OFD packet to send [09:46:59]OFD Sender: No OFD packet to send [09:47:04]OFD Sender: No OFD packet to send [09:47:09]OFD Sender: No OFD packet to send [09:47:14]OFD Sender: No OFD packet to send [09:47:18]accept exits with 9 [09:47:18]New connection [09:47:18]New thread 3067227492 created [09:47:18]Thread 3067084132 joined [09:47:18]Waiting for new connection... [09:47:18] Sock 9.Parse request [09:47:18]Sock 9.Check first char [09:47:18]Sock 9.First char is OK [09:47:18]request: POST /json_proto HTTP/1.0 [09:47:18]Method: POST [09:47:18]URL: /json_proto [09:47:18]Method is POST - this is cgi request [09:47:18]url: /json_proto [09:47:18]query_string will be loaded in cgi processing [09:47:18]execute_cgi json_proto POST (null) [09:47:18]execute_cgi path=json_proto method=POST [09:47:18]POST find Content-Length [09:47:18]Host: 172.17.36.132:8080 [09:47:18]Content-Length: 678 [09:47:18]Content-Type: application/json [09:47:18] [09:47:18]POST finish read [09:47:18]Found Content-Length = 678 [09:47:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706649", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:47:18]execute_script... [09:47: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)706649", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:47:18]POST & json_proto [09:47:18]process_json_proto [09:47:18]json parsed OK: [09:47:18]protocol is kg_v1.0 [09:47:18]action value=close_receipt [09:47:18]process_action close_receipt [09:47:18]cmd_close_receipt [09:47:18]MH_GetDate [09:47:18]Write to MH i2c: F0 00 00 DF 14 E2 [09:47:18]Write i2c OK [09:47:18]MH_I2C_Read... [09:47:18]Read from MH i2c: F0 [09:47:18]MH_I2C_Read... [09:47:18]Read from MH i2c: F0 09 00 [09:47:18]MH_I2C_Read... [09:47:18]Read from MH i2c: F0 09 00 DF 14 00 AA E2 5E 66 B2 22 B0 64 23 [09:47:18]GetLastDocTimeStamp 1717494235 [09:47:18]current date 1717494442 [09:47:18]FM_GetShiftState [09:47:18]SAM_PROTO_GetShiftState [09:47:18]wFMCommunicate request_size=4 [09:47:18]MH_SAM_APDU [09:47:18]CAPDU: 80 13 01 00 [09:47:18]Write to MH i2c: E2 08 00 E0 14 80 13 01 00 00 00 00 00 71 [09:47:18]Write i2c OK [09:47:18]MH_I2C_Read... [09:47:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:47:18]Read from MH i2c: E2 [09:47:18]MH_I2C_Read... [09:47:18]Read from MH i2c: E2 0E 00 [09:47:18]MH_I2C_Read... [09:47:18]Read from MH i2c: E2 0E 00 E0 14 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 0D [09:47:18]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [09:47:18]wFMCommunicate OK [09:47:18]SAM_PROTO_GetShiftState done [09:47:18]FM_GetShiftState done [09:47:18]opened in 1717460590 [09:47:18]opened+sec_in_day 1717546990 [09:47:18]quantity*price = 70044 [09:47:18]sum+1 = 70045 [09:47:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 25 04.06.2024 09:47 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68527 ФПД: 1882784254582 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T094722&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68527&fm=1882784254582&tin=02508201610067®Number=0000000000098096&sum=70000 [09:47:19]StoreToDocumentArchive [09:47:19]shift 325 fd 68527 [09:47:19]save to /storage/0325/doc_00068527 [09:47:19]save last doc name /storage/0325/doc_00068527 to /storage/kkm_last_doc_name [09:47:19]save OK [09:47:19]Clear old archive folders... [09:47:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:47:19]tlvbuf is 00A3C790 [09:47:19]SAM_PROTO_ClearQueue [09:47:19]wFMCommunicate request_size=4 [09:47:19]MH_SAM_APDU [09:47:19]CAPDU: 80 09 00 00 [09:47:19]Write to MH i2c: E2 08 00 ED 14 80 09 00 00 00 00 00 00 73 [09:47:19]Write i2c OK [09:47:19]MH_I2C_Read... [09:47:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:47:19]Read from MH i2c: E2 [09:47:19]MH_I2C_Read... [09:47:19]Read from MH i2c: E2 03 00 [09:47:19]MH_I2C_Read... [09:47:19]Read from MH i2c: E2 03 00 ED 14 00 90 00 75 [09:47:19]RAPDU: 90 00 [09:47:19]wFMCommunicate OK [09:47:19]SAM_PROTO_ClearQueue done [09:47:19]KKMCreateOFDPacket [09:47:19]OFDProtocolAddRootSTLVToBuf [09:47:19]FM_MakeSignedData [09:47:19]FM_MakeSignedData [09:47:19]SAM_PROTO_SignData [09:47:19]wFMCommunicate request_size=4 [09:47:19]MH_SAM_APDU [09:47:19]CAPDU: 80 0D 01 02 [09:47:19]Write to MH i2c: E2 08 00 EE 14 80 0D 01 02 00 00 00 00 7B [09:47:20]Write i2c OK [09:47:20]MH_I2C_Read... [09:47:20]Read from MH i2c: E2 [09:47:20]MH_I2C_Read... [09:47:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:47:20]Read from MH i2c: E2 03 00 [09:47:20]MH_I2C_Read... [09:47:20]Read from MH i2c: E2 03 00 EE 14 00 90 00 76 [09:47:20]RAPDU: 90 00 [09:47:20]wFMCommunicate OK [09:47:20]wFMCommunicate request_size=255 [09:47:20]MH_SAM_APDU [09:47: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 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 AA E2 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 AF 0B 01 00 35 04 06 00 01 [09:47:20]Write to MH i2c: E2 02 01 EF 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 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 AA E2 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 AF 0B 01 00 35 04 06 00 01 00 00 83 [09:47:20]Write i2c OK [09:47:20]MH_I2C_Read... [09:47:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:47:20]Read from MH i2c: E2 [09:47:20]MH_I2C_Read... [09:47:20]Read from MH i2c: E2 03 00 [09:47:20]MH_I2C_Read... [09:47:20]Read from MH i2c: E2 03 00 EF 14 00 90 00 77 [09:47:20]RAPDU: 90 00 [09:47:20]wFMCommunicate OK [09:47:20]wFMCommunicate request_size=10 [09:47:20]MH_SAM_APDU [09:47:20]CAPDU: 80 0D 02 02 05 B6 5E AF CA 76 [09:47:20]Write to MH i2c: E2 0D 00 F0 14 80 0D 02 02 05 00 B6 5E AF CA 76 00 00 8B [09:47:20]Write i2c OK [09:47:20]MH_I2C_Read... [09:47:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:47:20]Read from MH i2c: E2 [09:47:20]MH_I2C_Read... [09:47:20]Read from MH i2c: E2 03 00 [09:47:20]MH_I2C_Read... [09:47:20]Read from MH i2c: E2 03 00 F0 14 00 90 00 78 [09:47:20]RAPDU: 90 00 [09:47:20]wFMCommunicate OK [09:47:20]wFMCommunicate request_size=4 [09:47:20]MH_SAM_APDU [09:47:20]CAPDU: 80 0D 03 02 [09:47:20]Write to MH i2c: E2 08 00 F1 14 80 0D 03 02 00 00 00 00 80 [09:47:20]Write i2c OK [09:47:20]MH_I2C_Read... [09:47:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:47:20]Read from MH i2c: E2 [09:47:20]MH_I2C_Read... [09:47:20]Read from MH i2c: E2 0B 00 [09:47:20]MH_I2C_Read... [09:47:20]Read from MH i2c: E2 0B 00 F1 14 00 DC 15 2F 0C B9 19 0D C7 90 00 53 [09:47:20]RAPDU: DC 15 2F 0C B9 19 0D C7 90 00 [09:47:20]wFMCommunicate OK [09:47:20]SAM_PROTO_SignData done [09:47:20]FM_MakeSignedData done [09:47:20]CreateOFDProtocolMessage [09:47:20]wFMCommunicate request_size=4 [09:47:20]MH_SAM_APDU [09:47:20]CAPDU: 80 11 00 00 [09:47:20]Write to MH i2c: E2 08 00 F2 14 80 11 00 00 00 00 00 00 80 [09:47:20]Write i2c OK [09:47:20]MH_I2C_Read... [09:47:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:47:20]Read from MH i2c: E2 [09:47:20]MH_I2C_Read... [09:47:20]Read from MH i2c: E2 17 00 [09:47:20]MH_I2C_Read... [09:47:20]Read from MH i2c: E2 17 00 F2 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 CB [09:47:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [09:47:20]wFMCommunicate OK [09:47:20]CreateOFDProtocolMessage done [09:47:20]OFDSenderStorePacket 68527 [09:47:20]StoreOFDPacket docnum=68527 [09:47:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 E2 C7 07 01 F0 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 AA E2 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 AF 0B 01 00 35 04 06 00 01 B6 5E AF CA 76 DC 15 2F 0C B9 19 0D C7 [09:47:20]CheckFolder [09:47:20]dirname=/storage/ofd_packets [09:47:20]CheckFolder done [09:47:20]ProducePacketName [09:47:20]name=ofd_packets/00068527 [09:47:20]NVStorageSaveData ofd_packets/00068527 [09:47:20]File name is /storage/ofd_packets/00068527 [09:47:20]Write 301 bytes [09:47:20]NVStorageSaveData done [09:47:20]OFDSenderStorePacket done [09:47:20]KKMCreateOFDPacket done [09:47:20]NVStorageSaveData kkm_last_timestamp [09:47:20]File name is /storage/kkm_last_timestamp [09:47:20]Write 4 bytes [09:47:20]NVStorageSaveData done [09:47:20]ExternCall_PrintAddStr [09:47:20]wPrintStart [09:47:20]Write to MH i2c: 01 00 00 F3 14 07 [09:47:20]Write i2c OK [09:47:20]MH_I2C_Read... [09:47:20]Read from MH i2c: 01 [09:47:20]MH_I2C_Read... [09:47:20]Read from MH i2c: 01 07 00 [09:47:20]MH_I2C_Read... [09:47:20]Read from MH i2c: 01 07 00 F3 14 00 00 00 00 00 FF 0F 1C [09:47:20]RasterBufferAndPrint [09:47:20]line Счет N : (1)706649 [09:47:20]line ИНН: 02508201610067 [09:47:20]line Контрольно-Кассовый Чек [09:47:20]line ПРОДАЖА [09:47:20]line ТРК (МРК, ГНК) : 42 [09:47:20]line Товар: 2710124130 [09:47:20]line Аи-92-К-4 [09:47:20]line 10.470 * 66.90 [09:47:20]line = 700.44 [09:47:20]line НДС 12% НСП 1% [09:47:20]line > о реализуемом товаре [09:47:20]line ОКРУГЛЕНИЕ: -0.44 [09:47:20]line ИТОГО: 700.00 [09:47:20]line Внесено: 700.00 [09:47:20]line СДАЧА: 0.00 [09:47:20]line НСП 1% : 6.20 [09:47:20]line НДС 12% : 74.38 [09:47:20]line Наличными: 700.00 [09:47:20]line Безнал.: 0.00 [09:47:20]line Место: АЗС № 62 "Партнер Нефть" [09:47:20]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [09:47:20]line СНО: Общий режим [09:47:20]line Чек 25 04.06.2024 09:47 [09:47:20]line Смена: 325 ФФД: 1.0 [09:47:20]line ЗНМ: 0300000181 [09:47:20]line РНМ: 0000000000098096 [09:47:20]line Версия ККМ: 001 [09:47:20]line ФМ: 0000000000965400 [09:47:20]line ФД: 68527 [09:47:20]line ФПД: 1882784254582 [09:47:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T094722&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68527&fm=1882784254582&tin=02508201610067®Number=0000000000098096&sum=70000 [09:47:20]OFD Sender: Processing packet 68527 [packets to send 26, broken 25] [09:47:20]ProducePacketName [09:47:20]name=ofd_packets/00068527 [09:47:20]OFD Sender: To server: pG, [09:47:20]CommunicateWithHost lk.salyk.kg:30040 [09:47:20]ConnectInit lk.salyk.kg [09:47:20]written 0, free lines is 4095 [09:47:20]Connected sock=10 [09:47:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 E2 C7 07 01 F0 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 AA E2 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 AF 0B 01 00 35 04 06 00 01 B6 5E AF CA 76 DC 15 2F 0C B9 19 0D C7 [09:47:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 98 30 47 00 46 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 39 36 35 34 30 30 10 04 04 00 AF 0B 01 00 F4 03 04 00 A3 89 5E 66 B6 04 01 00 00 53 33 D0 A4 83 59 50 5F [09:47:21]CommunicateWithHost err = 0 [09:47:21]CheckOFDResponse [09:47:21]1017 (14) - 77093643461234 [09:47:21]1041 (16) - 0000000000965400 [09:47:21]1040 (4) - 68527 [09:47:21]1012 (4) - 04.06.2024 03:27 [09:47:21]1206 (1) - 0 [09:47:21]OFD Sender: Remove packet 68527 [09:47:21]ProducePacketName [09:47:21]name=ofd_packets/00068527 [09:47:21]NVStorageDeleteData [09:47:21]Write to MH i2c: 01 00 00 1E 15 33 [09:47:21]Write i2c OK [09:47:21]MH_I2C_Read... [09:47:21]Read from MH i2c: 01 [09:47:21]MH_I2C_Read... [09:47:21]Read from MH i2c: 01 07 00 [09:47:21]MH_I2C_Read... [09:47:21]Read from MH i2c: 01 07 00 1E 15 00 00 00 00 00 C5 0C 0B [09:47:21]RasterBufferAndPrint [09:47:21]line [09:47:21]line [09:47:21]line [09:47:21]line [09:47:21]line [09:47:21]written 0, free lines is 3275 [09:47:21]MH_Cut [09:47:21]Write to MH i2c: D1 01 00 25 15 01 0C [09:47:21]Write i2c OK [09:47:21]MH_I2C_Read... [09:47:21]Read from MH i2c: D1 [09:47:21]MH_I2C_Read... [09:47:21]Read from MH i2c: D1 01 00 [09:47:21]MH_I2C_Read... [09:47:21]Read from MH i2c: D1 01 00 25 15 00 0B [09:47:21]Write to MH i2c: 01 00 00 26 15 3B [09:47:21]Write i2c OK [09:47:21]MH_I2C_Read... [09:47:21]OFD Sender: No OFD packet to send [09:47:22]*** Cut start [09:47:22]*** Partial cut [09:47:22]*** CUTSNS_PIN = 1 [09:47:22]*** CUTSNS_PIN = 0 [09:47:22]*** Brake cut motor [09:47:22]Read from MH i2c: 01 [09:47:22]MH_I2C_Read... [09:47:22]*** Stop cut motor [09:47:22]*** Cut end [09:47:22]Read from MH i2c: 01 07 00 [09:47:22]MH_I2C_Read... [09:47:22]Read from MH i2c: 01 07 00 26 15 00 00 00 00 00 FF 0F 50 [09:47:22]process_action close_receipt done [09:47:22]requested_data is exist [09:47:22]produce_requested_data [09:47:22]requested_item fm.sn is exist - process it [09:47:22]wFMCommunicate request_size=4 [09:47:22]MH_SAM_APDU [09:47:22]CAPDU: 80 11 00 00 [09:47:22]Write to MH i2c: E2 08 00 27 15 80 11 00 00 00 00 00 00 B6 [09:47:22]Write i2c OK [09:47:22]MH_I2C_Read... [09:47:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:47:22]Read from MH i2c: E2 [09:47:22]MH_I2C_Read... [09:47:22]Read from MH i2c: E2 17 00 [09:47:22]MH_I2C_Read... [09:47:22]Read from MH i2c: E2 17 00 27 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 01 [09:47:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [09:47:22]wFMCommunicate OK [09:47:22]requested_item fd.num is exist - process it [09:47:22]SAM_PROTO_GetFieldsCounters [09:47:22]wFMCommunicate request_size=4 [09:47:22]MH_SAM_APDU [09:47:22]CAPDU: 80 13 00 00 [09:47:22]Write to MH i2c: E2 08 00 28 15 80 13 00 00 00 00 00 00 B9 [09:47:22]Write i2c OK [09:47:22]MH_I2C_Read... [09:47:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:47:22]Read from MH i2c: E2 [09:47:22]MH_I2C_Read... [09:47:22]Read from MH i2c: E2 62 00 [09:47:22]MH_I2C_Read... [09:47:22]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 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 AF 0B 01 00 0E 04 04 00 45 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 25 [09:47:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 AF 0B 01 00 0E 04 04 00 45 01 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:47:22]wFMCommunicate OK [09:47:22]SAM_PROTO_GetFieldsCounters done [09:47:22]requested_item shift.num is exist - process it [09:47:22]requested_item shift.opened is exist - process it [09:47:22]req_shift_opened [09:47:22]FM_GetShiftState [09:47:22]SAM_PROTO_GetShiftState [09:47:22]wFMCommunicate request_size=4 [09:47:22]MH_SAM_APDU [09:47:22]CAPDU: 80 13 01 00 [09:47:22]Write to MH i2c: E2 08 00 29 15 80 13 01 00 00 00 00 00 BB [09:47:22]Write i2c OK [09:47:22]MH_I2C_Read... [09:47:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:47:22]Read from MH i2c: E2 [09:47:22]MH_I2C_Read... [09:47:22]Read from MH i2c: E2 0E 00 [09:47:22]MH_I2C_Read... [09:47:22]Read from MH i2c: E2 0E 00 29 15 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 57 [09:47:22]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [09:47:22]wFMCommunicate OK [09:47:22]SAM_PROTO_GetShiftState done [09:47:22]FM_GetShiftState done [09:47:22]req_shift_opened done [09:47:22]requested_item shift.open_date is exist - process it [09:47:22]req_shift_open_date [09:47:22]req_shift_open_date done [09:47:22]produce_requested_data done [09:47:22]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68527,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [09:47:22]process_action_free close_receipt [09:47:22]json_value_free [09:47:22]json_value_free done [09:47:22]process_json_proto returns [09:47:22]Send response to host [09:47:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68527,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [09:47:22]free response buf [09:47:22]execute_script done [09:47:22]execute_script returns [09:47:22]free content buf [09:47:22]Sock 9.Close socket [09:47:22]Sock 9.Thread stoped [09:47:26]OFD Sender: No OFD packet to send [09:47:31]OFD Sender: No OFD packet to send [09:47:35]accept exits with 7 [09:47:35]New connection [09:47:35]New thread 3067084132 created [09:47:35]Thread 3067227492 joined [09:47:35]Waiting for new connection... [09:47:35] Sock 7.Parse request [09:47:35]Sock 7.Check first char [09:47:35]Sock 7.First char is OK [09:47:35]request: POST /json_proto HTTP/1.0 [09:47:35]Method: POST [09:47:35]URL: /json_proto [09:47:35]Method is POST - this is cgi request [09:47:35]url: /json_proto [09:47:35]query_string will be loaded in cgi processing [09:47:35]execute_cgi json_proto POST (null) [09:47:35]execute_cgi path=json_proto method=POST [09:47:35]POST find Content-Length [09:47:35]Host: 172.17.36.132:8080 [09:47:35]Content-Length: 848 [09:47:35]Content-Type: application/json [09:47:35] [09:47:35]POST finish read [09:47:35]Found Content-Length = 848 [09:47:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706648", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:47:35]execute_script... [09:47:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706648", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:47:35]POST & json_proto [09:47:35]process_json_proto [09:47:35]json parsed OK: [09:47:35]protocol is kg_v1.0 [09:47:35]action value=close_receipt [09:47:35]process_action close_receipt [09:47:35]cmd_close_receipt [09:47:35]MH_GetDate [09:47:35]Write to MH i2c: F0 00 00 2A 15 2E [09:47:35]Write i2c OK [09:47:35]MH_I2C_Read... [09:47:35]Read from MH i2c: F0 [09:47:35]MH_I2C_Read... [09:47:35]Read from MH i2c: F0 09 00 [09:47:35]MH_I2C_Read... [09:47:35]Read from MH i2c: F0 09 00 2A 15 00 BB E2 5E 66 B2 22 B0 64 80 [09:47:35]GetLastDocTimeStamp 1717494442 [09:47:35]current date 1717494459 [09:47:35]FM_GetShiftState [09:47:35]SAM_PROTO_GetShiftState [09:47:35]wFMCommunicate request_size=4 [09:47:35]MH_SAM_APDU [09:47:35]CAPDU: 80 13 01 00 [09:47:35]Write to MH i2c: E2 08 00 2B 15 80 13 01 00 00 00 00 00 BD [09:47:35]Write i2c OK [09:47:35]MH_I2C_Read... [09:47:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:47:35]Read from MH i2c: E2 [09:47:35]MH_I2C_Read... [09:47:35]Read from MH i2c: E2 0E 00 [09:47:35]MH_I2C_Read... [09:47:35]Read from MH i2c: E2 0E 00 2B 15 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 59 [09:47:35]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [09:47:35]wFMCommunicate OK [09:47:35]SAM_PROTO_GetShiftState done [09:47:35]FM_GetShiftState done [09:47:35]opened in 1717460590 [09:47:35]opened+sec_in_day 1717546990 [09:47:35]quantity*price = 100018 [09:47:35]sum+1 = 100020 [09:47:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.19 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.19 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 26 04.06.2024 09:47 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000965400 ФД: 68528 ФПД: 62867203810511 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T094739&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68528&fm=62867203810511&tin=02508201610067®Number=0000000000098096&sum=100019 [09:47:36]StoreToDocumentArchive [09:47:36]shift 325 fd 68528 [09:47:36]save to /storage/0325/doc_00068528 [09:47:36]save last doc name /storage/0325/doc_00068528 to /storage/kkm_last_doc_name [09:47:36]save OK [09:47:36]Clear old archive folders... [09:47:36]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:47:36]tlvbuf is B6EEB5B0 [09:47:36]SAM_PROTO_ClearQueue [09:47:36]wFMCommunicate request_size=4 [09:47:36]MH_SAM_APDU [09:47:36]CAPDU: 80 09 00 00 [09:47:36]Write to MH i2c: E2 08 00 38 15 80 09 00 00 00 00 00 00 BF [09:47:36]Write i2c OK [09:47:36]MH_I2C_Read... [09:47:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:47:36]Read from MH i2c: E2 [09:47:36]MH_I2C_Read... [09:47:36]Read from MH i2c: E2 03 00 [09:47:36]MH_I2C_Read... [09:47:36]Read from MH i2c: E2 03 00 38 15 00 90 00 C1 [09:47:36]RAPDU: 90 00 [09:47:36]wFMCommunicate OK [09:47:36]SAM_PROTO_ClearQueue done [09:47:36]KKMCreateOFDPacket [09:47:36]OFDProtocolAddRootSTLVToBuf [09:47:36]FM_MakeSignedData [09:47:36]FM_MakeSignedData [09:47:36]SAM_PROTO_SignData [09:47:36]wFMCommunicate request_size=4 [09:47:36]MH_SAM_APDU [09:47:36]CAPDU: 80 0D 01 02 [09:47:36]Write to MH i2c: E2 08 00 39 15 80 0D 01 02 00 00 00 00 C7 [09:47:37]Write i2c OK [09:47:37]MH_I2C_Read... [09:47:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:47:37]Read from MH i2c: E2 [09:47:37]MH_I2C_Read... [09:47:37]Read from MH i2c: E2 03 00 [09:47:37]MH_I2C_Read... [09:47:37]Read from MH i2c: E2 03 00 39 15 00 90 00 C2 [09:47:37]RAPDU: 90 00 [09:47:37]wFMCommunicate OK [09:47:37]wFMCommunicate request_size=255 [09:47:37]MH_SAM_APDU [09:47: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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 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 1A 00 00 00 F4 03 04 00 BB E2 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 B0 0B 01 00 35 04 06 00 [09:47:37]Write to MH i2c: E2 02 01 3A 15 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 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 1A 00 00 00 F4 03 04 00 BB E2 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 B0 0B 01 00 35 04 06 00 00 00 B6 [09:47:37]Write i2c OK [09:47:37]MH_I2C_Read... [09:47:37]Read from MH i2c: E2 [09:47:37]MH_I2C_Read... [09:47:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:47:37]Read from MH i2c: E2 03 00 [09:47:37]MH_I2C_Read... [09:47:37]Read from MH i2c: E2 03 00 3A 15 00 90 00 C3 [09:47:37]RAPDU: 90 00 [09:47:37]wFMCommunicate OK [09:47:37]wFMCommunicate request_size=11 [09:47:37]MH_SAM_APDU [09:47:37]CAPDU: 80 0D 02 02 06 39 2D 69 59 E4 CF [09:47:37]Write to MH i2c: E2 0E 00 3B 15 80 0D 02 02 06 00 39 2D 69 59 E4 CF 00 00 B1 [09:47:37]Write i2c OK [09:47:37]MH_I2C_Read... [09:47:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:47:37]Read from MH i2c: E2 [09:47:37]MH_I2C_Read... [09:47:37]Read from MH i2c: E2 03 00 [09:47:37]MH_I2C_Read... [09:47:37]Read from MH i2c: E2 03 00 3B 15 00 90 00 C4 [09:47:37]RAPDU: 90 00 [09:47:37]wFMCommunicate OK [09:47:37]wFMCommunicate request_size=4 [09:47:37]MH_SAM_APDU [09:47:37]CAPDU: 80 0D 03 02 [09:47:37]Write to MH i2c: E2 08 00 3C 15 80 0D 03 02 00 00 00 00 CC [09:47:37]Write i2c OK [09:47:37]MH_I2C_Read... [09:47:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:47:37]Read from MH i2c: E2 [09:47:37]MH_I2C_Read... [09:47:37]Read from MH i2c: E2 0B 00 [09:47:37]MH_I2C_Read... [09:47:37]Read from MH i2c: E2 0B 00 3C 15 00 8B 5C EE A2 BE 5A 18 57 90 00 CB [09:47:37]RAPDU: 8B 5C EE A2 BE 5A 18 57 90 00 [09:47:37]wFMCommunicate OK [09:47:37]SAM_PROTO_SignData done [09:47:37]FM_MakeSignedData done [09:47:37]CreateOFDProtocolMessage [09:47:37]wFMCommunicate request_size=4 [09:47:37]MH_SAM_APDU [09:47:37]CAPDU: 80 11 00 00 [09:47:37]Write to MH i2c: E2 08 00 3D 15 80 11 00 00 00 00 00 00 CC [09:47:37]Write i2c OK [09:47:37]MH_I2C_Read... [09:47:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:47:37]Read from MH i2c: E2 [09:47:37]MH_I2C_Read... [09:47:37]Read from MH i2c: E2 17 00 [09:47:37]MH_I2C_Read... [09:47:37]Read from MH i2c: E2 17 00 3D 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 17 [09:47:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [09:47:37]wFMCommunicate OK [09:47:37]CreateOFDProtocolMessage done [09:47:37]OFDSenderStorePacket 68528 [09:47:37]StoreOFDPacket docnum=68528 [09:47:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 E0 8F 08 01 C0 15 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 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 1A 00 00 00 F4 03 04 00 BB E2 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 B0 0B 01 00 35 04 06 00 39 2D 69 59 E4 CF 8B 5C EE A2 BE 5A 18 57 [09:47:37]CheckFolder [09:47:37]dirname=/storage/ofd_packets [09:47:37]CheckFolder done [09:47:37]ProducePacketName [09:47:37]name=ofd_packets/00068528 [09:47:37]NVStorageSaveData ofd_packets/00068528 [09:47:37]File name is /storage/ofd_packets/00068528 [09:47:37]Write 302 bytes [09:47:37]NVStorageSaveData done [09:47:37]OFDSenderStorePacket done [09:47:37]KKMCreateOFDPacket done [09:47:37]NVStorageSaveData kkm_last_timestamp [09:47:37]File name is /storage/kkm_last_timestamp [09:47:37]Write 4 bytes [09:47:37]NVStorageSaveData done [09:47:37]ExternCall_PrintAddStr [09:47:37]wPrintStart [09:47:37]Write to MH i2c: 01 00 00 3E 15 53 [09:47:37]Write i2c OK [09:47:37]MH_I2C_Read... [09:47:37]Read from MH i2c: 01 [09:47:37]MH_I2C_Read... [09:47:37]Read from MH i2c: 01 07 00 [09:47:37]MH_I2C_Read... [09:47:37]Read from MH i2c: 01 07 00 3E 15 00 00 00 00 00 FF 0F 68 [09:47:37]RasterBufferAndPrint [09:47:37]line Счет N : (1)706648 [09:47:37]line ИНН: 02508201610067 [09:47:37]line Контрольно-Кассовый Чек [09:47:37]line ПРОДАЖА [09:47:37]line ТРК (МРК, ГНК) : 21 [09:47:37]line Товар: 2710194210 [09:47:37]line ДТ(л)-К-4 [09:47:37]line 13.720 * 72.90 [09:47:37]line = 1000.19 [09:47:37]line НДС 12% НСП 1% [09:47:37]line > о реализуемом товаре [09:47:37]line ИТОГО: 1000.19 [09:47:37]line НСП 1% : 8.85 [09:47:37]line НДС 12% : 106.21 [09:47:37]line Наличными: 0.00 [09:47:37]line Безнал.: 1000.19 [09:47:37]line Место: АЗС № 62 "Партнер Нефть" [09:47:37]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [09:47:37]line СНО: Общий режим [09:47:37]line Чек 26 04.06.2024 09:47 [09:47:37]line Смена: 325 ФФД: 1.0 [09:47:37]line ЗНМ: 0300000181 [09:47:37]line РНМ: 0000000000098096 [09:47:37]line Версия ККМ: 001 [09:47:37]line Платежная система: АКБ Кыргызстан [09:47:37]line ФМ: 0000000000965400 [09:47:37]line ФД: 68528 [09:47:37]line ФПД: 62867203810511 [09:47:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T094739&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68528&fm=62867203810511&tin=02508201610067®Number=0000000000098096&sum=100019 [09:47:37]OFD Sender: Processing packet 68528 [packets to send 26, broken 25] [09:47:37]ProducePacketName [09:47:37]name=ofd_packets/00068528 [09:47:37]OFD Sender: To server: pG, [09:47:37]CommunicateWithHost lk.salyk.kg:30040 [09:47:37]ConnectInit lk.salyk.kg [09:47:37]written 0, free lines is 4095 [09:47:37]Connected sock=10 [09:47:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 E0 8F 08 01 C0 15 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 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 1A 00 00 00 F4 03 04 00 BB E2 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 B0 0B 01 00 35 04 06 00 39 2D 69 59 E4 CF 8B 5C EE A2 BE 5A 18 57 [09:47:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 52 30 47 00 A2 C0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 B0 0B 01 00 F4 03 04 00 B4 89 5E 66 B6 04 01 00 00 A2 C6 84 92 20 1F 63 8C [09:47:38]CommunicateWithHost err = 0 [09:47:38]CheckOFDResponse [09:47:38]1017 (14) - 77093643461234 [09:47:38]1041 (16) - 0000000000965400 [09:47:38]1040 (4) - 68528 [09:47:38]1012 (4) - 04.06.2024 03:27 [09:47:38]1206 (1) - 0 [09:47:38]OFD Sender: Remove packet 68528 [09:47:38]ProducePacketName [09:47:38]name=ofd_packets/00068528 [09:47:38]NVStorageDeleteData [09:47:38]Write to MH i2c: 01 00 00 68 15 7D [09:47:38]Write i2c OK [09:47:38]MH_I2C_Read... [09:47:38]Read from MH i2c: 01 [09:47:38]MH_I2C_Read... [09:47:38]Read from MH i2c: 01 07 00 [09:47:38]MH_I2C_Read... [09:47:38]Read from MH i2c: 01 07 00 68 15 00 00 00 00 00 E7 0C 77 [09:47:38]RasterBufferAndPrint [09:47:38]line [09:47:38]line [09:47:38]line [09:47:38]line [09:47:38]line [09:47:38]written 0, free lines is 3310 [09:47:38]MH_Cut [09:47:38]Write to MH i2c: D1 01 00 6F 15 01 56 [09:47:38]Write i2c OK [09:47:38]MH_I2C_Read... [09:47:38]Read from MH i2c: D1 [09:47:38]MH_I2C_Read... [09:47:38]Read from MH i2c: D1 01 00 [09:47:38]MH_I2C_Read... [09:47:38]Read from MH i2c: D1 01 00 6F 15 00 55 [09:47:38]Write to MH i2c: 01 00 00 70 15 85 [09:47:38]Write i2c OK [09:47:38]MH_I2C_Read... [09:47:38]OFD Sender: No OFD packet to send [09:47:39]*** Cut start [09:47:39]*** Partial cut [09:47:39]*** CUTSNS_PIN = 1 [09:47:39]*** CUTSNS_PIN = 0 [09:47:39]*** Brake cut motor [09:47:39]Read from MH i2c: 01 [09:47:39]MH_I2C_Read... [09:47:39]*** Stop cut motor [09:47:39]*** Cut end [09:47:39]Read from MH i2c: 01 07 00 [09:47:39]MH_I2C_Read... [09:47:39]Read from MH i2c: 01 07 00 70 15 00 00 00 00 00 FF 0F 9A [09:47:39]process_action close_receipt done [09:47:39]requested_data is exist [09:47:39]produce_requested_data [09:47:39]requested_item fm.sn is exist - process it [09:47:39]wFMCommunicate request_size=4 [09:47:39]MH_SAM_APDU [09:47:39]CAPDU: 80 11 00 00 [09:47:39]Write to MH i2c: E2 08 00 71 15 80 11 00 00 00 00 00 00 00 [09:47:39]Write i2c OK [09:47:39]MH_I2C_Read... [09:47:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:47:39]Read from MH i2c: E2 [09:47:39]MH_I2C_Read... [09:47:39]Read from MH i2c: E2 17 00 [09:47:39]MH_I2C_Read... [09:47:39]Read from MH i2c: E2 17 00 71 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 4B [09:47:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [09:47:39]wFMCommunicate OK [09:47:39]requested_item fd.num is exist - process it [09:47:39]SAM_PROTO_GetFieldsCounters [09:47:39]wFMCommunicate request_size=4 [09:47:39]MH_SAM_APDU [09:47:39]CAPDU: 80 13 00 00 [09:47:39]Write to MH i2c: E2 08 00 72 15 80 13 00 00 00 00 00 00 03 [09:47:39]Write i2c OK [09:47:39]MH_I2C_Read... [09:47:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:47:39]Read from MH i2c: E2 [09:47:39]MH_I2C_Read... [09:47:39]Read from MH i2c: E2 62 00 [09:47:39]MH_I2C_Read... [09:47:39]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 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 B0 0B 01 00 0E 04 04 00 45 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 73 [09:47:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 B0 0B 01 00 0E 04 04 00 45 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:47:39]wFMCommunicate OK [09:47:39]SAM_PROTO_GetFieldsCounters done [09:47:39]requested_item shift.num is exist - process it [09:47:39]requested_item shift.opened is exist - process it [09:47:39]req_shift_opened [09:47:39]FM_GetShiftState [09:47:39]SAM_PROTO_GetShiftState [09:47:39]wFMCommunicate request_size=4 [09:47:39]MH_SAM_APDU [09:47:39]CAPDU: 80 13 01 00 [09:47:39]Write to MH i2c: E2 08 00 73 15 80 13 01 00 00 00 00 00 05 [09:47:39]Write i2c OK [09:47:39]MH_I2C_Read... [09:47:39]Read from MH i2c: E2 [09:47:39]MH_I2C_Read... [09:47:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:47:39]Read from MH i2c: E2 0E 00 [09:47:39]MH_I2C_Read... [09:47:39]Read from MH i2c: E2 0E 00 73 15 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 A1 [09:47:39]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [09:47:39]wFMCommunicate OK [09:47:39]SAM_PROTO_GetShiftState done [09:47:39]FM_GetShiftState done [09:47:39]req_shift_opened done [09:47:39]requested_item shift.open_date is exist - process it [09:47:39]req_shift_open_date [09:47:39]req_shift_open_date done [09:47:39]produce_requested_data done [09:47:39]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68528,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [09:47:39]process_action_free close_receipt [09:47:39]json_value_free [09:47:39]json_value_free done [09:47:39]process_json_proto returns [09:47:39]Send response to host [09:47:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68528,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [09:47:39]free response buf [09:47:39]execute_script done [09:47:39]execute_script returns [09:47:39]free content buf [09:47:39]Sock 7.Close socket [09:47:39]Sock 7.Thread stoped [09:47:43]OFD Sender: No OFD packet to send [09:47:48]OFD Sender: No OFD packet to send [09:47:53]OFD Sender: No OFD packet to send [09:47:58]OFD Sender: No OFD packet to send [09:48:03]OFD Sender: No OFD packet to send [09:48:08]OFD Sender: No OFD packet to send [09:48:13]OFD Sender: No OFD packet to send [09:48:18]OFD Sender: No OFD packet to send [09:48:23]OFD Sender: No OFD packet to send [09:48:28]OFD Sender: No OFD packet to send [09:48:33]OFD Sender: No OFD packet to send [09:48:38]OFD Sender: No OFD packet to send [09:48:43]OFD Sender: No OFD packet to send [09:48:48]OFD Sender: No OFD packet to send [09:48:53]OFD Sender: No OFD packet to send [09:48:58]OFD Sender: No OFD packet to send [09:49:03]OFD Sender: No OFD packet to send [09:49:08]OFD Sender: No OFD packet to send [09:49:13]OFD Sender: No OFD packet to send [09:49:18]OFD Sender: No OFD packet to send [09:49:23]OFD Sender: No OFD packet to send [09:49:28]OFD Sender: No OFD packet to send [09:49:33]OFD Sender: No OFD packet to send [09:49:38]OFD Sender: No OFD packet to send [09:49:43]OFD Sender: No OFD packet to send [09:49:48]OFD Sender: No OFD packet to send [09:49:53]OFD Sender: No OFD packet to send [09:49:58]OFD Sender: No OFD packet to send [09:50:03]OFD Sender: No OFD packet to send [09:50:08]OFD Sender: No OFD packet to send [09:50:13]OFD Sender: No OFD packet to send [09:50:18]OFD Sender: No OFD packet to send [09:50:23]OFD Sender: No OFD packet to send [09:50:28]OFD Sender: No OFD packet to send [09:50:33]OFD Sender: No OFD packet to send [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:42]accept exits with 9 [09:51:42]New connection [09:51:42]New thread 3067227492 created [09:51:42]Thread 3067084132 joined [09:51:42]Waiting for new connection... [09:51:42] Sock 9.Parse request [09:51:42]Sock 9.Check first char [09:51:42]Sock 9.First char is OK [09:51:42]request: POST /json_proto HTTP/1.0 [09:51:42]Method: POST [09:51:42]URL: /json_proto [09:51:42]Method is POST - this is cgi request [09:51:42]url: /json_proto [09:51:42]query_string will be loaded in cgi processing [09:51:42]execute_cgi json_proto POST (null) [09:51:42]execute_cgi path=json_proto method=POST [09:51:42]POST find Content-Length [09:51:42]Host: 172.17.36.132:8080 [09:51:42]Content-Length: 675 [09:51:42]Content-Type: application/json [09:51:42] [09:51:42]POST finish read [09:51:42]Found Content-Length = 675 [09:51:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706653", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.90, "quantity" : 51.550, "sum" : 3500.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" ] } } [09:51:42]execute_script... [09:51: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)706653", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.90, "quantity" : 51.550, "sum" : 3500.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" ] } } [09:51:42]POST & json_proto [09:51:42]process_json_proto [09:51:42]json parsed OK: [09:51:42]protocol is kg_v1.0 [09:51:42]action value=close_receipt [09:51:42]process_action close_receipt [09:51:42]cmd_close_receipt [09:51:42]MH_GetDate [09:51:42]Write to MH i2c: F0 00 00 74 15 78 [09:51:42]Write i2c OK [09:51:42]MH_I2C_Read... [09:51:42]Read from MH i2c: F0 [09:51:42]MH_I2C_Read... [09:51:42]Read from MH i2c: F0 09 00 [09:51:42]MH_I2C_Read... [09:51:42]Read from MH i2c: F0 09 00 74 15 00 B2 E3 5E 66 B2 22 B0 64 C2 [09:51:42]GetLastDocTimeStamp 1717494459 [09:51:42]current date 1717494706 [09:51:42]FM_GetShiftState [09:51:42]SAM_PROTO_GetShiftState [09:51:42]wFMCommunicate request_size=4 [09:51:42]MH_SAM_APDU [09:51:42]CAPDU: 80 13 01 00 [09:51:42]Write to MH i2c: E2 08 00 75 15 80 13 01 00 00 00 00 00 07 [09:51:42]Write i2c OK [09:51:42]MH_I2C_Read... [09:51:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:51:42]Read from MH i2c: E2 [09:51:42]MH_I2C_Read... [09:51:42]Read from MH i2c: E2 0E 00 [09:51:42]MH_I2C_Read... [09:51:42]Read from MH i2c: E2 0E 00 75 15 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 A3 [09:51:42]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [09:51:42]wFMCommunicate OK [09:51:42]SAM_PROTO_GetShiftState done [09:51:42]FM_GetShiftState done [09:51:42]opened in 1717460590 [09:51:42]opened+sec_in_day 1717546990 [09:51:42]quantity*price = 350024 [09:51:42]sum+1 = 350026 [09:51:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 3500.00 Внесено: 3500.00 СДАЧА: 0.00 НСП 1% : 30.98 НДС 12% : 371.71 Наличными: 3500.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 27 04.06.2024 09:51 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68529 ФПД: 30799297630042 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T095146&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68529&fm=30799297630042&tin=02508201610067®Number=0000000000098096&sum=350000 [09:51:43]StoreToDocumentArchive [09:51:43]shift 325 fd 68529 [09:51:43]save to /storage/0325/doc_00068529 [09:51:43]save last doc name /storage/0325/doc_00068529 to /storage/kkm_last_doc_name [09:51:43]save OK [09:51:43]Clear old archive folders... [09:51:43]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:51:43]tlvbuf is 00A03ED0 [09:51:43]SAM_PROTO_ClearQueue [09:51:43]wFMCommunicate request_size=4 [09:51:43]MH_SAM_APDU [09:51:43]CAPDU: 80 09 00 00 [09:51:43]Write to MH i2c: E2 08 00 82 15 80 09 00 00 00 00 00 00 09 [09:51:43]Write i2c OK [09:51:43]MH_I2C_Read... [09:51:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:51:43]Read from MH i2c: E2 [09:51:43]MH_I2C_Read... [09:51:43]Read from MH i2c: E2 03 00 [09:51:43]MH_I2C_Read... [09:51:43]Read from MH i2c: E2 03 00 82 15 00 90 00 0B [09:51:43]RAPDU: 90 00 [09:51:43]wFMCommunicate OK [09:51:43]SAM_PROTO_ClearQueue done [09:51:43]KKMCreateOFDPacket [09:51:43]OFDProtocolAddRootSTLVToBuf [09:51:43]FM_MakeSignedData [09:51:43]FM_MakeSignedData [09:51:43]SAM_PROTO_SignData [09:51:43]wFMCommunicate request_size=4 [09:51:43]MH_SAM_APDU [09:51:43]CAPDU: 80 0D 01 02 [09:51:43]Write to MH i2c: E2 08 00 83 15 80 0D 01 02 00 00 00 00 11 [09:51:43]Write i2c OK [09:51:43]MH_I2C_Read... [09:51:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:51:43]Read from MH i2c: E2 [09:51:43]MH_I2C_Read... [09:51:43]Read from MH i2c: E2 03 00 [09:51:43]MH_I2C_Read... [09:51:43]Read from MH i2c: E2 03 00 83 15 00 90 00 0C [09:51:43]RAPDU: 90 00 [09:51:43]wFMCommunicate OK [09:51:43]wFMCommunicate request_size=255 [09:51:43]MH_SAM_APDU [09:51:43]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5E C9 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 49 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 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 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 1B 00 00 00 F4 03 04 00 B2 E3 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 B1 0B 01 00 35 04 06 00 [09:51:43]Write to MH i2c: E2 02 01 84 15 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 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5E C9 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 49 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 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 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 1B 00 00 00 F4 03 04 00 B2 E3 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 B1 0B 01 00 35 04 06 00 00 00 29 [09:51:43]Write i2c OK [09:51:43]MH_I2C_Read... [09:51:43]OFD Sender: No OFD packet to send [09:51:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:51:44]Read from MH i2c: E2 [09:51:44]MH_I2C_Read... [09:51:44]Read from MH i2c: E2 03 00 [09:51:44]MH_I2C_Read... [09:51:44]Read from MH i2c: E2 03 00 84 15 00 90 00 0D [09:51:44]RAPDU: 90 00 [09:51:44]wFMCommunicate OK [09:51:44]wFMCommunicate request_size=11 [09:51:44]MH_SAM_APDU [09:51:44]CAPDU: 80 0D 02 02 06 1C 03 05 31 CF 5A [09:51:44]Write to MH i2c: E2 0E 00 85 15 80 0D 02 02 06 00 1C 03 05 31 CF 5A 00 00 9E [09:51:44]Write i2c OK [09:51:44]MH_I2C_Read... [09:51:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:51:44]Read from MH i2c: E2 [09:51:44]MH_I2C_Read... [09:51:44]Read from MH i2c: E2 03 00 [09:51:44]MH_I2C_Read... [09:51:44]Read from MH i2c: E2 03 00 85 15 00 90 00 0E [09:51:44]RAPDU: 90 00 [09:51:44]wFMCommunicate OK [09:51:44]wFMCommunicate request_size=4 [09:51:44]MH_SAM_APDU [09:51:44]CAPDU: 80 0D 03 02 [09:51:44]Write to MH i2c: E2 08 00 86 15 80 0D 03 02 00 00 00 00 16 [09:51:44]Write i2c OK [09:51:44]MH_I2C_Read... [09:51:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:51:44]Read from MH i2c: E2 [09:51:44]MH_I2C_Read... [09:51:44]Read from MH i2c: E2 0B 00 [09:51:44]MH_I2C_Read... [09:51:44]Read from MH i2c: E2 0B 00 86 15 00 BC D8 B4 A1 9B 15 AB 29 90 00 84 [09:51:44]RAPDU: BC D8 B4 A1 9B 15 AB 29 90 00 [09:51:44]wFMCommunicate OK [09:51:44]SAM_PROTO_SignData done [09:51:44]FM_MakeSignedData done [09:51:44]CreateOFDProtocolMessage [09:51:44]wFMCommunicate request_size=4 [09:51:44]MH_SAM_APDU [09:51:44]CAPDU: 80 11 00 00 [09:51:44]Write to MH i2c: E2 08 00 87 15 80 11 00 00 00 00 00 00 16 [09:51:44]Write i2c OK [09:51:44]MH_I2C_Read... [09:51:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:51:44]Read from MH i2c: E2 [09:51:44]MH_I2C_Read... [09:51:44]Read from MH i2c: E2 17 00 [09:51:44]MH_I2C_Read... [09:51:44]Read from MH i2c: E2 17 00 87 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 61 [09:51:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [09:51:44]wFMCommunicate OK [09:51:44]CreateOFDProtocolMessage done [09:51:44]OFDSenderStorePacket 68529 [09:51:44]StoreOFDPacket docnum=68529 [09:51:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 AB 37 08 01 3D 28 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 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5E C9 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 49 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 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 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 1B 00 00 00 F4 03 04 00 B2 E3 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 B1 0B 01 00 35 04 06 00 1C 03 05 31 CF 5A BC D8 B4 A1 9B 15 AB 29 [09:51:44]CheckFolder [09:51:44]dirname=/storage/ofd_packets [09:51:44]CheckFolder done [09:51:44]ProducePacketName [09:51:44]name=ofd_packets/00068529 [09:51:44]NVStorageSaveData ofd_packets/00068529 [09:51:44]File name is /storage/ofd_packets/00068529 [09:51:44]Write 302 bytes [09:51:44]NVStorageSaveData done [09:51:44]OFDSenderStorePacket done [09:51:44]KKMCreateOFDPacket done [09:51:44]NVStorageSaveData kkm_last_timestamp [09:51:44]File name is /storage/kkm_last_timestamp [09:51:44]Write 4 bytes [09:51:44]NVStorageSaveData done [09:51:44]ExternCall_PrintAddStr [09:51:44]wPrintStart [09:51:44]Write to MH i2c: 01 00 00 88 15 9D [09:51:44]Write i2c OK [09:51:44]MH_I2C_Read... [09:51:44]Read from MH i2c: 01 [09:51:44]MH_I2C_Read... [09:51:44]Read from MH i2c: 01 07 00 [09:51:44]MH_I2C_Read... [09:51:44]Read from MH i2c: 01 07 00 88 15 00 00 00 00 00 FF 0F B2 [09:51:44]RasterBufferAndPrint [09:51:44]line Счет N : (1)706653 [09:51:44]line ИНН: 02508201610067 [09:51:44]line Контрольно-Кассовый Чек [09:51:44]line ПРОДАЖА [09:51:44]line ТРК (МРК, ГНК) : 52 [09:51:44]line Товар: 2710124130 [09:51:44]line Super-92-К-5 [09:51:44]line 51.550 * 67.90 [09:51:44]line = 3500.25 [09:51:44]line НДС 12% НСП 1% [09:51:44]line > о реализуемом товаре [09:51:44]line ОКРУГЛЕНИЕ: -0.25 [09:51:44]line ИТОГО: 3500.00 [09:51:44]line Внесено: 3500.00 [09:51:44]line СДАЧА: 0.00 [09:51:44]line НСП 1% : 30.98 [09:51:44]line НДС 12% : 371.71 [09:51:44]line Наличными: 3500.00 [09:51:44]line Безнал.: 0.00 [09:51:44]line Место: АЗС № 62 "Партнер Нефть" [09:51:44]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [09:51:44]line СНО: Общий режим [09:51:44]line Чек 27 04.06.2024 09:51 [09:51:44]line Смена: 325 ФФД: 1.0 [09:51:44]line ЗНМ: 0300000181 [09:51:44]line РНМ: 0000000000098096 [09:51:44]line Версия ККМ: 001 [09:51:44]line ФМ: 0000000000965400 [09:51:44]line ФД: 68529 [09:51:44]line ФПД: 30799297630042 [09:51:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T095146&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68529&fm=30799297630042&tin=02508201610067®Number=0000000000098096&sum=350000 [09:51:44]OFD Sender: Processing packet 68529 [packets to send 26, broken 25] [09:51:44]ProducePacketName [09:51:44]name=ofd_packets/00068529 [09:51:44]OFD Sender: To server: pG, [09:51:44]CommunicateWithHost lk.salyk.kg:30040 [09:51:44]ConnectInit lk.salyk.kg [09:51:44]written 0, free lines is 4095 [09:51:45]Write to MH i2c: 01 00 00 B3 15 C8 [09:51:45]Write i2c OK [09:51:45]MH_I2C_Read... [09:51:45]Read from MH i2c: 01 [09:51:45]MH_I2C_Read... [09:51:45]Read from MH i2c: 01 07 00 [09:51:45]MH_I2C_Read... [09:51:45]Read from MH i2c: 01 07 00 B3 15 00 00 00 00 00 D2 0C AD [09:51:45]RasterBufferAndPrint [09:51:45]line [09:51:45]line [09:51:45]line [09:51:45]line [09:51:45]line [09:51:45]written 0, free lines is 3290 [09:51:45]MH_Cut [09:51:45]Write to MH i2c: D1 01 00 BA 15 01 A1 [09:51:45]Write i2c OK [09:51:45]MH_I2C_Read... [09:51:45]Read from MH i2c: D1 [09:51:45]MH_I2C_Read... [09:51:45]Read from MH i2c: D1 01 00 [09:51:45]MH_I2C_Read... [09:51:45]Read from MH i2c: D1 01 00 BA 15 00 A0 [09:51:45]Write to MH i2c: 01 00 00 BB 15 D0 [09:51:45]Write i2c OK [09:51:45]MH_I2C_Read... [09:51:45]Connected sock=7 [09:51:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 AB 37 08 01 3D 28 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 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5E C9 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 49 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 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 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 1B 00 00 00 F4 03 04 00 B2 E3 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 B1 0B 01 00 35 04 06 00 1C 03 05 31 CF 5A BC D8 B4 A1 9B 15 AB 29 [09:51:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 FB 87 47 00 8B 66 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 B1 0B 01 00 F4 03 04 00 AB 8A 5E 66 B6 04 01 00 00 5F BC 53 88 2E BC 1F C2 [09:51:45]CommunicateWithHost err = 0 [09:51:45]CheckOFDResponse [09:51:45]1017 (14) - 77093643461234 [09:51:45]1041 (16) - 0000000000965400 [09:51:45]1040 (4) - 68529 [09:51:45]1012 (4) - 04.06.2024 03:31 [09:51:45]1206 (1) - 0 [09:51:45]OFD Sender: Remove packet 68529 [09:51:45]ProducePacketName [09:51:45]name=ofd_packets/00068529 [09:51:45]NVStorageDeleteData [09:51:45]*** Cut start [09:51:45]*** Partial cut [09:51:45]*** CUTSNS_PIN = 1 [09:51:45]*** CUTSNS_PIN = 0 [09:51:45]OFD Sender: No OFD packet to send [09:51:46]*** Brake cut motor [09:51:46]Read from MH i2c: 01 [09:51:46]MH_I2C_Read... [09:51:46]*** Stop cut motor [09:51:46]*** Cut end [09:51:46]Read from MH i2c: 01 07 00 [09:51:46]MH_I2C_Read... [09:51:46]Read from MH i2c: 01 07 00 BB 15 00 00 00 00 00 FF 0F E5 [09:51:46]process_action close_receipt done [09:51:46]requested_data is exist [09:51:46]produce_requested_data [09:51:46]requested_item fm.sn is exist - process it [09:51:46]wFMCommunicate request_size=4 [09:51:46]MH_SAM_APDU [09:51:46]CAPDU: 80 11 00 00 [09:51:46]Write to MH i2c: E2 08 00 BC 15 80 11 00 00 00 00 00 00 4B [09:51:46]Write i2c OK [09:51:46]MH_I2C_Read... [09:51:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:51:46]Read from MH i2c: E2 [09:51:46]MH_I2C_Read... [09:51:46]Read from MH i2c: E2 17 00 [09:51:46]MH_I2C_Read... [09:51:46]Read from MH i2c: E2 17 00 BC 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 96 [09:51:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [09:51:46]wFMCommunicate OK [09:51:46]requested_item fd.num is exist - process it [09:51:46]SAM_PROTO_GetFieldsCounters [09:51:46]wFMCommunicate request_size=4 [09:51:46]MH_SAM_APDU [09:51:46]CAPDU: 80 13 00 00 [09:51:46]Write to MH i2c: E2 08 00 BD 15 80 13 00 00 00 00 00 00 4E [09:51:46]Write i2c OK [09:51:46]MH_I2C_Read... [09:51:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:51:46]Read from MH i2c: E2 [09:51:46]MH_I2C_Read... [09:51:46]Read from MH i2c: E2 62 00 [09:51:46]MH_I2C_Read... [09:51:46]Read from MH i2c: E2 62 00 BD 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 B1 0B 01 00 0E 04 04 00 45 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 C2 [09:51:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 B1 0B 01 00 0E 04 04 00 45 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:51:46]wFMCommunicate OK [09:51:46]SAM_PROTO_GetFieldsCounters done [09:51:46]requested_item shift.num is exist - process it [09:51:46]requested_item shift.opened is exist - process it [09:51:46]req_shift_opened [09:51:46]FM_GetShiftState [09:51:46]SAM_PROTO_GetShiftState [09:51:46]wFMCommunicate request_size=4 [09:51:46]MH_SAM_APDU [09:51:46]CAPDU: 80 13 01 00 [09:51:46]Write to MH i2c: E2 08 00 BE 15 80 13 01 00 00 00 00 00 50 [09:51:46]Write i2c OK [09:51:46]MH_I2C_Read... [09:51:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:51:46]Read from MH i2c: E2 [09:51:46]MH_I2C_Read... [09:51:46]Read from MH i2c: E2 0E 00 [09:51:46]MH_I2C_Read... [09:51:46]Read from MH i2c: E2 0E 00 BE 15 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 EC [09:51:46]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [09:51:46]wFMCommunicate OK [09:51:46]SAM_PROTO_GetShiftState done [09:51:46]FM_GetShiftState done [09:51:46]req_shift_opened done [09:51:46]requested_item shift.open_date is exist - process it [09:51:46]req_shift_open_date [09:51:46]req_shift_open_date done [09:51:46]produce_requested_data done [09:51:46]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68529,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [09:51:46]process_action_free close_receipt [09:51:46]json_value_free [09:51:46]json_value_free done [09:51:46]process_json_proto returns [09:51:46]Send response to host [09:51:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68529,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [09:51:46]free response buf [09:51:46]execute_script done [09:51:46]execute_script returns [09:51:46]free content buf [09:51:46]Sock 9.Close socket [09:51:46]Sock 9.Thread stoped [09:51:50]OFD Sender: No OFD packet to send [09:51:55]OFD Sender: No OFD packet to send [09:52:00]OFD Sender: No OFD packet to send [09:52:05]OFD Sender: No OFD packet to send [09:52:10]OFD Sender: No OFD packet to send [09:52:15]OFD Sender: No OFD packet to send [09:52:20]OFD Sender: No OFD packet to send [09:52:25]OFD Sender: No OFD packet to send [09:52:30]OFD Sender: No OFD packet to send [09:52:35]OFD Sender: No OFD packet to send [09:52:40]accept exits with 10 [09:52:40]New connection [09:52:40]New thread 3067084132 created [09:52:40]Thread 3067227492 joined [09:52:40]Waiting for new connection... [09:52:40] Sock 10.Parse request [09:52:40]Sock 10.Check first char [09:52:40]Sock 10.First char is OK [09:52:40]request: POST /json_proto HTTP/1.0 [09:52:40]Method: POST [09:52:40]URL: /json_proto [09:52:40]Method is POST - this is cgi request [09:52:40]url: /json_proto [09:52:40]query_string will be loaded in cgi processing [09:52:40]execute_cgi json_proto POST (null) [09:52:40]execute_cgi path=json_proto method=POST [09:52:40]POST find Content-Length [09:52:40]Host: 172.17.36.132:8080 [09:52:40]Content-Length: 687 [09:52:40]Content-Type: application/json [09:52:40] [09:52:40]POST finish read [09:52:40]Found Content-Length = 687 [09:52:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706654", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 48.020, "sum" : 3500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" ] } } [09:52:40]execute_script... [09:52: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)706654", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 48.020, "sum" : 3500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" ] } } [09:52:40]POST & json_proto [09:52:40]process_json_proto [09:52:40]json parsed OK: [09:52:40]protocol is kg_v1.0 [09:52:40]action value=close_receipt [09:52:40]process_action close_receipt [09:52:40]cmd_close_receipt [09:52:40]MH_GetDate [09:52:40]Write to MH i2c: F0 00 00 BF 15 C3 [09:52:40]Write i2c OK [09:52:40]MH_I2C_Read... [09:52:40]Read from MH i2c: F0 [09:52:40]MH_I2C_Read... [09:52:40]Read from MH i2c: F0 09 00 [09:52:40]MH_I2C_Read... [09:52:40]Read from MH i2c: F0 09 00 BF 15 00 EC E3 5E 66 B2 22 B0 64 47 [09:52:40]GetLastDocTimeStamp 1717494706 [09:52:40]current date 1717494764 [09:52:40]FM_GetShiftState [09:52:40]SAM_PROTO_GetShiftState [09:52:40]wFMCommunicate request_size=4 [09:52:40]MH_SAM_APDU [09:52:40]CAPDU: 80 13 01 00 [09:52:40]Write to MH i2c: E2 08 00 C0 15 80 13 01 00 00 00 00 00 52 [09:52:40]Write i2c OK [09:52:40]MH_I2C_Read... [09:52:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:52:40]Read from MH i2c: E2 [09:52:40]MH_I2C_Read... [09:52:40]Read from MH i2c: E2 0E 00 [09:52:40]MH_I2C_Read... [09:52:40]Read from MH i2c: E2 0E 00 C0 15 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 EE [09:52:40]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [09:52:40]wFMCommunicate OK [09:52:40]SAM_PROTO_GetShiftState done [09:52:40]FM_GetShiftState done [09:52:40]opened in 1717460590 [09:52:40]opened+sec_in_day 1717546990 [09:52:40]quantity*price = 350065 [09:52:40]sum+1 = 350067 [09:52:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 3500.00 Внесено: 3500.00 СДАЧА: 0.00 НСП 1% : 30.98 НДС 12% : 371.75 Наличными: 3500.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 28 04.06.2024 09:52 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68530 ФПД: 188566635823441 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T095244&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68530&fm=188566635823441&tin=02508201610067®Number=0000000000098096&sum=350000 [09:52:41]StoreToDocumentArchive [09:52:41]shift 325 fd 68530 [09:52:41]save to /storage/0325/doc_00068530 [09:52:41]save last doc name /storage/0325/doc_00068530 to /storage/kkm_last_doc_name [09:52:41]save OK [09:52:41]Clear old archive folders... [09:52:41]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:52:41]tlvbuf is 00A013A0 [09:52:41]SAM_PROTO_ClearQueue [09:52:41]wFMCommunicate request_size=4 [09:52:41]MH_SAM_APDU [09:52:41]CAPDU: 80 09 00 00 [09:52:41]Write to MH i2c: E2 08 00 CD 15 80 09 00 00 00 00 00 00 54 [09:52:41]Write i2c OK [09:52:41]MH_I2C_Read... [09:52:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:52:41]Read from MH i2c: E2 [09:52:41]MH_I2C_Read... [09:52:41]Read from MH i2c: E2 03 00 [09:52:41]MH_I2C_Read... [09:52:41]Read from MH i2c: E2 03 00 CD 15 00 90 00 56 [09:52:41]RAPDU: 90 00 [09:52:41]wFMCommunicate OK [09:52:41]SAM_PROTO_ClearQueue done [09:52:41]KKMCreateOFDPacket [09:52:41]OFDProtocolAddRootSTLVToBuf [09:52:41]FM_MakeSignedData [09:52:41]FM_MakeSignedData [09:52:41]SAM_PROTO_SignData [09:52:41]wFMCommunicate request_size=4 [09:52:41]MH_SAM_APDU [09:52:41]CAPDU: 80 0D 01 02 [09:52:41]Write to MH i2c: E2 08 00 CE 15 80 0D 01 02 00 00 00 00 5C [09:52:41]Write i2c OK [09:52:41]MH_I2C_Read... [09:52:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:52:41]Read from MH i2c: E2 [09:52:41]MH_I2C_Read... [09:52:41]Read from MH i2c: E2 03 00 [09:52:41]MH_I2C_Read... [09:52:41]Read from MH i2c: E2 03 00 CE 15 00 90 00 57 [09:52:41]RAPDU: 90 00 [09:52:41]wFMCommunicate OK [09:52:41]wFMCommunicate request_size=255 [09:52:41]MH_SAM_APDU [09:52:41]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 94 BB 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 72 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 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 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 1C 00 00 00 F4 03 04 00 EC E3 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 B2 0B 01 00 35 04 06 00 [09:52:41]Write to MH i2c: E2 02 01 CF 15 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 94 BB 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 72 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 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 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 1C 00 00 00 F4 03 04 00 EC E3 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 B2 0B 01 00 35 04 06 00 00 00 0B [09:52:41]Write i2c OK [09:52:41]MH_I2C_Read... [09:52:41]Read from MH i2c: E2 [09:52:41]MH_I2C_Read... [09:52:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:52:41]Read from MH i2c: E2 03 00 [09:52:41]MH_I2C_Read... [09:52:41]Read from MH i2c: E2 03 00 CF 15 00 90 00 58 [09:52:42]RAPDU: 90 00 [09:52:42]wFMCommunicate OK [09:52:42]wFMCommunicate request_size=11 [09:52:42]MH_SAM_APDU [09:52:42]CAPDU: 80 0D 02 02 06 AB 80 17 58 41 51 [09:52:42]Write to MH i2c: E2 0E 00 D0 15 80 0D 02 02 06 00 AB 80 17 58 41 51 00 00 97 [09:52:42]Write i2c OK [09:52:42]MH_I2C_Read... [09:52:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:52:42]Read from MH i2c: E2 [09:52:42]MH_I2C_Read... [09:52:42]Read from MH i2c: E2 03 00 [09:52:42]MH_I2C_Read... [09:52:42]Read from MH i2c: E2 03 00 D0 15 00 90 00 59 [09:52:42]RAPDU: 90 00 [09:52:42]wFMCommunicate OK [09:52:42]wFMCommunicate request_size=4 [09:52:42]MH_SAM_APDU [09:52:42]CAPDU: 80 0D 03 02 [09:52:42]Write to MH i2c: E2 08 00 D1 15 80 0D 03 02 00 00 00 00 61 [09:52:42]Write i2c OK [09:52:42]MH_I2C_Read... [09:52:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:52:42]Read from MH i2c: E2 [09:52:42]MH_I2C_Read... [09:52:42]Read from MH i2c: E2 0B 00 [09:52:42]MH_I2C_Read... [09:52:42]Read from MH i2c: E2 0B 00 D1 15 00 0A 35 99 0F 28 B7 30 08 90 00 60 [09:52:42]RAPDU: 0A 35 99 0F 28 B7 30 08 90 00 [09:52:42]wFMCommunicate OK [09:52:42]SAM_PROTO_SignData done [09:52:42]FM_MakeSignedData done [09:52:42]CreateOFDProtocolMessage [09:52:42]wFMCommunicate request_size=4 [09:52:42]MH_SAM_APDU [09:52:42]CAPDU: 80 11 00 00 [09:52:42]Write to MH i2c: E2 08 00 D2 15 80 11 00 00 00 00 00 00 61 [09:52:42]Write i2c OK [09:52:42]MH_I2C_Read... [09:52:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:52:42]Read from MH i2c: E2 [09:52:42]MH_I2C_Read... [09:52:42]Read from MH i2c: E2 17 00 [09:52:42]MH_I2C_Read... [09:52:42]Read from MH i2c: E2 17 00 D2 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 AC [09:52:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [09:52:42]wFMCommunicate OK [09:52:42]CreateOFDProtocolMessage done [09:52:42]OFDSenderStorePacket 68530 [09:52:42]StoreOFDPacket docnum=68530 [09:52:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 99 B4 08 01 B1 C6 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 94 BB 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 72 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 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 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 1C 00 00 00 F4 03 04 00 EC E3 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 B2 0B 01 00 35 04 06 00 AB 80 17 58 41 51 0A 35 99 0F 28 B7 30 08 [09:52:42]CheckFolder [09:52:42]dirname=/storage/ofd_packets [09:52:42]CheckFolder done [09:52:42]ProducePacketName [09:52:42]name=ofd_packets/00068530 [09:52:42]NVStorageSaveData ofd_packets/00068530 [09:52:42]File name is /storage/ofd_packets/00068530 [09:52:42]Write 302 bytes [09:52:42]NVStorageSaveData done [09:52:42]OFDSenderStorePacket done [09:52:42]KKMCreateOFDPacket done [09:52:42]NVStorageSaveData kkm_last_timestamp [09:52:42]File name is /storage/kkm_last_timestamp [09:52:42]Write 4 bytes [09:52:42]NVStorageSaveData done [09:52:42]ExternCall_PrintAddStr [09:52:42]wPrintStart [09:52:42]Write to MH i2c: 01 00 00 D3 15 E8 [09:52:42]Write i2c OK [09:52:42]MH_I2C_Read... [09:52:42]Read from MH i2c: 01 [09:52:42]MH_I2C_Read... [09:52:42]Read from MH i2c: 01 07 00 [09:52:42]MH_I2C_Read... [09:52:42]Read from MH i2c: 01 07 00 D3 15 00 00 00 00 00 FF 0F FD [09:52:42]RasterBufferAndPrint [09:52:42]line Счет N : (1)706654 [09:52:42]line ИНН: 02508201610067 [09:52:42]line Контрольно-Кассовый Чек [09:52:42]line ПРОДАЖА [09:52:42]line ТРК (МРК, ГНК) : 21 [09:52:42]line Товар: 2710194210 [09:52:42]line ДТ(л)-К-4 [09:52:42]line 48.020 * 72.90 [09:52:42]line = 3500.66 [09:52:42]line НДС 12% НСП 1% [09:52:42]line > о реализуемом товаре [09:52:42]line ОКРУГЛЕНИЕ: -0.66 [09:52:42]line ИТОГО: 3500.00 [09:52:42]line Внесено: 3500.00 [09:52:42]line СДАЧА: 0.00 [09:52:42]line НСП 1% : 30.98 [09:52:42]line НДС 12% : 371.75 [09:52:42]line Наличными: 3500.00 [09:52:42]line Безнал.: 0.00 [09:52:42]line Место: АЗС № 62 "Партнер Нефть" [09:52:42]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [09:52:42]line СНО: Общий режим [09:52:42]line Чек 28 04.06.2024 09:52 [09:52:42]line Смена: 325 ФФД: 1.0 [09:52:42]line ЗНМ: 0300000181 [09:52:42]line РНМ: 0000000000098096 [09:52:42]line Версия ККМ: 001 [09:52:42]line ФМ: 0000000000965400 [09:52:42]line ФД: 68530 [09:52:42]line ФПД: 188566635823441 [09:52:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T095244&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68530&fm=188566635823441&tin=02508201610067®Number=0000000000098096&sum=350000 [09:52:42]OFD Sender: Processing packet 68530 [packets to send 26, broken 25] [09:52:42]ProducePacketName [09:52:42]name=ofd_packets/00068530 [09:52:42]OFD Sender: To server: pG, [09:52:42]CommunicateWithHost lk.salyk.kg:30040 [09:52:42]ConnectInit lk.salyk.kg [09:52:42]written 0, free lines is 4095 [09:52:42]Connected sock=9 [09:52:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 99 B4 08 01 B1 C6 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 94 BB 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 72 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 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 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 1C 00 00 00 F4 03 04 00 EC E3 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 B2 0B 01 00 35 04 06 00 AB 80 17 58 41 51 0A 35 99 0F 28 B7 30 08 [09:52:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 28 D9 47 00 88 C0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 B2 0B 01 00 F4 03 04 00 E5 8A 5E 66 B6 04 01 00 00 15 E6 C8 5F B3 62 7F 28 [09:52:42]CommunicateWithHost err = 0 [09:52:42]CheckOFDResponse [09:52:42]1017 (14) - 77093643461234 [09:52:42]1041 (16) - 0000000000965400 [09:52:42]1040 (4) - 68530 [09:52:42]1012 (4) - 04.06.2024 03:32 [09:52:42]1206 (1) - 0 [09:52:42]OFD Sender: Remove packet 68530 [09:52:42]ProducePacketName [09:52:42]name=ofd_packets/00068530 [09:52:42]NVStorageDeleteData [09:52:42]Write to MH i2c: 01 00 00 FE 15 13 [09:52:42]Write i2c OK [09:52:42]MH_I2C_Read... [09:52:42]Read from MH i2c: 01 [09:52:42]MH_I2C_Read... [09:52:42]Read from MH i2c: 01 07 00 [09:52:42]MH_I2C_Read... [09:52:42]Read from MH i2c: 01 07 00 FE 15 00 00 00 00 00 D2 0C F8 [09:52:42]RasterBufferAndPrint [09:52:42]line [09:52:42]line [09:52:42]line [09:52:42]line [09:52:42]line [09:52:42]written 0, free lines is 3290 [09:52:42]MH_Cut [09:52:42]Write to MH i2c: D1 01 00 05 16 01 ED [09:52:42]Write i2c OK [09:52:42]MH_I2C_Read... [09:52:42]Read from MH i2c: D1 [09:52:42]MH_I2C_Read... [09:52:42]Read from MH i2c: D1 01 00 [09:52:42]MH_I2C_Read... [09:52:42]Read from MH i2c: D1 01 00 05 16 00 EC [09:52:42]Write to MH i2c: 01 00 00 06 16 1C [09:52:42]Write i2c OK [09:52:42]MH_I2C_Read... [09:52:43]OFD Sender: No OFD packet to send [09:52:43]*** Cut start [09:52:43]*** Partial cut [09:52:43]*** CUTSNS_PIN = 1 [09:52:43]*** CUTSNS_PIN = 0 [09:52:44]*** Brake cut motor [09:52:44]Read from MH i2c: 01 [09:52:44]MH_I2C_Read... [09:52:44]*** Stop cut motor [09:52:44]*** Cut end [09:52:44]Read from MH i2c: 01 07 00 [09:52:44]MH_I2C_Read... [09:52:44]Read from MH i2c: 01 07 00 06 16 00 00 00 00 00 FF 0F 31 [09:52:44]process_action close_receipt done [09:52:44]requested_data is exist [09:52:44]produce_requested_data [09:52:44]requested_item fm.sn is exist - process it [09:52:44]wFMCommunicate request_size=4 [09:52:44]MH_SAM_APDU [09:52:44]CAPDU: 80 11 00 00 [09:52:44]Write to MH i2c: E2 08 00 07 16 80 11 00 00 00 00 00 00 97 [09:52:44]Write i2c OK [09:52:44]MH_I2C_Read... [09:52:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:52:44]Read from MH i2c: E2 [09:52:44]MH_I2C_Read... [09:52:44]Read from MH i2c: E2 17 00 [09:52:44]MH_I2C_Read... [09:52:44]Read from MH i2c: E2 17 00 07 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 E2 [09:52:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [09:52:44]wFMCommunicate OK [09:52:44]requested_item fd.num is exist - process it [09:52:44]SAM_PROTO_GetFieldsCounters [09:52:44]wFMCommunicate request_size=4 [09:52:44]MH_SAM_APDU [09:52:44]CAPDU: 80 13 00 00 [09:52:44]Write to MH i2c: E2 08 00 08 16 80 13 00 00 00 00 00 00 9A [09:52:44]Write i2c OK [09:52:44]MH_I2C_Read... [09:52:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:52:44]Read from MH i2c: E2 [09:52:44]MH_I2C_Read... [09:52:44]Read from MH i2c: E2 62 00 [09:52:44]MH_I2C_Read... [09:52:44]Read from MH i2c: E2 62 00 08 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 B2 0B 01 00 0E 04 04 00 45 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 12 [09:52:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 B2 0B 01 00 0E 04 04 00 45 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:52:44]wFMCommunicate OK [09:52:44]SAM_PROTO_GetFieldsCounters done [09:52:44]requested_item shift.num is exist - process it [09:52:44]requested_item shift.opened is exist - process it [09:52:44]req_shift_opened [09:52:44]FM_GetShiftState [09:52:44]SAM_PROTO_GetShiftState [09:52:44]wFMCommunicate request_size=4 [09:52:44]MH_SAM_APDU [09:52:44]CAPDU: 80 13 01 00 [09:52:44]Write to MH i2c: E2 08 00 09 16 80 13 01 00 00 00 00 00 9C [09:52:44]Write i2c OK [09:52:44]MH_I2C_Read... [09:52:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:52:44]Read from MH i2c: E2 [09:52:44]MH_I2C_Read... [09:52:44]Read from MH i2c: E2 0E 00 [09:52:44]MH_I2C_Read... [09:52:44]Read from MH i2c: E2 0E 00 09 16 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 38 [09:52:44]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [09:52:44]wFMCommunicate OK [09:52:44]SAM_PROTO_GetShiftState done [09:52:44]FM_GetShiftState done [09:52:44]req_shift_opened done [09:52:44]requested_item shift.open_date is exist - process it [09:52:44]req_shift_open_date [09:52:44]req_shift_open_date done [09:52:44]produce_requested_data done [09:52:44]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68530,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [09:52:44]process_action_free close_receipt [09:52:44]json_value_free [09:52:44]json_value_free done [09:52:44]process_json_proto returns [09:52:44]Send response to host [09:52:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68530,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [09:52:44]free response buf [09:52:44]execute_script done [09:52:44]execute_script returns [09:52:44]free content buf [09:52:44]Sock 10.Close socket [09:52:44]Sock 10.Thread stoped [09:52:46]accept exits with 7 [09:52:46]New connection [09:52:46]New thread 3067227492 created [09:52:46]Thread 3067084132 joined [09:52:46]Waiting for new connection... [09:52:46] Sock 7.Parse request [09:52:46]Sock 7.Check first char [09:52:46]Sock 7.First char is OK [09:52:46]request: POST /json_proto HTTP/1.0 [09:52:46]Method: POST [09:52:46]URL: /json_proto [09:52:46]Method is POST - this is cgi request [09:52:46]url: /json_proto [09:52:46]query_string will be loaded in cgi processing [09:52:46]execute_cgi json_proto POST (null) [09:52:46]execute_cgi path=json_proto method=POST [09:52:46]POST find Content-Length [09:52:46]Host: 172.17.36.132:8080 [09:52:46]Content-Length: 743 [09:52:46]Content-Type: application/json [09:52:46] [09:52:46]POST finish read [09:52:46]Found Content-Length = 743 [09:52:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 68530, "base_FM": "0000000000965400", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706654", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 48.020, "sum" : 3500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" ] } } [09:52:46]execute_script... [09:52:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 68530, "base_FM": "0000000000965400", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706654", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 48.020, "sum" : 3500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" ] } } [09:52:46]POST & json_proto [09:52:46]process_json_proto [09:52:46]json parsed OK: [09:52:46]protocol is kg_v1.0 [09:52:46]action value=close_receipt [09:52:46]process_action close_receipt [09:52:46]cmd_close_receipt [09:52:46]MH_GetDate [09:52:46]Write to MH i2c: F0 00 00 0A 16 0F [09:52:46]Write i2c OK [09:52:46]MH_I2C_Read... [09:52:46]Read from MH i2c: F0 [09:52:46]MH_I2C_Read... [09:52:46]Read from MH i2c: F0 09 00 [09:52:46]MH_I2C_Read... [09:52:46]Read from MH i2c: F0 09 00 0A 16 00 F1 E3 5E 66 B2 22 B0 64 98 [09:52:46]GetLastDocTimeStamp 1717494764 [09:52:46]current date 1717494769 [09:52:46]FM_GetShiftState [09:52:46]SAM_PROTO_GetShiftState [09:52:46]wFMCommunicate request_size=4 [09:52:46]MH_SAM_APDU [09:52:46]CAPDU: 80 13 01 00 [09:52:46]Write to MH i2c: E2 08 00 0B 16 80 13 01 00 00 00 00 00 9E [09:52:46]Write i2c OK [09:52:46]MH_I2C_Read... [09:52:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:52:46]Read from MH i2c: E2 [09:52:46]MH_I2C_Read... [09:52:46]Read from MH i2c: E2 0E 00 [09:52:46]MH_I2C_Read... [09:52:46]Read from MH i2c: E2 0E 00 0B 16 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 3A [09:52:46]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [09:52:46]wFMCommunicate OK [09:52:46]SAM_PROTO_GetShiftState done [09:52:46]FM_GetShiftState done [09:52:46]opened in 1717460590 [09:52:46]opened+sec_in_day 1717546990 [09:52:46]quantity*price = 350065 [09:52:46]sum+1 = 350067 [09:52:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 3500.00 НСП 1% : 30.98 НДС 12% : 371.75 Наличными: 3500.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 29 04.06.2024 09:52 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФД осн.: 68530 ФМ осн.: 0000000000965400 ФМ: 0000000000965400 ФД: 68531 ФПД: 252069177339752 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T095249&type=2&operation_type=1&fn_number=0000000000965400&fd_number=68531&fm=252069177339752&tin=02508201610067®Number=0000000000098096&sum=350000 [09:52:47]StoreToDocumentArchive [09:52:47]shift 325 fd 68531 [09:52:47]save to /storage/0325/doc_00068531 [09:52:47]save last doc name /storage/0325/doc_00068531 to /storage/kkm_last_doc_name [09:52:47]save OK [09:52:47]Clear old archive folders... [09:52:47]ProcessDocumentItem done err = 0, tmpTLVsize=280 [09:52:47]tlvbuf is 009E9080 [09:52:47]SAM_PROTO_ClearQueue [09:52:47]wFMCommunicate request_size=4 [09:52:47]MH_SAM_APDU [09:52:47]CAPDU: 80 09 00 00 [09:52:47]Write to MH i2c: E2 08 00 1A 16 80 09 00 00 00 00 00 00 A2 [09:52:47]Write i2c OK [09:52:47]MH_I2C_Read... [09:52:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:52:47]Read from MH i2c: E2 [09:52:47]MH_I2C_Read... [09:52:47]Read from MH i2c: E2 03 00 [09:52:47]MH_I2C_Read... [09:52:47]Read from MH i2c: E2 03 00 1A 16 00 90 00 A4 [09:52:47]RAPDU: 90 00 [09:52:47]wFMCommunicate OK [09:52:47]SAM_PROTO_ClearQueue done [09:52:47]KKMCreateOFDPacket [09:52:47]OFDProtocolAddRootSTLVToBuf [09:52:47]FM_MakeSignedData [09:52:47]FM_MakeSignedData [09:52:47]SAM_PROTO_SignData [09:52:47]wFMCommunicate request_size=4 [09:52:47]MH_SAM_APDU [09:52:47]CAPDU: 80 0D 01 02 [09:52:47]Write to MH i2c: E2 08 00 1B 16 80 0D 01 02 00 00 00 00 AA [09:52:47]Write i2c OK [09:52:47]MH_I2C_Read... [09:52:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:52:47]Read from MH i2c: E2 [09:52:47]MH_I2C_Read... [09:52:47]Read from MH i2c: E2 03 00 [09:52:47]MH_I2C_Read... [09:52:47]Read from MH i2c: E2 03 00 1B 16 00 90 00 A5 [09:52:47]RAPDU: 90 00 [09:52:47]wFMCommunicate OK [09:52:47]wFMCommunicate request_size=255 [09:52:47]MH_SAM_APDU [09:52:47]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 02 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 94 BB 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 72 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 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 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 1D 00 00 00 F4 03 04 00 F1 E3 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 27 04 04 00 B2 0B 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 11 04 10 00 [09:52:47]Write to MH i2c: E2 02 01 1C 16 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 02 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 94 BB 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 72 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 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 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 1D 00 00 00 F4 03 04 00 F1 E3 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 27 04 04 00 B2 0B 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 11 04 10 00 00 00 91 [09:52:47]Write i2c OK [09:52:47]MH_I2C_Read... [09:52:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:52:47]Read from MH i2c: E2 [09:52:47]MH_I2C_Read... [09:52:47]Read from MH i2c: E2 03 00 [09:52:47]MH_I2C_Read... [09:52:47]Read from MH i2c: E2 03 00 1C 16 00 90 00 A6 [09:52:47]RAPDU: 90 00 [09:52:47]wFMCommunicate OK [09:52:47]wFMCommunicate request_size=39 [09:52:47]MH_SAM_APDU [09:52:47]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 B3 0B 01 00 35 04 06 00 E5 41 6D C6 2F 68 [09:52:47]Write to MH i2c: E2 2A 00 1D 16 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 B3 0B 01 00 35 04 06 00 E5 41 6D C6 2F 68 00 00 0F [09:52:47]Write i2c OK [09:52:47]MH_I2C_Read... [09:52:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:52:48]Read from MH i2c: E2 [09:52:48]MH_I2C_Read... [09:52:48]Read from MH i2c: E2 03 00 [09:52:48]MH_I2C_Read... [09:52:48]Read from MH i2c: E2 03 00 1D 16 00 90 00 A7 [09:52:48]RAPDU: 90 00 [09:52:48]wFMCommunicate OK [09:52:48]wFMCommunicate request_size=4 [09:52:48]MH_SAM_APDU [09:52:48]CAPDU: 80 0D 03 02 [09:52:48]Write to MH i2c: E2 08 00 1E 16 80 0D 03 02 00 00 00 00 AF [09:52:48]Write i2c OK [09:52:48]MH_I2C_Read... [09:52:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:52:48]Read from MH i2c: E2 [09:52:48]MH_I2C_Read... [09:52:48]Read from MH i2c: E2 0B 00 [09:52:48]MH_I2C_Read... [09:52:48]Read from MH i2c: E2 0B 00 1E 16 00 67 1F E1 43 BE 9C 9F 57 90 00 AA [09:52:48]RAPDU: 67 1F E1 43 BE 9C 9F 57 90 00 [09:52:48]wFMCommunicate OK [09:52:48]SAM_PROTO_SignData done [09:52:48]FM_MakeSignedData done [09:52:48]CreateOFDProtocolMessage [09:52:48]wFMCommunicate request_size=4 [09:52:48]MH_SAM_APDU [09:52:48]CAPDU: 80 11 00 00 [09:52:48]Write to MH i2c: E2 08 00 1F 16 80 11 00 00 00 00 00 00 AF [09:52:48]Write i2c OK [09:52:48]MH_I2C_Read... [09:52:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:52:48]Read from MH i2c: E2 [09:52:48]MH_I2C_Read... [09:52:48]Read from MH i2c: E2 17 00 [09:52:48]MH_I2C_Read... [09:52:48]Read from MH i2c: E2 17 00 1F 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 FA [09:52:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [09:52:48]wFMCommunicate OK [09:52:48]CreateOFDProtocolMessage done [09:52:48]OFDSenderStorePacket 68531 [09:52:48]StoreOFDPacket docnum=68531 [09:52:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 2C 01 00 00 C6 99 24 01 F5 65 5A 03 01 00 03 00 18 01 1E 04 01 00 02 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 94 BB 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 72 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 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 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 1D 00 00 00 F4 03 04 00 F1 E3 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 27 04 04 00 B2 0B 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 B3 0B 01 00 35 04 06 00 E5 41 6D C6 2F 68 67 1F E1 43 BE 9C 9F 57 [09:52:48]CheckFolder [09:52:48]dirname=/storage/ofd_packets [09:52:48]CheckFolder done [09:52:48]ProducePacketName [09:52:48]name=ofd_packets/00068531 [09:52:48]NVStorageSaveData ofd_packets/00068531 [09:52:48]File name is /storage/ofd_packets/00068531 [09:52:48]Write 330 bytes [09:52:48]NVStorageSaveData done [09:52:48]OFDSenderStorePacket done [09:52:48]KKMCreateOFDPacket done [09:52:48]NVStorageSaveData kkm_last_timestamp [09:52:48]File name is /storage/kkm_last_timestamp [09:52:48]Write 4 bytes [09:52:48]NVStorageSaveData done [09:52:48]ExternCall_PrintAddStr [09:52:48]wPrintStart [09:52:48]Write to MH i2c: 01 00 00 20 16 36 [09:52:48]Write i2c OK [09:52:48]MH_I2C_Read... [09:52:48]Read from MH i2c: 01 [09:52:48]MH_I2C_Read... [09:52:48]Read from MH i2c: 01 07 00 [09:52:48]MH_I2C_Read... [09:52:48]Read from MH i2c: 01 07 00 20 16 00 00 00 00 00 FF 0F 4B [09:52:48]RasterBufferAndPrint [09:52:48]line Счет N : (1)706654 [09:52:48]line ИНН: 02508201610067 [09:52:48]line Контрольно-Кассовый Чек [09:52:48]line ВОЗВРАТ ПРОДАЖИ [09:52:48]line ТРК (МРК, ГНК) : 21 [09:52:48]line Товар: 2710194210 [09:52:48]line ДТ(л)-К-4 [09:52:48]line 48.020 * 72.90 [09:52:48]line = 3500.66 [09:52:48]line НДС 12% НСП 1% [09:52:48]line > о реализуемом товаре [09:52:48]line ОКРУГЛЕНИЕ: -0.66 [09:52:48]line ИТОГО: 3500.00 [09:52:48]line НСП 1% : 30.98 [09:52:48]line НДС 12% : 371.75 [09:52:48]line Наличными: 3500.00 [09:52:48]line Безнал.: 0.00 [09:52:48]line Место: АЗС № 62 "Партнер Нефть" [09:52:48]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [09:52:48]line СНО: Общий режим [09:52:48]line Чек 29 04.06.2024 09:52 [09:52:48]line Смена: 325 ФФД: 1.0 [09:52:48]line ЗНМ: 0300000181 [09:52:48]line РНМ: 0000000000098096 [09:52:48]line Версия ККМ: 001 [09:52:48]line ФД осн.: 68530 [09:52:48]line ФМ осн.: 0000000000965400 [09:52:48]line ФМ: 0000000000965400 [09:52:48]line ФД: 68531 [09:52:48]line ФПД: 252069177339752 [09:52:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T095249&type=2&operation_type=1&fn_number=0000000000965400&fd_number=68531&fm=252069177339752&tin=02508201610067®Number=0000000000098096&sum=350000 [09:52:48]written 0, free lines is 4095 [09:52:48]OFD Sender: Processing packet 68531 [packets to send 26, broken 25] [09:52:48]ProducePacketName [09:52:48]name=ofd_packets/00068531 [09:52:48]OFD Sender: To server: pG, [09:52:48]CommunicateWithHost lk.salyk.kg:30040 [09:52:48]ConnectInit lk.salyk.kg [09:52:48]Connected sock=10 [09:52:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 2C 01 00 00 C6 99 24 01 F5 65 5A 03 01 00 03 00 18 01 1E 04 01 00 02 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 94 BB 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 72 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 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 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 1D 00 00 00 F4 03 04 00 F1 E3 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 27 04 04 00 B2 0B 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 B3 0B 01 00 35 04 06 00 E5 41 6D C6 2F 68 67 1F E1 43 BE 9C 9F 57 [09:52:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 22 92 47 00 61 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 39 36 35 34 30 30 10 04 04 00 B3 0B 01 00 F4 03 04 00 EA 8A 5E 66 B6 04 01 00 00 3C 8A 30 B2 0F ED B3 AA [09:52:48]CommunicateWithHost err = 0 [09:52:48]CheckOFDResponse [09:52:48]1017 (14) - 77093643461234 [09:52:48]1041 (16) - 0000000000965400 [09:52:48]1040 (4) - 68531 [09:52:48]1012 (4) - 04.06.2024 03:32 [09:52:48]1206 (1) - 0 [09:52:48]OFD Sender: Remove packet 68531 [09:52:48]ProducePacketName [09:52:48]name=ofd_packets/00068531 [09:52:48]NVStorageDeleteData [09:52:48]Write to MH i2c: 01 00 00 4B 16 61 [09:52:48]Write i2c OK [09:52:48]MH_I2C_Read... [09:52:48]Read from MH i2c: 01 [09:52:48]MH_I2C_Read... [09:52:48]Read from MH i2c: 01 07 00 [09:52:48]MH_I2C_Read... [09:52:48]Read from MH i2c: 01 07 00 4B 16 00 00 00 00 00 E4 0C 58 [09:52:48]RasterBufferAndPrint [09:52:48]line [09:52:48]line [09:52:48]line [09:52:48]line [09:52:48]line [09:52:48]written 0, free lines is 3313 [09:52:48]MH_Cut [09:52:48]Write to MH i2c: D1 01 00 52 16 01 3A [09:52:48]Write i2c OK [09:52:48]MH_I2C_Read... [09:52:48]Read from MH i2c: D1 [09:52:48]MH_I2C_Read... [09:52:48]Read from MH i2c: D1 01 00 [09:52:48]MH_I2C_Read... [09:52:48]Read from MH i2c: D1 01 00 52 16 00 39 [09:52:48]Write to MH i2c: 01 00 00 53 16 69 [09:52:48]Write i2c OK [09:52:48]MH_I2C_Read... [09:52:49]OFD Sender: No OFD packet to send [09:52:49]*** Cut start [09:52:49]*** Partial cut [09:52:49]*** CUTSNS_PIN = 1 [09:52:49]*** CUTSNS_PIN = 0 [09:52:49]*** Brake cut motor [09:52:50]Read from MH i2c: 01 [09:52:50]MH_I2C_Read... [09:52:50]*** Stop cut motor [09:52:50]*** Cut end [09:52:50]Read from MH i2c: 01 07 00 [09:52:50]MH_I2C_Read... [09:52:50]Read from MH i2c: 01 07 00 53 16 00 00 00 00 00 FF 0F 7E [09:52:50]process_action close_receipt done [09:52:50]requested_data is exist [09:52:50]produce_requested_data [09:52:50]requested_item fm.sn is exist - process it [09:52:50]wFMCommunicate request_size=4 [09:52:50]MH_SAM_APDU [09:52:50]CAPDU: 80 11 00 00 [09:52:50]Write to MH i2c: E2 08 00 54 16 80 11 00 00 00 00 00 00 E4 [09:52:50]Write i2c OK [09:52:50]MH_I2C_Read... [09:52:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:52:50]Read from MH i2c: E2 [09:52:50]MH_I2C_Read... [09:52:50]Read from MH i2c: E2 17 00 [09:52:50]MH_I2C_Read... [09:52:50]Read from MH i2c: E2 17 00 54 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 2F [09:52:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [09:52:50]wFMCommunicate OK [09:52:50]requested_item fd.num is exist - process it [09:52:50]SAM_PROTO_GetFieldsCounters [09:52:50]wFMCommunicate request_size=4 [09:52:50]MH_SAM_APDU [09:52:50]CAPDU: 80 13 00 00 [09:52:50]Write to MH i2c: E2 08 00 55 16 80 13 00 00 00 00 00 00 E7 [09:52:50]Write i2c OK [09:52:50]MH_I2C_Read... [09:52:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:52:50]Read from MH i2c: E2 [09:52:50]MH_I2C_Read... [09:52:50]Read from MH i2c: E2 62 00 [09:52:50]MH_I2C_Read... [09:52:50]Read from MH i2c: E2 62 00 55 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 B3 0B 01 00 0E 04 04 00 45 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 63 [09:52:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 B3 0B 01 00 0E 04 04 00 45 01 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:52:50]wFMCommunicate OK [09:52:50]SAM_PROTO_GetFieldsCounters done [09:52:50]requested_item shift.num is exist - process it [09:52:50]requested_item shift.opened is exist - process it [09:52:50]req_shift_opened [09:52:50]FM_GetShiftState [09:52:50]SAM_PROTO_GetShiftState [09:52:50]wFMCommunicate request_size=4 [09:52:50]MH_SAM_APDU [09:52:50]CAPDU: 80 13 01 00 [09:52:50]Write to MH i2c: E2 08 00 56 16 80 13 01 00 00 00 00 00 E9 [09:52:50]Write i2c OK [09:52:50]MH_I2C_Read... [09:52:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:52:50]Read from MH i2c: E2 [09:52:50]MH_I2C_Read... [09:52:50]Read from MH i2c: E2 0E 00 [09:52:50]MH_I2C_Read... [09:52:50]Read from MH i2c: E2 0E 00 56 16 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 85 [09:52:50]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [09:52:50]wFMCommunicate OK [09:52:50]SAM_PROTO_GetShiftState done [09:52:50]FM_GetShiftState done [09:52:50]req_shift_opened done [09:52:50]requested_item shift.open_date is exist - process it [09:52:50]req_shift_open_date [09:52:50]req_shift_open_date done [09:52:50]produce_requested_data done [09:52:50]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68531,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [09:52:50]process_action_free close_receipt [09:52:50]json_value_free [09:52:50]json_value_free done [09:52:50]process_json_proto returns [09:52:50]Send response to host [09:52:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68531,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [09:52:50]free response buf [09:52:50]execute_script done [09:52:50]execute_script returns [09:52:50]free content buf [09:52:50]Sock 7.Close socket [09:52:50]Sock 7.Thread stoped [09:52:54]OFD Sender: No OFD packet to send [09:52:59]OFD Sender: No OFD packet to send [09:53:04]OFD Sender: No OFD packet to send [09:53:09]OFD Sender: No OFD packet to send [09:53:14]OFD Sender: No OFD packet to send [09:53:19]OFD Sender: No OFD packet to send [09:53:24]OFD Sender: No OFD packet to send [09:53:28]accept exits with 9 [09:53:28]New connection [09:53:28]New thread 3067084132 created [09:53:28]Thread 3067227492 joined [09:53:28]Waiting for new connection... [09:53:28] Sock 9.Parse request [09:53:28]Sock 9.Check first char [09:53:28]Sock 9.First char is OK [09:53:28]request: POST /json_proto HTTP/1.0 [09:53:28]Method: POST [09:53:28]URL: /json_proto [09:53:28]Method is POST - this is cgi request [09:53:28]url: /json_proto [09:53:28]query_string will be loaded in cgi processing [09:53:28]execute_cgi json_proto POST (null) [09:53:28]execute_cgi path=json_proto method=POST [09:53:28]POST find Content-Length [09:53:28]Host: 172.17.36.132:8080 [09:53:28]Content-Length: 731 [09:53:28]Content-Type: application/json [09:53:28] [09:53:28]POST finish read [09:53:28]Found Content-Length = 731 [09:53:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 68529, "base_FM": "0000000000965400", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706653", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.90, "quantity" : 51.550, "sum" : 3500.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" ] } } [09:53:28]execute_script... [09:53:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 68529, "base_FM": "0000000000965400", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706653", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.90, "quantity" : 51.550, "sum" : 3500.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" ] } } [09:53:28]POST & json_proto [09:53:28]process_json_proto [09:53:28]json parsed OK: [09:53:28]protocol is kg_v1.0 [09:53:28]action value=close_receipt [09:53:28]process_action close_receipt [09:53:28]cmd_close_receipt [09:53:28]MH_GetDate [09:53:28]Write to MH i2c: F0 00 00 57 16 5C [09:53:28]Write i2c OK [09:53:28]MH_I2C_Read... [09:53:28]Read from MH i2c: F0 [09:53:28]MH_I2C_Read... [09:53:28]Read from MH i2c: F0 09 00 [09:53:28]MH_I2C_Read... [09:53:28]Read from MH i2c: F0 09 00 57 16 00 1C E4 5E 66 B2 22 B0 64 11 [09:53:28]GetLastDocTimeStamp 1717494769 [09:53:28]current date 1717494812 [09:53:28]FM_GetShiftState [09:53:28]SAM_PROTO_GetShiftState [09:53:28]wFMCommunicate request_size=4 [09:53:28]MH_SAM_APDU [09:53:28]CAPDU: 80 13 01 00 [09:53:28]Write to MH i2c: E2 08 00 58 16 80 13 01 00 00 00 00 00 EB [09:53:28]Write i2c OK [09:53:28]MH_I2C_Read... [09:53:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:53:28]Read from MH i2c: E2 [09:53:28]MH_I2C_Read... [09:53:28]Read from MH i2c: E2 0E 00 [09:53:28]MH_I2C_Read... [09:53:28]Read from MH i2c: E2 0E 00 58 16 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 87 [09:53:28]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [09:53:28]wFMCommunicate OK [09:53:28]SAM_PROTO_GetShiftState done [09:53:28]FM_GetShiftState done [09:53:28]opened in 1717460590 [09:53:28]opened+sec_in_day 1717546990 [09:53:28]quantity*price = 350024 [09:53:28]sum+1 = 350026 [09:53:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 3500.00 НСП 1% : 30.98 НДС 12% : 371.71 Наличными: 3500.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 30 04.06.2024 09:53 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФД осн.: 68529 ФМ осн.: 0000000000965400 ФМ: 0000000000965400 ФД: 68532 ФПД: 51705603146842 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T095332&type=2&operation_type=1&fn_number=0000000000965400&fd_number=68532&fm=51705603146842&tin=02508201610067®Number=0000000000098096&sum=350000 [09:53:30]StoreToDocumentArchive [09:53:30]shift 325 fd 68532 [09:53:30]save to /storage/0325/doc_00068532 [09:53:30]save last doc name /storage/0325/doc_00068532 to /storage/kkm_last_doc_name [09:53:30]save OK [09:53:30]Clear old archive folders... [09:53:30]ProcessDocumentItem done err = 0, tmpTLVsize=280 [09:53:30]tlvbuf is B6EEB890 [09:53:30]SAM_PROTO_ClearQueue [09:53:30]wFMCommunicate request_size=4 [09:53:30]MH_SAM_APDU [09:53:30]CAPDU: 80 09 00 00 [09:53:30]Write to MH i2c: E2 08 00 67 16 80 09 00 00 00 00 00 00 EF [09:53:30]Write i2c OK [09:53:30]MH_I2C_Read... [09:53:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:53:30]Read from MH i2c: E2 [09:53:30]MH_I2C_Read... [09:53:30]Read from MH i2c: E2 03 00 [09:53:30]MH_I2C_Read... [09:53:30]Read from MH i2c: E2 03 00 67 16 00 90 00 F1 [09:53:30]RAPDU: 90 00 [09:53:30]wFMCommunicate OK [09:53:30]SAM_PROTO_ClearQueue done [09:53:30]KKMCreateOFDPacket [09:53:30]OFDProtocolAddRootSTLVToBuf [09:53:30]FM_MakeSignedData [09:53:30]FM_MakeSignedData [09:53:30]SAM_PROTO_SignData [09:53:30]wFMCommunicate request_size=4 [09:53:30]MH_SAM_APDU [09:53:30]CAPDU: 80 0D 01 02 [09:53:30]Write to MH i2c: E2 08 00 68 16 80 0D 01 02 00 00 00 00 F7 [09:53:30]Write i2c OK [09:53:30]MH_I2C_Read... [09:53:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:53:30]Read from MH i2c: E2 [09:53:30]MH_I2C_Read... [09:53:30]Read from MH i2c: E2 03 00 [09:53:30]MH_I2C_Read... [09:53:30]Read from MH i2c: E2 03 00 68 16 00 90 00 F2 [09:53:30]RAPDU: 90 00 [09:53:30]wFMCommunicate OK [09:53:30]wFMCommunicate request_size=255 [09:53:30]MH_SAM_APDU [09:53:30]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 02 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5E C9 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 49 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 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 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 1E 00 00 00 F4 03 04 00 1C E4 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 27 04 04 00 B1 0B 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 11 04 10 00 [09:53:30]Write to MH i2c: E2 02 01 69 16 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 02 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5E C9 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 49 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 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 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 1E 00 00 00 F4 03 04 00 1C E4 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 27 04 04 00 B1 0B 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 11 04 10 00 00 00 AF [09:53:30]Write i2c OK [09:53:30]MH_I2C_Read... [09:53:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:53:30]Read from MH i2c: E2 [09:53:30]MH_I2C_Read... [09:53:30]Read from MH i2c: E2 03 00 [09:53:30]MH_I2C_Read... [09:53:30]Read from MH i2c: E2 03 00 69 16 00 90 00 F3 [09:53:30]RAPDU: 90 00 [09:53:30]wFMCommunicate OK [09:53:30]wFMCommunicate request_size=39 [09:53:30]MH_SAM_APDU [09:53:30]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 B4 0B 01 00 35 04 06 00 2F 06 A6 1B C4 5A [09:53:30]Write to MH i2c: E2 2A 00 6A 16 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 B4 0B 01 00 35 04 06 00 2F 06 A6 1B C4 5A 00 00 81 [09:53:30]Write i2c OK [09:53:30]MH_I2C_Read... [09:53:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:53:30]Read from MH i2c: E2 [09:53:30]MH_I2C_Read... [09:53:30]Read from MH i2c: E2 03 00 [09:53:30]MH_I2C_Read... [09:53:30]Read from MH i2c: E2 03 00 6A 16 00 90 00 F4 [09:53:30]RAPDU: 90 00 [09:53:30]wFMCommunicate OK [09:53:30]wFMCommunicate request_size=4 [09:53:30]MH_SAM_APDU [09:53:30]CAPDU: 80 0D 03 02 [09:53:30]Write to MH i2c: E2 08 00 6B 16 80 0D 03 02 00 00 00 00 FC [09:53:30]Write i2c OK [09:53:30]MH_I2C_Read... [09:53:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:53:30]Read from MH i2c: E2 [09:53:30]MH_I2C_Read... [09:53:30]Read from MH i2c: E2 0B 00 [09:53:30]MH_I2C_Read... [09:53:30]Read from MH i2c: E2 0B 00 6B 16 00 03 CB DE 5C 32 B2 73 22 90 00 7E [09:53:30]RAPDU: 03 CB DE 5C 32 B2 73 22 90 00 [09:53:30]wFMCommunicate OK [09:53:30]SAM_PROTO_SignData done [09:53:30]FM_MakeSignedData done [09:53:30]CreateOFDProtocolMessage [09:53:30]wFMCommunicate request_size=4 [09:53:30]MH_SAM_APDU [09:53:30]CAPDU: 80 11 00 00 [09:53:30]Write to MH i2c: E2 08 00 6C 16 80 11 00 00 00 00 00 00 FC [09:53:30]Write i2c OK [09:53:30]MH_I2C_Read... [09:53:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:53:30]Read from MH i2c: E2 [09:53:30]MH_I2C_Read... [09:53:30]Read from MH i2c: E2 17 00 [09:53:30]MH_I2C_Read... [09:53:30]Read from MH i2c: E2 17 00 6C 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 47 [09:53:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [09:53:30]wFMCommunicate OK [09:53:30]CreateOFDProtocolMessage done [09:53:30]OFDSenderStorePacket 68532 [09:53:30]StoreOFDPacket docnum=68532 [09:53:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 2C 01 00 00 F8 A2 24 01 26 60 5A 03 01 00 03 00 18 01 1E 04 01 00 02 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5E C9 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 49 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 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 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 1E 00 00 00 F4 03 04 00 1C E4 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 27 04 04 00 B1 0B 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 B4 0B 01 00 35 04 06 00 2F 06 A6 1B C4 5A 03 CB DE 5C 32 B2 73 22 [09:53:30]CheckFolder [09:53:30]dirname=/storage/ofd_packets [09:53:30]CheckFolder done [09:53:30]ProducePacketName [09:53:30]name=ofd_packets/00068532 [09:53:30]NVStorageSaveData ofd_packets/00068532 [09:53:30]File name is /storage/ofd_packets/00068532 [09:53:30]Write 330 bytes [09:53:30]NVStorageSaveData done [09:53:30]OFDSenderStorePacket done [09:53:30]KKMCreateOFDPacket done [09:53:30]NVStorageSaveData kkm_last_timestamp [09:53:30]File name is /storage/kkm_last_timestamp [09:53:30]Write 4 bytes [09:53:30]NVStorageSaveData done [09:53:30]ExternCall_PrintAddStr [09:53:30]wPrintStart [09:53:30]Write to MH i2c: 01 00 00 6D 16 83 [09:53:30]Write i2c OK [09:53:30]MH_I2C_Read... [09:53:30]Read from MH i2c: 01 [09:53:30]MH_I2C_Read... [09:53:30]Read from MH i2c: 01 07 00 [09:53:30]MH_I2C_Read... [09:53:30]Read from MH i2c: 01 07 00 6D 16 00 00 00 00 00 FF 0F 98 [09:53:30]RasterBufferAndPrint [09:53:30]line Счет N : (1)706653 [09:53:30]line ИНН: 02508201610067 [09:53:30]line Контрольно-Кассовый Чек [09:53:30]line ВОЗВРАТ ПРОДАЖИ [09:53:30]line ТРК (МРК, ГНК) : 52 [09:53:30]line Товар: 2710124130 [09:53:30]line Super-92-К-5 [09:53:30]line 51.550 * 67.90 [09:53:30]line = 3500.25 [09:53:30]line НДС 12% НСП 1% [09:53:30]line > о реализуемом товаре [09:53:30]line ОКРУГЛЕНИЕ: -0.25 [09:53:30]line ИТОГО: 3500.00 [09:53:30]line НСП 1% : 30.98 [09:53:30]line НДС 12% : 371.71 [09:53:30]line Наличными: 3500.00 [09:53:30]line Безнал.: 0.00 [09:53:30]line Место: АЗС № 62 "Партнер Нефть" [09:53:30]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [09:53:30]line СНО: Общий режим [09:53:30]line Чек 30 04.06.2024 09:53 [09:53:30]line Смена: 325 ФФД: 1.0 [09:53:30]line ЗНМ: 0300000181 [09:53:30]line РНМ: 0000000000098096 [09:53:30]line Версия ККМ: 001 [09:53:30]line ФД осн.: 68529 [09:53:30]line ФМ осн.: 0000000000965400 [09:53:30]line ФМ: 0000000000965400 [09:53:30]line ФД: 68532 [09:53:30]line ФПД: 51705603146842 [09:53:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T095332&type=2&operation_type=1&fn_number=0000000000965400&fd_number=68532&fm=51705603146842&tin=02508201610067®Number=0000000000098096&sum=350000 [09:53:30]OFD Sender: Processing packet 68532 [packets to send 26, broken 25] [09:53:30]ProducePacketName [09:53:30]name=ofd_packets/00068532 [09:53:30]OFD Sender: To server: pG, [09:53:30]CommunicateWithHost lk.salyk.kg:30040 [09:53:30]ConnectInit lk.salyk.kg [09:53:30]written 0, free lines is 4095 [09:53:31]Connected sock=10 [09:53:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 2C 01 00 00 F8 A2 24 01 26 60 5A 03 01 00 03 00 18 01 1E 04 01 00 02 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5E C9 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 49 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 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 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 1E 00 00 00 F4 03 04 00 1C E4 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 27 04 04 00 B1 0B 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 B4 0B 01 00 35 04 06 00 2F 06 A6 1B C4 5A 03 CB DE 5C 32 B2 73 22 [09:53:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 B0 C0 47 00 0E B9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 B4 0B 01 00 F4 03 04 00 15 8B 5E 66 B6 04 01 00 00 BA 3B 15 8C 54 EB C3 F5 [09:53:31]CommunicateWithHost err = 0 [09:53:31]CheckOFDResponse [09:53:31]1017 (14) - 77093643461234 [09:53:31]1041 (16) - 0000000000965400 [09:53:31]1040 (4) - 68532 [09:53:31]1012 (4) - 04.06.2024 03:33 [09:53:31]1206 (1) - 0 [09:53:31]OFD Sender: Remove packet 68532 [09:53:31]ProducePacketName [09:53:31]name=ofd_packets/00068532 [09:53:31]NVStorageDeleteData [09:53:31]Write to MH i2c: 01 00 00 98 16 AE [09:53:31]Write i2c OK [09:53:31]MH_I2C_Read... [09:53:31]Read from MH i2c: 01 [09:53:31]MH_I2C_Read... [09:53:31]Read from MH i2c: 01 07 00 [09:53:31]MH_I2C_Read... [09:53:31]Read from MH i2c: 01 07 00 98 16 00 00 00 00 00 F1 0C B2 [09:53:31]RasterBufferAndPrint [09:53:31]line [09:53:31]line [09:53:31]line [09:53:31]line [09:53:31]line [09:53:31]written 0, free lines is 3320 [09:53:31]MH_Cut [09:53:31]Write to MH i2c: D1 01 00 9F 16 01 87 [09:53:31]Write i2c OK [09:53:31]MH_I2C_Read... [09:53:31]Read from MH i2c: D1 [09:53:31]MH_I2C_Read... [09:53:31]Read from MH i2c: D1 01 00 [09:53:31]MH_I2C_Read... [09:53:31]Read from MH i2c: D1 01 00 9F 16 00 86 [09:53:31]Write to MH i2c: 01 00 00 A0 16 B6 [09:53:31]Write i2c OK [09:53:31]MH_I2C_Read... [09:53:31]OFD Sender: No OFD packet to send [09:53:32]*** Cut start [09:53:32]*** Partial cut [09:53:32]*** CUTSNS_PIN = 1 [09:53:32]*** CUTSNS_PIN = 0 [09:53:32]*** Brake cut motor [09:53:32]Read from MH i2c: 01 [09:53:32]MH_I2C_Read... [09:53:32]*** Stop cut motor [09:53:32]*** Cut end [09:53:32]Read from MH i2c: 01 07 00 [09:53:32]MH_I2C_Read... [09:53:32]Read from MH i2c: 01 07 00 A0 16 00 00 00 00 00 FF 0F CB [09:53:32]process_action close_receipt done [09:53:32]requested_data is exist [09:53:32]produce_requested_data [09:53:32]requested_item fm.sn is exist - process it [09:53:32]wFMCommunicate request_size=4 [09:53:32]MH_SAM_APDU [09:53:32]CAPDU: 80 11 00 00 [09:53:32]Write to MH i2c: E2 08 00 A1 16 80 11 00 00 00 00 00 00 31 [09:53:32]Write i2c OK [09:53:32]MH_I2C_Read... [09:53:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:53:32]Read from MH i2c: E2 [09:53:32]MH_I2C_Read... [09:53:32]Read from MH i2c: E2 17 00 [09:53:32]MH_I2C_Read... [09:53:32]Read from MH i2c: E2 17 00 A1 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 7C [09:53:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [09:53:32]wFMCommunicate OK [09:53:32]requested_item fd.num is exist - process it [09:53:32]SAM_PROTO_GetFieldsCounters [09:53:32]wFMCommunicate request_size=4 [09:53:32]MH_SAM_APDU [09:53:32]CAPDU: 80 13 00 00 [09:53:32]Write to MH i2c: E2 08 00 A2 16 80 13 00 00 00 00 00 00 34 [09:53:32]Write i2c OK [09:53:32]MH_I2C_Read... [09:53:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:53:33]Read from MH i2c: E2 [09:53:33]MH_I2C_Read... [09:53:33]Read from MH i2c: E2 62 00 [09:53:33]MH_I2C_Read... [09:53:33]Read from MH i2c: E2 62 00 A2 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 B4 0B 01 00 0E 04 04 00 45 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 B4 [09:53:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 B4 0B 01 00 0E 04 04 00 45 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:53:33]wFMCommunicate OK [09:53:33]SAM_PROTO_GetFieldsCounters done [09:53:33]requested_item shift.num is exist - process it [09:53:33]requested_item shift.opened is exist - process it [09:53:33]req_shift_opened [09:53:33]FM_GetShiftState [09:53:33]SAM_PROTO_GetShiftState [09:53:33]wFMCommunicate request_size=4 [09:53:33]MH_SAM_APDU [09:53:33]CAPDU: 80 13 01 00 [09:53:33]Write to MH i2c: E2 08 00 A3 16 80 13 01 00 00 00 00 00 36 [09:53:33]Write i2c OK [09:53:33]MH_I2C_Read... [09:53:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:53:33]Read from MH i2c: E2 [09:53:33]MH_I2C_Read... [09:53:33]Read from MH i2c: E2 0E 00 [09:53:33]MH_I2C_Read... [09:53:33]Read from MH i2c: E2 0E 00 A3 16 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 D2 [09:53:33]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [09:53:33]wFMCommunicate OK [09:53:33]SAM_PROTO_GetShiftState done [09:53:33]FM_GetShiftState done [09:53:33]req_shift_opened done [09:53:33]requested_item shift.open_date is exist - process it [09:53:33]req_shift_open_date [09:53:33]req_shift_open_date done [09:53:33]produce_requested_data done [09:53:33]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68532,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [09:53:33]process_action_free close_receipt [09:53:33]json_value_free [09:53:33]json_value_free done [09:53:33]process_json_proto returns [09:53:33]Send response to host [09:53:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68532,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [09:53:33]free response buf [09:53:33]execute_script done [09:53:33]execute_script returns [09:53:33]free content buf [09:53:33]Sock 9.Close socket [09:53:33]Sock 9.Thread stoped [09:53:36]OFD Sender: No OFD packet to send [09:53:41]OFD Sender: No OFD packet to send [09:53:46]OFD Sender: No OFD packet to send [09:53:51]OFD Sender: No OFD packet to send [09:53:56]OFD Sender: No OFD packet to send [09:54:01]OFD Sender: No OFD packet to send [09:54:06]OFD Sender: No OFD packet to send [09:54:11]OFD Sender: No OFD packet to send [09:54:16]OFD Sender: No OFD packet to send [09:54:21]OFD Sender: No OFD packet to send [09:54:26]OFD Sender: No OFD packet to send [09:54:31]OFD Sender: No OFD packet to send [09:54:35]accept exits with 7 [09:54:35]New connection [09:54:35]New thread 3067227492 created [09:54:35]Thread 3067084132 joined [09:54:35]Waiting for new connection... [09:54:35] Sock 7.Parse request [09:54:35]Sock 7.Check first char [09:54:35]Sock 7.First char is OK [09:54:35]request: POST /json_proto HTTP/1.0 [09:54:35]Method: POST [09:54:35]URL: /json_proto [09:54:35]Method is POST - this is cgi request [09:54:35]url: /json_proto [09:54:35]query_string will be loaded in cgi processing [09:54:35]execute_cgi json_proto POST (null) [09:54:35]execute_cgi path=json_proto method=POST [09:54:35]POST find Content-Length [09:54:35]Host: 172.17.36.132:8080 [09:54:35]Content-Length: 687 [09:54:35]Content-Type: application/json [09:54:35] [09:54:35]POST finish read [09:54:35]Found Content-Length = 687 [09:54:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706650", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 34.300, "sum" : 2500.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:54:35]execute_script... [09:54: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)706650", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 34.300, "sum" : 2500.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:54:35]POST & json_proto [09:54:35]process_json_proto [09:54:35]json parsed OK: [09:54:35]protocol is kg_v1.0 [09:54:35]action value=close_receipt [09:54:35]process_action close_receipt [09:54:35]cmd_close_receipt [09:54:35]MH_GetDate [09:54:35]Write to MH i2c: F0 00 00 A4 16 A9 [09:54:35]Write i2c OK [09:54:35]MH_I2C_Read... [09:54:35]Read from MH i2c: F0 [09:54:35]MH_I2C_Read... [09:54:35]Read from MH i2c: F0 09 00 [09:54:35]MH_I2C_Read... [09:54:35]Read from MH i2c: F0 09 00 A4 16 00 5F E4 5E 66 B2 22 B0 64 A1 [09:54:35]GetLastDocTimeStamp 1717494812 [09:54:35]current date 1717494879 [09:54:35]FM_GetShiftState [09:54:35]SAM_PROTO_GetShiftState [09:54:35]wFMCommunicate request_size=4 [09:54:35]MH_SAM_APDU [09:54:35]CAPDU: 80 13 01 00 [09:54:35]Write to MH i2c: E2 08 00 A5 16 80 13 01 00 00 00 00 00 38 [09:54:35]Write i2c OK [09:54:35]MH_I2C_Read... [09:54:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:54:35]Read from MH i2c: E2 [09:54:35]MH_I2C_Read... [09:54:35]Read from MH i2c: E2 0E 00 [09:54:35]MH_I2C_Read... [09:54:35]Read from MH i2c: E2 0E 00 A5 16 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 D4 [09:54:35]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [09:54:35]wFMCommunicate OK [09:54:35]SAM_PROTO_GetShiftState done [09:54:35]FM_GetShiftState done [09:54:35]opened in 1717460590 [09:54:35]opened+sec_in_day 1717546990 [09:54:35]quantity*price = 250047 [09:54:35]sum+1 = 250048 [09:54:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.13 НДС 12% : 265.54 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 31 04.06.2024 09:54 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68533 ФПД: 159328223524120 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T095439&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68533&fm=159328223524120&tin=02508201610067®Number=0000000000098096&sum=250000 [09:54:36]StoreToDocumentArchive [09:54:36]shift 325 fd 68533 [09:54:36]save to /storage/0325/doc_00068533 [09:54:36]save last doc name /storage/0325/doc_00068533 to /storage/kkm_last_doc_name [09:54:36]save OK [09:54:36]Clear old archive folders... [09:54:36]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:54:36]tlvbuf is 009C8600 [09:54:36]SAM_PROTO_ClearQueue [09:54:36]wFMCommunicate request_size=4 [09:54:36]MH_SAM_APDU [09:54:36]CAPDU: 80 09 00 00 [09:54:36]Write to MH i2c: E2 08 00 B2 16 80 09 00 00 00 00 00 00 3A [09:54:36]Write i2c OK [09:54:36]MH_I2C_Read... [09:54:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:54:36]Read from MH i2c: E2 [09:54:36]MH_I2C_Read... [09:54:36]Read from MH i2c: E2 03 00 [09:54:36]MH_I2C_Read... [09:54:36]Read from MH i2c: E2 03 00 B2 16 00 90 00 3C [09:54:36]RAPDU: 90 00 [09:54:36]wFMCommunicate OK [09:54:36]SAM_PROTO_ClearQueue done [09:54:36]KKMCreateOFDPacket [09:54:36]OFDProtocolAddRootSTLVToBuf [09:54:36]FM_MakeSignedData [09:54:36]FM_MakeSignedData [09:54:36]SAM_PROTO_SignData [09:54:36]wFMCommunicate request_size=4 [09:54:36]MH_SAM_APDU [09:54:36]CAPDU: 80 0D 01 02 [09:54:36]Write to MH i2c: E2 08 00 B3 16 80 0D 01 02 00 00 00 00 42 [09:54:36]Write i2c OK [09:54:36]MH_I2C_Read... [09:54:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:54:37]Read from MH i2c: E2 [09:54:37]MH_I2C_Read... [09:54:37]Read from MH i2c: E2 03 00 [09:54:37]MH_I2C_Read... [09:54:37]Read from MH i2c: E2 03 00 B3 16 00 90 00 3D [09:54:37]RAPDU: 90 00 [09:54:37]wFMCommunicate OK [09:54:37]wFMCommunicate request_size=255 [09:54:37]MH_SAM_APDU [09:54: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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 FC 85 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 BF D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 5F E4 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 B5 0B 01 00 35 04 06 00 [09:54:37]Write to MH i2c: E2 02 01 B4 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 FC 85 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 BF D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 5F E4 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 B5 0B 01 00 35 04 06 00 00 00 EF [09:54:37]Write i2c OK [09:54:37]MH_I2C_Read... [09:54:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:54:37]Read from MH i2c: E2 [09:54:37]MH_I2C_Read... [09:54:37]Read from MH i2c: E2 03 00 [09:54:37]MH_I2C_Read... [09:54:37]Read from MH i2c: E2 03 00 B4 16 00 90 00 3E [09:54:37]RAPDU: 90 00 [09:54:37]wFMCommunicate OK [09:54:37]wFMCommunicate request_size=11 [09:54:37]MH_SAM_APDU [09:54:37]CAPDU: 80 0D 02 02 06 90 E8 7E 2A 75 18 [09:54:37]Write to MH i2c: E2 0E 00 B5 16 80 0D 02 02 06 00 90 E8 7E 2A 75 18 00 00 FE [09:54:37]Write i2c OK [09:54:37]MH_I2C_Read... [09:54:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:54:37]Read from MH i2c: E2 [09:54:37]MH_I2C_Read... [09:54:37]Read from MH i2c: E2 03 00 [09:54:37]MH_I2C_Read... [09:54:37]Read from MH i2c: E2 03 00 B5 16 00 90 00 3F [09:54:37]RAPDU: 90 00 [09:54:37]wFMCommunicate OK [09:54:37]wFMCommunicate request_size=4 [09:54:37]MH_SAM_APDU [09:54:37]CAPDU: 80 0D 03 02 [09:54:37]Write to MH i2c: E2 08 00 B6 16 80 0D 03 02 00 00 00 00 47 [09:54:37]Write i2c OK [09:54:37]MH_I2C_Read... [09:54:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:54:37]Read from MH i2c: E2 [09:54:37]MH_I2C_Read... [09:54:37]Read from MH i2c: E2 0B 00 [09:54:37]MH_I2C_Read... [09:54:37]Read from MH i2c: E2 0B 00 B6 16 00 62 73 77 10 A9 16 55 06 90 00 BE [09:54:37]RAPDU: 62 73 77 10 A9 16 55 06 90 00 [09:54:37]wFMCommunicate OK [09:54:37]SAM_PROTO_SignData done [09:54:37]FM_MakeSignedData done [09:54:37]CreateOFDProtocolMessage [09:54:37]wFMCommunicate request_size=4 [09:54:37]MH_SAM_APDU [09:54:37]CAPDU: 80 11 00 00 [09:54:37]Write to MH i2c: E2 08 00 B7 16 80 11 00 00 00 00 00 00 47 [09:54:37]Write i2c OK [09:54:37]MH_I2C_Read... [09:54:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:54:37]Read from MH i2c: E2 [09:54:37]MH_I2C_Read... [09:54:37]Read from MH i2c: E2 17 00 [09:54:37]MH_I2C_Read... [09:54:37]Read from MH i2c: E2 17 00 B7 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 92 [09:54:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [09:54:37]wFMCommunicate OK [09:54:37]CreateOFDProtocolMessage done [09:54:37]OFDSenderStorePacket 68533 [09:54:37]StoreOFDPacket docnum=68533 [09:54:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 71 90 08 01 C2 42 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 FC 85 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 BF D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 5F E4 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 B5 0B 01 00 35 04 06 00 90 E8 7E 2A 75 18 62 73 77 10 A9 16 55 06 [09:54:37]CheckFolder [09:54:37]dirname=/storage/ofd_packets [09:54:37]CheckFolder done [09:54:37]ProducePacketName [09:54:37]name=ofd_packets/00068533 [09:54:37]NVStorageSaveData ofd_packets/00068533 [09:54:37]File name is /storage/ofd_packets/00068533 [09:54:37]Write 302 bytes [09:54:37]NVStorageSaveData done [09:54:37]OFDSenderStorePacket done [09:54:37]KKMCreateOFDPacket done [09:54:37]NVStorageSaveData kkm_last_timestamp [09:54:37]File name is /storage/kkm_last_timestamp [09:54:37]Write 4 bytes [09:54:37]NVStorageSaveData done [09:54:37]ExternCall_PrintAddStr [09:54:37]wPrintStart [09:54:37]Write to MH i2c: 01 00 00 B8 16 CE [09:54:37]Write i2c OK [09:54:37]MH_I2C_Read... [09:54:37]Read from MH i2c: 01 [09:54:37]MH_I2C_Read... [09:54:37]Read from MH i2c: 01 07 00 [09:54:37]MH_I2C_Read... [09:54:37]Read from MH i2c: 01 07 00 B8 16 00 00 00 00 00 FF 0F E3 [09:54:37]RasterBufferAndPrint [09:54:37]line Счет N : (1)706650 [09:54:37]line ИНН: 02508201610067 [09:54:37]line Контрольно-Кассовый Чек [09:54:37]line ПРОДАЖА [09:54:37]line ТРК (МРК, ГНК) : 61 [09:54:37]line Товар: 2710194210 [09:54:37]line ДТ(л)-К-4 [09:54:37]line 34.300 * 72.90 [09:54:37]line = 2500.47 [09:54:37]line НДС 12% НСП 1% [09:54:37]line > о реализуемом товаре [09:54:37]line ОКРУГЛЕНИЕ: -0.47 [09:54:37]line ИТОГО: 2500.00 [09:54:37]line Внесено: 2500.00 [09:54:37]line СДАЧА: 0.00 [09:54:37]line НСП 1% : 22.13 [09:54:37]line НДС 12% : 265.54 [09:54:37]line Наличными: 2500.00 [09:54:37]line Безнал.: 0.00 [09:54:37]line Место: АЗС № 62 "Партнер Нефть" [09:54:37]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [09:54:37]line СНО: Общий режим [09:54:37]line Чек 31 04.06.2024 09:54 [09:54:37]line Смена: 325 ФФД: 1.0 [09:54:37]line ЗНМ: 0300000181 [09:54:37]line РНМ: 0000000000098096 [09:54:37]line Версия ККМ: 001 [09:54:37]line ФМ: 0000000000965400 [09:54:37]line ФД: 68533 [09:54:37]line ФПД: 159328223524120 [09:54:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T095439&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68533&fm=159328223524120&tin=02508201610067®Number=0000000000098096&sum=250000 [09:54:37]OFD Sender: Processing packet 68533 [packets to send 26, broken 25] [09:54:37]ProducePacketName [09:54:37]name=ofd_packets/00068533 [09:54:37]OFD Sender: To server: pG, [09:54:37]CommunicateWithHost lk.salyk.kg:30040 [09:54:37]ConnectInit lk.salyk.kg [09:54:37]written 0, free lines is 4095 [09:54:37]Connected sock=9 [09:54:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 71 90 08 01 C2 42 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 FC 85 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 BF D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 5F E4 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 B5 0B 01 00 35 04 06 00 90 E8 7E 2A 75 18 62 73 77 10 A9 16 55 06 [09:54:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 CD 21 47 00 5B 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 39 36 35 34 30 30 10 04 04 00 B5 0B 01 00 F4 03 04 00 58 8B 5E 66 B6 04 01 00 00 93 7A 50 81 F6 C6 A9 82 [09:54:38]CommunicateWithHost err = 0 [09:54:38]CheckOFDResponse [09:54:38]1017 (14) - 77093643461234 [09:54:38]1041 (16) - 0000000000965400 [09:54:38]1040 (4) - 68533 [09:54:38]1012 (4) - 04.06.2024 03:34 [09:54:38]1206 (1) - 0 [09:54:38]OFD Sender: Remove packet 68533 [09:54:38]ProducePacketName [09:54:38]name=ofd_packets/00068533 [09:54:38]NVStorageDeleteData [09:54:38]Write to MH i2c: 01 00 00 E3 16 F9 [09:54:38]Write i2c OK [09:54:38]MH_I2C_Read... [09:54:38]Read from MH i2c: 01 [09:54:38]MH_I2C_Read... [09:54:38]Read from MH i2c: 01 07 00 [09:54:38]MH_I2C_Read... [09:54:38]Read from MH i2c: 01 07 00 E3 16 00 00 00 00 00 DC 0C E8 [09:54:38]RasterBufferAndPrint [09:54:38]line [09:54:38]line [09:54:38]line [09:54:38]line [09:54:38]line [09:54:38]written 0, free lines is 3298 [09:54:38]MH_Cut [09:54:38]Write to MH i2c: D1 01 00 EA 16 01 D2 [09:54:38]Write i2c OK [09:54:38]MH_I2C_Read... [09:54:38]Read from MH i2c: D1 [09:54:38]MH_I2C_Read... [09:54:38]Read from MH i2c: D1 01 00 [09:54:38]MH_I2C_Read... [09:54:38]Read from MH i2c: D1 01 00 EA 16 00 D1 [09:54:38]Write to MH i2c: 01 00 00 EB 16 01 [09:54:38]Write i2c OK [09:54:38]MH_I2C_Read... [09:54:38]OFD Sender: No OFD packet to send [09:54:39]*** Cut start [09:54:39]*** Partial cut [09:54:39]*** CUTSNS_PIN = 1 [09:54:39]*** CUTSNS_PIN = 0 [09:54:39]*** Brake cut motor [09:54:39]Read from MH i2c: 01 [09:54:39]MH_I2C_Read... [09:54:39]*** Stop cut motor [09:54:39]*** Cut end [09:54:39]Read from MH i2c: 01 07 00 [09:54:39]MH_I2C_Read... [09:54:39]Read from MH i2c: 01 07 00 EB 16 00 00 00 00 00 FF 0F 16 [09:54:39]process_action close_receipt done [09:54:39]requested_data is exist [09:54:39]produce_requested_data [09:54:39]requested_item fm.sn is exist - process it [09:54:39]wFMCommunicate request_size=4 [09:54:39]MH_SAM_APDU [09:54:39]CAPDU: 80 11 00 00 [09:54:39]Write to MH i2c: E2 08 00 EC 16 80 11 00 00 00 00 00 00 7C [09:54:39]Write i2c OK [09:54:39]MH_I2C_Read... [09:54:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:54:39]Read from MH i2c: E2 [09:54:39]MH_I2C_Read... [09:54:39]Read from MH i2c: E2 17 00 [09:54:39]MH_I2C_Read... [09:54:39]Read from MH i2c: E2 17 00 EC 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 C7 [09:54:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [09:54:39]wFMCommunicate OK [09:54:39]requested_item fd.num is exist - process it [09:54:39]SAM_PROTO_GetFieldsCounters [09:54:39]wFMCommunicate request_size=4 [09:54:39]MH_SAM_APDU [09:54:39]CAPDU: 80 13 00 00 [09:54:39]Write to MH i2c: E2 08 00 ED 16 80 13 00 00 00 00 00 00 7F [09:54:39]Write i2c OK [09:54:39]MH_I2C_Read... [09:54:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:54:39]Read from MH i2c: E2 [09:54:39]MH_I2C_Read... [09:54:39]Read from MH i2c: E2 62 00 [09:54:39]MH_I2C_Read... [09:54:39]Read from MH i2c: E2 62 00 ED 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 B5 0B 01 00 0E 04 04 00 45 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 03 [09:54:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 B5 0B 01 00 0E 04 04 00 45 01 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:54:39]wFMCommunicate OK [09:54:39]SAM_PROTO_GetFieldsCounters done [09:54:39]requested_item shift.num is exist - process it [09:54:39]requested_item shift.opened is exist - process it [09:54:39]req_shift_opened [09:54:39]FM_GetShiftState [09:54:39]SAM_PROTO_GetShiftState [09:54:39]wFMCommunicate request_size=4 [09:54:39]MH_SAM_APDU [09:54:39]CAPDU: 80 13 01 00 [09:54:39]Write to MH i2c: E2 08 00 EE 16 80 13 01 00 00 00 00 00 81 [09:54:39]Write i2c OK [09:54:39]MH_I2C_Read... [09:54:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:54:39]Read from MH i2c: E2 [09:54:39]MH_I2C_Read... [09:54:39]Read from MH i2c: E2 0E 00 [09:54:39]MH_I2C_Read... [09:54:39]Read from MH i2c: E2 0E 00 EE 16 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 1D [09:54:39]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [09:54:39]wFMCommunicate OK [09:54:39]SAM_PROTO_GetShiftState done [09:54:39]FM_GetShiftState done [09:54:39]req_shift_opened done [09:54:39]requested_item shift.open_date is exist - process it [09:54:39]req_shift_open_date [09:54:39]req_shift_open_date done [09:54:39]produce_requested_data done [09:54:39]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68533,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [09:54:39]process_action_free close_receipt [09:54:39]json_value_free [09:54:39]json_value_free done [09:54:39]process_json_proto returns [09:54:39]Send response to host [09:54:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68533,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [09:54:39]free response buf [09:54:39]execute_script done [09:54:39]execute_script returns [09:54:39]free content buf [09:54:39]Sock 7.Close socket [09:54:39]Sock 7.Thread stoped [09:54:43]OFD Sender: No OFD packet to send [09:54:48]OFD Sender: No OFD packet to send [09:54:53]OFD Sender: No OFD packet to send [09:54:58]OFD Sender: No OFD packet to send [09:55:03]OFD Sender: No OFD packet to send [09:55:08]OFD Sender: No OFD packet to send [09:55:13]OFD Sender: No OFD packet to send [09:55:18]OFD Sender: No OFD packet to send [09:55:23]OFD Sender: No OFD packet to send [09:55:28]OFD Sender: No OFD packet to send [09:55:33]OFD Sender: No OFD packet to send [09:55:38]OFD Sender: No OFD packet to send [09:55:43]OFD Sender: No OFD packet to send [09:55:48]OFD Sender: No OFD packet to send [09:55:50]accept exits with 10 [09:55:50]New connection [09:55:50]New thread 3067084132 created [09:55:50]Thread 3067227492 joined [09:55:50]Waiting for new connection... [09:55:50] Sock 10.Parse request [09:55:50]Sock 10.Check first char [09:55:50]Sock 10.First char is OK [09:55:50]request: POST /json_proto HTTP/1.0 [09:55:50]Method: POST [09:55:50]URL: /json_proto [09:55:50]Method is POST - this is cgi request [09:55:50]url: /json_proto [09:55:50]query_string will be loaded in cgi processing [09:55:50]execute_cgi json_proto POST (null) [09:55:50]execute_cgi path=json_proto method=POST [09:55:50]POST find Content-Length [09:55:50]Host: 172.17.36.132:8080 [09:55:50]Content-Length: 687 [09:55:50]Content-Type: application/json [09:55:50] [09:55:50]POST finish read [09:55:50]Found Content-Length = 687 [09:55:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706656", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 19.900, "sum" : 1450.71, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1450.00, "total" : 1450.00, "payments": [ { "type": 0, "sum" : 1450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:55:50]execute_script... [09:55: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)706656", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 19.900, "sum" : 1450.71, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1450.00, "total" : 1450.00, "payments": [ { "type": 0, "sum" : 1450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:55:50]POST & json_proto [09:55:50]process_json_proto [09:55:50]json parsed OK: [09:55:50]protocol is kg_v1.0 [09:55:50]action value=close_receipt [09:55:50]process_action close_receipt [09:55:50]cmd_close_receipt [09:55:50]MH_GetDate [09:55:50]Write to MH i2c: F0 00 00 EF 16 F4 [09:55:50]Write i2c OK [09:55:50]MH_I2C_Read... [09:55:50]Read from MH i2c: F0 [09:55:50]MH_I2C_Read... [09:55:50]Read from MH i2c: F0 09 00 [09:55:50]MH_I2C_Read... [09:55:50]Read from MH i2c: F0 09 00 EF 16 00 AA E4 5E 66 B2 22 B0 64 37 [09:55:50]GetLastDocTimeStamp 1717494879 [09:55:50]current date 1717494954 [09:55:50]FM_GetShiftState [09:55:50]SAM_PROTO_GetShiftState [09:55:50]wFMCommunicate request_size=4 [09:55:50]MH_SAM_APDU [09:55:50]CAPDU: 80 13 01 00 [09:55:50]Write to MH i2c: E2 08 00 F0 16 80 13 01 00 00 00 00 00 83 [09:55:50]Write i2c OK [09:55:50]MH_I2C_Read... [09:55:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:55:50]Read from MH i2c: E2 [09:55:50]MH_I2C_Read... [09:55:50]Read from MH i2c: E2 0E 00 [09:55:50]MH_I2C_Read... [09:55:50]Read from MH i2c: E2 0E 00 F0 16 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 1F [09:55:50]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [09:55:50]wFMCommunicate OK [09:55:50]SAM_PROTO_GetShiftState done [09:55:50]FM_GetShiftState done [09:55:50]opened in 1717460590 [09:55:50]opened+sec_in_day 1717546990 [09:55:50]quantity*price = 145071 [09:55:50]sum+1 = 145072 [09:55:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.71 ИТОГО: 1450.00 Внесено: 1450.00 СДАЧА: 0.00 НСП 1% : 12.84 НДС 12% : 154.06 Наличными: 1450.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 32 04.06.2024 09:55 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68534 ФПД: 175230100690484 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T095554&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68534&fm=175230100690484&tin=02508201610067®Number=0000000000098096&sum=145000 [09:55:51]StoreToDocumentArchive [09:55:51]shift 325 fd 68534 [09:55:51]save to /storage/0325/doc_00068534 [09:55:51]save last doc name /storage/0325/doc_00068534 to /storage/kkm_last_doc_name [09:55:51]save OK [09:55:51]Clear old archive folders... [09:55:51]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:55:51]tlvbuf is 00A4E4B0 [09:55:51]SAM_PROTO_ClearQueue [09:55:51]wFMCommunicate request_size=4 [09:55:51]MH_SAM_APDU [09:55:51]CAPDU: 80 09 00 00 [09:55:51]Write to MH i2c: E2 08 00 FD 16 80 09 00 00 00 00 00 00 85 [09:55:51]Write i2c OK [09:55:51]MH_I2C_Read... [09:55:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:55:51]Read from MH i2c: E2 [09:55:51]MH_I2C_Read... [09:55:51]Read from MH i2c: E2 03 00 [09:55:51]MH_I2C_Read... [09:55:51]Read from MH i2c: E2 03 00 FD 16 00 90 00 87 [09:55:51]RAPDU: 90 00 [09:55:51]wFMCommunicate OK [09:55:51]SAM_PROTO_ClearQueue done [09:55:51]KKMCreateOFDPacket [09:55:51]OFDProtocolAddRootSTLVToBuf [09:55:51]FM_MakeSignedData [09:55:51]FM_MakeSignedData [09:55:51]SAM_PROTO_SignData [09:55:51]wFMCommunicate request_size=4 [09:55:51]MH_SAM_APDU [09:55:51]CAPDU: 80 0D 01 02 [09:55:51]Write to MH i2c: E2 08 00 FE 16 80 0D 01 02 00 00 00 00 8D [09:55:51]Write i2c OK [09:55:51]MH_I2C_Read... [09:55:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:55:51]Read from MH i2c: E2 [09:55:51]MH_I2C_Read... [09:55:51]Read from MH i2c: E2 03 00 [09:55:51]MH_I2C_Read... [09:55:51]Read from MH i2c: E2 03 00 FE 16 00 90 00 88 [09:55:51]RAPDU: 90 00 [09:55:51]wFMCommunicate OK [09:55:51]wFMCommunicate request_size=255 [09:55:51]MH_SAM_APDU [09:55:51]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 BC 4D 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 AF 36 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 36 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 04 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 3C 00 00 00 00 07 04 06 00 68 36 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 AA E4 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 B6 0B 01 00 35 04 06 00 [09:55:51]Write to MH i2c: E2 02 01 FF 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 BC 4D 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 AF 36 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 36 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 04 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 3C 00 00 00 00 07 04 06 00 68 36 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 AA E4 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 B6 0B 01 00 35 04 06 00 00 00 83 [09:55:51]Write i2c OK [09:55:51]MH_I2C_Read... [09:55:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:55:52]Read from MH i2c: E2 [09:55:52]MH_I2C_Read... [09:55:52]Read from MH i2c: E2 03 00 [09:55:52]MH_I2C_Read... [09:55:52]Read from MH i2c: E2 03 00 FF 16 00 90 00 89 [09:55:52]RAPDU: 90 00 [09:55:52]wFMCommunicate OK [09:55:52]wFMCommunicate request_size=11 [09:55:52]MH_SAM_APDU [09:55:52]CAPDU: 80 0D 02 02 06 9F 5E EF E7 D6 34 [09:55:52]Write to MH i2c: E2 0E 00 00 17 80 0D 02 02 06 00 9F 5E EF E7 D6 34 00 00 7A [09:55:52]Write i2c OK [09:55:52]MH_I2C_Read... [09:55:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:55:52]Read from MH i2c: E2 [09:55:52]MH_I2C_Read... [09:55:52]Read from MH i2c: E2 03 00 [09:55:52]MH_I2C_Read... [09:55:52]Read from MH i2c: E2 03 00 00 17 00 90 00 8B [09:55:52]RAPDU: 90 00 [09:55:52]wFMCommunicate OK [09:55:52]wFMCommunicate request_size=4 [09:55:52]MH_SAM_APDU [09:55:52]CAPDU: 80 0D 03 02 [09:55:52]Write to MH i2c: E2 08 00 01 17 80 0D 03 02 00 00 00 00 93 [09:55:52]Write i2c OK [09:55:52]MH_I2C_Read... [09:55:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:55:52]Read from MH i2c: E2 [09:55:52]MH_I2C_Read... [09:55:52]Read from MH i2c: E2 0B 00 [09:55:52]MH_I2C_Read... [09:55:52]Read from MH i2c: E2 0B 00 01 17 00 5C 7C 8B C8 3A F3 EA F7 90 00 CD [09:55:52]RAPDU: 5C 7C 8B C8 3A F3 EA F7 90 00 [09:55:52]wFMCommunicate OK [09:55:52]SAM_PROTO_SignData done [09:55:52]FM_MakeSignedData done [09:55:52]CreateOFDProtocolMessage [09:55:52]wFMCommunicate request_size=4 [09:55:52]MH_SAM_APDU [09:55:52]CAPDU: 80 11 00 00 [09:55:52]Write to MH i2c: E2 08 00 02 17 80 11 00 00 00 00 00 00 93 [09:55:52]Write i2c OK [09:55:52]MH_I2C_Read... [09:55:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:55:52]Read from MH i2c: E2 [09:55:52]MH_I2C_Read... [09:55:52]Read from MH i2c: E2 17 00 [09:55:52]MH_I2C_Read... [09:55:52]Read from MH i2c: E2 17 00 02 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 DE [09:55:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [09:55:52]wFMCommunicate OK [09:55:52]CreateOFDProtocolMessage done [09:55:52]OFDSenderStorePacket 68534 [09:55:52]StoreOFDPacket docnum=68534 [09:55:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 75 75 08 01 44 6C 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 BC 4D 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 AF 36 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 36 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 04 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 3C 00 00 00 00 07 04 06 00 68 36 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 AA E4 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 B6 0B 01 00 35 04 06 00 9F 5E EF E7 D6 34 5C 7C 8B C8 3A F3 EA F7 [09:55:52]CheckFolder [09:55:52]dirname=/storage/ofd_packets [09:55:52]CheckFolder done [09:55:52]ProducePacketName [09:55:52]name=ofd_packets/00068534 [09:55:52]NVStorageSaveData ofd_packets/00068534 [09:55:52]File name is /storage/ofd_packets/00068534 [09:55:52]Write 302 bytes [09:55:52]NVStorageSaveData done [09:55:52]OFDSenderStorePacket done [09:55:52]KKMCreateOFDPacket done [09:55:52]NVStorageSaveData kkm_last_timestamp [09:55:52]File name is /storage/kkm_last_timestamp [09:55:52]Write 4 bytes [09:55:52]NVStorageSaveData done [09:55:52]ExternCall_PrintAddStr [09:55:52]wPrintStart [09:55:52]Write to MH i2c: 01 00 00 03 17 1A [09:55:52]Write i2c OK [09:55:52]MH_I2C_Read... [09:55:52]Read from MH i2c: 01 [09:55:52]MH_I2C_Read... [09:55:52]Read from MH i2c: 01 07 00 [09:55:52]MH_I2C_Read... [09:55:52]Read from MH i2c: 01 07 00 03 17 00 00 00 00 00 FF 0F 2F [09:55:52]RasterBufferAndPrint [09:55:52]line Счет N : (1)706656 [09:55:52]line ИНН: 02508201610067 [09:55:52]line Контрольно-Кассовый Чек [09:55:52]line ПРОДАЖА [09:55:52]line ТРК (МРК, ГНК) : 11 [09:55:52]line Товар: 2710194210 [09:55:52]line ДТ(л)-К-4 [09:55:52]line 19.900 * 72.90 [09:55:52]line = 1450.71 [09:55:52]line НДС 12% НСП 1% [09:55:52]line > о реализуемом товаре [09:55:52]line ОКРУГЛЕНИЕ: -0.71 [09:55:52]line ИТОГО: 1450.00 [09:55:52]line Внесено: 1450.00 [09:55:52]line СДАЧА: 0.00 [09:55:52]line НСП 1% : 12.84 [09:55:52]line НДС 12% : 154.06 [09:55:52]line Наличными: 1450.00 [09:55:52]line Безнал.: 0.00 [09:55:52]line Место: АЗС № 62 "Партнер Нефть" [09:55:52]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [09:55:52]line СНО: Общий режим [09:55:52]line Чек 32 04.06.2024 09:55 [09:55:52]line Смена: 325 ФФД: 1.0 [09:55:52]line ЗНМ: 0300000181 [09:55:52]line РНМ: 0000000000098096 [09:55:52]line Версия ККМ: 001 [09:55:52]line ФМ: 0000000000965400 [09:55:52]line ФД: 68534 [09:55:52]line ФПД: 175230100690484 [09:55:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T095554&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68534&fm=175230100690484&tin=02508201610067®Number=0000000000098096&sum=145000 [09:55:52]OFD Sender: Processing packet 68534 [packets to send 26, broken 25] [09:55:52]ProducePacketName [09:55:52]name=ofd_packets/00068534 [09:55:52]OFD Sender: To server: pG, [09:55:52]CommunicateWithHost lk.salyk.kg:30040 [09:55:52]ConnectInit lk.salyk.kg [09:55:52]written 0, free lines is 4095 [09:55:52]Connected sock=9 [09:55:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 75 75 08 01 44 6C 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 BC 4D 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 AF 36 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 36 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 04 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 3C 00 00 00 00 07 04 06 00 68 36 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 AA E4 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 B6 0B 01 00 35 04 06 00 9F 5E EF E7 D6 34 5C 7C 8B C8 3A F3 EA F7 [09:55:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 69 04 47 00 46 0C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 B6 0B 01 00 F4 03 04 00 A3 8B 5E 66 B6 04 01 00 00 25 52 AA A3 0D DB 58 24 [09:55:52]CommunicateWithHost err = 0 [09:55:52]CheckOFDResponse [09:55:52]1017 (14) - 77093643461234 [09:55:52]1041 (16) - 0000000000965400 [09:55:52]1040 (4) - 68534 [09:55:52]1012 (4) - 04.06.2024 03:36 [09:55:52]1206 (1) - 0 [09:55:52]OFD Sender: Remove packet 68534 [09:55:52]ProducePacketName [09:55:52]name=ofd_packets/00068534 [09:55:52]NVStorageDeleteData [09:55:52]Write to MH i2c: 01 00 00 2E 17 45 [09:55:52]Write i2c OK [09:55:52]MH_I2C_Read... [09:55:52]Read from MH i2c: 01 [09:55:52]MH_I2C_Read... [09:55:52]Read from MH i2c: 01 07 00 [09:55:52]MH_I2C_Read... [09:55:52]Read from MH i2c: 01 07 00 2E 17 00 00 00 00 00 D0 0C 28 [09:55:52]RasterBufferAndPrint [09:55:52]line [09:55:52]line [09:55:52]line [09:55:52]line [09:55:52]line [09:55:53]written 0, free lines is 3288 [09:55:53]MH_Cut [09:55:53]Write to MH i2c: D1 01 00 35 17 01 1E [09:55:53]Write i2c OK [09:55:53]MH_I2C_Read... [09:55:53]Read from MH i2c: D1 [09:55:53]MH_I2C_Read... [09:55:53]Read from MH i2c: D1 01 00 [09:55:53]MH_I2C_Read... [09:55:53]Read from MH i2c: D1 01 00 35 17 00 1D [09:55:53]Write to MH i2c: 01 00 00 36 17 4D [09:55:53]Write i2c OK [09:55:53]MH_I2C_Read... [09:55:53]OFD Sender: No OFD packet to send [09:55:53]*** Cut start [09:55:53]*** Partial cut [09:55:53]*** CUTSNS_PIN = 1 [09:55:53]*** CUTSNS_PIN = 0 [09:55:54]*** Brake cut motor [09:55:54]Read from MH i2c: 01 [09:55:54]MH_I2C_Read... [09:55:54]*** Stop cut motor [09:55:54]*** Cut end [09:55:54]Read from MH i2c: 01 07 00 [09:55:54]MH_I2C_Read... [09:55:54]Read from MH i2c: 01 07 00 36 17 00 00 00 00 00 FF 0F 62 [09:55:54]process_action close_receipt done [09:55:54]requested_data is exist [09:55:54]produce_requested_data [09:55:54]requested_item fm.sn is exist - process it [09:55:54]wFMCommunicate request_size=4 [09:55:54]MH_SAM_APDU [09:55:54]CAPDU: 80 11 00 00 [09:55:54]Write to MH i2c: E2 08 00 37 17 80 11 00 00 00 00 00 00 C8 [09:55:54]Write i2c OK [09:55:54]MH_I2C_Read... [09:55:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:55:54]Read from MH i2c: E2 [09:55:54]MH_I2C_Read... [09:55:54]Read from MH i2c: E2 17 00 [09:55:54]MH_I2C_Read... [09:55:54]Read from MH i2c: E2 17 00 37 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 13 [09:55:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [09:55:54]wFMCommunicate OK [09:55:54]requested_item fd.num is exist - process it [09:55:54]SAM_PROTO_GetFieldsCounters [09:55:54]wFMCommunicate request_size=4 [09:55:54]MH_SAM_APDU [09:55:54]CAPDU: 80 13 00 00 [09:55:54]Write to MH i2c: E2 08 00 38 17 80 13 00 00 00 00 00 00 CB [09:55:54]Write i2c OK [09:55:54]MH_I2C_Read... [09:55:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:55:54]Read from MH i2c: E2 [09:55:54]MH_I2C_Read... [09:55:54]Read from MH i2c: E2 62 00 [09:55:54]MH_I2C_Read... [09:55:54]Read from MH i2c: E2 62 00 38 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 B6 0B 01 00 0E 04 04 00 45 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 53 [09:55:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 B6 0B 01 00 0E 04 04 00 45 01 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:55:54]wFMCommunicate OK [09:55:54]SAM_PROTO_GetFieldsCounters done [09:55:54]requested_item shift.num is exist - process it [09:55:54]requested_item shift.opened is exist - process it [09:55:54]req_shift_opened [09:55:54]FM_GetShiftState [09:55:54]SAM_PROTO_GetShiftState [09:55:54]wFMCommunicate request_size=4 [09:55:54]MH_SAM_APDU [09:55:54]CAPDU: 80 13 01 00 [09:55:54]Write to MH i2c: E2 08 00 39 17 80 13 01 00 00 00 00 00 CD [09:55:54]Write i2c OK [09:55:54]MH_I2C_Read... [09:55:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:55:54]Read from MH i2c: E2 [09:55:54]MH_I2C_Read... [09:55:54]Read from MH i2c: E2 0E 00 [09:55:54]MH_I2C_Read... [09:55:54]Read from MH i2c: E2 0E 00 39 17 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 69 [09:55:54]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [09:55:54]wFMCommunicate OK [09:55:54]SAM_PROTO_GetShiftState done [09:55:54]FM_GetShiftState done [09:55:54]req_shift_opened done [09:55:54]requested_item shift.open_date is exist - process it [09:55:54]req_shift_open_date [09:55:54]req_shift_open_date done [09:55:54]produce_requested_data done [09:55:54]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68534,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [09:55:54]process_action_free close_receipt [09:55:54]json_value_free [09:55:54]json_value_free done [09:55:54]process_json_proto returns [09:55:54]Send response to host [09:55:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68534,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [09:55:54]free response buf [09:55:54]execute_script done [09:55:54]execute_script returns [09:55:54]free content buf [09:55:54]Sock 10.Close socket [09:55:54]Sock 10.Thread stoped [09:55:58]OFD Sender: No OFD packet to send [09:56:03]OFD Sender: No OFD packet to send [09:56:08]OFD Sender: No OFD packet to send [09:56:13]OFD Sender: No OFD packet to send [09:56:13]accept exits with 7 [09:56:13]New connection [09:56:13]New thread 3067227492 created [09:56:13]Thread 3067084132 joined [09:56:13]Waiting for new connection... [09:56:13] Sock 7.Parse request [09:56:13]Sock 7.Check first char [09:56:13]Sock 7.First char is OK [09:56:13]request: POST /json_proto HTTP/1.0 [09:56:13]Method: POST [09:56:13]URL: /json_proto [09:56:13]Method is POST - this is cgi request [09:56:13]url: /json_proto [09:56:13]query_string will be loaded in cgi processing [09:56:13]execute_cgi json_proto POST (null) [09:56:13]execute_cgi path=json_proto method=POST [09:56:13]POST find Content-Length [09:56:13]Host: 172.17.36.132:8080 [09:56:13]Content-Length: 1174 [09:56:13]Content-Type: application/json [09:56:13] [09:56:13]POST finish read [09:56:13]Found Content-Length = 1174 [09:56:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0418\u0441\u043C\u0430\u043D\u0430\u043B\u0438\u0435\u0432 \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)706655\u000A04.06.2024 09:33\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-4\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\u000A30111803\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:56:13]execute_script... [09:56:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0418\u0441\u043C\u0430\u043D\u0430\u043B\u0438\u0435\u0432 \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)706655\u000A04.06.2024 09:33\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-4\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\u000A30111803\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:56:13]POST & json_proto [09:56:13]process_json_proto [09:56:13]json parsed OK: [09:56:13]protocol is kg_v1.0 [09:56:13]action value=print_text [09:56:13]process_action print_text [09:56:13]cmd_print_text [09:56:13]ExternCall_PrintAddStr [09:56:13]wPrintStart [09:56:13]Write to MH i2c: 01 00 00 3A 17 51 [09:56:13]Write i2c OK [09:56:13]MH_I2C_Read... [09:56:13]Read from MH i2c: 01 [09:56:13]MH_I2C_Read... [09:56:13]Read from MH i2c: 01 07 00 [09:56:13]MH_I2C_Read... [09:56:13]Read from MH i2c: 01 07 00 3A 17 00 00 00 00 00 FF 0F 66 [09:56:13]RasterBufferAndPrint [09:56:13]line *****ТОВАРНЫЙ ЧЕК***** [09:56:13]line АЗС 62 [09:56:13]line Партнер нефть [09:56:13]line 02508201610067 [09:56:13]line Кассир : Исманалиев Д. [09:56:13]line Счет N : (1)706655 [09:56:13]line 04.06.2024 09:33 [09:56:13]line ПРОДАЖА [09:56:13]line ТРК (МРК, ГНК): 21 [09:56:13]line Вид ГСМ : 2710194210 [09:56:13]line ДТ(л)-К-4 [09:56:13]line 30.000 x 72.90 [09:56:13]line ИТОГ: 2187.00 [09:56:13]line Тип оплаты: Талоны: ТК ГПНА Online [09:56:13]line 30111803 [09:56:13]line ______________________ [09:56:13]line (подпись) [09:56:13]written 0, free lines is 4095 [09:56:13]Write to MH i2c: 01 00 00 4E 17 65 [09:56:13]Write i2c OK [09:56:13]MH_I2C_Read... [09:56:13]Read from MH i2c: 01 [09:56:13]MH_I2C_Read... [09:56:13]Read from MH i2c: 01 07 00 [09:56:13]MH_I2C_Read... [09:56:13]Read from MH i2c: 01 07 00 4E 17 00 00 00 00 00 11 0E 8B [09:56:13]RasterBufferAndPrint [09:56:13]line [09:56:13]line [09:56:13]line [09:56:13]line [09:56:13]line [09:56:13]written 0, free lines is 3602 [09:56:13]MH_Cut [09:56:13]Write to MH i2c: D1 01 00 55 17 01 3E [09:56:13]Write i2c OK [09:56:13]MH_I2C_Read... [09:56:13]Read from MH i2c: D1 [09:56:13]MH_I2C_Read... [09:56:13]Read from MH i2c: D1 01 00 [09:56:13]MH_I2C_Read... [09:56:13]Read from MH i2c: D1 01 00 55 17 00 3D [09:56:13]Write to MH i2c: 01 00 00 56 17 6D [09:56:13]Write i2c OK [09:56:13]MH_I2C_Read... [09:56:14]*** Cut start [09:56:14]*** Partial cut [09:56:14]*** CUTSNS_PIN = 1 [09:56:14]*** CUTSNS_PIN = 0 [09:56:14]*** Brake cut motor [09:56:14]Read from MH i2c: 01 [09:56:14]MH_I2C_Read... [09:56:14]Read from MH i2c: 01 07 00 [09:56:14]MH_I2C_Read... [09:56:14]*** Stop cut motor [09:56:14]*** Cut end [09:56:14]Read from MH i2c: 01 07 00 56 17 00 00 00 00 00 FF 0F 82 [09:56:14]process_action print_text done [09:56:14]requested_data is exist [09:56:14]produce_requested_data [09:56:14]requested_item fm.sn is exist - process it [09:56:14]wFMCommunicate request_size=4 [09:56:14]MH_SAM_APDU [09:56:14]CAPDU: 80 11 00 00 [09:56:14]Write to MH i2c: E2 08 00 57 17 80 11 00 00 00 00 00 00 E8 [09:56:14]Write i2c OK [09:56:14]MH_I2C_Read... [09:56:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:56:15]Read from MH i2c: E2 [09:56:15]MH_I2C_Read... [09:56:15]Read from MH i2c: E2 17 00 [09:56:15]MH_I2C_Read... [09:56:15]Read from MH i2c: E2 17 00 57 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 33 [09:56:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [09:56:15]wFMCommunicate OK [09:56:15]requested_item fd.num is exist - process it [09:56:15]SAM_PROTO_GetFieldsCounters [09:56:15]wFMCommunicate request_size=4 [09:56:15]MH_SAM_APDU [09:56:15]CAPDU: 80 13 00 00 [09:56:15]Write to MH i2c: E2 08 00 58 17 80 13 00 00 00 00 00 00 EB [09:56:15]Write i2c OK [09:56:15]MH_I2C_Read... [09:56:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:56:15]Read from MH i2c: E2 [09:56:15]MH_I2C_Read... [09:56:15]Read from MH i2c: E2 62 00 [09:56:15]MH_I2C_Read... [09:56:15]Read from MH i2c: E2 62 00 58 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 B6 0B 01 00 0E 04 04 00 45 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 73 [09:56:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 B6 0B 01 00 0E 04 04 00 45 01 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:56:15]wFMCommunicate OK [09:56:15]SAM_PROTO_GetFieldsCounters done [09:56:15]requested_item shift.num is exist - process it [09:56:15]requested_item shift.opened is exist - process it [09:56:15]req_shift_opened [09:56:15]FM_GetShiftState [09:56:15]SAM_PROTO_GetShiftState [09:56:15]wFMCommunicate request_size=4 [09:56:15]MH_SAM_APDU [09:56:15]CAPDU: 80 13 01 00 [09:56:15]Write to MH i2c: E2 08 00 59 17 80 13 01 00 00 00 00 00 ED [09:56:15]Write i2c OK [09:56:15]MH_I2C_Read... [09:56:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:56:15]Read from MH i2c: E2 [09:56:15]MH_I2C_Read... [09:56:15]Read from MH i2c: E2 0E 00 [09:56:15]MH_I2C_Read... [09:56:15]Read from MH i2c: E2 0E 00 59 17 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 89 [09:56:15]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [09:56:15]wFMCommunicate OK [09:56:15]SAM_PROTO_GetShiftState done [09:56:15]FM_GetShiftState done [09:56:15]req_shift_opened done [09:56:15]requested_item shift.open_date is exist - process it [09:56:15]req_shift_open_date [09:56:15]req_shift_open_date done [09:56:15]produce_requested_data done [09:56:15]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68534,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [09:56:15]process_action_free print_text [09:56:15]json_value_free [09:56:15]json_value_free done [09:56:15]process_json_proto returns [09:56:15]Send response to host [09:56:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68534,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [09:56:15]free response buf [09:56:15]execute_script done [09:56:15]execute_script returns [09:56:15]free content buf [09:56:15]Sock 7.Close socket [09:56:15]Sock 7.Thread stoped [09:56:18]OFD Sender: No OFD packet to send [09:56:23]OFD Sender: No OFD packet to send [09:56:28]OFD Sender: No OFD packet to send [09:56:33]OFD Sender: No OFD packet to send [09:56:38]OFD Sender: No OFD packet to send [09:56:43]OFD Sender: No OFD packet to send [09:56:48]OFD Sender: No OFD packet to send [09:56:53]OFD Sender: No OFD packet to send [09:56:58]OFD Sender: No OFD packet to send [09:57:03]OFD Sender: No OFD packet to send [09:57:08]OFD Sender: No OFD packet to send [09:57:13]OFD Sender: No OFD packet to send [09:57:18]OFD Sender: No OFD packet to send [09:57:23]OFD Sender: No OFD packet to send [09:57:28]OFD Sender: No OFD packet to send [09:57:33]OFD Sender: No OFD packet to send [09:57:38]OFD Sender: No OFD packet to send [09:57:43]OFD Sender: No OFD packet to send [09:57:48]OFD Sender: No OFD packet to send [09:57:53]OFD Sender: No OFD packet to send [09:57:58]OFD Sender: No OFD packet to send [09:58:03]OFD Sender: No OFD packet to send [09:58:08]OFD Sender: No OFD packet to send [09:58:13]OFD Sender: No OFD packet to send [09:58:18]OFD Sender: No OFD packet to send [09:58:23]OFD Sender: No OFD packet to send [09:58:28]OFD Sender: No OFD packet to send [09:58:33]OFD Sender: No OFD packet to send [09:58:38]OFD Sender: No OFD packet to send [09:58:43]OFD Sender: No OFD packet to send [09:58:48]OFD Sender: No OFD packet to send [09:58:53]OFD Sender: No OFD packet to send [09:58:58]OFD Sender: No OFD packet to send [09:59:03]OFD Sender: No OFD packet to send [09:59:08]OFD Sender: No OFD packet to send [09:59:13]OFD Sender: No OFD packet to send [09:59:18]OFD Sender: No OFD packet to send [09:59:23]OFD Sender: No OFD packet to send [09:59:28]OFD Sender: No OFD packet to send [09:59:33]OFD Sender: No OFD packet to send [09:59:38]OFD Sender: No OFD packet to send [09:59:41]accept exits with 9 [09:59:41]New connection [09:59:41]New thread 3067084132 created [09:59:41]Thread 3067227492 joined [09:59:41]Waiting for new connection... [09:59:41] Sock 9.Parse request [09:59:41]Sock 9.Check first char [09:59:41]Sock 9.First char is OK [09:59:41]request: POST /json_proto HTTP/1.0 [09:59:41]Method: POST [09:59:41]URL: /json_proto [09:59:41]Method is POST - this is cgi request [09:59:41]url: /json_proto [09:59:41]query_string will be loaded in cgi processing [09:59:41]execute_cgi json_proto POST (null) [09:59:41]execute_cgi path=json_proto method=POST [09:59:41]POST find Content-Length [09:59:41]Host: 172.17.36.132:8080 [09:59:41]Content-Length: 682 [09:59:41]Content-Type: application/json [09:59:41] [09:59:41]POST finish read [09:59:41]Found Content-Length = 682 [09:59:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706657", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 20.300, "sum" : 1500.17, "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" ] } } [09:59:41]execute_script... [09:59:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706657", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 20.300, "sum" : 1500.17, "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" ] } } [09:59:41]POST & json_proto [09:59:41]process_json_proto [09:59:41]json parsed OK: [09:59:41]protocol is kg_v1.0 [09:59:41]action value=close_receipt [09:59:41]process_action close_receipt [09:59:41]cmd_close_receipt [09:59:41]MH_GetDate [09:59:41]Write to MH i2c: F0 00 00 5A 17 60 [09:59:41]Write i2c OK [09:59:41]MH_I2C_Read... [09:59:41]Read from MH i2c: F0 [09:59:41]MH_I2C_Read... [09:59:41]Read from MH i2c: F0 09 00 [09:59:41]MH_I2C_Read... [09:59:41]Read from MH i2c: F0 09 00 5A 17 00 91 E5 5E 66 B2 22 B0 64 8B [09:59:41]GetLastDocTimeStamp 1717494954 [09:59:41]current date 1717495185 [09:59:41]FM_GetShiftState [09:59:41]SAM_PROTO_GetShiftState [09:59:41]wFMCommunicate request_size=4 [09:59:41]MH_SAM_APDU [09:59:41]CAPDU: 80 13 01 00 [09:59:41]Write to MH i2c: E2 08 00 5B 17 80 13 01 00 00 00 00 00 EF [09:59:41]Write i2c OK [09:59:41]MH_I2C_Read... [09:59:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:59:41]Read from MH i2c: E2 [09:59:41]MH_I2C_Read... [09:59:41]Read from MH i2c: E2 0E 00 [09:59:41]MH_I2C_Read... [09:59:41]Read from MH i2c: E2 0E 00 5B 17 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 8B [09:59:41]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [09:59:41]wFMCommunicate OK [09:59:41]SAM_PROTO_GetShiftState done [09:59:41]FM_GetShiftState done [09:59:41]opened in 1717460590 [09:59:41]opened+sec_in_day 1717546990 [09:59:41]quantity*price = 150017 [09:59:41]sum+1 = 150018 [09:59:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.17 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.31 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 33 04.06.2024 09:59 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68535 ФПД: 125029154677486 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T095945&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68535&fm=125029154677486&tin=02508201610067®Number=0000000000098096&sum=150000 [09:59:42]StoreToDocumentArchive [09:59:42]shift 325 fd 68535 [09:59:42]save to /storage/0325/doc_00068535 [09:59:42]save last doc name /storage/0325/doc_00068535 to /storage/kkm_last_doc_name [09:59:42]save OK [09:59:42]Clear old archive folders... [09:59:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:59:42]tlvbuf is 00A5A360 [09:59:42]SAM_PROTO_ClearQueue [09:59:42]wFMCommunicate request_size=4 [09:59:42]MH_SAM_APDU [09:59:42]CAPDU: 80 09 00 00 [09:59:42]Write to MH i2c: E2 08 00 68 17 80 09 00 00 00 00 00 00 F1 [09:59:42]Write i2c OK [09:59:42]MH_I2C_Read... [09:59:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:59:42]Read from MH i2c: E2 [09:59:42]MH_I2C_Read... [09:59:42]Read from MH i2c: E2 03 00 [09:59:42]MH_I2C_Read... [09:59:42]Read from MH i2c: E2 03 00 68 17 00 90 00 F3 [09:59:42]RAPDU: 90 00 [09:59:42]wFMCommunicate OK [09:59:42]SAM_PROTO_ClearQueue done [09:59:42]KKMCreateOFDPacket [09:59:42]OFDProtocolAddRootSTLVToBuf [09:59:42]FM_MakeSignedData [09:59:42]FM_MakeSignedData [09:59:42]SAM_PROTO_SignData [09:59:42]wFMCommunicate request_size=4 [09:59:42]MH_SAM_APDU [09:59:42]CAPDU: 80 0D 01 02 [09:59:42]Write to MH i2c: E2 08 00 69 17 80 0D 01 02 00 00 00 00 F9 [09:59:42]Write i2c OK [09:59:42]MH_I2C_Read... [09:59:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:59:42]Read from MH i2c: E2 [09:59:42]MH_I2C_Read... [09:59:42]Read from MH i2c: E2 03 00 [09:59:42]MH_I2C_Read... [09:59:42]Read from MH i2c: E2 03 00 69 17 00 90 00 F4 [09:59:42]RAPDU: 90 00 [09:59:42]wFMCommunicate OK [09:59:42]wFMCommunicate request_size=255 [09:59:42]MH_SAM_APDU [09:59:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 4C 4F 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 01 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 3B 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 21 00 00 00 F4 03 04 00 91 E5 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 B7 0B 01 00 35 04 06 00 71 [09:59:42]Write to MH i2c: E2 02 01 6A 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 4C 4F 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 01 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 3B 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 21 00 00 00 F4 03 04 00 91 E5 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 B7 0B 01 00 35 04 06 00 71 00 00 E1 [09:59:42]Write i2c OK [09:59:42]MH_I2C_Read... [09:59:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:59:42]Read from MH i2c: E2 [09:59:42]MH_I2C_Read... [09:59:42]Read from MH i2c: E2 03 00 [09:59:42]MH_I2C_Read... [09:59:42]Read from MH i2c: E2 03 00 6A 17 00 90 00 F5 [09:59:42]RAPDU: 90 00 [09:59:42]wFMCommunicate OK [09:59:42]wFMCommunicate request_size=10 [09:59:42]MH_SAM_APDU [09:59:42]CAPDU: 80 0D 02 02 05 B6 9E 59 E2 EE [09:59:42]Write to MH i2c: E2 0D 00 6B 17 80 0D 02 02 05 00 B6 9E 59 E2 EE 00 00 83 [09:59:42]Write i2c OK [09:59:42]MH_I2C_Read... [09:59:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:59:42]Read from MH i2c: E2 [09:59:42]MH_I2C_Read... [09:59:42]Read from MH i2c: E2 03 00 [09:59:42]MH_I2C_Read... [09:59:42]Read from MH i2c: E2 03 00 6B 17 00 90 00 F6 [09:59:42]RAPDU: 90 00 [09:59:42]wFMCommunicate OK [09:59:42]wFMCommunicate request_size=4 [09:59:42]MH_SAM_APDU [09:59:42]CAPDU: 80 0D 03 02 [09:59:42]Write to MH i2c: E2 08 00 6C 17 80 0D 03 02 00 00 00 00 FE [09:59:42]Write i2c OK [09:59:42]MH_I2C_Read... [09:59:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:59:42]Read from MH i2c: E2 [09:59:42]MH_I2C_Read... [09:59:42]Read from MH i2c: E2 0B 00 [09:59:42]MH_I2C_Read... [09:59:42]Read from MH i2c: E2 0B 00 6C 17 00 17 9E E7 24 2E 94 3F B0 90 00 70 [09:59:42]RAPDU: 17 9E E7 24 2E 94 3F B0 90 00 [09:59:42]wFMCommunicate OK [09:59:42]SAM_PROTO_SignData done [09:59:42]FM_MakeSignedData done [09:59:42]CreateOFDProtocolMessage [09:59:42]wFMCommunicate request_size=4 [09:59:42]MH_SAM_APDU [09:59:42]CAPDU: 80 11 00 00 [09:59:42]Write to MH i2c: E2 08 00 6D 17 80 11 00 00 00 00 00 00 FE [09:59:42]Write i2c OK [09:59:42]MH_I2C_Read... [09:59:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:59:42]Read from MH i2c: E2 [09:59:42]MH_I2C_Read... [09:59:42]Read from MH i2c: E2 17 00 [09:59:42]MH_I2C_Read... [09:59:42]Read from MH i2c: E2 17 00 6D 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 49 [09:59:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [09:59:42]wFMCommunicate OK [09:59:42]CreateOFDProtocolMessage done [09:59:42]OFDSenderStorePacket 68535 [09:59:42]StoreOFDPacket docnum=68535 [09:59:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 9A A2 07 01 C1 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 4C 4F 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 01 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 3B 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 21 00 00 00 F4 03 04 00 91 E5 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 B7 0B 01 00 35 04 06 00 71 B6 9E 59 E2 EE 17 9E E7 24 2E 94 3F B0 [09:59:42]CheckFolder [09:59:42]dirname=/storage/ofd_packets [09:59:42]CheckFolder done [09:59:42]ProducePacketName [09:59:42]name=ofd_packets/00068535 [09:59:42]NVStorageSaveData ofd_packets/00068535 [09:59:42]File name is /storage/ofd_packets/00068535 [09:59:42]Write 301 bytes [09:59:42]NVStorageSaveData done [09:59:42]OFDSenderStorePacket done [09:59:42]KKMCreateOFDPacket done [09:59:42]NVStorageSaveData kkm_last_timestamp [09:59:42]File name is /storage/kkm_last_timestamp [09:59:42]Write 4 bytes [09:59:42]NVStorageSaveData done [09:59:42]ExternCall_PrintAddStr [09:59:42]wPrintStart [09:59:42]Write to MH i2c: 01 00 00 6E 17 85 [09:59:42]Write i2c OK [09:59:42]MH_I2C_Read... [09:59:42]Read from MH i2c: 01 [09:59:42]MH_I2C_Read... [09:59:42]Read from MH i2c: 01 07 00 [09:59:42]MH_I2C_Read... [09:59:42]Read from MH i2c: 01 07 00 6E 17 00 00 00 00 00 FF 0F 9A [09:59:42]RasterBufferAndPrint [09:59:42]line Счет N : (1)706657 [09:59:42]line ИНН: 02508201610067 [09:59:42]line Контрольно-Кассовый Чек [09:59:42]line ПРОДАЖА [09:59:42]line ТРК (МРК, ГНК) : 43 [09:59:42]line Товар: 2710124500 [09:59:42]line Аи-95-К-5 [09:59:42]line 20.300 * 73.90 [09:59:42]line = 1500.17 [09:59:42]line НДС 12% НСП 1% [09:59:42]line > о реализуемом товаре [09:59:42]line ОКРУГЛЕНИЕ: -0.17 [09:59:42]line ИТОГО: 1500.00 [09:59:42]line Внесено: 1500.00 [09:59:42]line СДАЧА: 0.00 [09:59:42]line НСП 1% : 13.28 [09:59:42]line НДС 12% : 159.31 [09:59:42]line Наличными: 1500.00 [09:59:42]line Безнал.: 0.00 [09:59:42]line Место: АЗС № 62 "Партнер Нефть" [09:59:42]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [09:59:42]line СНО: Общий режим [09:59:42]line Чек 33 04.06.2024 09:59 [09:59:42]line Смена: 325 ФФД: 1.0 [09:59:42]line ЗНМ: 0300000181 [09:59:42]line РНМ: 0000000000098096 [09:59:42]line Версия ККМ: 001 [09:59:42]line ФМ: 0000000000965400 [09:59:42]line ФД: 68535 [09:59:42]line ФПД: 125029154677486 [09:59:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T095945&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68535&fm=125029154677486&tin=02508201610067®Number=0000000000098096&sum=150000 [09:59:43]OFD Sender: Processing packet 68535 [packets to send 26, broken 25] [09:59:43]ProducePacketName [09:59:43]name=ofd_packets/00068535 [09:59:43]OFD Sender: To server: pG, [09:59:43]CommunicateWithHost lk.salyk.kg:30040 [09:59:43]ConnectInit lk.salyk.kg [09:59:43]written 0, free lines is 4095 [09:59:43]Connected sock=10 [09:59:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 9A A2 07 01 C1 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 4C 4F 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 01 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 3B 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 21 00 00 00 F4 03 04 00 91 E5 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 B7 0B 01 00 35 04 06 00 71 B6 9E 59 E2 EE 17 9E E7 24 2E 94 3F B0 [09:59:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 F3 37 47 00 9F 80 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 B7 0B 01 00 F4 03 04 00 8A 8C 5E 66 B6 04 01 00 00 F8 B8 4A 93 04 A7 EF D7 [09:59:43]CommunicateWithHost err = 0 [09:59:43]CheckOFDResponse [09:59:43]1017 (14) - 77093643461234 [09:59:43]1041 (16) - 0000000000965400 [09:59:43]1040 (4) - 68535 [09:59:43]1012 (4) - 04.06.2024 03:39 [09:59:43]1206 (1) - 0 [09:59:43]OFD Sender: Remove packet 68535 [09:59:43]ProducePacketName [09:59:43]name=ofd_packets/00068535 [09:59:43]NVStorageDeleteData [09:59:43]Write to MH i2c: 01 00 00 99 17 B0 [09:59:43]Write i2c OK [09:59:43]MH_I2C_Read... [09:59:43]Read from MH i2c: 01 [09:59:43]MH_I2C_Read... [09:59:43]Read from MH i2c: 01 07 00 [09:59:43]MH_I2C_Read... [09:59:43]Read from MH i2c: 01 07 00 99 17 00 00 00 00 00 CD 0C 90 [09:59:43]RasterBufferAndPrint [09:59:43]line [09:59:43]line [09:59:43]line [09:59:43]line [09:59:43]line [09:59:43]written 0, free lines is 3283 [09:59:43]MH_Cut [09:59:43]Write to MH i2c: D1 01 00 A0 17 01 89 [09:59:43]Write i2c OK [09:59:43]MH_I2C_Read... [09:59:43]Read from MH i2c: D1 [09:59:43]MH_I2C_Read... [09:59:43]Read from MH i2c: D1 01 00 [09:59:43]MH_I2C_Read... [09:59:43]Read from MH i2c: D1 01 00 A0 17 00 88 [09:59:43]Write to MH i2c: 01 00 00 A1 17 B8 [09:59:43]Write i2c OK [09:59:43]MH_I2C_Read... [09:59:44]OFD Sender: No OFD packet to send [09:59:44]*** Cut start [09:59:44]*** Partial cut [09:59:44]*** CUTSNS_PIN = 1 [09:59:44]*** CUTSNS_PIN = 0 [09:59:44]*** Brake cut motor [09:59:45]Read from MH i2c: 01 [09:59:45]MH_I2C_Read... [09:59:45]*** Stop cut motor [09:59:45]*** Cut end [09:59:45]Read from MH i2c: 01 07 00 [09:59:45]MH_I2C_Read... [09:59:45]Read from MH i2c: 01 07 00 A1 17 00 00 00 00 00 FF 0F CD [09:59:45]process_action close_receipt done [09:59:45]requested_data is exist [09:59:45]produce_requested_data [09:59:45]requested_item fm.sn is exist - process it [09:59:45]wFMCommunicate request_size=4 [09:59:45]MH_SAM_APDU [09:59:45]CAPDU: 80 11 00 00 [09:59:45]Write to MH i2c: E2 08 00 A2 17 80 11 00 00 00 00 00 00 33 [09:59:45]Write i2c OK [09:59:45]MH_I2C_Read... [09:59:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:59:45]Read from MH i2c: E2 [09:59:45]MH_I2C_Read... [09:59:45]Read from MH i2c: E2 17 00 [09:59:45]MH_I2C_Read... [09:59:45]Read from MH i2c: E2 17 00 A2 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 7E [09:59:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [09:59:45]wFMCommunicate OK [09:59:45]requested_item fd.num is exist - process it [09:59:45]SAM_PROTO_GetFieldsCounters [09:59:45]wFMCommunicate request_size=4 [09:59:45]MH_SAM_APDU [09:59:45]CAPDU: 80 13 00 00 [09:59:45]Write to MH i2c: E2 08 00 A3 17 80 13 00 00 00 00 00 00 36 [09:59:45]Write i2c OK [09:59:45]MH_I2C_Read... [09:59:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:59:45]Read from MH i2c: E2 [09:59:45]MH_I2C_Read... [09:59:45]Read from MH i2c: E2 62 00 [09:59:45]MH_I2C_Read... [09:59:45]Read from MH i2c: E2 62 00 A3 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 B7 0B 01 00 0E 04 04 00 45 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 C2 [09:59:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 B7 0B 01 00 0E 04 04 00 45 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:59:45]wFMCommunicate OK [09:59:45]SAM_PROTO_GetFieldsCounters done [09:59:45]requested_item shift.num is exist - process it [09:59:45]requested_item shift.opened is exist - process it [09:59:45]req_shift_opened [09:59:45]FM_GetShiftState [09:59:45]SAM_PROTO_GetShiftState [09:59:45]wFMCommunicate request_size=4 [09:59:45]MH_SAM_APDU [09:59:45]CAPDU: 80 13 01 00 [09:59:45]Write to MH i2c: E2 08 00 A4 17 80 13 01 00 00 00 00 00 38 [09:59:45]Write i2c OK [09:59:45]MH_I2C_Read... [09:59:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:59:45]Read from MH i2c: E2 [09:59:45]MH_I2C_Read... [09:59:45]Read from MH i2c: E2 0E 00 [09:59:45]MH_I2C_Read... [09:59:45]Read from MH i2c: E2 0E 00 A4 17 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 D4 [09:59:45]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [09:59:45]wFMCommunicate OK [09:59:45]SAM_PROTO_GetShiftState done [09:59:45]FM_GetShiftState done [09:59:45]req_shift_opened done [09:59:45]requested_item shift.open_date is exist - process it [09:59:45]req_shift_open_date [09:59:45]req_shift_open_date done [09:59:45]produce_requested_data done [09:59:45]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68535,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [09:59:45]process_action_free close_receipt [09:59:45]json_value_free [09:59:45]json_value_free done [09:59:45]process_json_proto returns [09:59:45]Send response to host [09:59:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68535,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [09:59:45]free response buf [09:59:45]execute_script done [09:59:45]execute_script returns [09:59:45]free content buf [09:59:45]Sock 9.Close socket [09:59:45]Sock 9.Thread stoped [09:59:49]OFD Sender: No OFD packet to send [09:59:54]OFD Sender: No OFD packet to send [09:59:59]OFD Sender: No OFD packet to send [10:00:04]OFD Sender: No OFD packet to send [10:00:09]OFD Sender: No OFD packet to send [10:00:14]OFD Sender: No OFD packet to send [10:00:19]OFD Sender: No OFD packet to send [10:00:24]OFD Sender: No OFD packet to send [10:00:29]OFD Sender: No OFD packet to send [10:00:34]OFD Sender: No OFD packet to send [10:00:39]OFD Sender: No OFD packet to send [10:00:44]OFD Sender: No OFD packet to send [10:00:49]OFD Sender: No OFD packet to send [10:00:54]OFD Sender: No OFD packet to send [10:00:54]accept exits with 7 [10:00:54]New connection [10:00:54]New thread 3067227492 created [10:00:54]Thread 3067084132 joined [10:00:54]Waiting for new connection... [10:00:54] Sock 7.Parse request [10:00:54]Sock 7.Check first char [10:00:54]Sock 7.First char is OK [10:00:54]request: POST /json_proto HTTP/1.0 [10:00:54]Method: POST [10:00:54]URL: /json_proto [10:00:54]Method is POST - this is cgi request [10:00:54]url: /json_proto [10:00:54]query_string will be loaded in cgi processing [10:00:54]execute_cgi json_proto POST (null) [10:00:54]execute_cgi path=json_proto method=POST [10:00:54]POST find Content-Length [10:00:54]Host: 172.17.36.132:8080 [10:00:54]Content-Length: 840 [10:00:54]Content-Type: application/json [10:00:54] [10:00:54]POST finish read [10:00:54]Found Content-Length = 840 [10:00:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706658", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 2.850, "sum" : 190.67, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 190.67 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:00:54]execute_script... [10:00: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)706658", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 2.850, "sum" : 190.67, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 190.67 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:00:54]POST & json_proto [10:00:54]process_json_proto [10:00:54]json parsed OK: [10:00:54]protocol is kg_v1.0 [10:00:54]action value=close_receipt [10:00:54]process_action close_receipt [10:00:54]cmd_close_receipt [10:00:54]MH_GetDate [10:00:54]Write to MH i2c: F0 00 00 A5 17 AB [10:00:54]Write i2c OK [10:00:54]MH_I2C_Read... [10:00:54]Read from MH i2c: F0 [10:00:54]MH_I2C_Read... [10:00:54]Read from MH i2c: F0 09 00 [10:00:54]MH_I2C_Read... [10:00:54]Read from MH i2c: F0 09 00 A5 17 00 DA E5 5E 66 B2 22 B0 64 1F [10:00:54]GetLastDocTimeStamp 1717495185 [10:00:54]current date 1717495258 [10:00:54]FM_GetShiftState [10:00:54]SAM_PROTO_GetShiftState [10:00:54]wFMCommunicate request_size=4 [10:00:54]MH_SAM_APDU [10:00:54]CAPDU: 80 13 01 00 [10:00:54]Write to MH i2c: E2 08 00 A6 17 80 13 01 00 00 00 00 00 3A [10:00:54]Write i2c OK [10:00:54]MH_I2C_Read... [10:00:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:00:54]Read from MH i2c: E2 [10:00:54]MH_I2C_Read... [10:00:54]Read from MH i2c: E2 0E 00 [10:00:54]MH_I2C_Read... [10:00:54]Read from MH i2c: E2 0E 00 A6 17 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 D6 [10:00:54]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [10:00:54]wFMCommunicate OK [10:00:54]SAM_PROTO_GetShiftState done [10:00:54]FM_GetShiftState done [10:00:54]opened in 1717460590 [10:00:54]opened+sec_in_day 1717546990 [10:00:54]quantity*price = 19066 [10:00:54]sum+1 = 19068 [10:00:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 190.67 НСП 1% : 1.69 НДС 12% : 20.25 Наличными: 0.00 Безнал.: 190.67 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 34 04.06.2024 10:00 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000965400 ФД: 68536 ФПД: 197959825064226 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T100058&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68536&fm=197959825064226&tin=02508201610067®Number=0000000000098096&sum=19067 [10:00:55]StoreToDocumentArchive [10:00:55]shift 325 fd 68536 [10:00:55]save to /storage/0325/doc_00068536 [10:00:55]save last doc name /storage/0325/doc_00068536 to /storage/kkm_last_doc_name [10:00:55]save OK [10:00:55]Clear old archive folders... [10:00:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:00:55]tlvbuf is 00A5A760 [10:00:55]SAM_PROTO_ClearQueue [10:00:55]wFMCommunicate request_size=4 [10:00:55]MH_SAM_APDU [10:00:55]CAPDU: 80 09 00 00 [10:00:55]Write to MH i2c: E2 08 00 B3 17 80 09 00 00 00 00 00 00 3C [10:00:55]Write i2c OK [10:00:55]MH_I2C_Read... [10:00:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:00:55]Read from MH i2c: E2 [10:00:55]MH_I2C_Read... [10:00:55]Read from MH i2c: E2 03 00 [10:00:55]MH_I2C_Read... [10:00:55]Read from MH i2c: E2 03 00 B3 17 00 90 00 3E [10:00:55]RAPDU: 90 00 [10:00:55]wFMCommunicate OK [10:00:55]SAM_PROTO_ClearQueue done [10:00:55]KKMCreateOFDPacket [10:00:55]OFDProtocolAddRootSTLVToBuf [10:00:55]FM_MakeSignedData [10:00:55]FM_MakeSignedData [10:00:55]SAM_PROTO_SignData [10:00:55]wFMCommunicate request_size=4 [10:00:55]MH_SAM_APDU [10:00:55]CAPDU: 80 0D 01 02 [10:00:55]Write to MH i2c: E2 08 00 B4 17 80 0D 01 02 00 00 00 00 44 [10:00:55]Write i2c OK [10:00:55]MH_I2C_Read... [10:00:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:00:55]Read from MH i2c: E2 [10:00:55]MH_I2C_Read... [10:00:55]Read from MH i2c: E2 03 00 [10:00:55]MH_I2C_Read... [10:00:55]Read from MH i2c: E2 03 00 B4 17 00 90 00 3F [10:00:55]RAPDU: 90 00 [10:00:55]wFMCommunicate OK [10:00:55]wFMCommunicate request_size=255 [10:00:55]MH_SAM_APDU [10:00:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 22 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 7B 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7B 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7B 4A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 DA E5 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 B8 0B 01 00 35 04 06 00 B4 [10:00:55]Write to MH i2c: E2 02 01 B5 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 34 FF 03 08 00 03 22 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 7B 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7B 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7B 4A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 DA E5 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 B8 0B 01 00 35 04 06 00 B4 00 00 00 [10:00:55]Write i2c OK [10:00:55]MH_I2C_Read... [10:00:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:00:56]Read from MH i2c: E2 [10:00:56]MH_I2C_Read... [10:00:56]Read from MH i2c: E2 03 00 [10:00:56]MH_I2C_Read... [10:00:56]Read from MH i2c: E2 03 00 B5 17 00 90 00 40 [10:00:56]RAPDU: 90 00 [10:00:56]wFMCommunicate OK [10:00:56]wFMCommunicate request_size=10 [10:00:56]MH_SAM_APDU [10:00:56]CAPDU: 80 0D 02 02 05 0B 1D 0D 81 22 [10:00:56]Write to MH i2c: E2 0D 00 B6 17 80 0D 02 02 05 00 0B 1D 0D 81 22 00 00 29 [10:00:56]Write i2c OK [10:00:56]MH_I2C_Read... [10:00:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:00:56]Read from MH i2c: E2 [10:00:56]MH_I2C_Read... [10:00:56]Read from MH i2c: E2 03 00 [10:00:56]MH_I2C_Read... [10:00:56]Read from MH i2c: E2 03 00 B6 17 00 90 00 41 [10:00:56]RAPDU: 90 00 [10:00:56]wFMCommunicate OK [10:00:56]wFMCommunicate request_size=4 [10:00:56]MH_SAM_APDU [10:00:56]CAPDU: 80 0D 03 02 [10:00:56]Write to MH i2c: E2 08 00 B7 17 80 0D 03 02 00 00 00 00 49 [10:00:56]Write i2c OK [10:00:56]MH_I2C_Read... [10:00:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:00:56]Read from MH i2c: E2 [10:00:56]MH_I2C_Read... [10:00:56]Read from MH i2c: E2 0B 00 [10:00:56]MH_I2C_Read... [10:00:56]Read from MH i2c: E2 0B 00 B7 17 00 0F AB 83 1F C3 91 15 CC 90 00 DB [10:00:56]RAPDU: 0F AB 83 1F C3 91 15 CC 90 00 [10:00:56]wFMCommunicate OK [10:00:56]SAM_PROTO_SignData done [10:00:56]FM_MakeSignedData done [10:00:56]CreateOFDProtocolMessage [10:00:56]wFMCommunicate request_size=4 [10:00:56]MH_SAM_APDU [10:00:56]CAPDU: 80 11 00 00 [10:00:56]Write to MH i2c: E2 08 00 B8 17 80 11 00 00 00 00 00 00 49 [10:00:56]Write i2c OK [10:00:56]MH_I2C_Read... [10:00:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:00:56]Read from MH i2c: E2 [10:00:56]MH_I2C_Read... [10:00:56]Read from MH i2c: E2 17 00 [10:00:56]MH_I2C_Read... [10:00:56]Read from MH i2c: E2 17 00 B8 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 94 [10:00:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [10:00:56]wFMCommunicate OK [10:00:56]CreateOFDProtocolMessage done [10:00:56]OFDSenderStorePacket 68536 [10:00:56]StoreOFDPacket docnum=68536 [10:00:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 FE F6 07 01 CE AE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 22 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 7B 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7B 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7B 4A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 DA E5 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 B8 0B 01 00 35 04 06 00 B4 0B 1D 0D 81 22 0F AB 83 1F C3 91 15 CC [10:00:56]CheckFolder [10:00:56]dirname=/storage/ofd_packets [10:00:56]CheckFolder done [10:00:56]ProducePacketName [10:00:56]name=ofd_packets/00068536 [10:00:56]NVStorageSaveData ofd_packets/00068536 [10:00:56]File name is /storage/ofd_packets/00068536 [10:00:56]Write 301 bytes [10:00:56]NVStorageSaveData done [10:00:56]OFDSenderStorePacket done [10:00:56]KKMCreateOFDPacket done [10:00:56]NVStorageSaveData kkm_last_timestamp [10:00:56]File name is /storage/kkm_last_timestamp [10:00:56]Write 4 bytes [10:00:56]NVStorageSaveData done [10:00:56]ExternCall_PrintAddStr [10:00:56]wPrintStart [10:00:56]Write to MH i2c: 01 00 00 B9 17 D0 [10:00:56]Write i2c OK [10:00:56]MH_I2C_Read... [10:00:56]Read from MH i2c: 01 [10:00:56]MH_I2C_Read... [10:00:56]Read from MH i2c: 01 07 00 [10:00:56]MH_I2C_Read... [10:00:56]Read from MH i2c: 01 07 00 B9 17 00 00 00 00 00 FF 0F E5 [10:00:56]RasterBufferAndPrint [10:00:56]line Счет N : (1)706658 [10:00:56]line ИНН: 02508201610067 [10:00:56]line Контрольно-Кассовый Чек [10:00:56]line ПРОДАЖА [10:00:56]line ТРК (МРК, ГНК) : 53 [10:00:56]line Товар: 2710124130 [10:00:56]line Аи-92-К-4 [10:00:56]line 2.850 * 66.90 [10:00:56]line = 190.67 [10:00:56]line НДС 12% НСП 1% [10:00:56]line > о реализуемом товаре [10:00:56]line ИТОГО: 190.67 [10:00:56]line НСП 1% : 1.69 [10:00:56]line НДС 12% : 20.25 [10:00:56]line Наличными: 0.00 [10:00:56]line Безнал.: 190.67 [10:00:56]line Место: АЗС № 62 "Партнер Нефть" [10:00:56]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [10:00:56]line СНО: Общий режим [10:00:56]line Чек 34 04.06.2024 10:00 [10:00:56]line Смена: 325 ФФД: 1.0 [10:00:56]line ЗНМ: 0300000181 [10:00:56]line РНМ: 0000000000098096 [10:00:56]line Версия ККМ: 001 [10:00:56]line Платежная система: АКБ Кыргызстан [10:00:56]line ФМ: 0000000000965400 [10:00:56]line ФД: 68536 [10:00:56]line ФПД: 197959825064226 [10:00:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T100058&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68536&fm=197959825064226&tin=02508201610067®Number=0000000000098096&sum=19067 [10:00:56]OFD Sender: Processing packet 68536 [packets to send 26, broken 25] [10:00:56]ProducePacketName [10:00:56]name=ofd_packets/00068536 [10:00:56]OFD Sender: To server: pG, [10:00:56]CommunicateWithHost lk.salyk.kg:30040 [10:00:56]ConnectInit lk.salyk.kg [10:00:56]written 0, free lines is 4095 [10:00:56]Connected sock=10 [10:00:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 FE F6 07 01 CE AE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 22 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 7B 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7B 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7B 4A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 DA E5 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 B8 0B 01 00 35 04 06 00 B4 0B 1D 0D 81 22 0F AB 83 1F C3 91 15 CC [10:00:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 59 C8 47 00 D6 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 39 36 35 34 30 30 10 04 04 00 B8 0B 01 00 F4 03 04 00 D3 8C 5E 66 B6 04 01 00 00 67 80 A6 3A F9 01 BB 12 [10:00:56]CommunicateWithHost err = 0 [10:00:56]CheckOFDResponse [10:00:56]1017 (14) - 77093643461234 [10:00:56]1041 (16) - 0000000000965400 [10:00:56]1040 (4) - 68536 [10:00:56]1012 (4) - 04.06.2024 03:41 [10:00:56]1206 (1) - 0 [10:00:56]OFD Sender: Remove packet 68536 [10:00:56]ProducePacketName [10:00:56]name=ofd_packets/00068536 [10:00:56]NVStorageDeleteData [10:00:57]Write to MH i2c: 01 00 00 E3 17 FA [10:00:57]Write i2c OK [10:00:57]MH_I2C_Read... [10:00:57]Read from MH i2c: 01 [10:00:57]MH_I2C_Read... [10:00:57]Read from MH i2c: 01 07 00 [10:00:57]MH_I2C_Read... [10:00:57]Read from MH i2c: 01 07 00 E3 17 00 00 00 00 00 F2 0C FF [10:00:57]RasterBufferAndPrint [10:00:57]line [10:00:57]line [10:00:57]line [10:00:57]line [10:00:57]line [10:00:57]written 0, free lines is 3320 [10:00:57]MH_Cut [10:00:57]Write to MH i2c: D1 01 00 EA 17 01 D3 [10:00:57]Write i2c OK [10:00:57]MH_I2C_Read... [10:00:57]Read from MH i2c: D1 [10:00:57]MH_I2C_Read... [10:00:57]Read from MH i2c: D1 01 00 [10:00:57]MH_I2C_Read... [10:00:57]Read from MH i2c: D1 01 00 EA 17 00 D2 [10:00:57]Write to MH i2c: 01 00 00 EB 17 02 [10:00:57]Write i2c OK [10:00:57]MH_I2C_Read... [10:00:57]OFD Sender: No OFD packet to send [10:00:57]*** Cut start [10:00:57]*** Partial cut [10:00:57]*** CUTSNS_PIN = 1 [10:00:57]*** CUTSNS_PIN = 0 [10:00:58]*** Brake cut motor [10:00:58]Read from MH i2c: 01 [10:00:58]MH_I2C_Read... [10:00:58]*** Stop cut motor [10:00:58]*** Cut end [10:00:58]Read from MH i2c: 01 07 00 [10:00:58]MH_I2C_Read... [10:00:58]Read from MH i2c: 01 07 00 EB 17 00 00 00 00 00 FF 0F 17 [10:00:58]process_action close_receipt done [10:00:58]requested_data is exist [10:00:58]produce_requested_data [10:00:58]requested_item fm.sn is exist - process it [10:00:58]wFMCommunicate request_size=4 [10:00:58]MH_SAM_APDU [10:00:58]CAPDU: 80 11 00 00 [10:00:58]Write to MH i2c: E2 08 00 EC 17 80 11 00 00 00 00 00 00 7D [10:00:58]Write i2c OK [10:00:58]MH_I2C_Read... [10:00:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:00:58]Read from MH i2c: E2 [10:00:58]MH_I2C_Read... [10:00:58]Read from MH i2c: E2 17 00 [10:00:58]MH_I2C_Read... [10:00:58]Read from MH i2c: E2 17 00 EC 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 C8 [10:00:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [10:00:58]wFMCommunicate OK [10:00:58]requested_item fd.num is exist - process it [10:00:58]SAM_PROTO_GetFieldsCounters [10:00:58]wFMCommunicate request_size=4 [10:00:58]MH_SAM_APDU [10:00:58]CAPDU: 80 13 00 00 [10:00:58]Write to MH i2c: E2 08 00 ED 17 80 13 00 00 00 00 00 00 80 [10:00:58]Write i2c OK [10:00:58]MH_I2C_Read... [10:00:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:00:58]Read from MH i2c: E2 [10:00:58]MH_I2C_Read... [10:00:58]Read from MH i2c: E2 62 00 [10:00:58]MH_I2C_Read... [10:00:58]Read from MH i2c: E2 62 00 ED 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 B8 0B 01 00 0E 04 04 00 45 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 10 [10:00:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 B8 0B 01 00 0E 04 04 00 45 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:00:58]wFMCommunicate OK [10:00:58]SAM_PROTO_GetFieldsCounters done [10:00:58]requested_item shift.num is exist - process it [10:00:58]requested_item shift.opened is exist - process it [10:00:58]req_shift_opened [10:00:58]FM_GetShiftState [10:00:58]SAM_PROTO_GetShiftState [10:00:58]wFMCommunicate request_size=4 [10:00:58]MH_SAM_APDU [10:00:58]CAPDU: 80 13 01 00 [10:00:58]Write to MH i2c: E2 08 00 EE 17 80 13 01 00 00 00 00 00 82 [10:00:58]Write i2c OK [10:00:58]MH_I2C_Read... [10:00:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:00:58]Read from MH i2c: E2 [10:00:58]MH_I2C_Read... [10:00:58]Read from MH i2c: E2 0E 00 [10:00:58]MH_I2C_Read... [10:00:58]Read from MH i2c: E2 0E 00 EE 17 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 1E [10:00:58]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [10:00:58]wFMCommunicate OK [10:00:58]SAM_PROTO_GetShiftState done [10:00:58]FM_GetShiftState done [10:00:58]req_shift_opened done [10:00:58]requested_item shift.open_date is exist - process it [10:00:58]req_shift_open_date [10:00:58]req_shift_open_date done [10:00:58]produce_requested_data done [10:00:58]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68536,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [10:00:58]process_action_free close_receipt [10:00:58]json_value_free [10:00:58]json_value_free done [10:00:58]process_json_proto returns [10:00:58]Send response to host [10:00:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68536,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [10:00:58]free response buf [10:00:58]execute_script done [10:00:58]execute_script returns [10:00:58]free content buf [10:00:58]Sock 7.Close socket [10:00:58]Sock 7.Thread stoped [10:01:02]OFD Sender: No OFD packet to send [10:01:07]OFD Sender: No OFD packet to send [10:01:12]OFD Sender: No OFD packet to send [10:01:17]OFD Sender: No OFD packet to send [10:01:22]OFD Sender: No OFD packet to send [10:01:27]OFD Sender: No OFD packet to send [10:01:32]OFD Sender: No OFD packet to send [10:01:37]OFD Sender: No OFD packet to send [10:01:42]OFD Sender: No OFD packet to send [10:01:47]OFD Sender: No OFD packet to send [10:01:52]OFD Sender: No OFD packet to send [10:01:57]OFD Sender: No OFD packet to send [10:02:02]OFD Sender: No OFD packet to send [10:02:07]OFD Sender: No OFD packet to send [10:02:12]OFD Sender: No OFD packet to send [10:02:17]OFD Sender: No OFD packet to send [10:02:22]OFD Sender: No OFD packet to send [10:02:27]OFD Sender: No OFD packet to send [10:02:32]OFD Sender: No OFD packet to send [10:02:37]OFD Sender: No OFD packet to send [10:02:42]OFD Sender: No OFD packet to send [10:02:47]OFD Sender: No OFD packet to send [10:02:52]OFD Sender: No OFD packet to send [10:02:57]OFD Sender: No OFD packet to send [10:03:02]OFD Sender: No OFD packet to send [10:03:07]OFD Sender: No OFD packet to send [10:03:12]OFD Sender: No OFD packet to send [10:03:17]OFD Sender: No OFD packet to send [10:03:22]OFD Sender: No OFD packet to send [10:03:27]OFD Sender: No OFD packet to send [10:03:32]OFD Sender: No OFD packet to send [10:03:37]OFD Sender: No OFD packet to send [10:03:42]OFD Sender: No OFD packet to send [10:03:47]OFD Sender: No OFD packet to send [10:03:52]OFD Sender: No OFD packet to send [10:03:57]OFD Sender: No OFD packet to send [10:04:02]OFD Sender: No OFD packet to send [10:04:07]OFD Sender: No OFD packet to send [10:04:12]OFD Sender: No OFD packet to send [10:04:17]OFD Sender: No OFD packet to send [10:04:22]OFD Sender: No OFD packet to send [10:04:27]OFD Sender: No OFD packet to send [10:04:32]OFD Sender: No OFD packet to send [10:04:37]OFD Sender: No OFD packet to send [10:04:42]OFD Sender: No OFD packet to send [10:04:47]OFD Sender: No OFD packet to send [10:04:52]OFD Sender: No OFD packet to send [10:04:57]OFD Sender: No OFD packet to send [10:05:02]OFD Sender: No OFD packet to send [10:05:07]OFD Sender: No OFD packet to send [10:05:12]OFD Sender: No OFD packet to send [10:05:17]OFD Sender: No OFD packet to send [10:05:22]OFD Sender: No OFD packet to send [10:05:27]OFD Sender: No OFD packet to send [10:05:32]OFD Sender: No OFD packet to send [10:05:33]accept exits with 9 [10:05:33]New connection [10:05:33]New thread 3067084132 created [10:05:33]Thread 3067227492 joined [10:05:33]Waiting for new connection... [10:05:33] Sock 9.Parse request [10:05:33]Sock 9.Check first char [10:05:33]Sock 9.First char is OK [10:05:33]request: POST /json_proto HTTP/1.0 [10:05:33]Method: POST [10:05:33]URL: /json_proto [10:05:33]Method is POST - this is cgi request [10:05:33]url: /json_proto [10:05:33]query_string will be loaded in cgi processing [10:05:33]execute_cgi json_proto POST (null) [10:05:33]execute_cgi path=json_proto method=POST [10:05:33]POST find Content-Length [10:05:33]Host: 172.17.36.132:8080 [10:05:33]Content-Length: 677 [10:05:33]Content-Type: application/json [10:05:33] [10:05:33]POST finish read [10:05:33]Found Content-Length = 677 [10:05:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706659", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:05:33]execute_script... [10:05: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)706659", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:05:33]POST & json_proto [10:05:33]process_json_proto [10:05:33]json parsed OK: [10:05:33]protocol is kg_v1.0 [10:05:33]action value=close_receipt [10:05:33]process_action close_receipt [10:05:33]cmd_close_receipt [10:05:33]MH_GetDate [10:05:33]Write to MH i2c: F0 00 00 EF 17 F5 [10:05:33]Write i2c OK [10:05:33]MH_I2C_Read... [10:05:33]Read from MH i2c: F0 [10:05:33]MH_I2C_Read... [10:05:33]Read from MH i2c: F0 09 00 [10:05:33]MH_I2C_Read... [10:05:33]Read from MH i2c: F0 09 00 EF 17 00 F1 E6 5E 66 B2 22 B0 64 81 [10:05:33]GetLastDocTimeStamp 1717495258 [10:05:33]current date 1717495537 [10:05:33]FM_GetShiftState [10:05:33]SAM_PROTO_GetShiftState [10:05:33]wFMCommunicate request_size=4 [10:05:33]MH_SAM_APDU [10:05:33]CAPDU: 80 13 01 00 [10:05:33]Write to MH i2c: E2 08 00 F0 17 80 13 01 00 00 00 00 00 84 [10:05:33]Write i2c OK [10:05:33]MH_I2C_Read... [10:05:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:05:33]Read from MH i2c: E2 [10:05:33]MH_I2C_Read... [10:05:33]Read from MH i2c: E2 0E 00 [10:05:33]MH_I2C_Read... [10:05:33]Read from MH i2c: E2 0E 00 F0 17 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 20 [10:05:33]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [10:05:33]wFMCommunicate OK [10:05:33]SAM_PROTO_GetShiftState done [10:05:33]FM_GetShiftState done [10:05:33]opened in 1717460590 [10:05:33]opened+sec_in_day 1717546990 [10:05:33]quantity*price = 40006 [10:05:33]sum+1 = 40007 [10:05:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 35 04.06.2024 10:05 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68537 ФПД: 117139051714738 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T100537&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68537&fm=117139051714738&tin=02508201610067®Number=0000000000098096&sum=40000 [10:05:34]StoreToDocumentArchive [10:05:34]shift 325 fd 68537 [10:05:34]save to /storage/0325/doc_00068537 [10:05:34]save last doc name /storage/0325/doc_00068537 to /storage/kkm_last_doc_name [10:05:34]save OK [10:05:34]Clear old archive folders... [10:05:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:05:35]tlvbuf is 00A41F40 [10:05:35]SAM_PROTO_ClearQueue [10:05:35]wFMCommunicate request_size=4 [10:05:35]MH_SAM_APDU [10:05:35]CAPDU: 80 09 00 00 [10:05:35]Write to MH i2c: E2 08 00 FD 17 80 09 00 00 00 00 00 00 86 [10:05:35]Write i2c OK [10:05:35]MH_I2C_Read... [10:05:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:05:35]Read from MH i2c: E2 [10:05:35]MH_I2C_Read... [10:05:35]Read from MH i2c: E2 03 00 [10:05:35]MH_I2C_Read... [10:05:35]Read from MH i2c: E2 03 00 FD 17 00 90 00 88 [10:05:35]RAPDU: 90 00 [10:05:35]wFMCommunicate OK [10:05:35]SAM_PROTO_ClearQueue done [10:05:35]KKMCreateOFDPacket [10:05:35]OFDProtocolAddRootSTLVToBuf [10:05:35]FM_MakeSignedData [10:05:35]FM_MakeSignedData [10:05:35]SAM_PROTO_SignData [10:05:35]wFMCommunicate request_size=4 [10:05:35]MH_SAM_APDU [10:05:35]CAPDU: 80 0D 01 02 [10:05:35]Write to MH i2c: E2 08 00 FE 17 80 0D 01 02 00 00 00 00 8E [10:05:35]Write i2c OK [10:05:35]MH_I2C_Read... [10:05:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:05:35]Read from MH i2c: E2 [10:05:35]MH_I2C_Read... [10:05:35]Read from MH i2c: E2 03 00 [10:05:35]MH_I2C_Read... [10:05:35]Read from MH i2c: E2 03 00 FE 17 00 90 00 89 [10:05:35]RAPDU: 90 00 [10:05:35]wFMCommunicate OK [10:05:35]wFMCommunicate request_size=255 [10:05:35]MH_SAM_APDU [10:05: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 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 F1 E6 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 B9 0B 01 00 35 04 06 00 6A [10:05:35]Write to MH i2c: E2 02 01 FF 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 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 F1 E6 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 B9 0B 01 00 35 04 06 00 6A 00 00 1D [10:05:35]Write i2c OK [10:05:35]MH_I2C_Read... [10:05:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:05:35]Read from MH i2c: E2 [10:05:35]MH_I2C_Read... [10:05:35]Read from MH i2c: E2 03 00 [10:05:35]MH_I2C_Read... [10:05:35]Read from MH i2c: E2 03 00 FF 17 00 90 00 8A [10:05:35]RAPDU: 90 00 [10:05:35]wFMCommunicate OK [10:05:35]wFMCommunicate request_size=10 [10:05:35]MH_SAM_APDU [10:05:35]CAPDU: 80 0D 02 02 05 89 8F 91 18 B2 [10:05:35]Write to MH i2c: E2 0D 00 00 18 80 0D 02 02 05 00 89 8F 91 18 B2 00 00 0F [10:05:35]Write i2c OK [10:05:35]MH_I2C_Read... [10:05:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:05:35]Read from MH i2c: E2 [10:05:35]MH_I2C_Read... [10:05:35]Read from MH i2c: E2 03 00 [10:05:35]MH_I2C_Read... [10:05:35]Read from MH i2c: E2 03 00 00 18 00 90 00 8C [10:05:35]RAPDU: 90 00 [10:05:35]wFMCommunicate OK [10:05:35]wFMCommunicate request_size=4 [10:05:35]MH_SAM_APDU [10:05:35]CAPDU: 80 0D 03 02 [10:05:35]Write to MH i2c: E2 08 00 01 18 80 0D 03 02 00 00 00 00 94 [10:05:35]Write i2c OK [10:05:35]MH_I2C_Read... [10:05:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:05:35]Read from MH i2c: E2 [10:05:35]MH_I2C_Read... [10:05:35]Read from MH i2c: E2 0B 00 [10:05:35]MH_I2C_Read... [10:05:35]Read from MH i2c: E2 0B 00 01 18 00 3E B4 7B C0 97 A5 5F 8A 90 00 E7 [10:05:35]RAPDU: 3E B4 7B C0 97 A5 5F 8A 90 00 [10:05:35]wFMCommunicate OK [10:05:35]SAM_PROTO_SignData done [10:05:35]FM_MakeSignedData done [10:05:35]CreateOFDProtocolMessage [10:05:35]wFMCommunicate request_size=4 [10:05:35]MH_SAM_APDU [10:05:35]CAPDU: 80 11 00 00 [10:05:35]Write to MH i2c: E2 08 00 02 18 80 11 00 00 00 00 00 00 94 [10:05:35]Write i2c OK [10:05:35]MH_I2C_Read... [10:05:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:05:35]Read from MH i2c: E2 [10:05:35]MH_I2C_Read... [10:05:35]Read from MH i2c: E2 17 00 [10:05:35]MH_I2C_Read... [10:05:35]Read from MH i2c: E2 17 00 02 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 DF [10:05:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [10:05:35]wFMCommunicate OK [10:05:35]CreateOFDProtocolMessage done [10:05:35]OFDSenderStorePacket 68537 [10:05:35]StoreOFDPacket docnum=68537 [10:05:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 AB E2 07 01 59 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 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 F1 E6 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 B9 0B 01 00 35 04 06 00 6A 89 8F 91 18 B2 3E B4 7B C0 97 A5 5F 8A [10:05:35]CheckFolder [10:05:35]dirname=/storage/ofd_packets [10:05:35]CheckFolder done [10:05:35]ProducePacketName [10:05:35]name=ofd_packets/00068537 [10:05:35]NVStorageSaveData ofd_packets/00068537 [10:05:35]File name is /storage/ofd_packets/00068537 [10:05:35]Write 301 bytes [10:05:35]NVStorageSaveData done [10:05:35]OFDSenderStorePacket done [10:05:35]KKMCreateOFDPacket done [10:05:35]NVStorageSaveData kkm_last_timestamp [10:05:35]File name is /storage/kkm_last_timestamp [10:05:35]Write 4 bytes [10:05:35]NVStorageSaveData done [10:05:35]ExternCall_PrintAddStr [10:05:35]wPrintStart [10:05:35]Write to MH i2c: 01 00 00 03 18 1B [10:05:35]Write i2c OK [10:05:35]MH_I2C_Read... [10:05:35]Read from MH i2c: 01 [10:05:35]MH_I2C_Read... [10:05:35]Read from MH i2c: 01 07 00 [10:05:35]MH_I2C_Read... [10:05:35]Read from MH i2c: 01 07 00 03 18 00 00 00 00 00 FF 0F 30 [10:05:35]RasterBufferAndPrint [10:05:35]line Счет N : (1)706659 [10:05:35]line ИНН: 02508201610067 [10:05:35]line Контрольно-Кассовый Чек [10:05:35]line ПРОДАЖА [10:05:35]line ТРК (МРК, ГНК) : 32 [10:05:35]line Товар: 2710124130 [10:05:35]line Аи-92-К-4 [10:05:35]line 5.980 * 66.90 [10:05:35]line = 400.06 [10:05:35]line НДС 12% НСП 1% [10:05:35]line > о реализуемом товаре [10:05:35]line ОКРУГЛЕНИЕ: -0.06 [10:05:35]line ИТОГО: 400.00 [10:05:35]line Внесено: 400.00 [10:05:35]line СДАЧА: 0.00 [10:05:35]line НСП 1% : 3.54 [10:05:35]line НДС 12% : 42.48 [10:05:35]line Наличными: 400.00 [10:05:35]line Безнал.: 0.00 [10:05:35]line Место: АЗС № 62 "Партнер Нефть" [10:05:35]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [10:05:35]line СНО: Общий режим [10:05:35]line Чек 35 04.06.2024 10:05 [10:05:35]line Смена: 325 ФФД: 1.0 [10:05:35]line ЗНМ: 0300000181 [10:05:35]line РНМ: 0000000000098096 [10:05:35]line Версия ККМ: 001 [10:05:35]line ФМ: 0000000000965400 [10:05:35]line ФД: 68537 [10:05:35]line ФПД: 117139051714738 [10:05:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T100537&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68537&fm=117139051714738&tin=02508201610067®Number=0000000000098096&sum=40000 [10:05:35]OFD Sender: Processing packet 68537 [packets to send 26, broken 25] [10:05:35]ProducePacketName [10:05:35]name=ofd_packets/00068537 [10:05:35]OFD Sender: To server: pG, [10:05:35]CommunicateWithHost lk.salyk.kg:30040 [10:05:35]ConnectInit lk.salyk.kg [10:05:35]written 0, free lines is 4095 [10:05:35]Connected sock=10 [10:05:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 AB E2 07 01 59 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 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 F1 E6 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 B9 0B 01 00 35 04 06 00 6A 89 8F 91 18 B2 3E B4 7B C0 97 A5 5F 8A [10:05:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 E0 22 47 00 D7 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 39 36 35 34 30 30 10 04 04 00 B9 0B 01 00 F4 03 04 00 EA 8D 5E 66 B6 04 01 00 00 7F 07 FB 37 70 4F D1 87 [10:05:36]CommunicateWithHost err = 0 [10:05:36]CheckOFDResponse [10:05:36]1017 (14) - 77093643461234 [10:05:36]1041 (16) - 0000000000965400 [10:05:36]1040 (4) - 68537 [10:05:36]1012 (4) - 04.06.2024 03:45 [10:05:36]1206 (1) - 0 [10:05:36]OFD Sender: Remove packet 68537 [10:05:36]ProducePacketName [10:05:36]name=ofd_packets/00068537 [10:05:36]NVStorageDeleteData [10:05:36]Write to MH i2c: 01 00 00 2E 18 46 [10:05:36]Write i2c OK [10:05:36]MH_I2C_Read... [10:05:36]Read from MH i2c: 01 [10:05:36]MH_I2C_Read... [10:05:36]Read from MH i2c: 01 07 00 [10:05:36]MH_I2C_Read... [10:05:36]Read from MH i2c: 01 07 00 2E 18 00 00 00 00 00 D4 0C 2D [10:05:36]RasterBufferAndPrint [10:05:36]line [10:05:36]line [10:05:36]line [10:05:36]line [10:05:36]line [10:05:36]written 0, free lines is 3292 [10:05:36]MH_Cut [10:05:36]Write to MH i2c: D1 01 00 35 18 01 1F [10:05:36]Write i2c OK [10:05:36]MH_I2C_Read... [10:05:36]Read from MH i2c: D1 [10:05:36]MH_I2C_Read... [10:05:36]Read from MH i2c: D1 01 00 [10:05:36]MH_I2C_Read... [10:05:36]Read from MH i2c: D1 01 00 35 18 00 1E [10:05:36]Write to MH i2c: 01 00 00 36 18 4E [10:05:36]Write i2c OK [10:05:36]MH_I2C_Read... [10:05:36]OFD Sender: No OFD packet to send [10:05:37]*** Cut start [10:05:37]*** Partial cut [10:05:37]*** CUTSNS_PIN = 1 [10:05:37]*** CUTSNS_PIN = 0 [10:05:37]*** Brake cut motor [10:05:37]Read from MH i2c: 01 [10:05:37]MH_I2C_Read... [10:05:37]*** Stop cut motor [10:05:37]*** Cut end [10:05:37]Read from MH i2c: 01 07 00 [10:05:37]MH_I2C_Read... [10:05:37]Read from MH i2c: 01 07 00 36 18 00 00 00 00 00 FF 0F 63 [10:05:37]process_action close_receipt done [10:05:37]requested_data is exist [10:05:37]produce_requested_data [10:05:37]requested_item fm.sn is exist - process it [10:05:37]wFMCommunicate request_size=4 [10:05:37]MH_SAM_APDU [10:05:37]CAPDU: 80 11 00 00 [10:05:37]Write to MH i2c: E2 08 00 37 18 80 11 00 00 00 00 00 00 C9 [10:05:37]Write i2c OK [10:05:37]MH_I2C_Read... [10:05:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:05:37]Read from MH i2c: E2 [10:05:37]MH_I2C_Read... [10:05:37]Read from MH i2c: E2 17 00 [10:05:37]MH_I2C_Read... [10:05:37]Read from MH i2c: E2 17 00 37 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 14 [10:05:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [10:05:37]wFMCommunicate OK [10:05:37]requested_item fd.num is exist - process it [10:05:37]SAM_PROTO_GetFieldsCounters [10:05:37]wFMCommunicate request_size=4 [10:05:37]MH_SAM_APDU [10:05:37]CAPDU: 80 13 00 00 [10:05:37]Write to MH i2c: E2 08 00 38 18 80 13 00 00 00 00 00 00 CC [10:05:37]Write i2c OK [10:05:37]MH_I2C_Read... [10:05:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:05:37]Read from MH i2c: E2 [10:05:37]MH_I2C_Read... [10:05:37]Read from MH i2c: E2 62 00 [10:05:37]MH_I2C_Read... [10:05:37]Read from MH i2c: E2 62 00 38 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 B9 0B 01 00 0E 04 04 00 45 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 60 [10:05:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 B9 0B 01 00 0E 04 04 00 45 01 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:05:37]wFMCommunicate OK [10:05:37]SAM_PROTO_GetFieldsCounters done [10:05:37]requested_item shift.num is exist - process it [10:05:37]requested_item shift.opened is exist - process it [10:05:37]req_shift_opened [10:05:37]FM_GetShiftState [10:05:37]SAM_PROTO_GetShiftState [10:05:37]wFMCommunicate request_size=4 [10:05:37]MH_SAM_APDU [10:05:37]CAPDU: 80 13 01 00 [10:05:37]Write to MH i2c: E2 08 00 39 18 80 13 01 00 00 00 00 00 CE [10:05:37]Write i2c OK [10:05:37]MH_I2C_Read... [10:05:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:05:38]Read from MH i2c: E2 [10:05:38]MH_I2C_Read... [10:05:38]Read from MH i2c: E2 0E 00 [10:05:38]MH_I2C_Read... [10:05:38]Read from MH i2c: E2 0E 00 39 18 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 6A [10:05:38]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [10:05:38]wFMCommunicate OK [10:05:38]SAM_PROTO_GetShiftState done [10:05:38]FM_GetShiftState done [10:05:38]req_shift_opened done [10:05:38]requested_item shift.open_date is exist - process it [10:05:38]req_shift_open_date [10:05:38]req_shift_open_date done [10:05:38]produce_requested_data done [10:05:38]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68537,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [10:05:38]process_action_free close_receipt [10:05:38]json_value_free [10:05:38]json_value_free done [10:05:38]process_json_proto returns [10:05:38]Send response to host [10:05:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68537,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [10:05:38]free response buf [10:05:38]execute_script done [10:05:38]execute_script returns [10:05:38]free content buf [10:05:38]Sock 9.Close socket [10:05:38]Sock 9.Thread stoped [10:05:41]OFD Sender: No OFD packet to send [10:05:46]OFD Sender: No OFD packet to send [10:05:51]OFD Sender: No OFD packet to send [10:05:56]OFD Sender: No OFD packet to send [10:06:01]OFD Sender: No OFD packet to send [10:06:06]OFD Sender: No OFD packet to send [10:06:11]OFD Sender: No OFD packet to send [10:06:16]OFD Sender: No OFD packet to send [10:06:21]OFD Sender: No OFD packet to send [10:06:26]OFD Sender: No OFD packet to send [10:06:31]OFD Sender: No OFD packet to send [10:06:36]OFD Sender: No OFD packet to send [10:06:41]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:20]accept exits with 7 [10:08:20]New connection [10:08:20]New thread 3067227492 created [10:08:20]Thread 3067084132 joined [10:08:20]Waiting for new connection... [10:08:20] Sock 7.Parse request [10:08:20]Sock 7.Check first char [10:08:20]Sock 7.First char is OK [10:08:20]request: POST /json_proto HTTP/1.0 [10:08:20]Method: POST [10:08:20]URL: /json_proto [10:08:20]Method is POST - this is cgi request [10:08:20]url: /json_proto [10:08:20]query_string will be loaded in cgi processing [10:08:20]execute_cgi json_proto POST (null) [10:08:20]execute_cgi path=json_proto method=POST [10:08:20]POST find Content-Length [10:08:20]Host: 172.17.36.132:8080 [10:08:20]Content-Length: 682 [10:08:20]Content-Type: application/json [10:08:20] [10:08:20]POST finish read [10:08:20]Found Content-Length = 682 [10:08:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706661", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:08:20]execute_script... [10:08: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)706661", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:08:20]POST & json_proto [10:08:20]process_json_proto [10:08:20]json parsed OK: [10:08:20]protocol is kg_v1.0 [10:08:20]action value=close_receipt [10:08:20]process_action close_receipt [10:08:20]cmd_close_receipt [10:08:20]MH_GetDate [10:08:20]Write to MH i2c: F0 00 00 3A 18 41 [10:08:20]Write i2c OK [10:08:20]MH_I2C_Read... [10:08:20]Read from MH i2c: F0 [10:08:20]MH_I2C_Read... [10:08:20]Read from MH i2c: F0 09 00 [10:08:20]MH_I2C_Read... [10:08:20]Read from MH i2c: F0 09 00 3A 18 00 97 E7 5E 66 B2 22 B0 64 74 [10:08:20]GetLastDocTimeStamp 1717495537 [10:08:20]current date 1717495703 [10:08:20]FM_GetShiftState [10:08:20]SAM_PROTO_GetShiftState [10:08:20]wFMCommunicate request_size=4 [10:08:20]MH_SAM_APDU [10:08:20]CAPDU: 80 13 01 00 [10:08:20]Write to MH i2c: E2 08 00 3B 18 80 13 01 00 00 00 00 00 D0 [10:08:20]Write i2c OK [10:08:20]MH_I2C_Read... [10:08:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:08:20]Read from MH i2c: E2 [10:08:20]MH_I2C_Read... [10:08:20]Read from MH i2c: E2 0E 00 [10:08:20]MH_I2C_Read... [10:08:20]Read from MH i2c: E2 0E 00 3B 18 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 6C [10:08:20]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [10:08:20]wFMCommunicate OK [10:08:20]SAM_PROTO_GetShiftState done [10:08:20]FM_GetShiftState done [10:08:20]opened in 1717460590 [10:08:20]opened+sec_in_day 1717546990 [10:08:20]quantity*price = 100015 [10:08:20]sum+1 = 100017 [10:08:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 36 04.06.2024 10:08 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68538 ФПД: 189451867953025 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T100823&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68538&fm=189451867953025&tin=02508201610067®Number=0000000000098096&sum=100000 [10:08:21]StoreToDocumentArchive [10:08:21]shift 325 fd 68538 [10:08:21]save to /storage/0325/doc_00068538 [10:08:21]save last doc name /storage/0325/doc_00068538 to /storage/kkm_last_doc_name [10:08:21]save OK [10:08:21]Clear old archive folders... [10:08:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:08:21]tlvbuf is 009F28D0 [10:08:21]SAM_PROTO_ClearQueue [10:08:21]wFMCommunicate request_size=4 [10:08:21]MH_SAM_APDU [10:08:21]CAPDU: 80 09 00 00 [10:08:21]Write to MH i2c: E2 08 00 48 18 80 09 00 00 00 00 00 00 D2 [10:08:21]Write i2c OK [10:08:21]MH_I2C_Read... [10:08:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:08:21]Read from MH i2c: E2 [10:08:21]MH_I2C_Read... [10:08:21]Read from MH i2c: E2 03 00 [10:08:21]MH_I2C_Read... [10:08:21]Read from MH i2c: E2 03 00 48 18 00 90 00 D4 [10:08:21]RAPDU: 90 00 [10:08:21]wFMCommunicate OK [10:08:21]SAM_PROTO_ClearQueue done [10:08:21]KKMCreateOFDPacket [10:08:21]OFDProtocolAddRootSTLVToBuf [10:08:21]FM_MakeSignedData [10:08:21]FM_MakeSignedData [10:08:21]SAM_PROTO_SignData [10:08:21]wFMCommunicate request_size=4 [10:08:21]MH_SAM_APDU [10:08:21]CAPDU: 80 0D 01 02 [10:08:21]Write to MH i2c: E2 08 00 49 18 80 0D 01 02 00 00 00 00 DA [10:08:21]Write i2c OK [10:08:21]MH_I2C_Read... [10:08:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:08:21]Read from MH i2c: E2 [10:08:21]MH_I2C_Read... [10:08:21]Read from MH i2c: E2 03 00 [10:08:21]MH_I2C_Read... [10:08:21]Read from MH i2c: E2 03 00 49 18 00 90 00 D5 [10:08:21]RAPDU: 90 00 [10:08:21]wFMCommunicate OK [10:08:21]wFMCommunicate request_size=255 [10:08:21]MH_SAM_APDU [10:08: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 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 97 E7 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 BA 0B 01 00 35 04 06 00 AC [10:08:21]Write to MH i2c: E2 02 01 4A 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 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 97 E7 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 BA 0B 01 00 35 04 06 00 AC 00 00 7F [10:08:21]Write i2c OK [10:08:21]MH_I2C_Read... [10:08:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:08:21]Read from MH i2c: E2 [10:08:21]MH_I2C_Read... [10:08:21]Read from MH i2c: E2 03 00 [10:08:21]MH_I2C_Read... [10:08:21]Read from MH i2c: E2 03 00 4A 18 00 90 00 D6 [10:08:21]RAPDU: 90 00 [10:08:21]wFMCommunicate OK [10:08:21]wFMCommunicate request_size=10 [10:08:21]MH_SAM_APDU [10:08:21]CAPDU: 80 0D 02 02 05 4E 33 4A 97 81 [10:08:21]Write to MH i2c: E2 0D 00 4B 18 80 0D 02 02 05 00 4E 33 4A 97 81 00 00 CA [10:08:21]Write i2c OK [10:08:21]MH_I2C_Read... [10:08:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:08:21]Read from MH i2c: E2 [10:08:21]MH_I2C_Read... [10:08:21]Read from MH i2c: E2 03 00 [10:08:21]MH_I2C_Read... [10:08:21]Read from MH i2c: E2 03 00 4B 18 00 90 00 D7 [10:08:21]RAPDU: 90 00 [10:08:21]wFMCommunicate OK [10:08:21]wFMCommunicate request_size=4 [10:08:21]MH_SAM_APDU [10:08:21]CAPDU: 80 0D 03 02 [10:08:21]Write to MH i2c: E2 08 00 4C 18 80 0D 03 02 00 00 00 00 DF [10:08:21]Write i2c OK [10:08:21]MH_I2C_Read... [10:08:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:08:21]Read from MH i2c: E2 [10:08:21]MH_I2C_Read... [10:08:21]Read from MH i2c: E2 0B 00 [10:08:21]MH_I2C_Read... [10:08:21]Read from MH i2c: E2 0B 00 4C 18 00 73 9C 3E 30 42 B4 E8 BC 90 00 F7 [10:08:21]RAPDU: 73 9C 3E 30 42 B4 E8 BC 90 00 [10:08:21]wFMCommunicate OK [10:08:21]SAM_PROTO_SignData done [10:08:21]FM_MakeSignedData done [10:08:21]CreateOFDProtocolMessage [10:08:21]wFMCommunicate request_size=4 [10:08:21]MH_SAM_APDU [10:08:21]CAPDU: 80 11 00 00 [10:08:21]Write to MH i2c: E2 08 00 4D 18 80 11 00 00 00 00 00 00 DF [10:08:21]Write i2c OK [10:08:21]MH_I2C_Read... [10:08:21]OFD Sender: No OFD packet to send [10:08:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:08:21]Read from MH i2c: E2 [10:08:21]MH_I2C_Read... [10:08:21]Read from MH i2c: E2 17 00 [10:08:21]MH_I2C_Read... [10:08:21]Read from MH i2c: E2 17 00 4D 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 2A [10:08:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [10:08:21]wFMCommunicate OK [10:08:21]CreateOFDProtocolMessage done [10:08:21]OFDSenderStorePacket 68538 [10:08:21]StoreOFDPacket docnum=68538 [10:08:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 B0 24 07 01 DE 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 97 E7 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 BA 0B 01 00 35 04 06 00 AC 4E 33 4A 97 81 73 9C 3E 30 42 B4 E8 BC [10:08:21]CheckFolder [10:08:21]dirname=/storage/ofd_packets [10:08:21]CheckFolder done [10:08:21]ProducePacketName [10:08:21]name=ofd_packets/00068538 [10:08:21]NVStorageSaveData ofd_packets/00068538 [10:08:21]File name is /storage/ofd_packets/00068538 [10:08:21]Write 301 bytes [10:08:21]NVStorageSaveData done [10:08:21]OFDSenderStorePacket done [10:08:21]KKMCreateOFDPacket done [10:08:21]NVStorageSaveData kkm_last_timestamp [10:08:21]File name is /storage/kkm_last_timestamp [10:08:21]Write 4 bytes [10:08:21]NVStorageSaveData done [10:08:21]ExternCall_PrintAddStr [10:08:21]wPrintStart [10:08:21]Write to MH i2c: 01 00 00 4E 18 66 [10:08:21]Write i2c OK [10:08:21]MH_I2C_Read... [10:08:21]Read from MH i2c: 01 [10:08:21]MH_I2C_Read... [10:08:21]Read from MH i2c: 01 07 00 [10:08:21]MH_I2C_Read... [10:08:21]Read from MH i2c: 01 07 00 4E 18 00 00 00 00 00 FF 0F 7B [10:08:21]RasterBufferAndPrint [10:08:21]line Счет N : (1)706661 [10:08:21]line ИНН: 02508201610067 [10:08:21]line Контрольно-Кассовый Чек [10:08:21]line ПРОДАЖА [10:08:21]line ТРК (МРК, ГНК) : 53 [10:08:21]line Товар: 2710124130 [10:08:21]line Аи-92-К-4 [10:08:21]line 14.950 * 66.90 [10:08:21]line = 1000.16 [10:08:21]line НДС 12% НСП 1% [10:08:21]line > о реализуемом товаре [10:08:21]line ОКРУГЛЕНИЕ: -0.16 [10:08:21]line ИТОГО: 1000.00 [10:08:21]line Внесено: 1000.00 [10:08:21]line СДАЧА: 0.00 [10:08:21]line НСП 1% : 8.85 [10:08:21]line НДС 12% : 106.21 [10:08:21]line Наличными: 1000.00 [10:08:21]line Безнал.: 0.00 [10:08:21]line Место: АЗС № 62 "Партнер Нефть" [10:08:21]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [10:08:21]line СНО: Общий режим [10:08:21]line Чек 36 04.06.2024 10:08 [10:08:21]line Смена: 325 ФФД: 1.0 [10:08:21]line ЗНМ: 0300000181 [10:08:21]line РНМ: 0000000000098096 [10:08:21]line Версия ККМ: 001 [10:08:22]line ФМ: 0000000000965400 [10:08:22]line ФД: 68538 [10:08:22]line ФПД: 189451867953025 [10:08:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T100823&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68538&fm=189451867953025&tin=02508201610067®Number=0000000000098096&sum=100000 [10:08:22]OFD Sender: Processing packet 68538 [packets to send 26, broken 25] [10:08:22]ProducePacketName [10:08:22]name=ofd_packets/00068538 [10:08:22]OFD Sender: To server: pG, [10:08:22]CommunicateWithHost lk.salyk.kg:30040 [10:08:22]ConnectInit lk.salyk.kg [10:08:22]written 0, free lines is 4095 [10:08:22]Connected sock=10 [10:08:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 B0 24 07 01 DE 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 97 E7 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 BA 0B 01 00 35 04 06 00 AC 4E 33 4A 97 81 73 9C 3E 30 42 B4 E8 BC [10:08:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 43 30 47 00 70 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 39 36 35 34 30 30 10 04 04 00 BA 0B 01 00 F4 03 04 00 90 8E 5E 66 B6 04 01 00 00 D5 7E 54 90 A8 93 07 3E [10:08:22]CommunicateWithHost err = 0 [10:08:22]CheckOFDResponse [10:08:22]1017 (14) - 77093643461234 [10:08:22]1041 (16) - 0000000000965400 [10:08:22]1040 (4) - 68538 [10:08:22]1012 (4) - 04.06.2024 03:48 [10:08:22]1206 (1) - 0 [10:08:22]OFD Sender: Remove packet 68538 [10:08:22]ProducePacketName [10:08:22]name=ofd_packets/00068538 [10:08:22]NVStorageDeleteData [10:08:22]Write to MH i2c: 01 00 00 79 18 91 [10:08:22]Write i2c OK [10:08:22]MH_I2C_Read... [10:08:22]Read from MH i2c: 01 [10:08:22]MH_I2C_Read... [10:08:22]Read from MH i2c: 01 07 00 [10:08:22]MH_I2C_Read... [10:08:22]Read from MH i2c: 01 07 00 79 18 00 00 00 00 00 CD 0C 71 [10:08:22]RasterBufferAndPrint [10:08:22]line [10:08:22]line [10:08:22]line [10:08:22]line [10:08:22]line [10:08:22]written 0, free lines is 3284 [10:08:22]MH_Cut [10:08:22]Write to MH i2c: D1 01 00 80 18 01 6A [10:08:22]Write i2c OK [10:08:22]MH_I2C_Read... [10:08:22]Read from MH i2c: D1 [10:08:22]MH_I2C_Read... [10:08:22]Read from MH i2c: D1 01 00 [10:08:22]MH_I2C_Read... [10:08:22]Read from MH i2c: D1 01 00 80 18 00 69 [10:08:22]Write to MH i2c: 01 00 00 81 18 99 [10:08:22]Write i2c OK [10:08:22]MH_I2C_Read... [10:08:22]OFD Sender: No OFD packet to send [10:08:23]*** Cut start [10:08:23]*** Partial cut [10:08:23]*** CUTSNS_PIN = 1 [10:08:23]*** CUTSNS_PIN = 0 [10:08:23]*** Brake cut motor [10:08:24]Read from MH i2c: 01 [10:08:24]MH_I2C_Read... [10:08:24]*** Stop cut motor [10:08:24]*** Cut end [10:08:24]Read from MH i2c: 01 07 00 [10:08:24]MH_I2C_Read... [10:08:24]Read from MH i2c: 01 07 00 81 18 00 00 00 00 00 FF 0F AE [10:08:24]process_action close_receipt done [10:08:24]requested_data is exist [10:08:24]produce_requested_data [10:08:24]requested_item fm.sn is exist - process it [10:08:24]wFMCommunicate request_size=4 [10:08:24]MH_SAM_APDU [10:08:24]CAPDU: 80 11 00 00 [10:08:24]Write to MH i2c: E2 08 00 82 18 80 11 00 00 00 00 00 00 14 [10:08:24]Write i2c OK [10:08:24]MH_I2C_Read... [10:08:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:08:24]Read from MH i2c: E2 [10:08:24]MH_I2C_Read... [10:08:24]Read from MH i2c: E2 17 00 [10:08:24]MH_I2C_Read... [10:08:24]Read from MH i2c: E2 17 00 82 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 5F [10:08:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [10:08:24]wFMCommunicate OK [10:08:24]requested_item fd.num is exist - process it [10:08:24]SAM_PROTO_GetFieldsCounters [10:08:24]wFMCommunicate request_size=4 [10:08:24]MH_SAM_APDU [10:08:24]CAPDU: 80 13 00 00 [10:08:24]Write to MH i2c: E2 08 00 83 18 80 13 00 00 00 00 00 00 17 [10:08:24]Write i2c OK [10:08:24]MH_I2C_Read... [10:08:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:08:24]Read from MH i2c: E2 [10:08:24]MH_I2C_Read... [10:08:24]Read from MH i2c: E2 62 00 [10:08:24]MH_I2C_Read... [10:08:24]Read from MH i2c: E2 62 00 83 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 BA 0B 01 00 0E 04 04 00 45 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 AF [10:08:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 BA 0B 01 00 0E 04 04 00 45 01 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:08:24]wFMCommunicate OK [10:08:24]SAM_PROTO_GetFieldsCounters done [10:08:24]requested_item shift.num is exist - process it [10:08:24]requested_item shift.opened is exist - process it [10:08:24]req_shift_opened [10:08:24]FM_GetShiftState [10:08:24]SAM_PROTO_GetShiftState [10:08:24]wFMCommunicate request_size=4 [10:08:24]MH_SAM_APDU [10:08:24]CAPDU: 80 13 01 00 [10:08:24]Write to MH i2c: E2 08 00 84 18 80 13 01 00 00 00 00 00 19 [10:08:24]Write i2c OK [10:08:24]MH_I2C_Read... [10:08:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:08:24]Read from MH i2c: E2 [10:08:24]MH_I2C_Read... [10:08:24]Read from MH i2c: E2 0E 00 [10:08:24]MH_I2C_Read... [10:08:24]Read from MH i2c: E2 0E 00 84 18 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 B5 [10:08:24]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [10:08:24]wFMCommunicate OK [10:08:24]SAM_PROTO_GetShiftState done [10:08:24]FM_GetShiftState done [10:08:24]req_shift_opened done [10:08:24]requested_item shift.open_date is exist - process it [10:08:24]req_shift_open_date [10:08:24]req_shift_open_date done [10:08:24]produce_requested_data done [10:08:24]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68538,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [10:08:24]process_action_free close_receipt [10:08:24]json_value_free [10:08:24]json_value_free done [10:08:24]process_json_proto returns [10:08:24]Send response to host [10:08:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68538,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [10:08:24]free response buf [10:08:24]execute_script done [10:08:24]execute_script returns [10:08:24]free content buf [10:08:24]Sock 7.Close socket [10:08:24]Sock 7.Thread stoped [10:08:27]OFD Sender: No OFD packet to send [10:08:32]OFD Sender: No OFD packet to send [10:08:37]OFD Sender: No OFD packet to send [10:08:42]OFD Sender: No OFD packet to send [10:08:43]accept exits with 9 [10:08:43]New connection [10:08:43]New thread 3067084132 created [10:08:43]Thread 3067227492 joined [10:08:43]Waiting for new connection... [10:08:43] Sock 9.Parse request [10:08:43]Sock 9.Check first char [10:08:43]Sock 9.First char is OK [10:08:43]request: POST /json_proto HTTP/1.0 [10:08:43]Method: POST [10:08:43]URL: /json_proto [10:08:43]Method is POST - this is cgi request [10:08:43]url: /json_proto [10:08:43]query_string will be loaded in cgi processing [10:08:43]execute_cgi json_proto POST (null) [10:08:43]execute_cgi path=json_proto method=POST [10:08:43]POST find Content-Length [10:08:43]Host: 172.17.36.132:8080 [10:08:43]Content-Length: 848 [10:08:43]Content-Type: application/json [10:08:43] [10:08:43]POST finish read [10:08:43]Found Content-Length = 848 [10:08:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706662", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1500.28 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:08:43]execute_script... [10:08: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)706662", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1500.28 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:08:43]POST & json_proto [10:08:43]process_json_proto [10:08:43]json parsed OK: [10:08:43]protocol is kg_v1.0 [10:08:43]action value=close_receipt [10:08:43]process_action close_receipt [10:08:43]cmd_close_receipt [10:08:43]MH_GetDate [10:08:43]Write to MH i2c: F0 00 00 85 18 8C [10:08:43]Write i2c OK [10:08:43]MH_I2C_Read... [10:08:43]Read from MH i2c: F0 [10:08:43]MH_I2C_Read... [10:08:43]Read from MH i2c: F0 09 00 [10:08:43]MH_I2C_Read... [10:08:43]Read from MH i2c: F0 09 00 85 18 00 AF E7 5E 66 B2 22 B0 64 D7 [10:08:43]GetLastDocTimeStamp 1717495703 [10:08:43]current date 1717495727 [10:08:43]FM_GetShiftState [10:08:43]SAM_PROTO_GetShiftState [10:08:43]wFMCommunicate request_size=4 [10:08:43]MH_SAM_APDU [10:08:43]CAPDU: 80 13 01 00 [10:08:43]Write to MH i2c: E2 08 00 86 18 80 13 01 00 00 00 00 00 1B [10:08:43]Write i2c OK [10:08:43]MH_I2C_Read... [10:08:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:08:43]Read from MH i2c: E2 [10:08:43]MH_I2C_Read... [10:08:43]Read from MH i2c: E2 0E 00 [10:08:43]MH_I2C_Read... [10:08:43]Read from MH i2c: E2 0E 00 86 18 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 B7 [10:08:43]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [10:08:43]wFMCommunicate OK [10:08:43]SAM_PROTO_GetShiftState done [10:08:43]FM_GetShiftState done [10:08:43]opened in 1717460590 [10:08:43]opened+sec_in_day 1717546990 [10:08:43]quantity*price = 150028 [10:08:43]sum+1 = 150029 [10:08:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.28 НСП 1% : 13.28 НДС 12% : 159.32 Наличными: 0.00 Безнал.: 1500.28 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 37 04.06.2024 10:08 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000965400 ФД: 68539 ФПД: 181622914493671 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T100847&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68539&fm=181622914493671&tin=02508201610067®Number=0000000000098096&sum=150028 [10:08:44]StoreToDocumentArchive [10:08:44]shift 325 fd 68539 [10:08:44]save to /storage/0325/doc_00068539 [10:08:44]save last doc name /storage/0325/doc_00068539 to /storage/kkm_last_doc_name [10:08:44]save OK [10:08:44]Clear old archive folders... [10:08:44]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:08:44]tlvbuf is 009C8800 [10:08:44]SAM_PROTO_ClearQueue [10:08:44]wFMCommunicate request_size=4 [10:08:44]MH_SAM_APDU [10:08:44]CAPDU: 80 09 00 00 [10:08:44]Write to MH i2c: E2 08 00 93 18 80 09 00 00 00 00 00 00 1D [10:08:44]Write i2c OK [10:08:44]MH_I2C_Read... [10:08:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:08:44]Read from MH i2c: E2 [10:08:44]MH_I2C_Read... [10:08:44]Read from MH i2c: E2 03 00 [10:08:44]MH_I2C_Read... [10:08:44]Read from MH i2c: E2 03 00 93 18 00 90 00 1F [10:08:44]RAPDU: 90 00 [10:08:44]wFMCommunicate OK [10:08:44]SAM_PROTO_ClearQueue done [10:08:44]KKMCreateOFDPacket [10:08:44]OFDProtocolAddRootSTLVToBuf [10:08:44]FM_MakeSignedData [10:08:44]FM_MakeSignedData [10:08:44]SAM_PROTO_SignData [10:08:44]wFMCommunicate request_size=4 [10:08:44]MH_SAM_APDU [10:08:44]CAPDU: 80 0D 01 02 [10:08:44]Write to MH i2c: E2 08 00 94 18 80 0D 01 02 00 00 00 00 25 [10:08:44]Write i2c OK [10:08:44]MH_I2C_Read... [10:08:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:08:44]Read from MH i2c: E2 [10:08:44]MH_I2C_Read... [10:08:44]Read from MH i2c: E2 03 00 [10:08:44]MH_I2C_Read... [10:08:44]Read from MH i2c: E2 03 00 94 18 00 90 00 20 [10:08:44]RAPDU: 90 00 [10:08:44]wFMCommunicate OK [10:08:44]wFMCommunicate request_size=255 [10:08:44]MH_SAM_APDU [10:08:44]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 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 25 00 00 00 F4 03 04 00 AF E7 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 BB 0B 01 00 35 04 06 00 [10:08:44]Write to MH i2c: E2 02 01 95 18 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 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 25 00 00 00 F4 03 04 00 AF E7 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 BB 0B 01 00 35 04 06 00 00 00 F5 [10:08:44]Write i2c OK [10:08:44]MH_I2C_Read... [10:08:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:08:45]Read from MH i2c: E2 [10:08:45]MH_I2C_Read... [10:08:45]Read from MH i2c: E2 03 00 [10:08:45]MH_I2C_Read... [10:08:45]Read from MH i2c: E2 03 00 95 18 00 90 00 21 [10:08:45]RAPDU: 90 00 [10:08:45]wFMCommunicate OK [10:08:45]wFMCommunicate request_size=11 [10:08:45]MH_SAM_APDU [10:08:45]CAPDU: 80 0D 02 02 06 A5 2F 61 4D 2C E7 [10:08:45]Write to MH i2c: E2 0E 00 96 18 80 0D 02 02 06 00 A5 2F 61 4D 2C E7 00 00 C9 [10:08:45]Write i2c OK [10:08:45]MH_I2C_Read... [10:08:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:08:45]Read from MH i2c: E2 [10:08:45]MH_I2C_Read... [10:08:45]Read from MH i2c: E2 03 00 [10:08:45]MH_I2C_Read... [10:08:45]Read from MH i2c: E2 03 00 96 18 00 90 00 22 [10:08:45]RAPDU: 90 00 [10:08:45]wFMCommunicate OK [10:08:45]wFMCommunicate request_size=4 [10:08:45]MH_SAM_APDU [10:08:45]CAPDU: 80 0D 03 02 [10:08:45]Write to MH i2c: E2 08 00 97 18 80 0D 03 02 00 00 00 00 2A [10:08:45]Write i2c OK [10:08:45]MH_I2C_Read... [10:08:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:08:45]Read from MH i2c: E2 [10:08:45]MH_I2C_Read... [10:08:45]Read from MH i2c: E2 0B 00 [10:08:45]MH_I2C_Read... [10:08:45]Read from MH i2c: E2 0B 00 97 18 00 ED E7 32 93 68 E7 38 8A 90 00 D5 [10:08:45]RAPDU: ED E7 32 93 68 E7 38 8A 90 00 [10:08:45]wFMCommunicate OK [10:08:45]SAM_PROTO_SignData done [10:08:45]FM_MakeSignedData done [10:08:45]CreateOFDProtocolMessage [10:08:45]wFMCommunicate request_size=4 [10:08:45]MH_SAM_APDU [10:08:45]CAPDU: 80 11 00 00 [10:08:45]Write to MH i2c: E2 08 00 98 18 80 11 00 00 00 00 00 00 2A [10:08:45]Write i2c OK [10:08:45]MH_I2C_Read... [10:08:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:08:45]Read from MH i2c: E2 [10:08:45]MH_I2C_Read... [10:08:45]Read from MH i2c: E2 17 00 [10:08:45]MH_I2C_Read... [10:08:45]Read from MH i2c: E2 17 00 98 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 75 [10:08:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [10:08:45]wFMCommunicate OK [10:08:45]CreateOFDProtocolMessage done [10:08:45]OFDSenderStorePacket 68539 [10:08:45]StoreOFDPacket docnum=68539 [10:08:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 6A 69 08 01 63 1C 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 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 25 00 00 00 F4 03 04 00 AF E7 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 BB 0B 01 00 35 04 06 00 A5 2F 61 4D 2C E7 ED E7 32 93 68 E7 38 8A [10:08:45]CheckFolder [10:08:45]dirname=/storage/ofd_packets [10:08:45]CheckFolder done [10:08:45]ProducePacketName [10:08:45]name=ofd_packets/00068539 [10:08:45]NVStorageSaveData ofd_packets/00068539 [10:08:45]File name is /storage/ofd_packets/00068539 [10:08:45]Write 302 bytes [10:08:45]NVStorageSaveData done [10:08:45]OFDSenderStorePacket done [10:08:45]KKMCreateOFDPacket done [10:08:45]NVStorageSaveData kkm_last_timestamp [10:08:45]File name is /storage/kkm_last_timestamp [10:08:45]Write 4 bytes [10:08:45]NVStorageSaveData done [10:08:45]ExternCall_PrintAddStr [10:08:45]wPrintStart [10:08:45]Write to MH i2c: 01 00 00 99 18 B1 [10:08:45]Write i2c OK [10:08:45]MH_I2C_Read... [10:08:45]Read from MH i2c: 01 [10:08:45]MH_I2C_Read... [10:08:45]Read from MH i2c: 01 07 00 [10:08:45]MH_I2C_Read... [10:08:45]Read from MH i2c: 01 07 00 99 18 00 00 00 00 00 FF 0F C6 [10:08:45]RasterBufferAndPrint [10:08:45]line Счет N : (1)706662 [10:08:45]line ИНН: 02508201610067 [10:08:45]line Контрольно-Кассовый Чек [10:08:45]line ПРОДАЖА [10:08:45]line ТРК (МРК, ГНК) : 11 [10:08:45]line Товар: 2710194210 [10:08:45]line ДТ(л)-К-4 [10:08:45]line 20.580 * 72.90 [10:08:45]line = 1500.28 [10:08:45]line НДС 12% НСП 1% [10:08:45]line > о реализуемом товаре [10:08:45]line ИТОГО: 1500.28 [10:08:45]line НСП 1% : 13.28 [10:08:45]line НДС 12% : 159.32 [10:08:45]line Наличными: 0.00 [10:08:45]line Безнал.: 1500.28 [10:08:45]line Место: АЗС № 62 "Партнер Нефть" [10:08:45]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [10:08:45]line СНО: Общий режим [10:08:45]line Чек 37 04.06.2024 10:08 [10:08:45]line Смена: 325 ФФД: 1.0 [10:08:45]line ЗНМ: 0300000181 [10:08:45]line РНМ: 0000000000098096 [10:08:45]line Версия ККМ: 001 [10:08:45]line Платежная система: АКБ Кыргызстан [10:08:45]line ФМ: 0000000000965400 [10:08:45]line ФД: 68539 [10:08:45]line ФПД: 181622914493671 [10:08:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T100847&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68539&fm=181622914493671&tin=02508201610067®Number=0000000000098096&sum=150028 [10:08:45]OFD Sender: Processing packet 68539 [packets to send 26, broken 25] [10:08:45]ProducePacketName [10:08:45]name=ofd_packets/00068539 [10:08:45]OFD Sender: To server: pG, [10:08:45]CommunicateWithHost lk.salyk.kg:30040 [10:08:45]ConnectInit lk.salyk.kg [10:08:45]written 0, free lines is 4095 [10:08:45]Connected sock=10 [10:08:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 6A 69 08 01 63 1C 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 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 25 00 00 00 F4 03 04 00 AF E7 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 BB 0B 01 00 35 04 06 00 A5 2F 61 4D 2C E7 ED E7 32 93 68 E7 38 8A [10:08:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 86 E4 47 00 59 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 39 36 35 34 30 30 10 04 04 00 BB 0B 01 00 F4 03 04 00 A8 8E 5E 66 B6 04 01 00 00 CC E6 4B 6E 32 E1 D7 ED [10:08:45]CommunicateWithHost err = 0 [10:08:45]CheckOFDResponse [10:08:45]1017 (14) - 77093643461234 [10:08:45]1041 (16) - 0000000000965400 [10:08:45]1040 (4) - 68539 [10:08:45]1012 (4) - 04.06.2024 03:48 [10:08:45]1206 (1) - 0 [10:08:45]OFD Sender: Remove packet 68539 [10:08:45]ProducePacketName [10:08:45]name=ofd_packets/00068539 [10:08:45]NVStorageDeleteData [10:08:46]Write to MH i2c: 01 00 00 C3 18 DB [10:08:46]Write i2c OK [10:08:46]MH_I2C_Read... [10:08:46]Read from MH i2c: 01 [10:08:46]MH_I2C_Read... [10:08:46]Read from MH i2c: 01 07 00 [10:08:46]MH_I2C_Read... [10:08:46]Read from MH i2c: 01 07 00 C3 18 00 00 00 00 00 E1 0C CF [10:08:46]RasterBufferAndPrint [10:08:46]line [10:08:46]line [10:08:46]line [10:08:46]line [10:08:46]line [10:08:46]written 0, free lines is 3302 [10:08:46]MH_Cut [10:08:46]Write to MH i2c: D1 01 00 CA 18 01 B4 [10:08:46]Write i2c OK [10:08:46]MH_I2C_Read... [10:08:46]Read from MH i2c: D1 [10:08:46]MH_I2C_Read... [10:08:46]Read from MH i2c: D1 01 00 [10:08:46]MH_I2C_Read... [10:08:46]Read from MH i2c: D1 01 00 CA 18 00 B3 [10:08:46]Write to MH i2c: 01 00 00 CB 18 E3 [10:08:46]Write i2c OK [10:08:46]MH_I2C_Read... [10:08:46]OFD Sender: No OFD packet to send [10:08:46]*** Cut start [10:08:46]*** Partial cut [10:08:46]*** CUTSNS_PIN = 1 [10:08:47]*** CUTSNS_PIN = 0 [10:08:47]*** Brake cut motor [10:08:47]Read from MH i2c: 01 [10:08:47]MH_I2C_Read... [10:08:47]*** Stop cut motor [10:08:47]*** Cut end [10:08:47]Read from MH i2c: 01 07 00 [10:08:47]MH_I2C_Read... [10:08:47]Read from MH i2c: 01 07 00 CB 18 00 00 00 00 00 FF 0F F8 [10:08:47]process_action close_receipt done [10:08:47]requested_data is exist [10:08:47]produce_requested_data [10:08:47]requested_item fm.sn is exist - process it [10:08:47]wFMCommunicate request_size=4 [10:08:47]MH_SAM_APDU [10:08:47]CAPDU: 80 11 00 00 [10:08:47]Write to MH i2c: E2 08 00 CC 18 80 11 00 00 00 00 00 00 5E [10:08:47]Write i2c OK [10:08:47]MH_I2C_Read... [10:08:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:08:47]Read from MH i2c: E2 [10:08:47]MH_I2C_Read... [10:08:47]Read from MH i2c: E2 17 00 [10:08:47]MH_I2C_Read... [10:08:47]Read from MH i2c: E2 17 00 CC 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 A9 [10:08:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [10:08:47]wFMCommunicate OK [10:08:47]requested_item fd.num is exist - process it [10:08:47]SAM_PROTO_GetFieldsCounters [10:08:47]wFMCommunicate request_size=4 [10:08:47]MH_SAM_APDU [10:08:47]CAPDU: 80 13 00 00 [10:08:47]Write to MH i2c: E2 08 00 CD 18 80 13 00 00 00 00 00 00 61 [10:08:47]Write i2c OK [10:08:47]MH_I2C_Read... [10:08:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:08:47]Read from MH i2c: E2 [10:08:47]MH_I2C_Read... [10:08:47]Read from MH i2c: E2 62 00 [10:08:47]MH_I2C_Read... [10:08:47]Read from MH i2c: E2 62 00 CD 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 BB 0B 01 00 0E 04 04 00 45 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 FD [10:08:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 BB 0B 01 00 0E 04 04 00 45 01 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:08:47]wFMCommunicate OK [10:08:47]SAM_PROTO_GetFieldsCounters done [10:08:47]requested_item shift.num is exist - process it [10:08:47]requested_item shift.opened is exist - process it [10:08:47]req_shift_opened [10:08:47]FM_GetShiftState [10:08:47]SAM_PROTO_GetShiftState [10:08:47]wFMCommunicate request_size=4 [10:08:47]MH_SAM_APDU [10:08:47]CAPDU: 80 13 01 00 [10:08:47]Write to MH i2c: E2 08 00 CE 18 80 13 01 00 00 00 00 00 63 [10:08:47]Write i2c OK [10:08:47]MH_I2C_Read... [10:08:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:08:47]Read from MH i2c: E2 [10:08:47]MH_I2C_Read... [10:08:47]Read from MH i2c: E2 0E 00 [10:08:47]MH_I2C_Read... [10:08:47]Read from MH i2c: E2 0E 00 CE 18 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 FF [10:08:47]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [10:08:47]wFMCommunicate OK [10:08:47]SAM_PROTO_GetShiftState done [10:08:47]FM_GetShiftState done [10:08:47]req_shift_opened done [10:08:47]requested_item shift.open_date is exist - process it [10:08:47]req_shift_open_date [10:08:47]req_shift_open_date done [10:08:47]produce_requested_data done [10:08:47]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68539,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [10:08:47]process_action_free close_receipt [10:08:47]json_value_free [10:08:47]json_value_free done [10:08:47]process_json_proto returns [10:08:47]Send response to host [10:08:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68539,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [10:08:47]free response buf [10:08:47]execute_script done [10:08:47]execute_script returns [10:08:47]free content buf [10:08:47]Sock 9.Close socket [10:08:47]Sock 9.Thread stoped [10:08:48]accept exits with 7 [10:08:48]New connection [10:08:48]New thread 3067227492 created [10:08:48]Thread 3067084132 joined [10:08:48]Waiting for new connection... [10:08:48] Sock 7.Parse request [10:08:48]Sock 7.Check first char [10:08:48]Sock 7.First char is OK [10:08:48]request: POST /json_proto HTTP/1.0 [10:08:48]Method: POST [10:08:48]URL: /json_proto [10:08:48]Method is POST - this is cgi request [10:08:48]url: /json_proto [10:08:48]query_string will be loaded in cgi processing [10:08:48]execute_cgi json_proto POST (null) [10:08:48]execute_cgi path=json_proto method=POST [10:08:48]POST find Content-Length [10:08:48]Host: 172.17.36.132:8080 [10:08:48]Content-Length: 682 [10:08:48]Content-Type: application/json [10:08:48] [10:08:48]POST finish read [10:08:48]Found Content-Length = 682 [10:08:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706660", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:08:48]execute_script... [10:08: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)706660", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:08:48]POST & json_proto [10:08:48]process_json_proto [10:08:48]json parsed OK: [10:08:48]protocol is kg_v1.0 [10:08:48]action value=close_receipt [10:08:48]process_action close_receipt [10:08:48]cmd_close_receipt [10:08:48]MH_GetDate [10:08:48]Write to MH i2c: F0 00 00 CF 18 D6 [10:08:48]Write i2c OK [10:08:48]MH_I2C_Read... [10:08:48]Read from MH i2c: F0 [10:08:48]MH_I2C_Read... [10:08:48]Read from MH i2c: F0 09 00 [10:08:48]MH_I2C_Read... [10:08:48]Read from MH i2c: F0 09 00 CF 18 00 B3 E7 5E 66 B2 22 B0 64 25 [10:08:48]GetLastDocTimeStamp 1717495727 [10:08:48]current date 1717495731 [10:08:48]FM_GetShiftState [10:08:48]SAM_PROTO_GetShiftState [10:08:48]wFMCommunicate request_size=4 [10:08:48]MH_SAM_APDU [10:08:48]CAPDU: 80 13 01 00 [10:08:48]Write to MH i2c: E2 08 00 D0 18 80 13 01 00 00 00 00 00 65 [10:08:48]Write i2c OK [10:08:48]MH_I2C_Read... [10:08:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:08:48]Read from MH i2c: E2 [10:08:48]MH_I2C_Read... [10:08:48]Read from MH i2c: E2 0E 00 [10:08:48]MH_I2C_Read... [10:08:48]Read from MH i2c: E2 0E 00 D0 18 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 01 [10:08:48]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [10:08:48]wFMCommunicate OK [10:08:48]SAM_PROTO_GetShiftState done [10:08:48]FM_GetShiftState done [10:08:48]opened in 1717460590 [10:08:48]opened+sec_in_day 1717546990 [10:08:48]quantity*price = 100015 [10:08:48]sum+1 = 100017 [10:08:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 38 04.06.2024 10:08 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68540 ФПД: 169164569456037 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T100851&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68540&fm=169164569456037&tin=02508201610067®Number=0000000000098096&sum=100000 [10:08:49]StoreToDocumentArchive [10:08:49]shift 325 fd 68540 [10:08:49]save to /storage/0325/doc_00068540 [10:08:49]save last doc name /storage/0325/doc_00068540 to /storage/kkm_last_doc_name [10:08:49]save OK [10:08:49]Clear old archive folders... [10:08:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:08:49]tlvbuf is 009EBB70 [10:08:49]SAM_PROTO_ClearQueue [10:08:49]wFMCommunicate request_size=4 [10:08:49]MH_SAM_APDU [10:08:49]CAPDU: 80 09 00 00 [10:08:49]Write to MH i2c: E2 08 00 DD 18 80 09 00 00 00 00 00 00 67 [10:08:49]Write i2c OK [10:08:49]MH_I2C_Read... [10:08:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:08:49]Read from MH i2c: E2 [10:08:49]MH_I2C_Read... [10:08:49]Read from MH i2c: E2 03 00 [10:08:49]MH_I2C_Read... [10:08:49]Read from MH i2c: E2 03 00 DD 18 00 90 00 69 [10:08:49]RAPDU: 90 00 [10:08:49]wFMCommunicate OK [10:08:49]SAM_PROTO_ClearQueue done [10:08:49]KKMCreateOFDPacket [10:08:49]OFDProtocolAddRootSTLVToBuf [10:08:49]FM_MakeSignedData [10:08:49]FM_MakeSignedData [10:08:49]SAM_PROTO_SignData [10:08:49]wFMCommunicate request_size=4 [10:08:49]MH_SAM_APDU [10:08:49]CAPDU: 80 0D 01 02 [10:08:49]Write to MH i2c: E2 08 00 DE 18 80 0D 01 02 00 00 00 00 6F [10:08:49]Write i2c OK [10:08:49]MH_I2C_Read... [10:08:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:08:49]Read from MH i2c: E2 [10:08:49]MH_I2C_Read... [10:08:49]Read from MH i2c: E2 03 00 [10:08:49]MH_I2C_Read... [10:08:49]Read from MH i2c: E2 03 00 DE 18 00 90 00 6A [10:08:49]RAPDU: 90 00 [10:08:49]wFMCommunicate OK [10:08:49]wFMCommunicate request_size=255 [10:08:49]MH_SAM_APDU [10:08: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 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 B3 E7 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 BC 0B 01 00 35 04 06 00 99 [10:08:49]Write to MH i2c: E2 02 01 DF 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 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 B3 E7 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 BC 0B 01 00 35 04 06 00 99 00 00 21 [10:08:49]Write i2c OK [10:08:49]MH_I2C_Read... [10:08:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:08:50]Read from MH i2c: E2 [10:08:50]MH_I2C_Read... [10:08:50]Read from MH i2c: E2 03 00 [10:08:50]MH_I2C_Read... [10:08:50]Read from MH i2c: E2 03 00 DF 18 00 90 00 6B [10:08:50]RAPDU: 90 00 [10:08:50]wFMCommunicate OK [10:08:50]wFMCommunicate request_size=10 [10:08:50]MH_SAM_APDU [10:08:50]CAPDU: 80 0D 02 02 05 DA B2 12 2D A5 [10:08:50]Write to MH i2c: E2 0D 00 E0 18 80 0D 02 02 05 00 DA B2 12 2D A5 00 00 EC [10:08:50]Write i2c OK [10:08:50]MH_I2C_Read... [10:08:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:08:50]Read from MH i2c: E2 [10:08:50]MH_I2C_Read... [10:08:50]Read from MH i2c: E2 03 00 [10:08:50]MH_I2C_Read... [10:08:50]Read from MH i2c: E2 03 00 E0 18 00 90 00 6C [10:08:50]RAPDU: 90 00 [10:08:50]wFMCommunicate OK [10:08:50]wFMCommunicate request_size=4 [10:08:50]MH_SAM_APDU [10:08:50]CAPDU: 80 0D 03 02 [10:08:50]Write to MH i2c: E2 08 00 E1 18 80 0D 03 02 00 00 00 00 74 [10:08:50]Write i2c OK [10:08:50]MH_I2C_Read... [10:08:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:08:50]Read from MH i2c: E2 [10:08:50]MH_I2C_Read... [10:08:50]Read from MH i2c: E2 0B 00 [10:08:50]MH_I2C_Read... [10:08:50]Read from MH i2c: E2 0B 00 E1 18 00 35 E4 66 2F 9E 91 A8 89 90 00 83 [10:08:50]RAPDU: 35 E4 66 2F 9E 91 A8 89 90 00 [10:08:50]wFMCommunicate OK [10:08:50]SAM_PROTO_SignData done [10:08:50]FM_MakeSignedData done [10:08:50]CreateOFDProtocolMessage [10:08:50]wFMCommunicate request_size=4 [10:08:50]MH_SAM_APDU [10:08:50]CAPDU: 80 11 00 00 [10:08:50]Write to MH i2c: E2 08 00 E2 18 80 11 00 00 00 00 00 00 74 [10:08:50]Write i2c OK [10:08:50]MH_I2C_Read... [10:08:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:08:50]Read from MH i2c: E2 [10:08:50]MH_I2C_Read... [10:08:50]Read from MH i2c: E2 17 00 [10:08:50]MH_I2C_Read... [10:08:50]Read from MH i2c: E2 17 00 E2 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 BF [10:08:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [10:08:50]wFMCommunicate OK [10:08:50]CreateOFDProtocolMessage done [10:08:50]OFDSenderStorePacket 68540 [10:08:50]StoreOFDPacket docnum=68540 [10:08:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 03 01 07 01 E5 99 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 B3 E7 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 BC 0B 01 00 35 04 06 00 99 DA B2 12 2D A5 35 E4 66 2F 9E 91 A8 89 [10:08:50]CheckFolder [10:08:50]dirname=/storage/ofd_packets [10:08:50]CheckFolder done [10:08:50]ProducePacketName [10:08:50]name=ofd_packets/00068540 [10:08:50]NVStorageSaveData ofd_packets/00068540 [10:08:50]File name is /storage/ofd_packets/00068540 [10:08:50]Write 301 bytes [10:08:50]NVStorageSaveData done [10:08:50]OFDSenderStorePacket done [10:08:50]KKMCreateOFDPacket done [10:08:50]NVStorageSaveData kkm_last_timestamp [10:08:50]File name is /storage/kkm_last_timestamp [10:08:50]Write 4 bytes [10:08:50]NVStorageSaveData done [10:08:50]ExternCall_PrintAddStr [10:08:50]wPrintStart [10:08:50]Write to MH i2c: 01 00 00 E3 18 FB [10:08:50]Write i2c OK [10:08:50]MH_I2C_Read... [10:08:50]Read from MH i2c: 01 [10:08:50]MH_I2C_Read... [10:08:50]Read from MH i2c: 01 07 00 [10:08:50]MH_I2C_Read... [10:08:50]Read from MH i2c: 01 07 00 E3 18 00 00 00 00 00 FF 0F 10 [10:08:50]RasterBufferAndPrint [10:08:50]line Счет N : (1)706660 [10:08:50]line ИНН: 02508201610067 [10:08:50]line Контрольно-Кассовый Чек [10:08:50]line ПРОДАЖА [10:08:50]line ТРК (МРК, ГНК) : 42 [10:08:50]line Товар: 2710124130 [10:08:50]line Аи-92-К-4 [10:08:50]line 14.950 * 66.90 [10:08:50]line = 1000.16 [10:08:50]line НДС 12% НСП 1% [10:08:50]line > о реализуемом товаре [10:08:50]line ОКРУГЛЕНИЕ: -0.16 [10:08:50]line ИТОГО: 1000.00 [10:08:50]line Внесено: 1000.00 [10:08:50]line СДАЧА: 0.00 [10:08:50]line НСП 1% : 8.85 [10:08:50]line НДС 12% : 106.21 [10:08:50]line Наличными: 1000.00 [10:08:50]line Безнал.: 0.00 [10:08:50]line Место: АЗС № 62 "Партнер Нефть" [10:08:50]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [10:08:50]line СНО: Общий режим [10:08:50]line Чек 38 04.06.2024 10:08 [10:08:50]line Смена: 325 ФФД: 1.0 [10:08:50]line ЗНМ: 0300000181 [10:08:50]line РНМ: 0000000000098096 [10:08:50]line Версия ККМ: 001 [10:08:50]line ФМ: 0000000000965400 [10:08:50]line ФД: 68540 [10:08:50]line ФПД: 169164569456037 [10:08:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T100851&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68540&fm=169164569456037&tin=02508201610067®Number=0000000000098096&sum=100000 [10:08:50]OFD Sender: Processing packet 68540 [packets to send 26, broken 25] [10:08:50]ProducePacketName [10:08:50]name=ofd_packets/00068540 [10:08:50]OFD Sender: To server: pG, [10:08:50]CommunicateWithHost lk.salyk.kg:30040 [10:08:50]ConnectInit lk.salyk.kg [10:08:50]written 0, free lines is 4095 [10:08:50]Connected sock=10 [10:08:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 03 01 07 01 E5 99 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 B3 E7 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 BC 0B 01 00 35 04 06 00 99 DA B2 12 2D A5 35 E4 66 2F 9E 91 A8 89 [10:08:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 E2 67 47 00 9C F6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 BC 0B 01 00 F4 03 04 00 AD 8E 5E 66 B6 04 01 00 00 8F 47 27 1A E0 48 83 2E [10:08:50]CommunicateWithHost err = 0 [10:08:50]CheckOFDResponse [10:08:50]1017 (14) - 77093643461234 [10:08:50]1041 (16) - 0000000000965400 [10:08:50]1040 (4) - 68540 [10:08:50]1012 (4) - 04.06.2024 03:49 [10:08:50]1206 (1) - 0 [10:08:50]OFD Sender: Remove packet 68540 [10:08:50]ProducePacketName [10:08:50]name=ofd_packets/00068540 [10:08:50]NVStorageDeleteData [10:08:51]Write to MH i2c: 01 00 00 0E 19 27 [10:08:51]Write i2c OK [10:08:51]MH_I2C_Read... [10:08:51]Read from MH i2c: 01 [10:08:51]MH_I2C_Read... [10:08:51]Read from MH i2c: 01 07 00 [10:08:51]MH_I2C_Read... [10:08:51]Read from MH i2c: 01 07 00 0E 19 00 00 00 00 00 EB 0C 25 [10:08:51]RasterBufferAndPrint [10:08:51]line [10:08:51]line [10:08:51]line [10:08:51]line [10:08:51]line [10:08:51]written 0, free lines is 3319 [10:08:51]MH_Cut [10:08:51]Write to MH i2c: D1 01 00 15 19 01 00 [10:08:51]Write i2c OK [10:08:51]MH_I2C_Read... [10:08:51]Read from MH i2c: D1 [10:08:51]MH_I2C_Read... [10:08:51]Read from MH i2c: D1 01 00 [10:08:51]MH_I2C_Read... [10:08:51]Read from MH i2c: D1 01 00 15 19 00 FF [10:08:51]Write to MH i2c: 01 00 00 16 19 2F [10:08:51]Write i2c OK [10:08:51]MH_I2C_Read... [10:08:51]OFD Sender: No OFD packet to send [10:08:51]*** Cut start [10:08:51]*** Partial cut [10:08:51]*** CUTSNS_PIN = 1 [10:08:51]*** CUTSNS_PIN = 0 [10:08:52]*** Brake cut motor [10:08:52]Read from MH i2c: 01 [10:08:52]MH_I2C_Read... [10:08:52]*** Stop cut motor [10:08:52]*** Cut end [10:08:52]Read from MH i2c: 01 07 00 [10:08:52]MH_I2C_Read... [10:08:52]Read from MH i2c: 01 07 00 16 19 00 00 00 00 00 FF 0F 44 [10:08:52]process_action close_receipt done [10:08:52]requested_data is exist [10:08:52]produce_requested_data [10:08:52]requested_item fm.sn is exist - process it [10:08:52]wFMCommunicate request_size=4 [10:08:52]MH_SAM_APDU [10:08:52]CAPDU: 80 11 00 00 [10:08:52]Write to MH i2c: E2 08 00 17 19 80 11 00 00 00 00 00 00 AA [10:08:52]Write i2c OK [10:08:52]MH_I2C_Read... [10:08:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:08:52]Read from MH i2c: E2 [10:08:52]MH_I2C_Read... [10:08:52]Read from MH i2c: E2 17 00 [10:08:52]MH_I2C_Read... [10:08:52]Read from MH i2c: E2 17 00 17 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 F5 [10:08:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [10:08:52]wFMCommunicate OK [10:08:52]requested_item fd.num is exist - process it [10:08:52]SAM_PROTO_GetFieldsCounters [10:08:52]wFMCommunicate request_size=4 [10:08:52]MH_SAM_APDU [10:08:52]CAPDU: 80 13 00 00 [10:08:52]Write to MH i2c: E2 08 00 18 19 80 13 00 00 00 00 00 00 AD [10:08:52]Write i2c OK [10:08:52]MH_I2C_Read... [10:08:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:08:52]Read from MH i2c: E2 [10:08:52]MH_I2C_Read... [10:08:52]Read from MH i2c: E2 62 00 [10:08:52]MH_I2C_Read... [10:08:52]Read from MH i2c: E2 62 00 18 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 BC 0B 01 00 0E 04 04 00 45 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 4D [10:08:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 BC 0B 01 00 0E 04 04 00 45 01 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:08:52]wFMCommunicate OK [10:08:52]SAM_PROTO_GetFieldsCounters done [10:08:52]requested_item shift.num is exist - process it [10:08:52]requested_item shift.opened is exist - process it [10:08:52]req_shift_opened [10:08:52]FM_GetShiftState [10:08:52]SAM_PROTO_GetShiftState [10:08:52]wFMCommunicate request_size=4 [10:08:52]MH_SAM_APDU [10:08:52]CAPDU: 80 13 01 00 [10:08:52]Write to MH i2c: E2 08 00 19 19 80 13 01 00 00 00 00 00 AF [10:08:52]Write i2c OK [10:08:52]MH_I2C_Read... [10:08:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:08:52]Read from MH i2c: E2 [10:08:52]MH_I2C_Read... [10:08:52]Read from MH i2c: E2 0E 00 [10:08:52]MH_I2C_Read... [10:08:52]Read from MH i2c: E2 0E 00 19 19 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 4B [10:08:52]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [10:08:52]wFMCommunicate OK [10:08:52]SAM_PROTO_GetShiftState done [10:08:52]FM_GetShiftState done [10:08:52]req_shift_opened done [10:08:52]requested_item shift.open_date is exist - process it [10:08:52]req_shift_open_date [10:08:52]req_shift_open_date done [10:08:52]produce_requested_data done [10:08:52]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68540,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [10:08:52]process_action_free close_receipt [10:08:52]json_value_free [10:08:52]json_value_free done [10:08:52]process_json_proto returns [10:08:52]Send response to host [10:08:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68540,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [10:08:52]free response buf [10:08:52]execute_script done [10:08:52]execute_script returns [10:08:52]free content buf [10:08:52]Sock 7.Close socket [10:08:52]Sock 7.Thread stoped [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:31]OFD Sender: No OFD packet to send [10:09:36]OFD Sender: No OFD packet to send [10:09:41]OFD Sender: No OFD packet to send [10:09:46]OFD Sender: No OFD packet to send [10:09:51]OFD Sender: No OFD packet to send [10:09:56]OFD Sender: No OFD packet to send [10:10:01]OFD Sender: No OFD packet to send [10:10:06]OFD Sender: No OFD packet to send [10:10:11]OFD Sender: No OFD packet to send [10:10:16]OFD Sender: No OFD packet to send [10:10:21]OFD Sender: No OFD packet to send [10:10:26]OFD Sender: No OFD packet to send [10:10:31]OFD Sender: No OFD packet to send [10:10:36]OFD Sender: No OFD packet to send [10:10:41]OFD Sender: No OFD packet to send [10:10:46]OFD Sender: No OFD packet to send [10:10:51]OFD Sender: No OFD packet to send [10:10:56]OFD Sender: No OFD packet to send [10:11:01]OFD Sender: No OFD packet to send [10:11:06]OFD Sender: No OFD packet to send [10:11:11]OFD Sender: No OFD packet to send [10:11:16]OFD Sender: No OFD packet to send [10:11:21]OFD Sender: No OFD packet to send [10:11:26]OFD Sender: No OFD packet to send [10:11:31]OFD Sender: No OFD packet to send [10:11:36]OFD Sender: No OFD packet to send [10:11:41]OFD Sender: No OFD packet to send [10:11:46]OFD Sender: No OFD packet to send [10:11:51]OFD Sender: No OFD packet to send [10:11:56]OFD Sender: No OFD packet to send [10:12:01]OFD Sender: No OFD packet to send [10:12:06]OFD Sender: No OFD packet to send [10:12:11]OFD Sender: No OFD packet to send [10:12:16]OFD Sender: No OFD packet to send [10:12:21]OFD Sender: No OFD packet to send [10:12:26]OFD Sender: No OFD packet to send [10:12:31]OFD Sender: No OFD packet to send [10:12:36]OFD Sender: No OFD packet to send [10:12:41]OFD Sender: No OFD packet to send [10:12:46]OFD Sender: No OFD packet to send [10:12:51]OFD Sender: No OFD packet to send [10:12:56]OFD Sender: No OFD packet to send [10:13:01]OFD Sender: No OFD packet to send [10:13:06]OFD Sender: No OFD packet to send [10:13:11]OFD Sender: No OFD packet to send [10:13:16]OFD Sender: No OFD packet to send [10:13:21]OFD Sender: No OFD packet to send [10:13:26]OFD Sender: No OFD packet to send [10:13:31]OFD Sender: No OFD packet to send [10:13:36]OFD Sender: No OFD packet to send [10:13:41]OFD Sender: No OFD packet to send [10:13:46]OFD Sender: No OFD packet to send [10:13:51]OFD Sender: No OFD packet to send [10:13:56]OFD Sender: No OFD packet to send [10:14:01]OFD Sender: No OFD packet to send [10:14:06]OFD Sender: No OFD packet to send [10:14:11]OFD Sender: No OFD packet to send [10:14:16]OFD Sender: No OFD packet to send [10:14:21]OFD Sender: No OFD packet to send [10:14:26]OFD Sender: No OFD packet to send [10:14:31]OFD Sender: No OFD packet to send [10:14:36]OFD Sender: No OFD packet to send [10:14:41]OFD Sender: No OFD packet to send [10:14:46]OFD Sender: No OFD packet to send [10:14:51]OFD Sender: No OFD packet to send [10:14:56]OFD Sender: No OFD packet to send [10:15:01]OFD Sender: No OFD packet to send [10:15:06]OFD Sender: No OFD packet to send [10:15:11]OFD Sender: No OFD packet to send [10:15:16]OFD Sender: No OFD packet to send [10:15:21]OFD Sender: No OFD packet to send [10:15:26]OFD Sender: No OFD packet to send [10:15:31]OFD Sender: No OFD packet to send [10:15:36]OFD Sender: No OFD packet to send [10:15:41]OFD Sender: No OFD packet to send [10:15:46]OFD Sender: No OFD packet to send [10:15:51]OFD Sender: No OFD packet to send [10:15:56]OFD Sender: No OFD packet to send [10:16:01]OFD Sender: No OFD packet to send [10:16:06]OFD Sender: No OFD packet to send [10:16:11]OFD Sender: No OFD packet to send [10:16:16]OFD Sender: No OFD packet to send [10:16:21]OFD Sender: No OFD packet to send [10:16:26]OFD Sender: No OFD packet to send [10:16:31]OFD Sender: No OFD packet to send [10:16:36]OFD Sender: No OFD packet to send [10:16:41]OFD Sender: No OFD packet to send [10:16:46]OFD Sender: No OFD packet to send [10:16:51]OFD Sender: No OFD packet to send [10:16:56]OFD Sender: No OFD packet to send [10:17:01]OFD Sender: No OFD packet to send [10:17:06]OFD Sender: No OFD packet to send [10:17:08]accept exits with 9 [10:17:08]New connection [10:17:08]New thread 3067084132 created [10:17:08]Thread 3067227492 joined [10:17:08]Waiting for new connection... [10:17:08] Sock 9.Parse request [10:17:08]Sock 9.Check first char [10:17:08]Sock 9.First char is OK [10:17:08]request: POST /json_proto HTTP/1.0 [10:17:08]Method: POST [10:17:08]URL: /json_proto [10:17:08]Method is POST - this is cgi request [10:17:08]url: /json_proto [10:17:08]query_string will be loaded in cgi processing [10:17:08]execute_cgi json_proto POST (null) [10:17:08]execute_cgi path=json_proto method=POST [10:17:08]POST find Content-Length [10:17:08]Host: 172.17.36.132:8080 [10:17:08]Content-Length: 677 [10:17:08]Content-Type: application/json [10:17:08] [10:17:08]POST finish read [10:17:08]Found Content-Length = 677 [10:17:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706664", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:17:08]execute_script... [10: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)706664", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:17:08]POST & json_proto [10:17:08]process_json_proto [10:17:08]json parsed OK: [10:17:08]protocol is kg_v1.0 [10:17:08]action value=close_receipt [10:17:08]process_action close_receipt [10:17:08]cmd_close_receipt [10:17:08]MH_GetDate [10:17:08]Write to MH i2c: F0 00 00 1A 19 22 [10:17:08]Write i2c OK [10:17:08]MH_I2C_Read... [10:17:08]Read from MH i2c: F0 [10:17:08]MH_I2C_Read... [10:17:08]Read from MH i2c: F0 09 00 [10:17:08]MH_I2C_Read... [10:17:08]Read from MH i2c: F0 09 00 1A 19 00 A8 E9 5E 66 B2 22 B0 64 68 [10:17:08]GetLastDocTimeStamp 1717495731 [10:17:08]current date 1717496232 [10:17:08]FM_GetShiftState [10:17:08]SAM_PROTO_GetShiftState [10:17:08]wFMCommunicate request_size=4 [10:17:08]MH_SAM_APDU [10:17:08]CAPDU: 80 13 01 00 [10:17:08]Write to MH i2c: E2 08 00 1B 19 80 13 01 00 00 00 00 00 B1 [10:17:08]Write i2c OK [10:17:08]MH_I2C_Read... [10:17:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:17:08]Read from MH i2c: E2 [10:17:08]MH_I2C_Read... [10:17:08]Read from MH i2c: E2 0E 00 [10:17:08]MH_I2C_Read... [10:17:08]Read from MH i2c: E2 0E 00 1B 19 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 4D [10:17:08]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [10:17:08]wFMCommunicate OK [10:17:08]SAM_PROTO_GetShiftState done [10:17:08]FM_GetShiftState done [10:17:08]opened in 1717460590 [10:17:08]opened+sec_in_day 1717546990 [10:17:08]quantity*price = 60009 [10:17:08]sum+1 = 60010 [10:17:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 39 04.06.2024 10:17 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68541 ФПД: 66294883086643 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T101712&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68541&fm=66294883086643&tin=02508201610067®Number=0000000000098096&sum=60000 [10:17:09]StoreToDocumentArchive [10:17:09]shift 325 fd 68541 [10:17:09]save to /storage/0325/doc_00068541 [10:17:09]save last doc name /storage/0325/doc_00068541 to /storage/kkm_last_doc_name [10:17:09]save OK [10:17:09]Clear old archive folders... [10:17:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:17:09]tlvbuf is 00A41E30 [10:17:09]SAM_PROTO_ClearQueue [10:17:09]wFMCommunicate request_size=4 [10:17:09]MH_SAM_APDU [10:17:09]CAPDU: 80 09 00 00 [10:17:09]Write to MH i2c: E2 08 00 28 19 80 09 00 00 00 00 00 00 B3 [10:17:09]Write i2c OK [10:17:09]MH_I2C_Read... [10:17:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:17:09]Read from MH i2c: E2 [10:17:09]MH_I2C_Read... [10:17:09]Read from MH i2c: E2 03 00 [10:17:09]MH_I2C_Read... [10:17:09]Read from MH i2c: E2 03 00 28 19 00 90 00 B5 [10:17:09]RAPDU: 90 00 [10:17:09]wFMCommunicate OK [10:17:09]SAM_PROTO_ClearQueue done [10:17:09]KKMCreateOFDPacket [10:17:09]OFDProtocolAddRootSTLVToBuf [10:17:09]FM_MakeSignedData [10:17:09]FM_MakeSignedData [10:17:09]SAM_PROTO_SignData [10:17:09]wFMCommunicate request_size=4 [10:17:09]MH_SAM_APDU [10:17:09]CAPDU: 80 0D 01 02 [10:17:09]Write to MH i2c: E2 08 00 29 19 80 0D 01 02 00 00 00 00 BB [10:17:09]Write i2c OK [10:17:09]MH_I2C_Read... [10:17:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:17:09]Read from MH i2c: E2 [10:17:09]MH_I2C_Read... [10:17:09]Read from MH i2c: E2 03 00 [10:17:09]MH_I2C_Read... [10:17:09]Read from MH i2c: E2 03 00 29 19 00 90 00 B6 [10:17:09]RAPDU: 90 00 [10:17:09]wFMCommunicate OK [10:17:09]wFMCommunicate request_size=255 [10:17:09]MH_SAM_APDU [10:17: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 34 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 A8 E9 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 BD 0B 01 00 35 04 06 00 3C [10:17:09]Write to MH i2c: E2 02 01 2A 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 34 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 A8 E9 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 BD 0B 01 00 35 04 06 00 3C 00 00 EC [10:17:09]Write i2c OK [10:17:09]MH_I2C_Read... [10:17:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:17:09]Read from MH i2c: E2 [10:17:09]MH_I2C_Read... [10:17:09]Read from MH i2c: E2 03 00 [10:17:09]MH_I2C_Read... [10:17:10]Read from MH i2c: E2 03 00 2A 19 00 90 00 B7 [10:17:10]RAPDU: 90 00 [10:17:10]wFMCommunicate OK [10:17:10]wFMCommunicate request_size=10 [10:17:10]MH_SAM_APDU [10:17:10]CAPDU: 80 0D 02 02 05 4B 7A F4 F1 33 [10:17:10]Write to MH i2c: E2 0D 00 2B 19 80 0D 02 02 05 00 4B 7A F4 F1 33 00 00 A5 [10:17:10]Write i2c OK [10:17:10]MH_I2C_Read... [10:17:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:17:10]Read from MH i2c: E2 [10:17:10]MH_I2C_Read... [10:17:10]Read from MH i2c: E2 03 00 [10:17:10]MH_I2C_Read... [10:17:10]Read from MH i2c: E2 03 00 2B 19 00 90 00 B8 [10:17:10]RAPDU: 90 00 [10:17:10]wFMCommunicate OK [10:17:10]wFMCommunicate request_size=4 [10:17:10]MH_SAM_APDU [10:17:10]CAPDU: 80 0D 03 02 [10:17:10]Write to MH i2c: E2 08 00 2C 19 80 0D 03 02 00 00 00 00 C0 [10:17:10]Write i2c OK [10:17:10]MH_I2C_Read... [10:17:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:17:10]Read from MH i2c: E2 [10:17:10]MH_I2C_Read... [10:17:10]Read from MH i2c: E2 0B 00 [10:17:10]MH_I2C_Read... [10:17:10]Read from MH i2c: E2 0B 00 2C 19 00 4D 96 42 65 D9 9D D3 70 90 00 04 [10:17:10]RAPDU: 4D 96 42 65 D9 9D D3 70 90 00 [10:17:10]wFMCommunicate OK [10:17:10]SAM_PROTO_SignData done [10:17:10]FM_MakeSignedData done [10:17:10]CreateOFDProtocolMessage [10:17:10]wFMCommunicate request_size=4 [10:17:10]MH_SAM_APDU [10:17:10]CAPDU: 80 11 00 00 [10:17:10]Write to MH i2c: E2 08 00 2D 19 80 11 00 00 00 00 00 00 C0 [10:17:10]Write i2c OK [10:17:10]MH_I2C_Read... [10:17:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:17:10]Read from MH i2c: E2 [10:17:10]MH_I2C_Read... [10:17:10]Read from MH i2c: E2 17 00 [10:17:10]MH_I2C_Read... [10:17:10]Read from MH i2c: E2 17 00 2D 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 0B [10:17:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [10:17:10]wFMCommunicate OK [10:17:10]CreateOFDProtocolMessage done [10:17:10]OFDSenderStorePacket 68541 [10:17:10]StoreOFDPacket docnum=68541 [10:17:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 C0 2C 07 01 33 A7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 A8 E9 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 BD 0B 01 00 35 04 06 00 3C 4B 7A F4 F1 33 4D 96 42 65 D9 9D D3 70 [10:17:10]CheckFolder [10:17:10]dirname=/storage/ofd_packets [10:17:10]CheckFolder done [10:17:10]ProducePacketName [10:17:10]name=ofd_packets/00068541 [10:17:10]NVStorageSaveData ofd_packets/00068541 [10:17:10]File name is /storage/ofd_packets/00068541 [10:17:10]Write 301 bytes [10:17:10]NVStorageSaveData done [10:17:10]OFDSenderStorePacket done [10:17:10]KKMCreateOFDPacket done [10:17:10]NVStorageSaveData kkm_last_timestamp [10:17:10]File name is /storage/kkm_last_timestamp [10:17:10]Write 4 bytes [10:17:10]NVStorageSaveData done [10:17:10]ExternCall_PrintAddStr [10:17:10]wPrintStart [10:17:10]Write to MH i2c: 01 00 00 2E 19 47 [10:17:10]Write i2c OK [10:17:10]MH_I2C_Read... [10:17:10]Read from MH i2c: 01 [10:17:10]MH_I2C_Read... [10:17:10]Read from MH i2c: 01 07 00 [10:17:10]MH_I2C_Read... [10:17:10]Read from MH i2c: 01 07 00 2E 19 00 00 00 00 00 FF 0F 5C [10:17:10]RasterBufferAndPrint [10:17:10]line Счет N : (1)706664 [10:17:10]line ИНН: 02508201610067 [10:17:10]line Контрольно-Кассовый Чек [10:17:10]line ПРОДАЖА [10:17:10]line ТРК (МРК, ГНК) : 23 [10:17:10]line Товар: 2710124130 [10:17:10]line Аи-92-К-4 [10:17:10]line 8.970 * 66.90 [10:17:10]line = 600.09 [10:17:10]line НДС 12% НСП 1% [10:17:10]line > о реализуемом товаре [10:17:10]line ОКРУГЛЕНИЕ: -0.09 [10:17:10]line ИТОГО: 600.00 [10:17:10]line Внесено: 600.00 [10:17:10]line СДАЧА: 0.00 [10:17:10]line НСП 1% : 5.31 [10:17:10]line НДС 12% : 63.73 [10:17:10]line Наличными: 600.00 [10:17:10]line Безнал.: 0.00 [10:17:10]line Место: АЗС № 62 "Партнер Нефть" [10:17:10]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [10:17:10]line СНО: Общий режим [10:17:10]line Чек 39 04.06.2024 10:17 [10:17:10]line Смена: 325 ФФД: 1.0 [10:17:10]line ЗНМ: 0300000181 [10:17:10]line РНМ: 0000000000098096 [10:17:10]line Версия ККМ: 001 [10:17:10]line ФМ: 0000000000965400 [10:17:10]line ФД: 68541 [10:17:10]line ФПД: 66294883086643 [10:17:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T101712&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68541&fm=66294883086643&tin=02508201610067®Number=0000000000098096&sum=60000 [10:17:10]OFD Sender: Processing packet 68541 [packets to send 26, broken 25] [10:17:10]ProducePacketName [10:17:10]name=ofd_packets/00068541 [10:17:10]OFD Sender: To server: pG, [10:17:10]CommunicateWithHost lk.salyk.kg:30040 [10:17:10]ConnectInit lk.salyk.kg [10:17:10]written 0, free lines is 4095 [10:17:10]Connected sock=10 [10:17:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 C0 2C 07 01 33 A7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 A8 E9 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 BD 0B 01 00 35 04 06 00 3C 4B 7A F4 F1 33 4D 96 42 65 D9 9D D3 70 [10:17:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 5F 13 47 00 EC 71 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 BD 0B 01 00 F4 03 04 00 A1 90 5E 66 B6 04 01 00 00 83 35 9E BC 87 93 68 0C [10:17:10]CommunicateWithHost err = 0 [10:17:10]CheckOFDResponse [10:17:10]1017 (14) - 77093643461234 [10:17:10]1041 (16) - 0000000000965400 [10:17:10]1040 (4) - 68541 [10:17:10]1012 (4) - 04.06.2024 03:57 [10:17:10]1206 (1) - 0 [10:17:10]OFD Sender: Remove packet 68541 [10:17:10]ProducePacketName [10:17:10]name=ofd_packets/00068541 [10:17:10]NVStorageDeleteData [10:17:10]Write to MH i2c: 01 00 00 59 19 72 [10:17:10]Write i2c OK [10:17:10]MH_I2C_Read... [10:17:10]Read from MH i2c: 01 [10:17:10]MH_I2C_Read... [10:17:10]Read from MH i2c: 01 07 00 [10:17:10]MH_I2C_Read... [10:17:10]Read from MH i2c: 01 07 00 59 19 00 00 00 00 00 D3 0C 58 [10:17:10]RasterBufferAndPrint [10:17:10]line [10:17:10]line [10:17:10]line [10:17:10]line [10:17:10]line [10:17:10]written 0, free lines is 3287 [10:17:10]MH_Cut [10:17:10]Write to MH i2c: D1 01 00 60 19 01 4B [10:17:10]Write i2c OK [10:17:10]MH_I2C_Read... [10:17:10]Read from MH i2c: D1 [10:17:10]MH_I2C_Read... [10:17:10]Read from MH i2c: D1 01 00 [10:17:10]MH_I2C_Read... [10:17:10]Read from MH i2c: D1 01 00 60 19 00 4A [10:17:10]Write to MH i2c: 01 00 00 61 19 7A [10:17:10]Write i2c OK [10:17:10]MH_I2C_Read... [10:17:11]OFD Sender: No OFD packet to send [10:17:11]*** Cut start [10:17:11]*** Partial cut [10:17:11]*** CUTSNS_PIN = 1 [10:17:11]*** CUTSNS_PIN = 0 [10:17:12]*** Brake cut motor [10:17:12]Read from MH i2c: 01 [10:17:12]MH_I2C_Read... [10:17:12]Read from MH i2c: 01 07 00 [10:17:12]MH_I2C_Read... [10:17:12]*** Stop cut motor [10:17:12]*** Cut end [10:17:12]Read from MH i2c: 01 07 00 61 19 00 00 00 00 00 FF 0F 8F [10:17:12]process_action close_receipt done [10:17:12]requested_data is exist [10:17:12]produce_requested_data [10:17:12]requested_item fm.sn is exist - process it [10:17:12]wFMCommunicate request_size=4 [10:17:12]MH_SAM_APDU [10:17:12]CAPDU: 80 11 00 00 [10:17:12]Write to MH i2c: E2 08 00 62 19 80 11 00 00 00 00 00 00 F5 [10:17:12]Write i2c OK [10:17:12]MH_I2C_Read... [10:17:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:17:12]Read from MH i2c: E2 [10:17:12]MH_I2C_Read... [10:17:12]Read from MH i2c: E2 17 00 [10:17:12]MH_I2C_Read... [10:17:12]Read from MH i2c: E2 17 00 62 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 40 [10:17:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [10:17:12]wFMCommunicate OK [10:17:12]requested_item fd.num is exist - process it [10:17:12]SAM_PROTO_GetFieldsCounters [10:17:12]wFMCommunicate request_size=4 [10:17:12]MH_SAM_APDU [10:17:12]CAPDU: 80 13 00 00 [10:17:12]Write to MH i2c: E2 08 00 63 19 80 13 00 00 00 00 00 00 F8 [10:17:12]Write i2c OK [10:17:12]MH_I2C_Read... [10:17:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:17:12]Read from MH i2c: E2 [10:17:12]MH_I2C_Read... [10:17:12]Read from MH i2c: E2 62 00 [10:17:12]MH_I2C_Read... [10:17:12]Read from MH i2c: E2 62 00 63 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 BD 0B 01 00 0E 04 04 00 45 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 9C [10:17:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 BD 0B 01 00 0E 04 04 00 45 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 [10:17:12]wFMCommunicate OK [10:17:12]SAM_PROTO_GetFieldsCounters done [10:17:12]requested_item shift.num is exist - process it [10:17:12]requested_item shift.opened is exist - process it [10:17:12]req_shift_opened [10:17:12]FM_GetShiftState [10:17:12]SAM_PROTO_GetShiftState [10:17:12]wFMCommunicate request_size=4 [10:17:12]MH_SAM_APDU [10:17:12]CAPDU: 80 13 01 00 [10:17:12]Write to MH i2c: E2 08 00 64 19 80 13 01 00 00 00 00 00 FA [10:17:12]Write i2c OK [10:17:12]MH_I2C_Read... [10:17:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:17:12]Read from MH i2c: E2 [10:17:12]MH_I2C_Read... [10:17:12]Read from MH i2c: E2 0E 00 [10:17:12]MH_I2C_Read... [10:17:12]Read from MH i2c: E2 0E 00 64 19 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 96 [10:17:12]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [10:17:12]wFMCommunicate OK [10:17:12]SAM_PROTO_GetShiftState done [10:17:12]FM_GetShiftState done [10:17:12]req_shift_opened done [10:17:12]requested_item shift.open_date is exist - process it [10:17:12]req_shift_open_date [10:17:12]req_shift_open_date done [10:17:12]produce_requested_data done [10:17:12]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68541,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [10:17:12]process_action_free close_receipt [10:17:12]json_value_free [10:17:12]json_value_free done [10:17:12]process_json_proto returns [10:17:12]Send response to host [10:17:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68541,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [10:17:12]free response buf [10:17:12]execute_script done [10:17:12]execute_script returns [10:17:12]free content buf [10:17:12]Sock 9.Close socket [10:17:12]Sock 9.Thread stoped [10:17:16]OFD Sender: No OFD packet to send [10:17:21]OFD Sender: No OFD packet to send [10:17:26]OFD Sender: No OFD packet to send [10:17:31]OFD Sender: No OFD packet to send [10:17:35]accept exits with 7 [10:17:35]New connection [10:17:35]New thread 3067227492 created [10:17:35]Thread 3067084132 joined [10:17:35]Waiting for new connection... [10:17:35] Sock 7.Parse request [10:17:35]Sock 7.Check first char [10:17:35]Sock 7.First char is OK [10:17:35]request: POST /json_proto HTTP/1.0 [10:17:35]Method: POST [10:17:35]URL: /json_proto [10:17:35]Method is POST - this is cgi request [10:17:35]url: /json_proto [10:17:35]query_string will be loaded in cgi processing [10:17:35]execute_cgi json_proto POST (null) [10:17:35]execute_cgi path=json_proto method=POST [10:17:35]POST find Content-Length [10:17:35]Host: 172.17.36.132:8080 [10:17:35]Content-Length: 1169 [10:17:35]Content-Type: application/json [10:17:35] [10:17:35]POST finish read [10:17:35]Found Content-Length = 1169 [10:17:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0418\u0441\u043C\u0430\u043D\u0430\u043B\u0438\u0435\u0432 \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)706663\u000A04.06.2024 09:54\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 63\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-4\u000A 40.000 x 66.90\u000A\u0418\u0422\u041E\u0413: 2676.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30047254\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:17:35]execute_script... [10:17:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0418\u0441\u043C\u0430\u043D\u0430\u043B\u0438\u0435\u0432 \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)706663\u000A04.06.2024 09:54\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 63\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-4\u000A 40.000 x 66.90\u000A\u0418\u0422\u041E\u0413: 2676.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30047254\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:17:35]POST & json_proto [10:17:35]process_json_proto [10:17:35]json parsed OK: [10:17:35]protocol is kg_v1.0 [10:17:35]action value=print_text [10:17:35]process_action print_text [10:17:35]cmd_print_text [10:17:35]ExternCall_PrintAddStr [10:17:35]wPrintStart [10:17:35]Write to MH i2c: 01 00 00 65 19 7E [10:17:35]Write i2c OK [10:17:35]MH_I2C_Read... [10:17:35]Read from MH i2c: 01 [10:17:35]MH_I2C_Read... [10:17:35]Read from MH i2c: 01 07 00 [10:17:35]MH_I2C_Read... [10:17:35]Read from MH i2c: 01 07 00 65 19 00 00 00 00 00 FF 0F 93 [10:17:35]RasterBufferAndPrint [10:17:35]line *****ТОВАРНЫЙ ЧЕК***** [10:17:35]line АЗС 62 [10:17:35]line Партнер нефть [10:17:35]line 02508201610067 [10:17:35]line Кассир : Исманалиев Д. [10:17:35]line Счет N : (1)706663 [10:17:35]line 04.06.2024 09:54 [10:17:35]line ПРОДАЖА [10:17:35]line ТРК (МРК, ГНК): 63 [10:17:35]line Вид ГСМ : 2710124130 [10:17:35]line Аи-92-К-4 [10:17:35]line 40.000 x 66.90 [10:17:35]line ИТОГ: 2676.00 [10:17:35]line Тип оплаты: Талоны: ТК ГПНА Online [10:17:35]line 30047254 [10:17:35]line ______________________ [10:17:35]line (подпись) [10:17:35]written 0, free lines is 4095 [10:17:35]Write to MH i2c: 01 00 00 79 19 92 [10:17:35]Write i2c OK [10:17:35]MH_I2C_Read... [10:17:35]Read from MH i2c: 01 [10:17:35]MH_I2C_Read... [10:17:35]Read from MH i2c: 01 07 00 [10:17:35]MH_I2C_Read... [10:17:35]Read from MH i2c: 01 07 00 79 19 00 00 00 00 00 13 0E BA [10:17:35]RasterBufferAndPrint [10:17:35]line [10:17:35]line [10:17:35]line [10:17:35]line [10:17:35]line [10:17:35]written 0, free lines is 3605 [10:17:35]MH_Cut [10:17:35]Write to MH i2c: D1 01 00 80 19 01 6B [10:17:35]Write i2c OK [10:17:35]MH_I2C_Read... [10:17:35]Read from MH i2c: D1 [10:17:35]MH_I2C_Read... [10:17:35]Read from MH i2c: D1 01 00 [10:17:35]MH_I2C_Read... [10:17:35]Read from MH i2c: D1 01 00 80 19 00 6A [10:17:35]Write to MH i2c: 01 00 00 81 19 9A [10:17:35]Write i2c OK [10:17:35]MH_I2C_Read... [10:17:35]*** Cut start [10:17:35]*** Partial cut [10:17:35]*** CUTSNS_PIN = 1 [10:17:35]*** CUTSNS_PIN = 0 [10:17:36]*** Brake cut motor [10:17:36]OFD Sender: No OFD packet to send [10:17:36]Read from MH i2c: 01 [10:17:36]MH_I2C_Read... [10:17:36]Read from MH i2c: 01 07 00 [10:17:36]MH_I2C_Read... [10:17:36]*** Stop cut motor [10:17:36]*** Cut end [10:17:36]Read from MH i2c: 01 07 00 81 19 00 00 00 00 00 FF 0F AF [10:17:36]process_action print_text done [10:17:36]requested_data is exist [10:17:36]produce_requested_data [10:17:36]requested_item fm.sn is exist - process it [10:17:36]wFMCommunicate request_size=4 [10:17:36]MH_SAM_APDU [10:17:36]CAPDU: 80 11 00 00 [10:17:36]Write to MH i2c: E2 08 00 82 19 80 11 00 00 00 00 00 00 15 [10:17:36]Write i2c OK [10:17:36]MH_I2C_Read... [10:17:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:17:36]Read from MH i2c: E2 [10:17:36]MH_I2C_Read... [10:17:36]Read from MH i2c: E2 17 00 [10:17:36]MH_I2C_Read... [10:17:36]Read from MH i2c: E2 17 00 82 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 60 [10:17:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [10:17:36]wFMCommunicate OK [10:17:36]requested_item fd.num is exist - process it [10:17:36]SAM_PROTO_GetFieldsCounters [10:17:36]wFMCommunicate request_size=4 [10:17:36]MH_SAM_APDU [10:17:36]CAPDU: 80 13 00 00 [10:17:36]Write to MH i2c: E2 08 00 83 19 80 13 00 00 00 00 00 00 18 [10:17:36]Write i2c OK [10:17:36]MH_I2C_Read... [10:17:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:17:36]Read from MH i2c: E2 [10:17:36]MH_I2C_Read... [10:17:36]Read from MH i2c: E2 62 00 [10:17:36]MH_I2C_Read... [10:17:36]Read from MH i2c: E2 62 00 83 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 BD 0B 01 00 0E 04 04 00 45 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 BC [10:17:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 BD 0B 01 00 0E 04 04 00 45 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 [10:17:36]wFMCommunicate OK [10:17:36]SAM_PROTO_GetFieldsCounters done [10:17:36]requested_item shift.num is exist - process it [10:17:36]requested_item shift.opened is exist - process it [10:17:36]req_shift_opened [10:17:36]FM_GetShiftState [10:17:36]SAM_PROTO_GetShiftState [10:17:36]wFMCommunicate request_size=4 [10:17:36]MH_SAM_APDU [10:17:36]CAPDU: 80 13 01 00 [10:17:36]Write to MH i2c: E2 08 00 84 19 80 13 01 00 00 00 00 00 1A [10:17:36]Write i2c OK [10:17:36]MH_I2C_Read... [10:17:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:17:36]Read from MH i2c: E2 [10:17:36]MH_I2C_Read... [10:17:36]Read from MH i2c: E2 0E 00 [10:17:36]MH_I2C_Read... [10:17:36]Read from MH i2c: E2 0E 00 84 19 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 B6 [10:17:36]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [10:17:36]wFMCommunicate OK [10:17:36]SAM_PROTO_GetShiftState done [10:17:36]FM_GetShiftState done [10:17:36]req_shift_opened done [10:17:36]requested_item shift.open_date is exist - process it [10:17:36]req_shift_open_date [10:17:36]req_shift_open_date done [10:17:36]produce_requested_data done [10:17:36]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68541,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [10:17:36]process_action_free print_text [10:17:36]json_value_free [10:17:36]json_value_free done [10:17:36]process_json_proto returns [10:17:36]Send response to host [10:17:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68541,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [10:17:36]free response buf [10:17:36]execute_script done [10:17:36]execute_script returns [10:17:36]free content buf [10:17:36]Sock 7.Close socket [10:17:36]Sock 7.Thread stoped [10:17:41]OFD Sender: No OFD packet to send [10:17:46]OFD Sender: No OFD packet to send [10:17:51]OFD Sender: No OFD packet to send [10:17:56]OFD Sender: No OFD packet to send [10:18:01]OFD Sender: No OFD packet to send [10:18:06]OFD Sender: No OFD packet to send [10:18:11]OFD Sender: No OFD packet to send [10:18:16]OFD Sender: No OFD packet to send [10:18:21]OFD Sender: No OFD packet to send [10:18:26]OFD Sender: No OFD packet to send [10:18:31]OFD Sender: No OFD packet to send [10:18:36]OFD Sender: No OFD packet to send [10:18:41]OFD Sender: No OFD packet to send [10:18:46]OFD Sender: No OFD packet to send [10:18:51]OFD Sender: No OFD packet to send [10:18:56]OFD Sender: No OFD packet to send [10:19:01]OFD Sender: No OFD packet to send [10:19:06]OFD Sender: No OFD packet to send [10:19:11]OFD Sender: No OFD packet to send [10:19:16]OFD Sender: No OFD packet to send [10:19:21]OFD Sender: No OFD packet to send [10:19:26]OFD Sender: No OFD packet to send [10:19:31]OFD Sender: No OFD packet to send [10:19:36]OFD Sender: No OFD packet to send [10:19:41]OFD Sender: No OFD packet to send [10:19:46]OFD Sender: No OFD packet to send [10:19:51]OFD Sender: No OFD packet to send [10:19:56]OFD Sender: No OFD packet to send [10:20:01]OFD Sender: No OFD packet to send [10:20:06]OFD Sender: No OFD packet to send [10:20:11]OFD Sender: No OFD packet to send [10:20:16]OFD Sender: No OFD packet to send [10:20:21]OFD Sender: No OFD packet to send [10:20:26]OFD Sender: No OFD packet to send [10:20:31]OFD Sender: No OFD packet to send [10:20:36]OFD Sender: No OFD packet to send [10:20:41]OFD Sender: No OFD packet to send [10:20:46]OFD Sender: No OFD packet to send [10:20:51]OFD Sender: No OFD packet to send [10:20:56]OFD Sender: No OFD packet to send [10:21:01]OFD Sender: No OFD packet to send [10:21:06]OFD Sender: No OFD packet to send [10:21:11]OFD Sender: No OFD packet to send [10:21:16]OFD Sender: No OFD packet to send [10:21:21]OFD Sender: No OFD packet to send [10:21:26]OFD Sender: No OFD packet to send [10:21:31]OFD Sender: No OFD packet to send [10:21:36]OFD Sender: No OFD packet to send [10:21:41]OFD Sender: No OFD packet to send [10:21:46]OFD Sender: No OFD packet to send [10:21:51]OFD Sender: No OFD packet to send [10:21:56]OFD Sender: No OFD packet to send [10:22:01]OFD Sender: No OFD packet to send [10:22:06]OFD Sender: No OFD packet to send [10:22:11]OFD Sender: No OFD packet to send [10:22:16]OFD Sender: No OFD packet to send [10:22:21]OFD Sender: No OFD packet to send [10:22:26]OFD Sender: No OFD packet to send [10:22:31]OFD Sender: No OFD packet to send [10:22:36]OFD Sender: No OFD packet to send [10:22:41]OFD Sender: No OFD packet to send [10:22:46]OFD Sender: No OFD packet to send [10:22:51]OFD Sender: No OFD packet to send [10:22:56]OFD Sender: No OFD packet to send [10:23:01]OFD Sender: No OFD packet to send [10:23:06]OFD Sender: No OFD packet to send [10:23:11]OFD Sender: No OFD packet to send [10:23:16]OFD Sender: No OFD packet to send [10:23:21]OFD Sender: No OFD packet to send [10:23:26]OFD Sender: No OFD packet to send [10:23:31]OFD Sender: No OFD packet to send [10:23:36]OFD Sender: No OFD packet to send [10:23:41]OFD Sender: No OFD packet to send [10:23:46]OFD Sender: No OFD packet to send [10:23:51]OFD Sender: No OFD packet to send [10:23:56]OFD Sender: No OFD packet to send [10:24:01]OFD Sender: No OFD packet to send [10:24:06]OFD Sender: No OFD packet to send [10:24:11]OFD Sender: No OFD packet to send [10:24:16]OFD Sender: No OFD packet to send [10:24:21]OFD Sender: No OFD packet to send [10:24:26]OFD Sender: No OFD packet to send [10:24:31]OFD Sender: No OFD packet to send [10:24:36]OFD Sender: No OFD packet to send [10:24:41]OFD Sender: No OFD packet to send [10:24:46]OFD Sender: No OFD packet to send [10:24:51]OFD Sender: No OFD packet to send [10:24:56]OFD Sender: No OFD packet to send [10:25:01]OFD Sender: No OFD packet to send [10:25:06]OFD Sender: No OFD packet to send [10:25:11]OFD Sender: No OFD packet to send [10:25:16]OFD Sender: No OFD packet to send [10:25:21]accept exits with 9 [10:25:21]New connection [10:25:21]New thread 3067084132 created [10:25:21]Thread 3067227492 joined [10:25:21]Waiting for new connection... [10:25:21] Sock 9.Parse request [10:25:21]Sock 9.Check first char [10:25:21]Sock 9.First char is OK [10:25:21]request: POST /json_proto HTTP/1.0 [10:25:21]Method: POST [10:25:21]URL: /json_proto [10:25:21]Method is POST - this is cgi request [10:25:21]url: /json_proto [10:25:21]query_string will be loaded in cgi processing [10:25:21]execute_cgi json_proto POST (null) [10:25:21]execute_cgi path=json_proto method=POST [10:25:21]POST find Content-Length [10:25:21]Host: 172.17.36.132:8080 [10:25:21]Content-Length: 687 [10:25:21]Content-Type: application/json [10:25:21] [10:25:21]POST finish read [10:25:21]Found Content-Length = 687 [10:25:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706665", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "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" ] } } [10:25:21]execute_script... [10: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)706665", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "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" ] } } [10:25:21]POST & json_proto [10:25:21]process_json_proto [10:25:21]json parsed OK: [10:25:21]protocol is kg_v1.0 [10:25:21]action value=close_receipt [10:25:21]process_action close_receipt [10:25:21]cmd_close_receipt [10:25:21]MH_GetDate [10:25:21]Write to MH i2c: F0 00 00 85 19 8D [10:25:21]Write i2c OK [10:25:21]MH_I2C_Read... [10:25:21]Read from MH i2c: F0 [10:25:21]MH_I2C_Read... [10:25:21]Read from MH i2c: F0 09 00 [10:25:21]MH_I2C_Read... [10:25:21]Read from MH i2c: F0 09 00 85 19 00 94 EB 5E 66 B2 22 B0 64 C1 [10:25:21]GetLastDocTimeStamp 1717496232 [10:25:21]current date 1717496724 [10:25:21]FM_GetShiftState [10:25:21]SAM_PROTO_GetShiftState [10:25:21]wFMCommunicate request_size=4 [10:25:21]MH_SAM_APDU [10:25:21]CAPDU: 80 13 01 00 [10:25:21]Write to MH i2c: E2 08 00 86 19 80 13 01 00 00 00 00 00 1C [10:25:21]Write i2c OK [10:25:21]MH_I2C_Read... [10:25:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:25:21]Read from MH i2c: E2 [10:25:21]MH_I2C_Read... [10:25:21]Read from MH i2c: E2 0E 00 [10:25:21]MH_I2C_Read... [10:25:21]Read from MH i2c: E2 0E 00 86 19 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 B8 [10:25:21]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [10:25:21]wFMCommunicate OK [10:25:21]SAM_PROTO_GetShiftState done [10:25:21]FM_GetShiftState done [10:25:21]opened in 1717460590 [10:25:21]opened+sec_in_day 1717546990 [10:25:21]quantity*price = 150028 [10:25:21]sum+1 = 150029 [10:25:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.32 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 40 04.06.2024 10:25 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68542 ФПД: 225731808915672 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T102524&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68542&fm=225731808915672&tin=02508201610067®Number=0000000000098096&sum=150000 [10:25:22]StoreToDocumentArchive [10:25:22]shift 325 fd 68542 [10:25:22]save to /storage/0325/doc_00068542 [10:25:22]save last doc name /storage/0325/doc_00068542 to /storage/kkm_last_doc_name [10:25:22]save OK [10:25:22]Clear old archive folders... [10:25:22]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:25:22]tlvbuf is 009F52D0 [10:25:22]SAM_PROTO_ClearQueue [10:25:22]wFMCommunicate request_size=4 [10:25:22]MH_SAM_APDU [10:25:22]CAPDU: 80 09 00 00 [10:25:22]Write to MH i2c: E2 08 00 93 19 80 09 00 00 00 00 00 00 1E [10:25:22]Write i2c OK [10:25:22]MH_I2C_Read... [10:25:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:25:22]Read from MH i2c: E2 [10:25:22]MH_I2C_Read... [10:25:22]Read from MH i2c: E2 03 00 [10:25:22]MH_I2C_Read... [10:25:22]Read from MH i2c: E2 03 00 93 19 00 90 00 20 [10:25:22]RAPDU: 90 00 [10:25:22]wFMCommunicate OK [10:25:22]SAM_PROTO_ClearQueue done [10:25:22]KKMCreateOFDPacket [10:25:22]OFDProtocolAddRootSTLVToBuf [10:25:22]FM_MakeSignedData [10:25:22]FM_MakeSignedData [10:25:22]SAM_PROTO_SignData [10:25:22]wFMCommunicate request_size=4 [10:25:22]MH_SAM_APDU [10:25:22]CAPDU: 80 0D 01 02 [10:25:22]Write to MH i2c: E2 08 00 94 19 80 0D 01 02 00 00 00 00 26 [10:25:22]Write i2c OK [10:25:22]MH_I2C_Read... [10:25:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:25:22]Read from MH i2c: E2 [10:25:22]MH_I2C_Read... [10:25:22]Read from MH i2c: E2 03 00 [10:25:22]MH_I2C_Read... [10:25:22]Read from MH i2c: E2 03 00 94 19 00 90 00 21 [10:25:22]RAPDU: 90 00 [10:25:22]wFMCommunicate OK [10:25:22]wFMCommunicate request_size=255 [10:25:22]MH_SAM_APDU [10:25:22]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 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 28 00 00 00 F4 03 04 00 94 EB 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 BE 0B 01 00 35 04 06 00 [10:25:22]Write to MH i2c: E2 02 01 95 19 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 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 28 00 00 00 F4 03 04 00 94 EB 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 BE 0B 01 00 35 04 06 00 00 00 AB [10:25:22]Write i2c OK [10:25:22]MH_I2C_Read... [10:25:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:25:22]Read from MH i2c: E2 [10:25:22]MH_I2C_Read... [10:25:22]Read from MH i2c: E2 03 00 [10:25:22]MH_I2C_Read... [10:25:22]Read from MH i2c: E2 03 00 95 19 00 90 00 22 [10:25:22]RAPDU: 90 00 [10:25:22]wFMCommunicate OK [10:25:22]wFMCommunicate request_size=11 [10:25:22]MH_SAM_APDU [10:25:22]CAPDU: 80 0D 02 02 06 CD 4D 48 48 F0 D8 [10:25:22]Write to MH i2c: E2 0E 00 96 19 80 0D 02 02 06 00 CD 4D 48 48 F0 D8 00 00 A7 [10:25:22]Write i2c OK [10:25:22]MH_I2C_Read... [10:25:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:25:22]Read from MH i2c: E2 [10:25:22]MH_I2C_Read... [10:25:22]Read from MH i2c: E2 03 00 [10:25:22]MH_I2C_Read... [10:25:22]Read from MH i2c: E2 03 00 96 19 00 90 00 23 [10:25:22]RAPDU: 90 00 [10:25:22]wFMCommunicate OK [10:25:22]wFMCommunicate request_size=4 [10:25:22]MH_SAM_APDU [10:25:22]CAPDU: 80 0D 03 02 [10:25:22]Write to MH i2c: E2 08 00 97 19 80 0D 03 02 00 00 00 00 2B [10:25:22]Write i2c OK [10:25:22]MH_I2C_Read... [10:25:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:25:22]Read from MH i2c: E2 [10:25:22]MH_I2C_Read... [10:25:22]Read from MH i2c: E2 0B 00 [10:25:22]MH_I2C_Read... [10:25:22]Read from MH i2c: E2 0B 00 97 19 00 9A B1 34 E6 86 07 D7 D5 90 00 CA [10:25:22]RAPDU: 9A B1 34 E6 86 07 D7 D5 90 00 [10:25:22]wFMCommunicate OK [10:25:22]SAM_PROTO_SignData done [10:25:22]FM_MakeSignedData done [10:25:22]CreateOFDProtocolMessage [10:25:22]wFMCommunicate request_size=4 [10:25:22]MH_SAM_APDU [10:25:22]CAPDU: 80 11 00 00 [10:25:22]Write to MH i2c: E2 08 00 98 19 80 11 00 00 00 00 00 00 2B [10:25:22]Write i2c OK [10:25:22]MH_I2C_Read... [10:25:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:25:22]Read from MH i2c: E2 [10:25:22]MH_I2C_Read... [10:25:22]Read from MH i2c: E2 17 00 [10:25:22]MH_I2C_Read... [10:25:22]Read from MH i2c: E2 17 00 98 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 76 [10:25:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [10:25:22]wFMCommunicate OK [10:25:22]CreateOFDProtocolMessage done [10:25:22]OFDSenderStorePacket 68542 [10:25:22]StoreOFDPacket docnum=68542 [10:25:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 DE E4 08 01 4E E2 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 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 28 00 00 00 F4 03 04 00 94 EB 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 BE 0B 01 00 35 04 06 00 CD 4D 48 48 F0 D8 9A B1 34 E6 86 07 D7 D5 [10:25:22]CheckFolder [10:25:22]dirname=/storage/ofd_packets [10:25:22]CheckFolder done [10:25:22]ProducePacketName [10:25:22]name=ofd_packets/00068542 [10:25:22]NVStorageSaveData ofd_packets/00068542 [10:25:22]File name is /storage/ofd_packets/00068542 [10:25:22]Write 302 bytes [10:25:22]NVStorageSaveData done [10:25:22]OFDSenderStorePacket done [10:25:22]KKMCreateOFDPacket done [10:25:22]NVStorageSaveData kkm_last_timestamp [10:25:22]File name is /storage/kkm_last_timestamp [10:25:22]Write 4 bytes [10:25:22]NVStorageSaveData done [10:25:22]ExternCall_PrintAddStr [10:25:22]wPrintStart [10:25:22]Write to MH i2c: 01 00 00 99 19 B2 [10:25:22]Write i2c OK [10:25:22]MH_I2C_Read... [10:25:22]Read from MH i2c: 01 [10:25:22]MH_I2C_Read... [10:25:22]Read from MH i2c: 01 07 00 [10:25:22]MH_I2C_Read... [10:25:22]Read from MH i2c: 01 07 00 99 19 00 00 00 00 00 FF 0F C7 [10:25:22]RasterBufferAndPrint [10:25:22]line Счет N : (1)706665 [10:25:22]line ИНН: 02508201610067 [10:25:22]line Контрольно-Кассовый Чек [10:25:22]line ПРОДАЖА [10:25:22]line ТРК (МРК, ГНК) : 51 [10:25:22]line Товар: 2710194210 [10:25:22]line ДТ(л)-К-4 [10:25:22]line 20.580 * 72.90 [10:25:22]line = 1500.28 [10:25:22]line НДС 12% НСП 1% [10:25:22]line > о реализуемом товаре [10:25:22]line ОКРУГЛЕНИЕ: -0.28 [10:25:22]line ИТОГО: 1500.00 [10:25:22]line Внесено: 1500.00 [10:25:22]line СДАЧА: 0.00 [10:25:22]line НСП 1% : 13.28 [10:25:22]line НДС 12% : 159.32 [10:25:22]line Наличными: 1500.00 [10:25:22]line Безнал.: 0.00 [10:25:22]line Место: АЗС № 62 "Партнер Нефть" [10:25:22]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [10:25:22]line СНО: Общий режим [10:25:22]line Чек 40 04.06.2024 10:25 [10:25:22]line Смена: 325 ФФД: 1.0 [10:25:22]line ЗНМ: 0300000181 [10:25:22]line РНМ: 0000000000098096 [10:25:22]line Версия ККМ: 001 [10:25:22]line ФМ: 0000000000965400 [10:25:22]line ФД: 68542 [10:25:22]line ФПД: 225731808915672 [10:25:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T102524&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68542&fm=225731808915672&tin=02508201610067®Number=0000000000098096&sum=150000 [10:25:23]OFD Sender: Processing packet 68542 [packets to send 26, broken 25] [10:25:23]ProducePacketName [10:25:23]name=ofd_packets/00068542 [10:25:23]OFD Sender: To server: pG, [10:25:23]CommunicateWithHost lk.salyk.kg:30040 [10:25:23]ConnectInit lk.salyk.kg [10:25:23]written 0, free lines is 4095 [10:25:23]Connected sock=10 [10:25:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 DE E4 08 01 4E E2 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 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 28 00 00 00 F4 03 04 00 94 EB 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 BE 0B 01 00 35 04 06 00 CD 4D 48 48 F0 D8 9A B1 34 E6 86 07 D7 D5 [10:25:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 07 D4 47 00 39 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 39 36 35 34 30 30 10 04 04 00 BE 0B 01 00 F4 03 04 00 8D 92 5E 66 B6 04 01 00 00 19 6C 4C 40 1F 40 DB 4F [10:25:23]CommunicateWithHost err = 0 [10:25:23]CheckOFDResponse [10:25:23]1017 (14) - 77093643461234 [10:25:23]1041 (16) - 0000000000965400 [10:25:23]1040 (4) - 68542 [10:25:23]1012 (4) - 04.06.2024 04:05 [10:25:23]1206 (1) - 0 [10:25:23]OFD Sender: Remove packet 68542 [10:25:23]ProducePacketName [10:25:23]name=ofd_packets/00068542 [10:25:23]NVStorageDeleteData [10:25:23]Write to MH i2c: 01 00 00 C4 19 DD [10:25:23]Write i2c OK [10:25:23]MH_I2C_Read... [10:25:23]Read from MH i2c: 01 [10:25:23]MH_I2C_Read... [10:25:23]Read from MH i2c: 01 07 00 [10:25:23]MH_I2C_Read... [10:25:23]Read from MH i2c: 01 07 00 C4 19 00 00 00 00 00 D3 0C C3 [10:25:23]RasterBufferAndPrint [10:25:23]line [10:25:23]line [10:25:23]line [10:25:23]line [10:25:23]line [10:25:23]written 0, free lines is 3290 [10:25:23]MH_Cut [10:25:23]Write to MH i2c: D1 01 00 CB 19 01 B6 [10:25:23]Write i2c OK [10:25:23]MH_I2C_Read... [10:25:23]Read from MH i2c: D1 [10:25:23]MH_I2C_Read... [10:25:23]Read from MH i2c: D1 01 00 [10:25:23]MH_I2C_Read... [10:25:23]Read from MH i2c: D1 01 00 CB 19 00 B5 [10:25:23]Write to MH i2c: 01 00 00 CC 19 E5 [10:25:23]Write i2c OK [10:25:23]MH_I2C_Read... [10:25:23]OFD Sender: No OFD packet to send [10:25:24]*** Cut start [10:25:24]*** Partial cut [10:25:24]*** CUTSNS_PIN = 1 [10:25:24]*** CUTSNS_PIN = 0 [10:25:24]*** Brake cut motor [10:25:24]Read from MH i2c: 01 [10:25:24]MH_I2C_Read... [10:25:24]*** Stop cut motor [10:25:24]*** Cut end [10:25:24]Read from MH i2c: 01 07 00 [10:25:24]MH_I2C_Read... [10:25:24]Read from MH i2c: 01 07 00 CC 19 00 00 00 00 00 FF 0F FA [10:25:24]process_action close_receipt done [10:25:24]requested_data is exist [10:25:24]produce_requested_data [10:25:24]requested_item fm.sn is exist - process it [10:25:24]wFMCommunicate request_size=4 [10:25:24]MH_SAM_APDU [10:25:24]CAPDU: 80 11 00 00 [10:25:24]Write to MH i2c: E2 08 00 CD 19 80 11 00 00 00 00 00 00 60 [10:25:24]Write i2c OK [10:25:24]MH_I2C_Read... [10:25:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:25:25]Read from MH i2c: E2 [10:25:25]MH_I2C_Read... [10:25:25]Read from MH i2c: E2 17 00 [10:25:25]MH_I2C_Read... [10:25:25]Read from MH i2c: E2 17 00 CD 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 AB [10:25:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [10:25:25]wFMCommunicate OK [10:25:25]requested_item fd.num is exist - process it [10:25:25]SAM_PROTO_GetFieldsCounters [10:25:25]wFMCommunicate request_size=4 [10:25:25]MH_SAM_APDU [10:25:25]CAPDU: 80 13 00 00 [10:25:25]Write to MH i2c: E2 08 00 CE 19 80 13 00 00 00 00 00 00 63 [10:25:25]Write i2c OK [10:25:25]MH_I2C_Read... [10:25:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:25:25]Read from MH i2c: E2 [10:25:25]MH_I2C_Read... [10:25:25]Read from MH i2c: E2 62 00 [10:25:25]MH_I2C_Read... [10:25:25]Read from MH i2c: E2 62 00 CE 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 BE 0B 01 00 0E 04 04 00 45 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 0B [10:25:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 BE 0B 01 00 0E 04 04 00 45 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 [10:25:25]wFMCommunicate OK [10:25:25]SAM_PROTO_GetFieldsCounters done [10:25:25]requested_item shift.num is exist - process it [10:25:25]requested_item shift.opened is exist - process it [10:25:25]req_shift_opened [10:25:25]FM_GetShiftState [10:25:25]SAM_PROTO_GetShiftState [10:25:25]wFMCommunicate request_size=4 [10:25:25]MH_SAM_APDU [10:25:25]CAPDU: 80 13 01 00 [10:25:25]Write to MH i2c: E2 08 00 CF 19 80 13 01 00 00 00 00 00 65 [10:25:25]Write i2c OK [10:25:25]MH_I2C_Read... [10:25:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:25:25]Read from MH i2c: E2 [10:25:25]MH_I2C_Read... [10:25:25]Read from MH i2c: E2 0E 00 [10:25:25]MH_I2C_Read... [10:25:25]Read from MH i2c: E2 0E 00 CF 19 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 01 [10:25:25]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [10:25:25]wFMCommunicate OK [10:25:25]SAM_PROTO_GetShiftState done [10:25:25]FM_GetShiftState done [10:25:25]req_shift_opened done [10:25:25]requested_item shift.open_date is exist - process it [10:25:25]req_shift_open_date [10:25:25]req_shift_open_date done [10:25:25]produce_requested_data done [10:25:25]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68542,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [10:25:25]process_action_free close_receipt [10:25:25]json_value_free [10:25:25]json_value_free done [10:25:25]process_json_proto returns [10:25:25]Send response to host [10:25:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68542,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [10:25:25]free response buf [10:25:25]execute_script done [10:25:25]execute_script returns [10:25:25]free content buf [10:25:25]Sock 9.Close socket [10:25:25]Sock 9.Thread stoped [10:25:28]OFD Sender: No OFD packet to send [10:25:33]OFD Sender: No OFD packet to send [10:25:38]OFD Sender: No OFD packet to send [10:25:43]OFD Sender: No OFD packet to send [10:25:48]OFD Sender: No OFD packet to send [10:25:53]OFD Sender: No OFD packet to send [10:25:58]OFD Sender: No OFD packet to send [10:26:03]OFD Sender: No OFD packet to send [10:26:08]OFD Sender: No OFD packet to send [10:26:13]OFD Sender: No OFD packet to send [10:26:18]OFD Sender: No OFD packet to send [10:26:23]OFD Sender: No OFD packet to send [10:26:28]OFD Sender: No OFD packet to send [10:26:33]OFD Sender: No OFD packet to send [10:26:38]OFD Sender: No OFD packet to send [10:26:43]OFD Sender: No OFD packet to send [10:26:48]OFD Sender: No OFD packet to send [10:26:53]OFD Sender: No OFD packet to send [10:26:58]OFD Sender: No OFD packet to send [10:27:03]OFD Sender: No OFD packet to send [10:27:08]OFD Sender: No OFD packet to send [10:27:13]OFD Sender: No OFD packet to send [10:27:18]OFD Sender: No OFD packet to send [10:27:23]OFD Sender: No OFD packet to send [10:27:29]OFD Sender: No OFD packet to send [10:27:34]OFD Sender: No OFD packet to send [10:27:39]OFD Sender: No OFD packet to send [10:27:44]OFD Sender: No OFD packet to send [10:27:49]OFD Sender: No OFD packet to send [10:27:54]OFD Sender: No OFD packet to send [10:27:59]OFD Sender: No OFD packet to send [10:28:04]accept exits with 7 [10:28:04]New connection [10:28:04]New thread 3067227492 created [10:28:04]Thread 3067084132 joined [10:28:04]Waiting for new connection... [10:28:04] Sock 7.Parse request [10:28:04]Sock 7.Check first char [10:28:04]Sock 7.First char is OK [10:28:04]request: POST /json_proto HTTP/1.0 [10:28:04]Method: POST [10:28:04]URL: /json_proto [10:28:04]Method is POST - this is cgi request [10:28:04]url: /json_proto [10:28:04]query_string will be loaded in cgi processing [10:28:04]execute_cgi json_proto POST (null) [10:28:04]execute_cgi path=json_proto method=POST [10:28:04]POST find Content-Length [10:28:04]Host: 172.17.36.132:8080 [10:28:04]Content-Length: 677 [10:28:04]Content-Type: application/json [10:28:04] [10:28:04]POST finish read [10:28:04]Found Content-Length = 677 [10:28:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706666", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:28:04]execute_script... [10:28: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)706666", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:28:04]POST & json_proto [10:28:04]process_json_proto [10:28:04]json parsed OK: [10:28:04]protocol is kg_v1.0 [10:28:04]action value=close_receipt [10:28:04]process_action close_receipt [10:28:04]cmd_close_receipt [10:28:04]MH_GetDate [10:28:04]Write to MH i2c: F0 00 00 D0 19 D8 [10:28:04]Write i2c OK [10:28:04]MH_I2C_Read... [10:28:04]Read from MH i2c: F0 [10:28:04]MH_I2C_Read... [10:28:04]Read from MH i2c: F0 09 00 [10:28:04]MH_I2C_Read... [10:28:04]Read from MH i2c: F0 09 00 D0 19 00 37 EC 5E 66 B2 22 B0 64 B0 [10:28:04]GetLastDocTimeStamp 1717496724 [10:28:04]current date 1717496887 [10:28:04]FM_GetShiftState [10:28:04]SAM_PROTO_GetShiftState [10:28:04]wFMCommunicate request_size=4 [10:28:04]MH_SAM_APDU [10:28:04]CAPDU: 80 13 01 00 [10:28:04]Write to MH i2c: E2 08 00 D1 19 80 13 01 00 00 00 00 00 67 [10:28:04]Write i2c OK [10:28:04]MH_I2C_Read... [10:28:04]OFD Sender: No OFD packet to send [10:28:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:28:04]Read from MH i2c: E2 [10:28:04]MH_I2C_Read... [10:28:04]Read from MH i2c: E2 0E 00 [10:28:04]MH_I2C_Read... [10:28:04]Read from MH i2c: E2 0E 00 D1 19 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 03 [10:28:04]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [10:28:04]wFMCommunicate OK [10:28:04]SAM_PROTO_GetShiftState done [10:28:04]FM_GetShiftState done [10:28:04]opened in 1717460590 [10:28:04]opened+sec_in_day 1717546990 [10:28:04]quantity*price = 40006 [10:28:04]sum+1 = 40007 [10:28:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 41 04.06.2024 10:28 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68543 ФПД: 195521739431517 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T102807&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68543&fm=195521739431517&tin=02508201610067®Number=0000000000098096&sum=40000 [10:28:05]StoreToDocumentArchive [10:28:05]shift 325 fd 68543 [10:28:05]save to /storage/0325/doc_00068543 [10:28:05]save last doc name /storage/0325/doc_00068543 to /storage/kkm_last_doc_name [10:28:05]save OK [10:28:05]Clear old archive folders... [10:28:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:28:05]tlvbuf is 009C80B0 [10:28:05]SAM_PROTO_ClearQueue [10:28:05]wFMCommunicate request_size=4 [10:28:05]MH_SAM_APDU [10:28:05]CAPDU: 80 09 00 00 [10:28:05]Write to MH i2c: E2 08 00 DE 19 80 09 00 00 00 00 00 00 69 [10:28:05]Write i2c OK [10:28:05]MH_I2C_Read... [10:28:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:28:05]Read from MH i2c: E2 [10:28:05]MH_I2C_Read... [10:28:05]Read from MH i2c: E2 03 00 [10:28:05]MH_I2C_Read... [10:28:05]Read from MH i2c: E2 03 00 DE 19 00 90 00 6B [10:28:05]RAPDU: 90 00 [10:28:05]wFMCommunicate OK [10:28:05]SAM_PROTO_ClearQueue done [10:28:05]KKMCreateOFDPacket [10:28:05]OFDProtocolAddRootSTLVToBuf [10:28:05]FM_MakeSignedData [10:28:05]FM_MakeSignedData [10:28:05]SAM_PROTO_SignData [10:28:05]wFMCommunicate request_size=4 [10:28:05]MH_SAM_APDU [10:28:05]CAPDU: 80 0D 01 02 [10:28:05]Write to MH i2c: E2 08 00 DF 19 80 0D 01 02 00 00 00 00 71 [10:28:05]Write i2c OK [10:28:05]MH_I2C_Read... [10:28:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:28:05]Read from MH i2c: E2 [10:28:05]MH_I2C_Read... [10:28:05]Read from MH i2c: E2 03 00 [10:28:05]MH_I2C_Read... [10:28:05]Read from MH i2c: E2 03 00 DF 19 00 90 00 6C [10:28:05]RAPDU: 90 00 [10:28:05]wFMCommunicate OK [10:28:05]wFMCommunicate request_size=255 [10:28:05]MH_SAM_APDU [10:28: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 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 37 EC 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 BF 0B 01 00 35 04 06 00 B1 [10:28:05]Write to MH i2c: E2 02 01 E0 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 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 37 EC 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 BF 0B 01 00 35 04 06 00 B1 00 00 9F [10:28:05]Write i2c OK [10:28:05]MH_I2C_Read... [10:28:05]Read from MH i2c: E2 [10:28:05]MH_I2C_Read... [10:28:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:28:05]Read from MH i2c: E2 03 00 [10:28:05]MH_I2C_Read... [10:28:05]Read from MH i2c: E2 03 00 E0 19 00 90 00 6D [10:28:05]RAPDU: 90 00 [10:28:05]wFMCommunicate OK [10:28:05]wFMCommunicate request_size=10 [10:28:05]MH_SAM_APDU [10:28:05]CAPDU: 80 0D 02 02 05 D3 73 D3 1E 5D [10:28:05]Write to MH i2c: E2 0D 00 E1 19 80 0D 02 02 05 00 D3 73 D3 1E 5D 00 00 12 [10:28:05]Write i2c OK [10:28:05]MH_I2C_Read... [10:28:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:28:05]Read from MH i2c: E2 [10:28:05]MH_I2C_Read... [10:28:05]Read from MH i2c: E2 03 00 [10:28:05]MH_I2C_Read... [10:28:05]Read from MH i2c: E2 03 00 E1 19 00 90 00 6E [10:28:05]RAPDU: 90 00 [10:28:05]wFMCommunicate OK [10:28:05]wFMCommunicate request_size=4 [10:28:05]MH_SAM_APDU [10:28:05]CAPDU: 80 0D 03 02 [10:28:05]Write to MH i2c: E2 08 00 E2 19 80 0D 03 02 00 00 00 00 76 [10:28:05]Write i2c OK [10:28:05]MH_I2C_Read... [10:28:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:28:05]Read from MH i2c: E2 [10:28:05]MH_I2C_Read... [10:28:05]Read from MH i2c: E2 0B 00 [10:28:05]MH_I2C_Read... [10:28:05]Read from MH i2c: E2 0B 00 E2 19 00 A3 88 5A 45 A5 04 1A 31 90 00 35 [10:28:05]RAPDU: A3 88 5A 45 A5 04 1A 31 90 00 [10:28:05]wFMCommunicate OK [10:28:05]SAM_PROTO_SignData done [10:28:05]FM_MakeSignedData done [10:28:05]CreateOFDProtocolMessage [10:28:05]wFMCommunicate request_size=4 [10:28:05]MH_SAM_APDU [10:28:05]CAPDU: 80 11 00 00 [10:28:05]Write to MH i2c: E2 08 00 E3 19 80 11 00 00 00 00 00 00 76 [10:28:05]Write i2c OK [10:28:05]MH_I2C_Read... [10:28:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:28:05]Read from MH i2c: E2 [10:28:05]MH_I2C_Read... [10:28:05]Read from MH i2c: E2 17 00 [10:28:05]MH_I2C_Read... [10:28:05]Read from MH i2c: E2 17 00 E3 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 C1 [10:28:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [10:28:05]wFMCommunicate OK [10:28:05]CreateOFDProtocolMessage done [10:28:05]OFDSenderStorePacket 68543 [10:28:05]StoreOFDPacket docnum=68543 [10:28:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 41 CB 07 01 24 93 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 37 EC 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 BF 0B 01 00 35 04 06 00 B1 D3 73 D3 1E 5D A3 88 5A 45 A5 04 1A 31 [10:28:05]CheckFolder [10:28:05]dirname=/storage/ofd_packets [10:28:05]CheckFolder done [10:28:05]ProducePacketName [10:28:05]name=ofd_packets/00068543 [10:28:05]NVStorageSaveData ofd_packets/00068543 [10:28:05]File name is /storage/ofd_packets/00068543 [10:28:05]Write 301 bytes [10:28:05]NVStorageSaveData done [10:28:05]OFDSenderStorePacket done [10:28:05]KKMCreateOFDPacket done [10:28:05]NVStorageSaveData kkm_last_timestamp [10:28:05]File name is /storage/kkm_last_timestamp [10:28:05]Write 4 bytes [10:28:05]NVStorageSaveData done [10:28:05]ExternCall_PrintAddStr [10:28:05]wPrintStart [10:28:05]Write to MH i2c: 01 00 00 E4 19 FD [10:28:05]Write i2c OK [10:28:05]MH_I2C_Read... [10:28:05]Read from MH i2c: 01 [10:28:05]MH_I2C_Read... [10:28:05]Read from MH i2c: 01 07 00 [10:28:05]MH_I2C_Read... [10:28:05]Read from MH i2c: 01 07 00 E4 19 00 00 00 00 00 FF 0F 12 [10:28:05]RasterBufferAndPrint [10:28:05]line Счет N : (1)706666 [10:28:05]line ИНН: 02508201610067 [10:28:05]line Контрольно-Кассовый Чек [10:28:05]line ПРОДАЖА [10:28:05]line ТРК (МРК, ГНК) : 42 [10:28:05]line Товар: 2710124130 [10:28:05]line Аи-92-К-4 [10:28:05]line 5.980 * 66.90 [10:28:05]line = 400.06 [10:28:05]line НДС 12% НСП 1% [10:28:05]line > о реализуемом товаре [10:28:05]line ОКРУГЛЕНИЕ: -0.06 [10:28:05]line ИТОГО: 400.00 [10:28:05]line Внесено: 400.00 [10:28:05]line СДАЧА: 0.00 [10:28:05]line НСП 1% : 3.54 [10:28:05]line НДС 12% : 42.48 [10:28:05]line Наличными: 400.00 [10:28:05]line Безнал.: 0.00 [10:28:05]line Место: АЗС № 62 "Партнер Нефть" [10:28:05]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [10:28:05]line СНО: Общий режим [10:28:05]line Чек 41 04.06.2024 10:28 [10:28:05]line Смена: 325 ФФД: 1.0 [10:28:05]line ЗНМ: 0300000181 [10:28:05]line РНМ: 0000000000098096 [10:28:05]line Версия ККМ: 001 [10:28:05]line ФМ: 0000000000965400 [10:28:06]line ФД: 68543 [10:28:06]line ФПД: 195521739431517 [10:28:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T102807&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68543&fm=195521739431517&tin=02508201610067®Number=0000000000098096&sum=40000 [10:28:06]OFD Sender: Processing packet 68543 [packets to send 26, broken 25] [10:28:06]ProducePacketName [10:28:06]name=ofd_packets/00068543 [10:28:06]OFD Sender: To server: pG, [10:28:06]CommunicateWithHost lk.salyk.kg:30040 [10:28:06]ConnectInit lk.salyk.kg [10:28:06]written 0, free lines is 4095 [10:28:06]Connected sock=10 [10:28:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 41 CB 07 01 24 93 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 37 EC 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 BF 0B 01 00 35 04 06 00 B1 D3 73 D3 1E 5D A3 88 5A 45 A5 04 1A 31 [10:28:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 5B B1 47 00 AC 95 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 BF 0B 01 00 F4 03 04 00 30 93 5E 66 B6 04 01 00 00 35 7C 8B 16 EB F9 60 19 [10:28:06]CommunicateWithHost err = 0 [10:28:06]CheckOFDResponse [10:28:06]1017 (14) - 77093643461234 [10:28:06]1041 (16) - 0000000000965400 [10:28:06]1040 (4) - 68543 [10:28:06]1012 (4) - 04.06.2024 04:08 [10:28:06]1206 (1) - 0 [10:28:06]OFD Sender: Remove packet 68543 [10:28:06]ProducePacketName [10:28:06]name=ofd_packets/00068543 [10:28:06]NVStorageDeleteData [10:28:06]Write to MH i2c: 01 00 00 0F 1A 29 [10:28:06]Write i2c OK [10:28:06]MH_I2C_Read... [10:28:06]Read from MH i2c: 01 [10:28:06]MH_I2C_Read... [10:28:06]Read from MH i2c: 01 07 00 [10:28:06]MH_I2C_Read... [10:28:06]Read from MH i2c: 01 07 00 0F 1A 00 00 00 00 00 C3 0C FF [10:28:06]RasterBufferAndPrint [10:28:06]line [10:28:06]line [10:28:06]line [10:28:06]line [10:28:06]line [10:28:06]written 0, free lines is 3273 [10:28:06]MH_Cut [10:28:06]Write to MH i2c: D1 01 00 16 1A 01 02 [10:28:06]Write i2c OK [10:28:06]MH_I2C_Read... [10:28:06]Read from MH i2c: D1 [10:28:06]MH_I2C_Read... [10:28:06]Read from MH i2c: D1 01 00 [10:28:06]MH_I2C_Read... [10:28:06]Read from MH i2c: D1 01 00 16 1A 00 01 [10:28:06]Write to MH i2c: 01 00 00 17 1A 31 [10:28:06]Write i2c OK [10:28:06]MH_I2C_Read... [10:28:06]OFD Sender: No OFD packet to send [10:28:07]*** Cut start [10:28:07]*** Partial cut [10:28:07]*** CUTSNS_PIN = 1 [10:28:07]*** CUTSNS_PIN = 0 [10:28:07]*** Brake cut motor [10:28:07]Read from MH i2c: 01 [10:28:07]MH_I2C_Read... [10:28:07]*** Stop cut motor [10:28:07]*** Cut end [10:28:07]Read from MH i2c: 01 07 00 [10:28:07]MH_I2C_Read... [10:28:07]Read from MH i2c: 01 07 00 17 1A 00 00 00 00 00 FF 0F 46 [10:28:07]process_action close_receipt done [10:28:07]requested_data is exist [10:28:07]produce_requested_data [10:28:07]requested_item fm.sn is exist - process it [10:28:07]wFMCommunicate request_size=4 [10:28:07]MH_SAM_APDU [10:28:07]CAPDU: 80 11 00 00 [10:28:07]Write to MH i2c: E2 08 00 18 1A 80 11 00 00 00 00 00 00 AC [10:28:07]Write i2c OK [10:28:07]MH_I2C_Read... [10:28:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:28:07]Read from MH i2c: E2 [10:28:07]MH_I2C_Read... [10:28:07]Read from MH i2c: E2 17 00 [10:28:07]MH_I2C_Read... [10:28:07]Read from MH i2c: E2 17 00 18 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 F7 [10:28:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [10:28:07]wFMCommunicate OK [10:28:07]requested_item fd.num is exist - process it [10:28:07]SAM_PROTO_GetFieldsCounters [10:28:07]wFMCommunicate request_size=4 [10:28:07]MH_SAM_APDU [10:28:07]CAPDU: 80 13 00 00 [10:28:07]Write to MH i2c: E2 08 00 19 1A 80 13 00 00 00 00 00 00 AF [10:28:07]Write i2c OK [10:28:07]MH_I2C_Read... [10:28:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:28:08]Read from MH i2c: E2 [10:28:08]MH_I2C_Read... [10:28:08]Read from MH i2c: E2 62 00 [10:28:08]MH_I2C_Read... [10:28:08]Read from MH i2c: E2 62 00 19 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 BF 0B 01 00 0E 04 04 00 45 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 5B [10:28:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 BF 0B 01 00 0E 04 04 00 45 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 [10:28:08]wFMCommunicate OK [10:28:08]SAM_PROTO_GetFieldsCounters done [10:28:08]requested_item shift.num is exist - process it [10:28:08]requested_item shift.opened is exist - process it [10:28:08]req_shift_opened [10:28:08]FM_GetShiftState [10:28:08]SAM_PROTO_GetShiftState [10:28:08]wFMCommunicate request_size=4 [10:28:08]MH_SAM_APDU [10:28:08]CAPDU: 80 13 01 00 [10:28:08]Write to MH i2c: E2 08 00 1A 1A 80 13 01 00 00 00 00 00 B1 [10:28:08]Write i2c OK [10:28:08]MH_I2C_Read... [10:28:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:28:08]Read from MH i2c: E2 [10:28:08]MH_I2C_Read... [10:28:08]Read from MH i2c: E2 0E 00 [10:28:08]MH_I2C_Read... [10:28:08]Read from MH i2c: E2 0E 00 1A 1A 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 4D [10:28:08]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [10:28:08]wFMCommunicate OK [10:28:08]SAM_PROTO_GetShiftState done [10:28:08]FM_GetShiftState done [10:28:08]req_shift_opened done [10:28:08]requested_item shift.open_date is exist - process it [10:28:08]req_shift_open_date [10:28:08]req_shift_open_date done [10:28:08]produce_requested_data done [10:28:08]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68543,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [10:28:08]process_action_free close_receipt [10:28:08]json_value_free [10:28:08]json_value_free done [10:28:08]process_json_proto returns [10:28:08]Send response to host [10:28:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68543,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [10:28:08]free response buf [10:28:08]execute_script done [10:28:08]execute_script returns [10:28:08]free content buf [10:28:08]Sock 7.Close socket [10:28:08]Sock 7.Thread stoped [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:52]accept exits with 9 [10:29:52]New connection [10:29:52]New thread 3067084132 created [10:29:52]Thread 3067227492 joined [10:29:52]Waiting for new connection... [10:29:52] Sock 9.Parse request [10:29:52]Sock 9.Check first char [10:29:52]Sock 9.First char is OK [10:29:52]request: POST /json_proto HTTP/1.0 [10:29:52]Method: POST [10:29:52]URL: /json_proto [10:29:52]Method is POST - this is cgi request [10:29:52]url: /json_proto [10:29:52]query_string will be loaded in cgi processing [10:29:52]execute_cgi json_proto POST (null) [10:29:52]execute_cgi path=json_proto method=POST [10:29:52]POST find Content-Length [10:29:52]Host: 172.17.36.132:8080 [10:29:52]Content-Length: 833 [10:29:52]Content-Type: application/json [10:29:52] [10:29:52]POST finish read [10:29:52]Found Content-Length = 833 [10:29:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706667", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.90, "quantity" : 7.370, "sum" : 500.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.42 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:29:52]execute_script... [10:29: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)706667", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.90, "quantity" : 7.370, "sum" : 500.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.42 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:29:52]POST & json_proto [10:29:52]process_json_proto [10:29:52]json parsed OK: [10:29:52]protocol is kg_v1.0 [10:29:52]action value=close_receipt [10:29:52]process_action close_receipt [10:29:52]cmd_close_receipt [10:29:52]MH_GetDate [10:29:52]Write to MH i2c: F0 00 00 1B 1A 24 [10:29:52]Write i2c OK [10:29:52]MH_I2C_Read... [10:29:52]Read from MH i2c: F0 [10:29:52]MH_I2C_Read... [10:29:52]Read from MH i2c: F0 09 00 [10:29:52]MH_I2C_Read... [10:29:52]Read from MH i2c: F0 09 00 1B 1A 00 A4 EC 5E 66 B2 22 B0 64 69 [10:29:52]GetLastDocTimeStamp 1717496887 [10:29:52]current date 1717496996 [10:29:52]FM_GetShiftState [10:29:52]SAM_PROTO_GetShiftState [10:29:52]wFMCommunicate request_size=4 [10:29:52]MH_SAM_APDU [10:29:52]CAPDU: 80 13 01 00 [10:29:52]Write to MH i2c: E2 08 00 1C 1A 80 13 01 00 00 00 00 00 B3 [10:29:52]Write i2c OK [10:29:52]MH_I2C_Read... [10:29:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:29:52]Read from MH i2c: E2 [10:29:52]MH_I2C_Read... [10:29:52]Read from MH i2c: E2 0E 00 [10:29:52]MH_I2C_Read... [10:29:52]Read from MH i2c: E2 0E 00 1C 1A 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 4F [10:29:52]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [10:29:52]wFMCommunicate OK [10:29:52]SAM_PROTO_GetShiftState done [10:29:52]FM_GetShiftState done [10:29:52]opened in 1717460590 [10:29:52]opened+sec_in_day 1717546990 [10:29:52]quantity*price = 50042 [10:29:52]sum+1 = 50043 [10:29:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.42 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.42 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 42 04.06.2024 10:29 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000965400 ФД: 68544 ФПД: 180712402260063 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T102956&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68544&fm=180712402260063&tin=02508201610067®Number=0000000000098096&sum=50042 [10:29:53]StoreToDocumentArchive [10:29:53]shift 325 fd 68544 [10:29:53]save to /storage/0325/doc_00068544 [10:29:53]save last doc name /storage/0325/doc_00068544 to /storage/kkm_last_doc_name [10:29:53]save OK [10:29:53]Clear old archive folders... [10:29:53]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:29:53]tlvbuf is 00A10980 [10:29:53]SAM_PROTO_ClearQueue [10:29:53]wFMCommunicate request_size=4 [10:29:53]MH_SAM_APDU [10:29:53]CAPDU: 80 09 00 00 [10:29:53]Write to MH i2c: E2 08 00 29 1A 80 09 00 00 00 00 00 00 B5 [10:29:53]Write i2c OK [10:29:53]MH_I2C_Read... [10:29:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:29:53]Read from MH i2c: E2 [10:29:53]MH_I2C_Read... [10:29:53]Read from MH i2c: E2 03 00 [10:29:53]MH_I2C_Read... [10:29:53]Read from MH i2c: E2 03 00 29 1A 00 90 00 B7 [10:29:53]RAPDU: 90 00 [10:29:53]wFMCommunicate OK [10:29:53]SAM_PROTO_ClearQueue done [10:29:53]KKMCreateOFDPacket [10:29:53]OFDProtocolAddRootSTLVToBuf [10:29:53]FM_MakeSignedData [10:29:53]FM_MakeSignedData [10:29:53]SAM_PROTO_SignData [10:29:53]wFMCommunicate request_size=4 [10:29:53]MH_SAM_APDU [10:29:53]CAPDU: 80 0D 01 02 [10:29:53]Write to MH i2c: E2 08 00 2A 1A 80 0D 01 02 00 00 00 00 BD [10:29:53]Write i2c OK [10:29:53]MH_I2C_Read... [10:29:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:29:53]Read from MH i2c: E2 [10:29:53]MH_I2C_Read... [10:29:53]Read from MH i2c: E2 03 00 [10:29:53]MH_I2C_Read... [10:29:53]Read from MH i2c: E2 03 00 2A 1A 00 90 00 B8 [10:29:53]RAPDU: 90 00 [10:29:53]wFMCommunicate OK [10:29:53]wFMCommunicate request_size=255 [10:29:53]MH_SAM_APDU [10:29:53]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CA 1C 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7A C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 7A C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 A4 EC 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 C0 0B 01 00 35 04 06 00 [10:29:53]Write to MH i2c: E2 02 01 2B 1A 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 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CA 1C 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7A C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 7A C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 A4 EC 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 C0 0B 01 00 35 04 06 00 00 00 4F [10:29:53]Write i2c OK [10:29:53]MH_I2C_Read... [10:29:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:29:54]Read from MH i2c: E2 [10:29:54]MH_I2C_Read... [10:29:54]Read from MH i2c: E2 03 00 [10:29:54]MH_I2C_Read... [10:29:54]Read from MH i2c: E2 03 00 2B 1A 00 90 00 B9 [10:29:54]RAPDU: 90 00 [10:29:54]wFMCommunicate OK [10:29:54]wFMCommunicate request_size=11 [10:29:54]MH_SAM_APDU [10:29:54]CAPDU: 80 0D 02 02 06 A4 5B 62 8B 10 5F [10:29:54]Write to MH i2c: E2 0E 00 2C 1A 80 0D 02 02 06 00 A4 5B 62 8B 10 5F 00 00 27 [10:29:54]Write i2c OK [10:29:54]MH_I2C_Read... [10:29:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:29:54]Read from MH i2c: E2 [10:29:54]MH_I2C_Read... [10:29:54]Read from MH i2c: E2 03 00 [10:29:54]MH_I2C_Read... [10:29:54]Read from MH i2c: E2 03 00 2C 1A 00 90 00 BA [10:29:54]RAPDU: 90 00 [10:29:54]wFMCommunicate OK [10:29:54]wFMCommunicate request_size=4 [10:29:54]MH_SAM_APDU [10:29:54]CAPDU: 80 0D 03 02 [10:29:54]Write to MH i2c: E2 08 00 2D 1A 80 0D 03 02 00 00 00 00 C2 [10:29:54]Write i2c OK [10:29:54]MH_I2C_Read... [10:29:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:29:54]Read from MH i2c: E2 [10:29:54]MH_I2C_Read... [10:29:54]Read from MH i2c: E2 0B 00 [10:29:54]MH_I2C_Read... [10:29:54]Read from MH i2c: E2 0B 00 2D 1A 00 E5 2C 12 F1 C4 E8 E6 35 90 00 9E [10:29:54]RAPDU: E5 2C 12 F1 C4 E8 E6 35 90 00 [10:29:54]wFMCommunicate OK [10:29:54]SAM_PROTO_SignData done [10:29:54]FM_MakeSignedData done [10:29:54]CreateOFDProtocolMessage [10:29:54]wFMCommunicate request_size=4 [10:29:54]MH_SAM_APDU [10:29:54]CAPDU: 80 11 00 00 [10:29:54]Write to MH i2c: E2 08 00 2E 1A 80 11 00 00 00 00 00 00 C2 [10:29:54]Write i2c OK [10:29:54]MH_I2C_Read... [10:29:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:29:54]Read from MH i2c: E2 [10:29:54]MH_I2C_Read... [10:29:54]Read from MH i2c: E2 17 00 [10:29:54]MH_I2C_Read... [10:29:54]Read from MH i2c: E2 17 00 2E 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 0D [10:29:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [10:29:54]wFMCommunicate OK [10:29:54]CreateOFDProtocolMessage done [10:29:54]OFDSenderStorePacket 68544 [10:29:54]StoreOFDPacket docnum=68544 [10:29:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 24 41 08 01 DA 47 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 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CA 1C 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7A C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 7A C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 A4 EC 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 C0 0B 01 00 35 04 06 00 A4 5B 62 8B 10 5F E5 2C 12 F1 C4 E8 E6 35 [10:29:54]CheckFolder [10:29:54]dirname=/storage/ofd_packets [10:29:54]CheckFolder done [10:29:54]ProducePacketName [10:29:54]name=ofd_packets/00068544 [10:29:54]NVStorageSaveData ofd_packets/00068544 [10:29:54]File name is /storage/ofd_packets/00068544 [10:29:54]Write 302 bytes [10:29:54]NVStorageSaveData done [10:29:54]OFDSenderStorePacket done [10:29:54]KKMCreateOFDPacket done [10:29:54]NVStorageSaveData kkm_last_timestamp [10:29:54]File name is /storage/kkm_last_timestamp [10:29:54]Write 4 bytes [10:29:54]NVStorageSaveData done [10:29:54]ExternCall_PrintAddStr [10:29:54]wPrintStart [10:29:54]Write to MH i2c: 01 00 00 2F 1A 49 [10:29:54]Write i2c OK [10:29:54]MH_I2C_Read... [10:29:54]Read from MH i2c: 01 [10:29:54]MH_I2C_Read... [10:29:54]Read from MH i2c: 01 07 00 [10:29:54]MH_I2C_Read... [10:29:54]Read from MH i2c: 01 07 00 2F 1A 00 00 00 00 00 FF 0F 5E [10:29:54]RasterBufferAndPrint [10:29:54]line Счет N : (1)706667 [10:29:54]line ИНН: 02508201610067 [10:29:54]line Контрольно-Кассовый Чек [10:29:54]line ПРОДАЖА [10:29:54]line ТРК (МРК, ГНК) : 22 [10:29:54]line Товар: 2710124130 [10:29:54]line Super-92-К-5 [10:29:54]line 7.370 * 67.90 [10:29:54]line = 500.42 [10:29:54]line НДС 12% НСП 1% [10:29:54]line > о реализуемом товаре [10:29:54]line ИТОГО: 500.42 [10:29:54]line НСП 1% : 4.43 [10:29:54]line НДС 12% : 53.14 [10:29:54]line Наличными: 0.00 [10:29:54]line Безнал.: 500.42 [10:29:54]line Место: АЗС № 62 "Партнер Нефть" [10:29:54]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [10:29:54]line СНО: Общий режим [10:29:54]line Чек 42 04.06.2024 10:29 [10:29:54]line Смена: 325 ФФД: 1.0 [10:29:54]line ЗНМ: 0300000181 [10:29:54]line РНМ: 0000000000098096 [10:29:54]line Версия ККМ: 001 [10:29:54]line Платежная система: АКБ Кыргызстан [10:29:54]line ФМ: 0000000000965400 [10:29:54]line ФД: 68544 [10:29:54]line ФПД: 180712402260063 [10:29:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T102956&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68544&fm=180712402260063&tin=02508201610067®Number=0000000000098096&sum=50042 [10:29:54]OFD Sender: Processing packet 68544 [packets to send 26, broken 25] [10:29:54]ProducePacketName [10:29:54]name=ofd_packets/00068544 [10:29:54]OFD Sender: To server: pG, [10:29:54]CommunicateWithHost lk.salyk.kg:30040 [10:29:54]ConnectInit lk.salyk.kg [10:29:54]written 0, free lines is 4095 [10:29:54]Connected sock=10 [10:29:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 24 41 08 01 DA 47 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 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CA 1C 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7A C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 7A C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 A4 EC 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 C0 0B 01 00 35 04 06 00 A4 5B 62 8B 10 5F E5 2C 12 F1 C4 E8 E6 35 [10:29:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 53 D3 47 00 A8 84 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 C0 0B 01 00 F4 03 04 00 9D 93 5E 66 B6 04 01 00 00 78 B8 B0 CB 10 A0 F1 D4 [10:29:54]CommunicateWithHost err = 0 [10:29:54]CheckOFDResponse [10:29:54]1017 (14) - 77093643461234 [10:29:54]1041 (16) - 0000000000965400 [10:29:54]1040 (4) - 68544 [10:29:54]1012 (4) - 04.06.2024 04:10 [10:29:54]1206 (1) - 0 [10:29:54]OFD Sender: Remove packet 68544 [10:29:54]ProducePacketName [10:29:54]name=ofd_packets/00068544 [10:29:54]NVStorageDeleteData [10:29:55]Write to MH i2c: 01 00 00 59 1A 73 [10:29:55]Write i2c OK [10:29:55]MH_I2C_Read... [10:29:55]Read from MH i2c: 01 [10:29:55]MH_I2C_Read... [10:29:55]Read from MH i2c: 01 07 00 [10:29:55]MH_I2C_Read... [10:29:55]Read from MH i2c: 01 07 00 59 1A 00 00 00 00 00 E1 0C 67 [10:29:55]RasterBufferAndPrint [10:29:55]line [10:29:55]line [10:29:55]line [10:29:55]line [10:29:55]line [10:29:55]written 0, free lines is 3302 [10:29:55]MH_Cut [10:29:55]Write to MH i2c: D1 01 00 60 1A 01 4C [10:29:55]Write i2c OK [10:29:55]MH_I2C_Read... [10:29:55]Read from MH i2c: D1 [10:29:55]MH_I2C_Read... [10:29:55]Read from MH i2c: D1 01 00 [10:29:55]MH_I2C_Read... [10:29:55]Read from MH i2c: D1 01 00 60 1A 00 4B [10:29:55]Write to MH i2c: 01 00 00 61 1A 7B [10:29:55]Write i2c OK [10:29:55]MH_I2C_Read... [10:29:55]OFD Sender: No OFD packet to send [10:29:55]*** Cut start [10:29:55]*** Partial cut [10:29:55]*** CUTSNS_PIN = 1 [10:29:55]*** CUTSNS_PIN = 0 [10:29:56]*** Brake cut motor [10:29:56]Read from MH i2c: 01 [10:29:56]MH_I2C_Read... [10:29:56]*** Stop cut motor [10:29:56]*** Cut end [10:29:56]Read from MH i2c: 01 07 00 [10:29:56]MH_I2C_Read... [10:29:56]Read from MH i2c: 01 07 00 61 1A 00 00 00 00 00 FF 0F 90 [10:29:56]process_action close_receipt done [10:29:56]requested_data is exist [10:29:56]produce_requested_data [10:29:56]requested_item fm.sn is exist - process it [10:29:56]wFMCommunicate request_size=4 [10:29:56]MH_SAM_APDU [10:29:56]CAPDU: 80 11 00 00 [10:29:56]Write to MH i2c: E2 08 00 62 1A 80 11 00 00 00 00 00 00 F6 [10:29:56]Write i2c OK [10:29:56]MH_I2C_Read... [10:29:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:29:56]Read from MH i2c: E2 [10:29:56]MH_I2C_Read... [10:29:56]Read from MH i2c: E2 17 00 [10:29:56]MH_I2C_Read... [10:29:56]Read from MH i2c: E2 17 00 62 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 41 [10:29:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [10:29:56]wFMCommunicate OK [10:29:56]requested_item fd.num is exist - process it [10:29:56]SAM_PROTO_GetFieldsCounters [10:29:56]wFMCommunicate request_size=4 [10:29:56]MH_SAM_APDU [10:29:56]CAPDU: 80 13 00 00 [10:29:56]Write to MH i2c: E2 08 00 63 1A 80 13 00 00 00 00 00 00 F9 [10:29:56]Write i2c OK [10:29:56]MH_I2C_Read... [10:29:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:29:56]Read from MH i2c: E2 [10:29:56]MH_I2C_Read... [10:29:56]Read from MH i2c: E2 62 00 [10:29:56]MH_I2C_Read... [10:29:56]Read from MH i2c: E2 62 00 63 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 C0 0B 01 00 0E 04 04 00 45 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 A9 [10:29:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 C0 0B 01 00 0E 04 04 00 45 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 [10:29:56]wFMCommunicate OK [10:29:56]SAM_PROTO_GetFieldsCounters done [10:29:56]requested_item shift.num is exist - process it [10:29:56]requested_item shift.opened is exist - process it [10:29:56]req_shift_opened [10:29:56]FM_GetShiftState [10:29:56]SAM_PROTO_GetShiftState [10:29:56]wFMCommunicate request_size=4 [10:29:56]MH_SAM_APDU [10:29:56]CAPDU: 80 13 01 00 [10:29:56]Write to MH i2c: E2 08 00 64 1A 80 13 01 00 00 00 00 00 FB [10:29:56]Write i2c OK [10:29:56]MH_I2C_Read... [10:29:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:29:56]Read from MH i2c: E2 [10:29:56]MH_I2C_Read... [10:29:56]Read from MH i2c: E2 0E 00 [10:29:56]MH_I2C_Read... [10:29:56]Read from MH i2c: E2 0E 00 64 1A 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 97 [10:29:56]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [10:29:56]wFMCommunicate OK [10:29:56]SAM_PROTO_GetShiftState done [10:29:56]FM_GetShiftState done [10:29:56]req_shift_opened done [10:29:56]requested_item shift.open_date is exist - process it [10:29:56]req_shift_open_date [10:29:56]req_shift_open_date done [10:29:56]produce_requested_data done [10:29:56]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68544,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [10:29:56]process_action_free close_receipt [10:29:56]json_value_free [10:29:56]json_value_free done [10:29:56]process_json_proto returns [10:29:56]Send response to host [10:29:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68544,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [10:29:56]free response buf [10:29:56]execute_script done [10:29:56]execute_script returns [10:29:56]free content buf [10:29:56]Sock 9.Close socket [10:29:56]Sock 9.Thread stoped [10:30:00]OFD Sender: No OFD packet to send [10:30:05]OFD Sender: No OFD packet to send [10:30:10]OFD Sender: No OFD packet to send [10:30:15]OFD Sender: No OFD packet to send [10:30:20]OFD Sender: No OFD packet to send [10:30:25]OFD Sender: No OFD packet to send [10:30:30]OFD Sender: No OFD packet to send [10:30:35]OFD Sender: No OFD packet to send [10:30:40]OFD Sender: No OFD packet to send [10:30:45]OFD Sender: No OFD packet to send [10:30:50]OFD Sender: No OFD packet to send [10:30:55]OFD Sender: No OFD packet to send [10:31:00]OFD Sender: No OFD packet to send [10:31:05]OFD Sender: No OFD packet to send [10:31:10]OFD Sender: No OFD packet to send [10:31:15]OFD Sender: No OFD packet to send [10:31:20]OFD Sender: No OFD packet to send [10:31:25]OFD Sender: No OFD packet to send [10:31:30]OFD Sender: No OFD packet to send [10:31:35]OFD Sender: No OFD packet to send [10:31:40]OFD Sender: No OFD packet to send [10:31:45]OFD Sender: No OFD packet to send [10:31:50]OFD Sender: No OFD packet to send [10:31:55]OFD Sender: No OFD packet to send [10:32:00]OFD Sender: No OFD packet to send [10:32:05]OFD Sender: No OFD packet to send [10:32:10]OFD Sender: No OFD packet to send [10:32:15]OFD Sender: No OFD packet to send [10:32:20]OFD Sender: No OFD packet to send [10:32:25]OFD Sender: No OFD packet to send [10:32:30]OFD Sender: No OFD packet to send [10:32:35]OFD Sender: No OFD packet to send [10:32:40]OFD Sender: No OFD packet to send [10:32:45]OFD Sender: No OFD packet to send [10:32:50]OFD Sender: No OFD packet to send [10:32:55]OFD Sender: No OFD packet to send [10:33:00]OFD Sender: No OFD packet to send [10:33:05]OFD Sender: No OFD packet to send [10:33:10]OFD Sender: No OFD packet to send [10:33:15]OFD Sender: No OFD packet to send [10:33:20]OFD Sender: No OFD packet to send [10:33:25]OFD Sender: No OFD packet to send [10:33:30]OFD Sender: No OFD packet to send [10:33:35]OFD Sender: No OFD packet to send [10:33:35]accept exits with 7 [10:33:35]New connection [10:33:35]New thread 3067227492 created [10:33:35]Thread 3067084132 joined [10:33:35]Waiting for new connection... [10:33:35] Sock 7.Parse request [10:33:35]Sock 7.Check first char [10:33:35]Sock 7.First char is OK [10:33:35]request: POST /json_proto HTTP/1.0 [10:33:35]Method: POST [10:33:35]URL: /json_proto [10:33:35]Method is POST - this is cgi request [10:33:35]url: /json_proto [10:33:35]query_string will be loaded in cgi processing [10:33:35]execute_cgi json_proto POST (null) [10:33:35]execute_cgi path=json_proto method=POST [10:33:35]POST find Content-Length [10:33:35]Host: 172.17.36.132:8080 [10:33:35]Content-Length: 675 [10:33:35]Content-Type: application/json [10:33:35] [10:33:35]POST finish read [10:33:35]Found Content-Length = 675 [10:33:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706668", "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" : 67.90, "quantity" : 14.730, "sum" : 1000.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:33:35]execute_script... [10:33: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)706668", "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" : 67.90, "quantity" : 14.730, "sum" : 1000.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:33:35]POST & json_proto [10:33:35]process_json_proto [10:33:35]json parsed OK: [10:33:35]protocol is kg_v1.0 [10:33:35]action value=close_receipt [10:33:35]process_action close_receipt [10:33:35]cmd_close_receipt [10:33:35]MH_GetDate [10:33:35]Write to MH i2c: F0 00 00 65 1A 6E [10:33:35]Write i2c OK [10:33:35]MH_I2C_Read... [10:33:35]Read from MH i2c: F0 [10:33:35]MH_I2C_Read... [10:33:35]Read from MH i2c: F0 09 00 [10:33:35]MH_I2C_Read... [10:33:35]Read from MH i2c: F0 09 00 65 1A 00 83 ED 5E 66 B2 22 B0 64 93 [10:33:35]GetLastDocTimeStamp 1717496996 [10:33:35]current date 1717497219 [10:33:35]FM_GetShiftState [10:33:35]SAM_PROTO_GetShiftState [10:33:35]wFMCommunicate request_size=4 [10:33:35]MH_SAM_APDU [10:33:35]CAPDU: 80 13 01 00 [10:33:35]Write to MH i2c: E2 08 00 66 1A 80 13 01 00 00 00 00 00 FD [10:33:35]Write i2c OK [10:33:35]MH_I2C_Read... [10:33:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:33:36]Read from MH i2c: E2 [10:33:36]MH_I2C_Read... [10:33:36]Read from MH i2c: E2 0E 00 [10:33:36]MH_I2C_Read... [10:33:36]Read from MH i2c: E2 0E 00 66 1A 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 99 [10:33:36]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [10:33:36]wFMCommunicate OK [10:33:36]SAM_PROTO_GetShiftState done [10:33:36]FM_GetShiftState done [10:33:36]opened in 1717460590 [10:33:36]opened+sec_in_day 1717546990 [10:33:36]quantity*price = 100016 [10:33:36]sum+1 = 100018 [10:33:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.17 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 43 04.06.2024 10:33 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68545 ФПД: 45492837793903 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T103339&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68545&fm=45492837793903&tin=02508201610067®Number=0000000000098096&sum=100000 [10:33:37]StoreToDocumentArchive [10:33:37]shift 325 fd 68545 [10:33:37]save to /storage/0325/doc_00068545 [10:33:37]save last doc name /storage/0325/doc_00068545 to /storage/kkm_last_doc_name [10:33:37]save OK [10:33:37]Clear old archive folders... [10:33:37]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:33:37]tlvbuf is 00A0E4D0 [10:33:37]SAM_PROTO_ClearQueue [10:33:37]wFMCommunicate request_size=4 [10:33:37]MH_SAM_APDU [10:33:37]CAPDU: 80 09 00 00 [10:33:37]Write to MH i2c: E2 08 00 73 1A 80 09 00 00 00 00 00 00 FF [10:33:37]Write i2c OK [10:33:37]MH_I2C_Read... [10:33:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:33:37]Read from MH i2c: E2 [10:33:37]MH_I2C_Read... [10:33:37]Read from MH i2c: E2 03 00 [10:33:37]MH_I2C_Read... [10:33:37]Read from MH i2c: E2 03 00 73 1A 00 90 00 01 [10:33:37]RAPDU: 90 00 [10:33:37]wFMCommunicate OK [10:33:37]SAM_PROTO_ClearQueue done [10:33:37]KKMCreateOFDPacket [10:33:37]OFDProtocolAddRootSTLVToBuf [10:33:37]FM_MakeSignedData [10:33:37]FM_MakeSignedData [10:33:37]SAM_PROTO_SignData [10:33:37]wFMCommunicate request_size=4 [10:33:37]MH_SAM_APDU [10:33:37]CAPDU: 80 0D 01 02 [10:33:37]Write to MH i2c: E2 08 00 74 1A 80 0D 01 02 00 00 00 00 07 [10:33:37]Write i2c OK [10:33:37]MH_I2C_Read... [10:33:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:33:37]Read from MH i2c: E2 [10:33:37]MH_I2C_Read... [10:33:37]Read from MH i2c: E2 03 00 [10:33:37]MH_I2C_Read... [10:33:37]Read from MH i2c: E2 03 00 74 1A 00 90 00 02 [10:33:37]RAPDU: 90 00 [10:33:37]wFMCommunicate OK [10:33:37]wFMCommunicate request_size=255 [10:33:37]MH_SAM_APDU [10:33: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 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 39 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 B1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 83 ED 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 C1 0B 01 00 35 04 06 00 [10:33:37]Write to MH i2c: E2 02 01 75 1A 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 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 39 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 B1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 83 ED 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 C1 0B 01 00 35 04 06 00 00 00 B3 [10:33:37]Write i2c OK [10:33:37]MH_I2C_Read... [10:33:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:33:37]Read from MH i2c: E2 [10:33:37]MH_I2C_Read... [10:33:37]Read from MH i2c: E2 03 00 [10:33:37]MH_I2C_Read... [10:33:37]Read from MH i2c: E2 03 00 75 1A 00 90 00 03 [10:33:37]RAPDU: 90 00 [10:33:37]wFMCommunicate OK [10:33:37]wFMCommunicate request_size=11 [10:33:37]MH_SAM_APDU [10:33:37]CAPDU: 80 0D 02 02 06 29 60 20 6F C0 6F [10:33:37]Write to MH i2c: E2 0E 00 76 1A 80 0D 02 02 06 00 29 60 20 6F C0 6F 00 00 5D [10:33:37]Write i2c OK [10:33:37]MH_I2C_Read... [10:33:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:33:37]Read from MH i2c: E2 [10:33:37]MH_I2C_Read... [10:33:37]Read from MH i2c: E2 03 00 [10:33:37]MH_I2C_Read... [10:33:37]Read from MH i2c: E2 03 00 76 1A 00 90 00 04 [10:33:37]RAPDU: 90 00 [10:33:37]wFMCommunicate OK [10:33:37]wFMCommunicate request_size=4 [10:33:37]MH_SAM_APDU [10:33:37]CAPDU: 80 0D 03 02 [10:33:37]Write to MH i2c: E2 08 00 77 1A 80 0D 03 02 00 00 00 00 0C [10:33:37]Write i2c OK [10:33:37]MH_I2C_Read... [10:33:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:33:37]Read from MH i2c: E2 [10:33:37]MH_I2C_Read... [10:33:37]Read from MH i2c: E2 0B 00 [10:33:37]MH_I2C_Read... [10:33:37]Read from MH i2c: E2 0B 00 77 1A 00 7F DB 2F BF 26 2F D4 EC 90 00 6A [10:33:37]RAPDU: 7F DB 2F BF 26 2F D4 EC 90 00 [10:33:37]wFMCommunicate OK [10:33:37]SAM_PROTO_SignData done [10:33:37]FM_MakeSignedData done [10:33:37]CreateOFDProtocolMessage [10:33:37]wFMCommunicate request_size=4 [10:33:37]MH_SAM_APDU [10:33:37]CAPDU: 80 11 00 00 [10:33:37]Write to MH i2c: E2 08 00 78 1A 80 11 00 00 00 00 00 00 0C [10:33:37]Write i2c OK [10:33:37]MH_I2C_Read... [10:33:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:33:37]Read from MH i2c: E2 [10:33:37]MH_I2C_Read... [10:33:37]Read from MH i2c: E2 17 00 [10:33:37]MH_I2C_Read... [10:33:37]Read from MH i2c: E2 17 00 78 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 57 [10:33:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [10:33:37]wFMCommunicate OK [10:33:37]CreateOFDProtocolMessage done [10:33:37]OFDSenderStorePacket 68545 [10:33:37]StoreOFDPacket docnum=68545 [10:33:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 1E A6 08 01 97 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 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 39 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 B1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 83 ED 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 C1 0B 01 00 35 04 06 00 29 60 20 6F C0 6F 7F DB 2F BF 26 2F D4 EC [10:33:37]CheckFolder [10:33:37]dirname=/storage/ofd_packets [10:33:37]CheckFolder done [10:33:37]ProducePacketName [10:33:37]name=ofd_packets/00068545 [10:33:37]NVStorageSaveData ofd_packets/00068545 [10:33:37]File name is /storage/ofd_packets/00068545 [10:33:37]Write 302 bytes [10:33:37]NVStorageSaveData done [10:33:37]OFDSenderStorePacket done [10:33:37]KKMCreateOFDPacket done [10:33:37]NVStorageSaveData kkm_last_timestamp [10:33:37]File name is /storage/kkm_last_timestamp [10:33:37]Write 4 bytes [10:33:37]NVStorageSaveData done [10:33:37]ExternCall_PrintAddStr [10:33:37]wPrintStart [10:33:37]Write to MH i2c: 01 00 00 79 1A 93 [10:33:37]Write i2c OK [10:33:37]MH_I2C_Read... [10:33:37]Read from MH i2c: 01 [10:33:37]MH_I2C_Read... [10:33:37]Read from MH i2c: 01 07 00 [10:33:37]MH_I2C_Read... [10:33:37]Read from MH i2c: 01 07 00 79 1A 00 00 00 00 00 FF 0F A8 [10:33:37]RasterBufferAndPrint [10:33:37]line Счет N : (1)706668 [10:33:37]line ИНН: 02508201610067 [10:33:37]line Контрольно-Кассовый Чек [10:33:37]line ПРОДАЖА [10:33:37]line ТРК (МРК, ГНК) : 41 [10:33:37]line Товар: 2710124130 [10:33:37]line Super-92-К-5 [10:33:37]line 14.730 * 67.90 [10:33:37]line = 1000.17 [10:33:37]line НДС 12% НСП 1% [10:33:37]line > о реализуемом товаре [10:33:37]line ОКРУГЛЕНИЕ: -0.17 [10:33:37]line ИТОГО: 1000.00 [10:33:37]line Внесено: 1000.00 [10:33:37]line СДАЧА: 0.00 [10:33:37]line НСП 1% : 8.85 [10:33:37]line НДС 12% : 106.21 [10:33:37]line Наличными: 1000.00 [10:33:37]line Безнал.: 0.00 [10:33:37]line Место: АЗС № 62 "Партнер Нефть" [10:33:37]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [10:33:37]line СНО: Общий режим [10:33:37]line Чек 43 04.06.2024 10:33 [10:33:37]line Смена: 325 ФФД: 1.0 [10:33:37]line ЗНМ: 0300000181 [10:33:37]line РНМ: 0000000000098096 [10:33:37]line Версия ККМ: 001 [10:33:37]line ФМ: 0000000000965400 [10:33:37]line ФД: 68545 [10:33:37]line ФПД: 45492837793903 [10:33:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T103339&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68545&fm=45492837793903&tin=02508201610067®Number=0000000000098096&sum=100000 [10:33:38]OFD Sender: Processing packet 68545 [packets to send 26, broken 25] [10:33:38]ProducePacketName [10:33:38]name=ofd_packets/00068545 [10:33:38]OFD Sender: To server: pG, [10:33:38]CommunicateWithHost lk.salyk.kg:30040 [10:33:38]ConnectInit lk.salyk.kg [10:33:38]written 0, free lines is 4095 [10:33:38]Connected sock=10 [10:33:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 1E A6 08 01 97 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 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 39 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 B1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 83 ED 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 C1 0B 01 00 35 04 06 00 29 60 20 6F C0 6F 7F DB 2F BF 26 2F D4 EC [10:33:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 31 D7 47 00 9D 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 39 36 35 34 30 30 10 04 04 00 C1 0B 01 00 F4 03 04 00 7C 94 5E 66 B6 04 01 00 00 64 62 F5 28 50 76 35 3C [10:33:38]CommunicateWithHost err = 0 [10:33:38]CheckOFDResponse [10:33:38]1017 (14) - 77093643461234 [10:33:38]1041 (16) - 0000000000965400 [10:33:38]1040 (4) - 68545 [10:33:38]1012 (4) - 04.06.2024 04:13 [10:33:38]1206 (1) - 0 [10:33:38]OFD Sender: Remove packet 68545 [10:33:38]ProducePacketName [10:33:38]name=ofd_packets/00068545 [10:33:38]NVStorageDeleteData [10:33:38]Write to MH i2c: 01 00 00 A4 1A BE [10:33:38]Write i2c OK [10:33:38]MH_I2C_Read... [10:33:38]Read from MH i2c: 01 [10:33:38]MH_I2C_Read... [10:33:38]Read from MH i2c: 01 07 00 [10:33:38]MH_I2C_Read... [10:33:38]Read from MH i2c: 01 07 00 A4 1A 00 00 00 00 00 CD 0C 9E [10:33:38]RasterBufferAndPrint [10:33:38]line [10:33:38]line [10:33:38]line [10:33:38]line [10:33:38]line [10:33:38]written 0, free lines is 3286 [10:33:38]MH_Cut [10:33:38]Write to MH i2c: D1 01 00 AB 1A 01 97 [10:33:38]Write i2c OK [10:33:38]MH_I2C_Read... [10:33:38]Read from MH i2c: D1 [10:33:38]MH_I2C_Read... [10:33:38]Read from MH i2c: D1 01 00 [10:33:38]MH_I2C_Read... [10:33:38]Read from MH i2c: D1 01 00 AB 1A 00 96 [10:33:38]Write to MH i2c: 01 00 00 AC 1A C6 [10:33:38]Write i2c OK [10:33:38]MH_I2C_Read... [10:33:38]OFD Sender: No OFD packet to send [10:33:39]*** Cut start [10:33:39]*** Partial cut [10:33:39]*** CUTSNS_PIN = 1 [10:33:39]*** CUTSNS_PIN = 0 [10:33:39]*** Brake cut motor [10:33:39]Read from MH i2c: 01 [10:33:39]MH_I2C_Read... [10:33:39]*** Stop cut motor [10:33:39]*** Cut end [10:33:39]Read from MH i2c: 01 07 00 [10:33:39]MH_I2C_Read... [10:33:39]Read from MH i2c: 01 07 00 AC 1A 00 00 00 00 00 FF 0F DB [10:33:39]process_action close_receipt done [10:33:39]requested_data is exist [10:33:39]produce_requested_data [10:33:39]requested_item fm.sn is exist - process it [10:33:39]wFMCommunicate request_size=4 [10:33:39]MH_SAM_APDU [10:33:39]CAPDU: 80 11 00 00 [10:33:39]Write to MH i2c: E2 08 00 AD 1A 80 11 00 00 00 00 00 00 41 [10:33:39]Write i2c OK [10:33:39]MH_I2C_Read... [10:33:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:33:39]Read from MH i2c: E2 [10:33:39]MH_I2C_Read... [10:33:39]Read from MH i2c: E2 17 00 [10:33:39]MH_I2C_Read... [10:33:39]Read from MH i2c: E2 17 00 AD 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 8C [10:33:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [10:33:39]wFMCommunicate OK [10:33:39]requested_item fd.num is exist - process it [10:33:39]SAM_PROTO_GetFieldsCounters [10:33:39]wFMCommunicate request_size=4 [10:33:39]MH_SAM_APDU [10:33:39]CAPDU: 80 13 00 00 [10:33:39]Write to MH i2c: E2 08 00 AE 1A 80 13 00 00 00 00 00 00 44 [10:33:39]Write i2c OK [10:33:39]MH_I2C_Read... [10:33:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:33:40]Read from MH i2c: E2 [10:33:40]MH_I2C_Read... [10:33:40]Read from MH i2c: E2 62 00 [10:33:40]MH_I2C_Read... [10:33:40]Read from MH i2c: E2 62 00 AE 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 C1 0B 01 00 0E 04 04 00 45 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 F8 [10:33:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 C1 0B 01 00 0E 04 04 00 45 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 [10:33:40]wFMCommunicate OK [10:33:40]SAM_PROTO_GetFieldsCounters done [10:33:40]requested_item shift.num is exist - process it [10:33:40]requested_item shift.opened is exist - process it [10:33:40]req_shift_opened [10:33:40]FM_GetShiftState [10:33:40]SAM_PROTO_GetShiftState [10:33:40]wFMCommunicate request_size=4 [10:33:40]MH_SAM_APDU [10:33:40]CAPDU: 80 13 01 00 [10:33:40]Write to MH i2c: E2 08 00 AF 1A 80 13 01 00 00 00 00 00 46 [10:33:40]Write i2c OK [10:33:40]MH_I2C_Read... [10:33:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:33:40]Read from MH i2c: E2 [10:33:40]MH_I2C_Read... [10:33:40]Read from MH i2c: E2 0E 00 [10:33:40]MH_I2C_Read... [10:33:40]Read from MH i2c: E2 0E 00 AF 1A 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 E2 [10:33:40]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [10:33:40]wFMCommunicate OK [10:33:40]SAM_PROTO_GetShiftState done [10:33:40]FM_GetShiftState done [10:33:40]req_shift_opened done [10:33:40]requested_item shift.open_date is exist - process it [10:33:40]req_shift_open_date [10:33:40]req_shift_open_date done [10:33:40]produce_requested_data done [10:33:40]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68545,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [10:33:40]process_action_free close_receipt [10:33:40]json_value_free [10:33:40]json_value_free done [10:33:40]process_json_proto returns [10:33:40]Send response to host [10:33:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68545,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [10:33:40]free response buf [10:33:40]execute_script done [10:33:40]execute_script returns [10:33:40]free content buf [10:33:40]Sock 7.Close socket [10:33:40]Sock 7.Thread stoped [10:33:43]OFD Sender: No OFD packet to send [10:33:48]OFD Sender: No OFD packet to send [10:33:53]OFD Sender: No OFD packet to send [10:33:58]OFD Sender: No OFD packet to send [10:34:03]OFD Sender: No OFD packet to send [10:34:08]OFD Sender: No OFD packet to send [10:34:13]OFD Sender: No OFD packet to send [10:34:18]OFD Sender: No OFD packet to send [10:34:23]OFD Sender: No OFD packet to send [10:34:28]OFD Sender: No OFD packet to send [10:34:33]OFD Sender: No OFD packet to send [10:34:38]OFD Sender: No OFD packet to send [10:34:43]OFD Sender: No OFD packet to send [10:34:48]OFD Sender: No OFD packet to send [10:34:53]OFD Sender: No OFD packet to send [10:34:58]OFD Sender: No OFD packet to send [10:35:03]OFD Sender: No OFD packet to send [10:35:08]OFD Sender: No OFD packet to send [10:35:13]OFD Sender: No OFD packet to send [10:35:18]OFD Sender: No OFD packet to send [10:35:23]OFD Sender: No OFD packet to send [10:35:28]accept exits with 9 [10:35:28]New connection [10:35:28]New thread 3067084132 created [10:35:28]Thread 3067227492 joined [10:35:28]Waiting for new connection... [10:35:28] Sock 9.Parse request [10:35:28]Sock 9.Check first char [10:35:28]Sock 9.First char is OK [10:35:28]request: POST /json_proto HTTP/1.0 [10:35:28]Method: POST [10:35:28]URL: /json_proto [10:35:28]Method is POST - this is cgi request [10:35:28]url: /json_proto [10:35:28]query_string will be loaded in cgi processing [10:35:28]execute_cgi json_proto POST (null) [10:35:28]execute_cgi path=json_proto method=POST [10:35:28]POST find Content-Length [10:35:28]Host: 172.17.36.132:8080 [10:35:28]Content-Length: 675 [10:35:28]Content-Type: application/json [10:35:28] [10:35:28]POST finish read [10:35:28]Found Content-Length = 675 [10:35:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706670", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.90, "quantity" : 14.730, "sum" : 1000.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:35:28]execute_script... [10:35: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)706670", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.90, "quantity" : 14.730, "sum" : 1000.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:35:28]POST & json_proto [10:35:28]process_json_proto [10:35:28]json parsed OK: [10:35:28]protocol is kg_v1.0 [10:35:28]action value=close_receipt [10:35:28]process_action close_receipt [10:35:28]cmd_close_receipt [10:35:28]MH_GetDate [10:35:28]Write to MH i2c: F0 00 00 B0 1A B9 [10:35:28]Write i2c OK [10:35:28]MH_I2C_Read... [10:35:28]Read from MH i2c: F0 [10:35:28]MH_I2C_Read... [10:35:28]Read from MH i2c: F0 09 00 [10:35:28]MH_I2C_Read... [10:35:28]Read from MH i2c: F0 09 00 B0 1A 00 F4 ED 5E 66 B2 22 B0 64 4F [10:35:28]GetLastDocTimeStamp 1717497219 [10:35:28]current date 1717497332 [10:35:28]FM_GetShiftState [10:35:28]SAM_PROTO_GetShiftState [10:35:28]wFMCommunicate request_size=4 [10:35:28]MH_SAM_APDU [10:35:28]CAPDU: 80 13 01 00 [10:35:28]Write to MH i2c: E2 08 00 B1 1A 80 13 01 00 00 00 00 00 48 [10:35:28]Write i2c OK [10:35:28]MH_I2C_Read... [10:35:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:35:28]Read from MH i2c: E2 [10:35:28]MH_I2C_Read... [10:35:28]Read from MH i2c: E2 0E 00 [10:35:28]MH_I2C_Read... [10:35:28]Read from MH i2c: E2 0E 00 B1 1A 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 E4 [10:35:28]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [10:35:28]wFMCommunicate OK [10:35:28]SAM_PROTO_GetShiftState done [10:35:28]FM_GetShiftState done [10:35:28]opened in 1717460590 [10:35:28]opened+sec_in_day 1717546990 [10:35:28]quantity*price = 100016 [10:35:28]sum+1 = 100018 [10:35:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.17 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 44 04.06.2024 10:35 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68546 ФПД: 155438949932228 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T103532&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68546&fm=155438949932228&tin=02508201610067®Number=0000000000098096&sum=100000 [10:35:29]StoreToDocumentArchive [10:35:29]shift 325 fd 68546 [10:35:29]save to /storage/0325/doc_00068546 [10:35:29]save last doc name /storage/0325/doc_00068546 to /storage/kkm_last_doc_name [10:35:29]save OK [10:35:29]Clear old archive folders... [10:35:29]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:35:29]tlvbuf is 00A25220 [10:35:29]SAM_PROTO_ClearQueue [10:35:29]wFMCommunicate request_size=4 [10:35:29]MH_SAM_APDU [10:35:29]CAPDU: 80 09 00 00 [10:35:29]Write to MH i2c: E2 08 00 BE 1A 80 09 00 00 00 00 00 00 4A [10:35:29]Write i2c OK [10:35:29]MH_I2C_Read... [10:35:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:35:29]Read from MH i2c: E2 [10:35:29]MH_I2C_Read... [10:35:29]Read from MH i2c: E2 03 00 [10:35:29]MH_I2C_Read... [10:35:29]Read from MH i2c: E2 03 00 BE 1A 00 90 00 4C [10:35:29]RAPDU: 90 00 [10:35:29]wFMCommunicate OK [10:35:29]SAM_PROTO_ClearQueue done [10:35:29]KKMCreateOFDPacket [10:35:29]OFDProtocolAddRootSTLVToBuf [10:35:29]FM_MakeSignedData [10:35:29]FM_MakeSignedData [10:35:29]SAM_PROTO_SignData [10:35:29]wFMCommunicate request_size=4 [10:35:29]MH_SAM_APDU [10:35:29]CAPDU: 80 0D 01 02 [10:35:29]Write to MH i2c: E2 08 00 BF 1A 80 0D 01 02 00 00 00 00 52 [10:35:29]Write i2c OK [10:35:29]MH_I2C_Read... [10:35:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:35:29]Read from MH i2c: E2 [10:35:29]MH_I2C_Read... [10:35:29]Read from MH i2c: E2 03 00 [10:35:29]MH_I2C_Read... [10:35:29]Read from MH i2c: E2 03 00 BF 1A 00 90 00 4D [10:35:29]RAPDU: 90 00 [10:35:29]wFMCommunicate OK [10:35:29]wFMCommunicate request_size=255 [10:35:29]MH_SAM_APDU [10:35:29]CAPDU: 80 0D 02 02 FA 03 00 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 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 39 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 B1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 F4 ED 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 C2 0B 01 00 35 04 06 00 [10:35:29]Write to MH i2c: E2 02 01 C0 1A 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 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 39 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 B1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 F4 ED 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 C2 0B 01 00 35 04 06 00 00 00 71 [10:35:29]Write i2c OK [10:35:29]MH_I2C_Read... [10:35:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:35:29]Read from MH i2c: E2 [10:35:29]MH_I2C_Read... [10:35:29]Read from MH i2c: E2 03 00 [10:35:29]MH_I2C_Read... [10:35:29]Read from MH i2c: E2 03 00 C0 1A 00 90 00 4E [10:35:29]RAPDU: 90 00 [10:35:29]wFMCommunicate OK [10:35:29]wFMCommunicate request_size=11 [10:35:29]MH_SAM_APDU [10:35:29]CAPDU: 80 0D 02 02 06 8D 5E F3 65 1C C4 [10:35:29]Write to MH i2c: E2 0E 00 C1 1A 80 0D 02 02 06 00 8D 5E F3 65 1C C4 00 00 84 [10:35:29]Write i2c OK [10:35:29]MH_I2C_Read... [10:35:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:35:29]Read from MH i2c: E2 [10:35:29]MH_I2C_Read... [10:35:29]Read from MH i2c: E2 03 00 [10:35:29]MH_I2C_Read... [10:35:29]Read from MH i2c: E2 03 00 C1 1A 00 90 00 4F [10:35:29]RAPDU: 90 00 [10:35:29]wFMCommunicate OK [10:35:29]wFMCommunicate request_size=4 [10:35:29]MH_SAM_APDU [10:35:29]CAPDU: 80 0D 03 02 [10:35:29]Write to MH i2c: E2 08 00 C2 1A 80 0D 03 02 00 00 00 00 57 [10:35:29]Write i2c OK [10:35:29]MH_I2C_Read... [10:35:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:35:29]Read from MH i2c: E2 [10:35:29]MH_I2C_Read... [10:35:29]Read from MH i2c: E2 0B 00 [10:35:29]MH_I2C_Read... [10:35:29]Read from MH i2c: E2 0B 00 C2 1A 00 49 9F 2E 5C 38 A5 56 AD 90 00 AA [10:35:29]RAPDU: 49 9F 2E 5C 38 A5 56 AD 90 00 [10:35:29]wFMCommunicate OK [10:35:29]SAM_PROTO_SignData done [10:35:29]FM_MakeSignedData done [10:35:29]CreateOFDProtocolMessage [10:35:29]wFMCommunicate request_size=4 [10:35:29]MH_SAM_APDU [10:35:29]CAPDU: 80 11 00 00 [10:35:29]Write to MH i2c: E2 08 00 C3 1A 80 11 00 00 00 00 00 00 57 [10:35:29]Write i2c OK [10:35:29]MH_I2C_Read... [10:35:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:35:30]Read from MH i2c: E2 [10:35:30]MH_I2C_Read... [10:35:30]Read from MH i2c: E2 17 00 [10:35:30]MH_I2C_Read... [10:35:30]Read from MH i2c: E2 17 00 C3 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 A2 [10:35:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [10:35:30]wFMCommunicate OK [10:35:30]CreateOFDProtocolMessage done [10:35:30]OFDSenderStorePacket 68546 [10:35:30]StoreOFDPacket docnum=68546 [10:35:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 8E 6C 08 01 D1 3B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 39 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 B1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 F4 ED 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 C2 0B 01 00 35 04 06 00 8D 5E F3 65 1C C4 49 9F 2E 5C 38 A5 56 AD [10:35:30]CheckFolder [10:35:30]dirname=/storage/ofd_packets [10:35:30]CheckFolder done [10:35:30]ProducePacketName [10:35:30]name=ofd_packets/00068546 [10:35:30]NVStorageSaveData ofd_packets/00068546 [10:35:30]File name is /storage/ofd_packets/00068546 [10:35:30]Write 302 bytes [10:35:30]NVStorageSaveData done [10:35:30]OFDSenderStorePacket done [10:35:30]KKMCreateOFDPacket done [10:35:30]NVStorageSaveData kkm_last_timestamp [10:35:30]File name is /storage/kkm_last_timestamp [10:35:30]Write 4 bytes [10:35:30]NVStorageSaveData done [10:35:30]ExternCall_PrintAddStr [10:35:30]wPrintStart [10:35:30]Write to MH i2c: 01 00 00 C4 1A DE [10:35:30]Write i2c OK [10:35:30]MH_I2C_Read... [10:35:30]Read from MH i2c: 01 [10:35:30]MH_I2C_Read... [10:35:30]Read from MH i2c: 01 07 00 [10:35:30]MH_I2C_Read... [10:35:30]Read from MH i2c: 01 07 00 C4 1A 00 00 00 00 00 FF 0F F3 [10:35:30]RasterBufferAndPrint [10:35:30]line Счет N : (1)706670 [10:35:30]line ИНН: 02508201610067 [10:35:30]line Контрольно-Кассовый Чек [10:35:30]line ПРОДАЖА [10:35:30]line ТРК (МРК, ГНК) : 52 [10:35:30]line Товар: 2710124130 [10:35:30]line Super-92-К-5 [10:35:30]line 14.730 * 67.90 [10:35:30]line = 1000.17 [10:35:30]line НДС 12% НСП 1% [10:35:30]line > о реализуемом товаре [10:35:30]line ОКРУГЛЕНИЕ: -0.17 [10:35:30]line ИТОГО: 1000.00 [10:35:30]line Внесено: 1000.00 [10:35:30]line СДАЧА: 0.00 [10:35:30]line НСП 1% : 8.85 [10:35:30]line НДС 12% : 106.21 [10:35:30]line Наличными: 1000.00 [10:35:30]line Безнал.: 0.00 [10:35:30]line Место: АЗС № 62 "Партнер Нефть" [10:35:30]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [10:35:30]line СНО: Общий режим [10:35:30]line Чек 44 04.06.2024 10:35 [10:35:30]line Смена: 325 ФФД: 1.0 [10:35:30]line ЗНМ: 0300000181 [10:35:30]line РНМ: 0000000000098096 [10:35:30]line Версия ККМ: 001 [10:35:30]line ФМ: 0000000000965400 [10:35:30]line ФД: 68546 [10:35:30]line ФПД: 155438949932228 [10:35:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T103532&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68546&fm=155438949932228&tin=02508201610067®Number=0000000000098096&sum=100000 [10:35:30]OFD Sender: Processing packet 68546 [packets to send 26, broken 25] [10:35:30]ProducePacketName [10:35:30]name=ofd_packets/00068546 [10:35:30]OFD Sender: To server: pG, [10:35:30]CommunicateWithHost lk.salyk.kg:30040 [10:35:30]ConnectInit lk.salyk.kg [10:35:30]written 0, free lines is 4095 [10:35:30]Connected sock=10 [10:35:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 8E 6C 08 01 D1 3B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 39 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 B1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 F4 ED 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 C2 0B 01 00 35 04 06 00 8D 5E F3 65 1C C4 49 9F 2E 5C 38 A5 56 AD [10:35:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 C5 BA 47 00 E1 10 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 C2 0B 01 00 F4 03 04 00 ED 94 5E 66 B6 04 01 00 00 E1 8A F5 7E 5B 57 DE 9A [10:35:30]CommunicateWithHost err = 0 [10:35:30]CheckOFDResponse [10:35:30]1017 (14) - 77093643461234 [10:35:30]1041 (16) - 0000000000965400 [10:35:30]1040 (4) - 68546 [10:35:30]1012 (4) - 04.06.2024 04:15 [10:35:30]1206 (1) - 0 [10:35:30]OFD Sender: Remove packet 68546 [10:35:30]ProducePacketName [10:35:30]name=ofd_packets/00068546 [10:35:30]NVStorageDeleteData [10:35:30]Write to MH i2c: 01 00 00 EF 1A 09 [10:35:30]Write i2c OK [10:35:30]MH_I2C_Read... [10:35:30]Read from MH i2c: 01 [10:35:30]MH_I2C_Read... [10:35:30]Read from MH i2c: 01 07 00 [10:35:30]MH_I2C_Read... [10:35:30]Read from MH i2c: 01 07 00 EF 1A 00 00 00 00 00 D4 0C F0 [10:35:30]RasterBufferAndPrint [10:35:30]line [10:35:30]line [10:35:30]line [10:35:30]line [10:35:30]line [10:35:30]written 0, free lines is 3292 [10:35:30]MH_Cut [10:35:30]Write to MH i2c: D1 01 00 F6 1A 01 E2 [10:35:30]Write i2c OK [10:35:30]MH_I2C_Read... [10:35:30]Read from MH i2c: D1 [10:35:30]MH_I2C_Read... [10:35:30]Read from MH i2c: D1 01 00 [10:35:30]MH_I2C_Read... [10:35:30]Read from MH i2c: D1 01 00 F6 1A 00 E1 [10:35:30]Write to MH i2c: 01 00 00 F7 1A 11 [10:35:30]Write i2c OK [10:35:30]MH_I2C_Read... [10:35:31]OFD Sender: No OFD packet to send [10:35:31]*** Cut start [10:35:31]*** Partial cut [10:35:31]*** CUTSNS_PIN = 1 [10:35:31]*** CUTSNS_PIN = 0 [10:35:31]*** Brake cut motor [10:35:32]Read from MH i2c: 01 [10:35:32]MH_I2C_Read... [10:35:32]*** Stop cut motor [10:35:32]*** Cut end [10:35:32]Read from MH i2c: 01 07 00 [10:35:32]MH_I2C_Read... [10:35:32]Read from MH i2c: 01 07 00 F7 1A 00 00 00 00 00 FF 0F 26 [10:35:32]process_action close_receipt done [10:35:32]requested_data is exist [10:35:32]produce_requested_data [10:35:32]requested_item fm.sn is exist - process it [10:35:32]wFMCommunicate request_size=4 [10:35:32]MH_SAM_APDU [10:35:32]CAPDU: 80 11 00 00 [10:35:32]Write to MH i2c: E2 08 00 F8 1A 80 11 00 00 00 00 00 00 8C [10:35:32]Write i2c OK [10:35:32]MH_I2C_Read... [10:35:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:35:32]Read from MH i2c: E2 [10:35:32]MH_I2C_Read... [10:35:32]Read from MH i2c: E2 17 00 [10:35:32]MH_I2C_Read... [10:35:32]Read from MH i2c: E2 17 00 F8 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 D7 [10:35:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [10:35:32]wFMCommunicate OK [10:35:32]requested_item fd.num is exist - process it [10:35:32]SAM_PROTO_GetFieldsCounters [10:35:32]wFMCommunicate request_size=4 [10:35:32]MH_SAM_APDU [10:35:32]CAPDU: 80 13 00 00 [10:35:32]Write to MH i2c: E2 08 00 F9 1A 80 13 00 00 00 00 00 00 8F [10:35:32]Write i2c OK [10:35:32]MH_I2C_Read... [10:35:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:35:32]Read from MH i2c: E2 [10:35:32]MH_I2C_Read... [10:35:32]Read from MH i2c: E2 62 00 [10:35:32]MH_I2C_Read... [10:35:32]Read from MH i2c: E2 62 00 F9 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 C2 0B 01 00 0E 04 04 00 45 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 47 [10:35:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 C2 0B 01 00 0E 04 04 00 45 01 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:35:32]wFMCommunicate OK [10:35:32]SAM_PROTO_GetFieldsCounters done [10:35:32]requested_item shift.num is exist - process it [10:35:32]requested_item shift.opened is exist - process it [10:35:32]req_shift_opened [10:35:32]FM_GetShiftState [10:35:32]SAM_PROTO_GetShiftState [10:35:32]wFMCommunicate request_size=4 [10:35:32]MH_SAM_APDU [10:35:32]CAPDU: 80 13 01 00 [10:35:32]Write to MH i2c: E2 08 00 FA 1A 80 13 01 00 00 00 00 00 91 [10:35:32]Write i2c OK [10:35:32]MH_I2C_Read... [10:35:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:35:32]Read from MH i2c: E2 [10:35:32]MH_I2C_Read... [10:35:32]Read from MH i2c: E2 0E 00 [10:35:32]MH_I2C_Read... [10:35:32]Read from MH i2c: E2 0E 00 FA 1A 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 2D [10:35:32]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [10:35:32]wFMCommunicate OK [10:35:32]SAM_PROTO_GetShiftState done [10:35:32]FM_GetShiftState done [10:35:32]req_shift_opened done [10:35:32]requested_item shift.open_date is exist - process it [10:35:32]req_shift_open_date [10:35:32]req_shift_open_date done [10:35:32]produce_requested_data done [10:35:32]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68546,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [10:35:32]process_action_free close_receipt [10:35:32]json_value_free [10:35:32]json_value_free done [10:35:32]process_json_proto returns [10:35:32]Send response to host [10:35:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68546,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [10:35:32]free response buf [10:35:32]execute_script done [10:35:32]execute_script returns [10:35:32]free content buf [10:35:32]Sock 9.Close socket [10:35:32]Sock 9.Thread stoped [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:35:57]accept exits with 7 [10:35:57]New connection [10:35:57]New thread 3067227492 created [10:35:57]Thread 3067084132 joined [10:35:57]Waiting for new connection... [10:35:57] Sock 7.Parse request [10:35:57]Sock 7.Check first char [10:35:57]Sock 7.First char is OK [10:35:57]request: POST /json_proto HTTP/1.0 [10:35:57]Method: POST [10:35:57]URL: /json_proto [10:35:57]Method is POST - this is cgi request [10:35:57]url: /json_proto [10:35:57]query_string will be loaded in cgi processing [10:35:57]execute_cgi json_proto POST (null) [10:35:57]execute_cgi path=json_proto method=POST [10:35:57]POST find Content-Length [10:35:57]Host: 172.17.36.132:8080 [10:35:57]Content-Length: 840 [10:35:57]Content-Type: application/json [10:35:57] [10:35:57]POST finish read [10:35:57]Found Content-Length = 840 [10:35:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706669", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 7.580, "sum" : 560.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 560.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:35:57]execute_script... [10:35: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)706669", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 7.580, "sum" : 560.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 560.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:35:57]POST & json_proto [10:35:57]process_json_proto [10:35:57]json parsed OK: [10:35:57]protocol is kg_v1.0 [10:35:57]action value=close_receipt [10:35:57]process_action close_receipt [10:35:57]cmd_close_receipt [10:35:57]MH_GetDate [10:35:57]Write to MH i2c: F0 00 00 FB 1A 04 [10:35:57]Write i2c OK [10:35:57]MH_I2C_Read... [10:35:57]Read from MH i2c: F0 [10:35:57]MH_I2C_Read... [10:35:57]Read from MH i2c: F0 09 00 [10:35:57]MH_I2C_Read... [10:35:57]Read from MH i2c: F0 09 00 FB 1A 00 11 EE 5E 66 B2 22 B0 64 B8 [10:35:57]GetLastDocTimeStamp 1717497332 [10:35:57]current date 1717497361 [10:35:57]FM_GetShiftState [10:35:57]SAM_PROTO_GetShiftState [10:35:57]wFMCommunicate request_size=4 [10:35:57]MH_SAM_APDU [10:35:57]CAPDU: 80 13 01 00 [10:35:57]Write to MH i2c: E2 08 00 FC 1A 80 13 01 00 00 00 00 00 93 [10:35:57]Write i2c OK [10:35:57]MH_I2C_Read... [10:35:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:35:57]Read from MH i2c: E2 [10:35:57]MH_I2C_Read... [10:35:57]Read from MH i2c: E2 0E 00 [10:35:57]MH_I2C_Read... [10:35:57]Read from MH i2c: E2 0E 00 FC 1A 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 2F [10:35:57]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [10:35:57]wFMCommunicate OK [10:35:57]SAM_PROTO_GetShiftState done [10:35:57]FM_GetShiftState done [10:35:57]opened in 1717460590 [10:35:57]opened+sec_in_day 1717546990 [10:35:57]quantity*price = 56016 [10:35:57]sum+1 = 56017 [10:35:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 560.16 НСП 1% : 4.96 НДС 12% : 59.49 Наличными: 0.00 Безнал.: 560.16 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 45 04.06.2024 10:36 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000965400 ФД: 68547 ФПД: 2808967246686 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T103601&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68547&fm=2808967246686&tin=02508201610067®Number=0000000000098096&sum=56016 [10:35:58]StoreToDocumentArchive [10:35:58]shift 325 fd 68547 [10:35:58]save to /storage/0325/doc_00068547 [10:35:58]save last doc name /storage/0325/doc_00068547 to /storage/kkm_last_doc_name [10:35:58]save OK [10:35:58]Clear old archive folders... [10:35:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:35:58]tlvbuf is 00A24C70 [10:35:58]SAM_PROTO_ClearQueue [10:35:58]wFMCommunicate request_size=4 [10:35:58]MH_SAM_APDU [10:35:58]CAPDU: 80 09 00 00 [10:35:58]Write to MH i2c: E2 08 00 09 1B 80 09 00 00 00 00 00 00 96 [10:35:58]Write i2c OK [10:35:58]MH_I2C_Read... [10:35:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:35:58]Read from MH i2c: E2 [10:35:58]MH_I2C_Read... [10:35:58]Read from MH i2c: E2 03 00 [10:35:58]MH_I2C_Read... [10:35:58]Read from MH i2c: E2 03 00 09 1B 00 90 00 98 [10:35:58]RAPDU: 90 00 [10:35:58]wFMCommunicate OK [10:35:58]SAM_PROTO_ClearQueue done [10:35:58]KKMCreateOFDPacket [10:35:58]OFDProtocolAddRootSTLVToBuf [10:35:58]FM_MakeSignedData [10:35:58]FM_MakeSignedData [10:35:58]SAM_PROTO_SignData [10:35:58]wFMCommunicate request_size=4 [10:35:58]MH_SAM_APDU [10:35:58]CAPDU: 80 0D 01 02 [10:35:58]Write to MH i2c: E2 08 00 0A 1B 80 0D 01 02 00 00 00 00 9E [10:35:58]Write i2c OK [10:35:58]MH_I2C_Read... [10:35:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:35:58]Read from MH i2c: E2 [10:35:58]MH_I2C_Read... [10:35:58]Read from MH i2c: E2 03 00 [10:35:58]MH_I2C_Read... [10:35:58]Read from MH i2c: E2 03 00 0A 1B 00 90 00 99 [10:35:58]RAPDU: 90 00 [10:35:58]wFMCommunicate OK [10:35:58]wFMCommunicate request_size=255 [10:35:58]MH_SAM_APDU [10:35:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9C 1D 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 D0 DA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 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 3D 17 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D0 DA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 11 EE 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 C3 0B 01 00 35 04 06 00 02 [10:35:58]Write to MH i2c: E2 02 01 0B 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 9C 1D 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 D0 DA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 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 3D 17 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D0 DA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 11 EE 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 C3 0B 01 00 35 04 06 00 02 00 00 A8 [10:35:58]Write i2c OK [10:35:58]MH_I2C_Read... [10:35:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:35:58]Read from MH i2c: E2 [10:35:58]MH_I2C_Read... [10:35:58]Read from MH i2c: E2 03 00 [10:35:58]MH_I2C_Read... [10:35:58]Read from MH i2c: E2 03 00 0B 1B 00 90 00 9A [10:35:58]RAPDU: 90 00 [10:35:58]wFMCommunicate OK [10:35:58]wFMCommunicate request_size=10 [10:35:58]MH_SAM_APDU [10:35:58]CAPDU: 80 0D 02 02 05 8E 03 7E B3 5E [10:35:58]Write to MH i2c: E2 0D 00 0C 1B 80 0D 02 02 05 00 8E 03 7E B3 5E 00 00 CB [10:35:58]Write i2c OK [10:35:58]MH_I2C_Read... [10:35:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:35:58]Read from MH i2c: E2 [10:35:58]MH_I2C_Read... [10:35:58]Read from MH i2c: E2 03 00 [10:35:58]MH_I2C_Read... [10:35:58]Read from MH i2c: E2 03 00 0C 1B 00 90 00 9B [10:35:58]RAPDU: 90 00 [10:35:58]wFMCommunicate OK [10:35:58]wFMCommunicate request_size=4 [10:35:58]MH_SAM_APDU [10:35:58]CAPDU: 80 0D 03 02 [10:35:58]Write to MH i2c: E2 08 00 0D 1B 80 0D 03 02 00 00 00 00 A3 [10:35:58]Write i2c OK [10:35:58]MH_I2C_Read... [10:35:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:35:58]Read from MH i2c: E2 [10:35:58]MH_I2C_Read... [10:35:58]Read from MH i2c: E2 0B 00 [10:35:58]MH_I2C_Read... [10:35:58]Read from MH i2c: E2 0B 00 0D 1B 00 7F 21 81 52 66 CD 39 E0 90 00 63 [10:35:58]RAPDU: 7F 21 81 52 66 CD 39 E0 90 00 [10:35:58]wFMCommunicate OK [10:35:58]SAM_PROTO_SignData done [10:35:58]FM_MakeSignedData done [10:35:58]CreateOFDProtocolMessage [10:35:58]wFMCommunicate request_size=4 [10:35:58]MH_SAM_APDU [10:35:58]CAPDU: 80 11 00 00 [10:35:58]Write to MH i2c: E2 08 00 0E 1B 80 11 00 00 00 00 00 00 A3 [10:35:58]Write i2c OK [10:35:58]MH_I2C_Read... [10:35:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:35:58]Read from MH i2c: E2 [10:35:58]MH_I2C_Read... [10:35:58]Read from MH i2c: E2 17 00 [10:35:58]MH_I2C_Read... [10:35:58]Read from MH i2c: E2 17 00 0E 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 EE [10:35:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [10:35:58]wFMCommunicate OK [10:35:58]CreateOFDProtocolMessage done [10:35:58]OFDSenderStorePacket 68547 [10:35:58]StoreOFDPacket docnum=68547 [10:35:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 FC 23 07 01 41 29 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9C 1D 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 D0 DA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 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 3D 17 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D0 DA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 11 EE 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 C3 0B 01 00 35 04 06 00 02 8E 03 7E B3 5E 7F 21 81 52 66 CD 39 E0 [10:35:58]CheckFolder [10:35:58]dirname=/storage/ofd_packets [10:35:58]CheckFolder done [10:35:58]ProducePacketName [10:35:58]name=ofd_packets/00068547 [10:35:58]NVStorageSaveData ofd_packets/00068547 [10:35:58]File name is /storage/ofd_packets/00068547 [10:35:58]Write 301 bytes [10:35:58]NVStorageSaveData done [10:35:58]OFDSenderStorePacket done [10:35:58]KKMCreateOFDPacket done [10:35:58]NVStorageSaveData kkm_last_timestamp [10:35:58]File name is /storage/kkm_last_timestamp [10:35:58]Write 4 bytes [10:35:58]NVStorageSaveData done [10:35:58]ExternCall_PrintAddStr [10:35:58]wPrintStart [10:35:58]Write to MH i2c: 01 00 00 0F 1B 2A [10:35:58]Write i2c OK [10:35:58]MH_I2C_Read... [10:35:58]Read from MH i2c: 01 [10:35:58]MH_I2C_Read... [10:35:58]Read from MH i2c: 01 07 00 [10:35:58]MH_I2C_Read... [10:35:58]Read from MH i2c: 01 07 00 0F 1B 00 00 00 00 00 FF 0F 3F [10:35:58]RasterBufferAndPrint [10:35:58]line Счет N : (1)706669 [10:35:58]line ИНН: 02508201610067 [10:35:58]line Контрольно-Кассовый Чек [10:35:58]line ПРОДАЖА [10:35:58]line ТРК (МРК, ГНК) : 14 [10:35:58]line Товар: 2710124500 [10:35:58]line Аи-95-К-5 [10:35:58]line 7.580 * 73.90 [10:35:58]line = 560.16 [10:35:58]line НДС 12% НСП 1% [10:35:58]line > о реализуемом товаре [10:35:58]line ИТОГО: 560.16 [10:35:58]line НСП 1% : 4.96 [10:35:58]line НДС 12% : 59.49 [10:35:58]line Наличными: 0.00 [10:35:58]line Безнал.: 560.16 [10:35:58]line Место: АЗС № 62 "Партнер Нефть" [10:35:58]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [10:35:58]line СНО: Общий режим [10:35:58]line Чек 45 04.06.2024 10:36 [10:35:58]line Смена: 325 ФФД: 1.0 [10:35:58]line ЗНМ: 0300000181 [10:35:58]line РНМ: 0000000000098096 [10:35:58]line Версия ККМ: 001 [10:35:58]line Платежная система: АКБ Кыргызстан [10:35:58]line ФМ: 0000000000965400 [10:35:58]line ФД: 68547 [10:35:58]line ФПД: 2808967246686 [10:35:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T103601&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68547&fm=2808967246686&tin=02508201610067®Number=0000000000098096&sum=56016 [10:35:59]OFD Sender: Processing packet 68547 [packets to send 26, broken 25] [10:35:59]ProducePacketName [10:35:59]name=ofd_packets/00068547 [10:35:59]OFD Sender: To server: pG, [10:35:59]CommunicateWithHost lk.salyk.kg:30040 [10:35:59]ConnectInit lk.salyk.kg [10:35:59]written 0, free lines is 4095 [10:35:59]Connected sock=10 [10:35:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 FC 23 07 01 41 29 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9C 1D 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 D0 DA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 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 3D 17 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D0 DA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 11 EE 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 C3 0B 01 00 35 04 06 00 02 8E 03 7E B3 5E 7F 21 81 52 66 CD 39 E0 [10:35:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 F3 40 47 00 D8 6A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 C3 0B 01 00 F4 03 04 00 09 95 5E 66 B6 04 01 00 00 EA 60 CE 6F 69 D9 96 C8 [10:35:59]CommunicateWithHost err = 0 [10:35:59]CheckOFDResponse [10:35:59]1017 (14) - 77093643461234 [10:35:59]1041 (16) - 0000000000965400 [10:35:59]1040 (4) - 68547 [10:35:59]1012 (4) - 04.06.2024 04:16 [10:35:59]1206 (1) - 0 [10:35:59]OFD Sender: Remove packet 68547 [10:35:59]ProducePacketName [10:35:59]name=ofd_packets/00068547 [10:35:59]NVStorageDeleteData [10:35:59]Write to MH i2c: 01 00 00 39 1B 54 [10:35:59]Write i2c OK [10:35:59]MH_I2C_Read... [10:35:59]Read from MH i2c: 01 [10:35:59]MH_I2C_Read... [10:35:59]Read from MH i2c: 01 07 00 [10:35:59]MH_I2C_Read... [10:35:59]Read from MH i2c: 01 07 00 39 1B 00 00 00 00 00 E2 0C 49 [10:35:59]RasterBufferAndPrint [10:35:59]line [10:35:59]line [10:35:59]line [10:35:59]line [10:35:59]line [10:35:59]written 0, free lines is 3304 [10:35:59]MH_Cut [10:35:59]Write to MH i2c: D1 01 00 40 1B 01 2D [10:35:59]Write i2c OK [10:35:59]MH_I2C_Read... [10:35:59]Read from MH i2c: D1 [10:35:59]MH_I2C_Read... [10:35:59]Read from MH i2c: D1 01 00 [10:35:59]MH_I2C_Read... [10:35:59]Read from MH i2c: D1 01 00 40 1B 00 2C [10:35:59]Write to MH i2c: 01 00 00 41 1B 5C [10:35:59]Write i2c OK [10:35:59]MH_I2C_Read... [10:35:59]OFD Sender: No OFD packet to send [10:36:00]*** Cut start [10:36:00]*** Partial cut [10:36:00]*** CUTSNS_PIN = 1 [10:36:00]*** CUTSNS_PIN = 0 [10:36:00]*** Brake cut motor [10:36:00]Read from MH i2c: 01 [10:36:01]MH_I2C_Read... [10:36:01]*** Stop cut motor [10:36:01]*** Cut end [10:36:01]Read from MH i2c: 01 07 00 [10:36:01]MH_I2C_Read... [10:36:01]Read from MH i2c: 01 07 00 41 1B 00 00 00 00 00 FF 0F 71 [10:36:01]process_action close_receipt done [10:36:01]requested_data is exist [10:36:01]produce_requested_data [10:36:01]requested_item fm.sn is exist - process it [10:36:01]wFMCommunicate request_size=4 [10:36:01]MH_SAM_APDU [10:36:01]CAPDU: 80 11 00 00 [10:36:01]Write to MH i2c: E2 08 00 42 1B 80 11 00 00 00 00 00 00 D7 [10:36:01]Write i2c OK [10:36:01]MH_I2C_Read... [10:36:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:36:01]Read from MH i2c: E2 [10:36:01]MH_I2C_Read... [10:36:01]Read from MH i2c: E2 17 00 [10:36:01]MH_I2C_Read... [10:36:01]Read from MH i2c: E2 17 00 42 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 22 [10:36:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [10:36:01]wFMCommunicate OK [10:36:01]requested_item fd.num is exist - process it [10:36:01]SAM_PROTO_GetFieldsCounters [10:36:01]wFMCommunicate request_size=4 [10:36:01]MH_SAM_APDU [10:36:01]CAPDU: 80 13 00 00 [10:36:01]Write to MH i2c: E2 08 00 43 1B 80 13 00 00 00 00 00 00 DA [10:36:01]Write i2c OK [10:36:01]MH_I2C_Read... [10:36:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:36:01]Read from MH i2c: E2 [10:36:01]MH_I2C_Read... [10:36:01]Read from MH i2c: E2 62 00 [10:36:01]MH_I2C_Read... [10:36:01]Read from MH i2c: E2 62 00 43 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 C3 0B 01 00 0E 04 04 00 45 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 96 [10:36:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 C3 0B 01 00 0E 04 04 00 45 01 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:36:01]wFMCommunicate OK [10:36:01]SAM_PROTO_GetFieldsCounters done [10:36:01]requested_item shift.num is exist - process it [10:36:01]requested_item shift.opened is exist - process it [10:36:01]req_shift_opened [10:36:01]FM_GetShiftState [10:36:01]SAM_PROTO_GetShiftState [10:36:01]wFMCommunicate request_size=4 [10:36:01]MH_SAM_APDU [10:36:01]CAPDU: 80 13 01 00 [10:36:01]Write to MH i2c: E2 08 00 44 1B 80 13 01 00 00 00 00 00 DC [10:36:01]Write i2c OK [10:36:01]MH_I2C_Read... [10:36:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:36:01]Read from MH i2c: E2 [10:36:01]MH_I2C_Read... [10:36:01]Read from MH i2c: E2 0E 00 [10:36:01]MH_I2C_Read... [10:36:01]Read from MH i2c: E2 0E 00 44 1B 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 78 [10:36:01]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [10:36:01]wFMCommunicate OK [10:36:01]SAM_PROTO_GetShiftState done [10:36:01]FM_GetShiftState done [10:36:01]req_shift_opened done [10:36:01]requested_item shift.open_date is exist - process it [10:36:01]req_shift_open_date [10:36:01]req_shift_open_date done [10:36:01]produce_requested_data done [10:36:01]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68547,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [10:36:01]process_action_free close_receipt [10:36:01]json_value_free [10:36:01]json_value_free done [10:36:01]process_json_proto returns [10:36:01]Send response to host [10:36:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68547,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [10:36:01]free response buf [10:36:01]execute_script done [10:36:01]execute_script returns [10:36:01]free content buf [10:36:01]Sock 7.Close socket [10:36:01]Sock 7.Thread stoped [10:36:04]OFD Sender: No OFD packet to send [10:36:09]OFD Sender: No OFD packet to send [10:36:14]OFD Sender: No OFD packet to send [10:36:19]OFD Sender: No OFD packet to send [10:36:24]OFD Sender: No OFD packet to send [10:36:29]OFD Sender: No OFD packet to send [10:36:34]OFD Sender: No OFD packet to send [10:36:39]OFD Sender: No OFD packet to send [10:36:44]OFD Sender: No OFD packet to send [10:36:49]OFD Sender: No OFD packet to send [10:36:54]OFD Sender: No OFD packet to send [10:36:59]OFD Sender: No OFD packet to send [10:37:04]OFD Sender: No OFD packet to send [10:37:09]OFD Sender: No OFD packet to send [10:37:14]OFD Sender: No OFD packet to send [10:37:19]OFD Sender: No OFD packet to send [10:37:24]OFD Sender: No OFD packet to send [10:37:29]OFD Sender: No OFD packet to send [10:37:34]OFD Sender: No OFD packet to send [10:37:39]OFD Sender: No OFD packet to send [10:37:45]OFD Sender: No OFD packet to send [10:37:50]OFD Sender: No OFD packet to send [10:37:55]OFD Sender: No OFD packet to send [10:38:00]OFD Sender: No OFD packet to send [10:38:05]OFD Sender: No OFD packet to send [10:38:10]OFD Sender: No OFD packet to send [10:38:15]OFD Sender: No OFD packet to send [10:38:20]OFD Sender: No OFD packet to send [10:38:25]OFD Sender: No OFD packet to send [10:38:30]OFD Sender: No OFD packet to send [10:38:35]OFD Sender: No OFD packet to send [10:38:40]OFD Sender: No OFD packet to send [10:38:45]OFD Sender: No OFD packet to send [10:38:50]OFD Sender: No OFD packet to send [10:38:55]OFD Sender: No OFD packet to send [10:39:00]OFD Sender: No OFD packet to send [10:39:05]OFD Sender: No OFD packet to send [10:39:10]OFD Sender: No OFD packet to send [10:39:15]OFD Sender: No OFD packet to send [10:39:20]OFD Sender: No OFD packet to send [10:39:25]OFD Sender: No OFD packet to send [10:39:30]OFD Sender: No OFD packet to send [10:39:35]OFD Sender: No OFD packet to send [10:39:40]OFD Sender: No OFD packet to send [10:39:45]OFD Sender: No OFD packet to send [10:39:50]OFD Sender: No OFD packet to send [10:39:55]OFD Sender: No OFD packet to send [10:40:00]OFD Sender: No OFD packet to send [10:40:05]OFD Sender: No OFD packet to send [10:40:10]OFD Sender: No OFD packet to send [10:40:15]OFD Sender: No OFD packet to send [10:40:20]OFD Sender: No OFD packet to send [10:40:25]OFD Sender: No OFD packet to send [10:40:30]OFD Sender: No OFD packet to send [10:40:35]OFD Sender: No OFD packet to send [10:40:40]OFD Sender: No OFD packet to send [10:40:45]OFD Sender: No OFD packet to send [10:40:50]OFD Sender: No OFD packet to send [10:40:55]OFD Sender: No OFD packet to send [10:41:00]OFD Sender: No OFD packet to send [10:41:05]OFD Sender: No OFD packet to send [10:41:10]OFD Sender: No OFD packet to send [10:41:11]accept exits with 9 [10:41:11]New connection [10:41:11]New thread 3067084132 created [10:41:11]Thread 3067227492 joined [10:41:11]Waiting for new connection... [10:41:11] Sock 9.Parse request [10:41:11]Sock 9.Check first char [10:41:11]Sock 9.First char is OK [10:41:11]request: POST /json_proto HTTP/1.0 [10:41:11]Method: POST [10:41:11]URL: /json_proto [10:41:11]Method is POST - this is cgi request [10:41:11]url: /json_proto [10:41:11]query_string will be loaded in cgi processing [10:41:11]execute_cgi json_proto POST (null) [10:41:11]execute_cgi path=json_proto method=POST [10:41:11]POST find Content-Length [10:41:11]Host: 172.17.36.132:8080 [10:41:11]Content-Length: 1169 [10:41:11]Content-Type: application/json [10:41:11] [10:41:11]POST finish read [10:41:11]Found Content-Length = 1169 [10:41:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0418\u0441\u043C\u0430\u043D\u0430\u043B\u0438\u0435\u0432 \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)706671\u000A04.06.2024 10:18\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 : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 29.040 x 73.90\u000A\u0418\u0422\u041E\u0413: 2146.06\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30104980\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:41:11]execute_script... [10:41:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0418\u0441\u043C\u0430\u043D\u0430\u043B\u0438\u0435\u0432 \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)706671\u000A04.06.2024 10:18\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 : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 29.040 x 73.90\u000A\u0418\u0422\u041E\u0413: 2146.06\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30104980\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:41:11]POST & json_proto [10:41:11]process_json_proto [10:41:11]json parsed OK: [10:41:11]protocol is kg_v1.0 [10:41:11]action value=print_text [10:41:11]process_action print_text [10:41:11]cmd_print_text [10:41:11]ExternCall_PrintAddStr [10:41:11]wPrintStart [10:41:11]Write to MH i2c: 01 00 00 45 1B 60 [10:41:11]Write i2c OK [10:41:11]MH_I2C_Read... [10:41:11]Read from MH i2c: 01 [10:41:11]MH_I2C_Read... [10:41:11]Read from MH i2c: 01 07 00 [10:41:11]MH_I2C_Read... [10:41:11]Read from MH i2c: 01 07 00 45 1B 00 00 00 00 00 FF 0F 75 [10:41:11]RasterBufferAndPrint [10:41:11]line *****ТОВАРНЫЙ ЧЕК***** [10:41:11]line АЗС 62 [10:41:11]line Партнер нефть [10:41:11]line 02508201610067 [10:41:11]line Кассир : Исманалиев Д. [10:41:11]line Счет N : (1)706671 [10:41:11]line 04.06.2024 10:18 [10:41:11]line ПРОДАЖА [10:41:11]line ТРК (МРК, ГНК): 43 [10:41:11]line Вид ГСМ : 2710124500 [10:41:11]line Аи-95-К-5 [10:41:11]line 29.040 x 73.90 [10:41:11]line ИТОГ: 2146.06 [10:41:11]line Тип оплаты: Талоны: ТК ГПНА Online [10:41:11]line 30104980 [10:41:11]line ______________________ [10:41:11]line (подпись) [10:41:11]written 0, free lines is 4095 [10:41:11]Write to MH i2c: 01 00 00 59 1B 74 [10:41:11]Write i2c OK [10:41:11]MH_I2C_Read... [10:41:11]Read from MH i2c: 01 [10:41:11]MH_I2C_Read... [10:41:11]Read from MH i2c: 01 07 00 [10:41:11]MH_I2C_Read... [10:41:11]Read from MH i2c: 01 07 00 59 1B 00 00 00 00 00 12 0E 9B [10:41:11]RasterBufferAndPrint [10:41:11]line [10:41:11]line [10:41:11]line [10:41:11]line [10:41:11]line [10:41:11]written 0, free lines is 3604 [10:41:11]MH_Cut [10:41:11]Write to MH i2c: D1 01 00 60 1B 01 4D [10:41:11]Write i2c OK [10:41:11]MH_I2C_Read... [10:41:11]Read from MH i2c: D1 [10:41:11]MH_I2C_Read... [10:41:11]Read from MH i2c: D1 01 00 [10:41:11]MH_I2C_Read... [10:41:11]Read from MH i2c: D1 01 00 60 1B 00 4C [10:41:11]Write to MH i2c: 01 00 00 61 1B 7C [10:41:11]Write i2c OK [10:41:11]MH_I2C_Read... [10:41:12]*** Cut start [10:41:12]*** Partial cut [10:41:12]*** CUTSNS_PIN = 1 [10:41:12]*** CUTSNS_PIN = 0 [10:41:12]*** Brake cut motor [10:41:12]Read from MH i2c: 01 [10:41:12]MH_I2C_Read... [10:41:12]*** Stop cut motor [10:41:12]*** Cut end [10:41:12]Read from MH i2c: 01 07 00 [10:41:12]MH_I2C_Read... [10:41:12]Read from MH i2c: 01 07 00 61 1B 00 00 00 00 00 FF 0F 91 [10:41:12]process_action print_text done [10:41:12]requested_data is exist [10:41:12]produce_requested_data [10:41:12]requested_item fm.sn is exist - process it [10:41:12]wFMCommunicate request_size=4 [10:41:12]MH_SAM_APDU [10:41:12]CAPDU: 80 11 00 00 [10:41:12]Write to MH i2c: E2 08 00 62 1B 80 11 00 00 00 00 00 00 F7 [10:41:12]Write i2c OK [10:41:12]MH_I2C_Read... [10:41:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:41:12]Read from MH i2c: E2 [10:41:12]MH_I2C_Read... [10:41:12]Read from MH i2c: E2 17 00 [10:41:12]MH_I2C_Read... [10:41:12]Read from MH i2c: E2 17 00 62 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 42 [10:41:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [10:41:12]wFMCommunicate OK [10:41:12]requested_item fd.num is exist - process it [10:41:12]SAM_PROTO_GetFieldsCounters [10:41:12]wFMCommunicate request_size=4 [10:41:12]MH_SAM_APDU [10:41:12]CAPDU: 80 13 00 00 [10:41:12]Write to MH i2c: E2 08 00 63 1B 80 13 00 00 00 00 00 00 FA [10:41:12]Write i2c OK [10:41:12]MH_I2C_Read... [10:41:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:41:12]Read from MH i2c: E2 [10:41:12]MH_I2C_Read... [10:41:12]Read from MH i2c: E2 62 00 [10:41:12]MH_I2C_Read... [10:41:12]Read from MH i2c: E2 62 00 63 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 C3 0B 01 00 0E 04 04 00 45 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 B6 [10:41:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 C3 0B 01 00 0E 04 04 00 45 01 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:41:12]wFMCommunicate OK [10:41:12]SAM_PROTO_GetFieldsCounters done [10:41:12]requested_item shift.num is exist - process it [10:41:12]requested_item shift.opened is exist - process it [10:41:12]req_shift_opened [10:41:12]FM_GetShiftState [10:41:12]SAM_PROTO_GetShiftState [10:41:12]wFMCommunicate request_size=4 [10:41:12]MH_SAM_APDU [10:41:12]CAPDU: 80 13 01 00 [10:41:12]Write to MH i2c: E2 08 00 64 1B 80 13 01 00 00 00 00 00 FC [10:41:12]Write i2c OK [10:41:12]MH_I2C_Read... [10:41:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:41:13]Read from MH i2c: E2 [10:41:13]MH_I2C_Read... [10:41:13]Read from MH i2c: E2 0E 00 [10:41:13]MH_I2C_Read... [10:41:13]Read from MH i2c: E2 0E 00 64 1B 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 98 [10:41:13]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [10:41:13]wFMCommunicate OK [10:41:13]SAM_PROTO_GetShiftState done [10:41:13]FM_GetShiftState done [10:41:13]req_shift_opened done [10:41:13]requested_item shift.open_date is exist - process it [10:41:13]req_shift_open_date [10:41:13]req_shift_open_date done [10:41:13]produce_requested_data done [10:41:13]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68547,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [10:41:13]process_action_free print_text [10:41:13]json_value_free [10:41:13]json_value_free done [10:41:13]process_json_proto returns [10:41:13]Send response to host [10:41:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68547,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [10:41:13]free response buf [10:41:13]execute_script done [10:41:13]execute_script returns [10:41:13]free content buf [10:41:13]Sock 9.Close socket [10:41:13]Sock 9.Thread stoped [10:41:15]OFD Sender: No OFD packet to send [10:41:20]OFD Sender: No OFD packet to send [10:41:25]OFD Sender: No OFD packet to send [10:41:30]OFD Sender: No OFD packet to send [10:41:35]OFD Sender: No OFD packet to send [10:41:40]OFD Sender: No OFD packet to send [10:41:45]OFD Sender: No OFD packet to send [10:41:50]OFD Sender: No OFD packet to send [10:41:55]OFD Sender: No OFD packet to send [10:42:00]OFD Sender: No OFD packet to send [10:42:05]OFD Sender: No OFD packet to send [10:42:10]OFD Sender: No OFD packet to send [10:42:15]OFD Sender: No OFD packet to send [10:42:20]OFD Sender: No OFD packet to send [10:42:25]OFD Sender: No OFD packet to send [10:42:30]OFD Sender: No OFD packet to send [10:42:35]OFD Sender: No OFD packet to send [10:42:40]OFD Sender: No OFD packet to send [10:42:45]OFD Sender: No OFD packet to send [10:42:50]OFD Sender: No OFD packet to send [10:42:55]OFD Sender: No OFD packet to send [10:43:00]OFD Sender: No OFD packet to send [10:43:05]OFD Sender: No OFD packet to send [10:43:10]OFD Sender: No OFD packet to send [10:43:15]OFD Sender: No OFD packet to send [10:43:20]OFD Sender: No OFD packet to send [10:43:25]OFD Sender: No OFD packet to send [10:43:30]OFD Sender: No OFD packet to send [10:43:35]OFD Sender: No OFD packet to send [10:43:40]OFD Sender: No OFD packet to send [10:43:45]OFD Sender: No OFD packet to send [10:43:50]OFD Sender: No OFD packet to send [10:43:55]OFD Sender: No OFD packet to send [10:44:00]OFD Sender: No OFD packet to send [10:44:05]OFD Sender: No OFD packet to send [10:44:10]OFD Sender: No OFD packet to send [10:44:15]OFD Sender: No OFD packet to send [10:44:20]OFD Sender: No OFD packet to send [10:44:25]OFD Sender: No OFD packet to send [10:44:30]OFD Sender: No OFD packet to send [10:44:35]OFD Sender: No OFD packet to send [10:44:37]accept exits with 7 [10:44:37]New connection [10:44:37]New thread 3067227492 created [10:44:37]Thread 3067084132 joined [10:44:37]Waiting for new connection... [10:44:37] Sock 7.Parse request [10:44:37]Sock 7.Check first char [10:44:37]Sock 7.First char is OK [10:44:37]request: POST /json_proto HTTP/1.0 [10:44:37]Method: POST [10:44:37]URL: /json_proto [10:44:37]Method is POST - this is cgi request [10:44:37]url: /json_proto [10:44:37]query_string will be loaded in cgi processing [10:44:37]execute_cgi json_proto POST (null) [10:44:37]execute_cgi path=json_proto method=POST [10:44:37]POST find Content-Length [10:44:37]Host: 172.17.36.132:8080 [10:44:37]Content-Length: 687 [10:44:37]Content-Type: application/json [10:44:37] [10:44:37]POST finish read [10:44:37]Found Content-Length = 687 [10:44:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706672", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "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" ] } } [10:44:37]execute_script... [10:44: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)706672", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "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" ] } } [10:44:37]POST & json_proto [10:44:37]process_json_proto [10:44:37]json parsed OK: [10:44:37]protocol is kg_v1.0 [10:44:37]action value=close_receipt [10:44:37]process_action close_receipt [10:44:37]cmd_close_receipt [10:44:37]MH_GetDate [10:44:37]Write to MH i2c: F0 00 00 65 1B 6F [10:44:37]Write i2c OK [10:44:37]MH_I2C_Read... [10:44:37]Read from MH i2c: F0 [10:44:37]MH_I2C_Read... [10:44:37]Read from MH i2c: F0 09 00 [10:44:37]MH_I2C_Read... [10:44:37]Read from MH i2c: F0 09 00 65 1B 00 19 F0 5E 66 B2 22 B0 64 2D [10:44:37]GetLastDocTimeStamp 1717497361 [10:44:37]current date 1717497881 [10:44:37]FM_GetShiftState [10:44:37]SAM_PROTO_GetShiftState [10:44:37]wFMCommunicate request_size=4 [10:44:37]MH_SAM_APDU [10:44:37]CAPDU: 80 13 01 00 [10:44:37]Write to MH i2c: E2 08 00 66 1B 80 13 01 00 00 00 00 00 FE [10:44:37]Write i2c OK [10:44:37]MH_I2C_Read... [10:44:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:44:37]Read from MH i2c: E2 [10:44:37]MH_I2C_Read... [10:44:37]Read from MH i2c: E2 0E 00 [10:44:37]MH_I2C_Read... [10:44:37]Read from MH i2c: E2 0E 00 66 1B 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 9A [10:44:37]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [10:44:37]wFMCommunicate OK [10:44:37]SAM_PROTO_GetShiftState done [10:44:37]FM_GetShiftState done [10:44:37]opened in 1717460590 [10:44:37]opened+sec_in_day 1717546990 [10:44:37]quantity*price = 200037 [10:44:37]sum+1 = 200039 [10:44:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 46 04.06.2024 10:44 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68548 ФПД: 219199279966407 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T104441&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68548&fm=219199279966407&tin=02508201610067®Number=0000000000098096&sum=200000 [10:44:39]StoreToDocumentArchive [10:44:39]shift 325 fd 68548 [10:44:39]save to /storage/0325/doc_00068548 [10:44:39]save last doc name /storage/0325/doc_00068548 to /storage/kkm_last_doc_name [10:44:39]save OK [10:44:39]Clear old archive folders... [10:44:39]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:44:39]tlvbuf is 00A53600 [10:44:39]SAM_PROTO_ClearQueue [10:44:39]wFMCommunicate request_size=4 [10:44:39]MH_SAM_APDU [10:44:39]CAPDU: 80 09 00 00 [10:44:39]Write to MH i2c: E2 08 00 73 1B 80 09 00 00 00 00 00 00 00 [10:44:39]Write i2c OK [10:44:39]MH_I2C_Read... [10:44:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:44:39]Read from MH i2c: E2 [10:44:39]MH_I2C_Read... [10:44:39]Read from MH i2c: E2 03 00 [10:44:39]MH_I2C_Read... [10:44:39]Read from MH i2c: E2 03 00 73 1B 00 90 00 02 [10:44:39]RAPDU: 90 00 [10:44:39]wFMCommunicate OK [10:44:39]SAM_PROTO_ClearQueue done [10:44:39]KKMCreateOFDPacket [10:44:39]OFDProtocolAddRootSTLVToBuf [10:44:39]FM_MakeSignedData [10:44:39]FM_MakeSignedData [10:44:39]SAM_PROTO_SignData [10:44:39]wFMCommunicate request_size=4 [10:44:39]MH_SAM_APDU [10:44:39]CAPDU: 80 0D 01 02 [10:44:39]Write to MH i2c: E2 08 00 74 1B 80 0D 01 02 00 00 00 00 08 [10:44:39]Write i2c OK [10:44:39]MH_I2C_Read... [10:44:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:44:39]Read from MH i2c: E2 [10:44:39]MH_I2C_Read... [10:44:39]Read from MH i2c: E2 03 00 [10:44:39]MH_I2C_Read... [10:44:39]Read from MH i2c: E2 03 00 74 1B 00 90 00 03 [10:44:39]RAPDU: 90 00 [10:44:39]wFMCommunicate OK [10:44:39]wFMCommunicate request_size=255 [10:44:39]MH_SAM_APDU [10:44:39]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 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 2E 00 00 00 F4 03 04 00 19 F0 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 C4 0B 01 00 35 04 06 00 [10:44:39]Write to MH i2c: E2 02 01 75 1B 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 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 2E 00 00 00 F4 03 04 00 19 F0 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 C4 0B 01 00 35 04 06 00 00 00 E0 [10:44:39]Write i2c OK [10:44:39]MH_I2C_Read... [10:44:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:44:39]Read from MH i2c: E2 [10:44:39]MH_I2C_Read... [10:44:39]Read from MH i2c: E2 03 00 [10:44:39]MH_I2C_Read... [10:44:39]Read from MH i2c: E2 03 00 75 1B 00 90 00 04 [10:44:39]RAPDU: 90 00 [10:44:39]wFMCommunicate OK [10:44:39]wFMCommunicate request_size=11 [10:44:39]MH_SAM_APDU [10:44:39]CAPDU: 80 0D 02 02 06 C7 5C 4F 37 A8 C7 [10:44:39]Write to MH i2c: E2 0E 00 76 1B 80 0D 02 02 06 00 C7 5C 4F 37 A8 C7 00 00 2F [10:44:39]Write i2c OK [10:44:39]MH_I2C_Read... [10:44:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:44:39]Read from MH i2c: E2 [10:44:39]MH_I2C_Read... [10:44:39]Read from MH i2c: E2 03 00 [10:44:39]MH_I2C_Read... [10:44:39]Read from MH i2c: E2 03 00 76 1B 00 90 00 05 [10:44:39]RAPDU: 90 00 [10:44:39]wFMCommunicate OK [10:44:39]wFMCommunicate request_size=4 [10:44:39]MH_SAM_APDU [10:44:39]CAPDU: 80 0D 03 02 [10:44:39]Write to MH i2c: E2 08 00 77 1B 80 0D 03 02 00 00 00 00 0D [10:44:39]Write i2c OK [10:44:39]MH_I2C_Read... [10:44:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:44:39]Read from MH i2c: E2 [10:44:39]MH_I2C_Read... [10:44:39]Read from MH i2c: E2 0B 00 [10:44:39]MH_I2C_Read... [10:44:39]Read from MH i2c: E2 0B 00 77 1B 00 0C 6F EB E9 CB 3F 56 ED 90 00 AA [10:44:39]RAPDU: 0C 6F EB E9 CB 3F 56 ED 90 00 [10:44:39]wFMCommunicate OK [10:44:39]SAM_PROTO_SignData done [10:44:39]FM_MakeSignedData done [10:44:39]CreateOFDProtocolMessage [10:44:39]wFMCommunicate request_size=4 [10:44:39]MH_SAM_APDU [10:44:39]CAPDU: 80 11 00 00 [10:44:39]Write to MH i2c: E2 08 00 78 1B 80 11 00 00 00 00 00 00 0D [10:44:39]Write i2c OK [10:44:39]MH_I2C_Read... [10:44:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:44:39]Read from MH i2c: E2 [10:44:39]MH_I2C_Read... [10:44:39]Read from MH i2c: E2 17 00 [10:44:39]MH_I2C_Read... [10:44:39]Read from MH i2c: E2 17 00 78 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 58 [10:44:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [10:44:39]wFMCommunicate OK [10:44:39]CreateOFDProtocolMessage done [10:44:39]OFDSenderStorePacket 68548 [10:44:39]StoreOFDPacket docnum=68548 [10:44:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 74 EE 08 01 B5 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 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 2E 00 00 00 F4 03 04 00 19 F0 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 C4 0B 01 00 35 04 06 00 C7 5C 4F 37 A8 C7 0C 6F EB E9 CB 3F 56 ED [10:44:39]CheckFolder [10:44:39]dirname=/storage/ofd_packets [10:44:39]CheckFolder done [10:44:39]ProducePacketName [10:44:39]name=ofd_packets/00068548 [10:44:39]NVStorageSaveData ofd_packets/00068548 [10:44:39]File name is /storage/ofd_packets/00068548 [10:44:39]Write 302 bytes [10:44:39]NVStorageSaveData done [10:44:39]OFDSenderStorePacket done [10:44:39]KKMCreateOFDPacket done [10:44:39]NVStorageSaveData kkm_last_timestamp [10:44:39]File name is /storage/kkm_last_timestamp [10:44:39]Write 4 bytes [10:44:39]NVStorageSaveData done [10:44:39]ExternCall_PrintAddStr [10:44:39]wPrintStart [10:44:39]Write to MH i2c: 01 00 00 79 1B 94 [10:44:39]Write i2c OK [10:44:39]MH_I2C_Read... [10:44:39]Read from MH i2c: 01 [10:44:39]MH_I2C_Read... [10:44:39]Read from MH i2c: 01 07 00 [10:44:39]MH_I2C_Read... [10:44:39]Read from MH i2c: 01 07 00 79 1B 00 00 00 00 00 FF 0F A9 [10:44:39]RasterBufferAndPrint [10:44:39]line Счет N : (1)706672 [10:44:39]line ИНН: 02508201610067 [10:44:39]line Контрольно-Кассовый Чек [10:44:39]line ПРОДАЖА [10:44:39]line ТРК (МРК, ГНК) : 21 [10:44:39]line Товар: 2710194210 [10:44:39]line ДТ(л)-К-4 [10:44:39]line 27.440 * 72.90 [10:44:39]line = 2000.38 [10:44:39]line НДС 12% НСП 1% [10:44:39]line > о реализуемом товаре [10:44:39]line ОКРУГЛЕНИЕ: -0.38 [10:44:39]line ИТОГО: 2000.00 [10:44:39]line Внесено: 2000.00 [10:44:39]line СДАЧА: 0.00 [10:44:39]line НСП 1% : 17.70 [10:44:39]line НДС 12% : 212.43 [10:44:39]line Наличными: 2000.00 [10:44:39]line Безнал.: 0.00 [10:44:39]line Место: АЗС № 62 "Партнер Нефть" [10:44:39]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [10:44:39]line СНО: Общий режим [10:44:39]line Чек 46 04.06.2024 10:44 [10:44:39]line Смена: 325 ФФД: 1.0 [10:44:39]line ЗНМ: 0300000181 [10:44:39]line РНМ: 0000000000098096 [10:44:39]line Версия ККМ: 001 [10:44:39]line ФМ: 0000000000965400 [10:44:39]line ФД: 68548 [10:44:39]line ФПД: 219199279966407 [10:44:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T104441&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68548&fm=219199279966407&tin=02508201610067®Number=0000000000098096&sum=200000 [10:44:39]OFD Sender: Processing packet 68548 [packets to send 26, broken 25] [10:44:39]ProducePacketName [10:44:39]name=ofd_packets/00068548 [10:44:39]OFD Sender: To server: pG, [10:44:39]CommunicateWithHost lk.salyk.kg:30040 [10:44:39]ConnectInit lk.salyk.kg [10:44:39]written 0, free lines is 4095 [10:44:39]Connected sock=10 [10:44:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 74 EE 08 01 B5 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 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 2E 00 00 00 F4 03 04 00 19 F0 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 C4 0B 01 00 35 04 06 00 C7 5C 4F 37 A8 C7 0C 6F EB E9 CB 3F 56 ED [10:44:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 02 BD 47 00 29 80 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 C4 0B 01 00 F4 03 04 00 12 97 5E 66 B6 04 01 00 00 44 9E 39 FB F7 5F 1E 76 [10:44:40]CommunicateWithHost err = 0 [10:44:40]CheckOFDResponse [10:44:40]1017 (14) - 77093643461234 [10:44:40]1041 (16) - 0000000000965400 [10:44:40]1040 (4) - 68548 [10:44:40]1012 (4) - 04.06.2024 04:24 [10:44:40]1206 (1) - 0 [10:44:40]OFD Sender: Remove packet 68548 [10:44:40]ProducePacketName [10:44:40]name=ofd_packets/00068548 [10:44:40]NVStorageDeleteData [10:44:40]Write to MH i2c: 01 00 00 A4 1B BF [10:44:40]Write i2c OK [10:44:40]MH_I2C_Read... [10:44:40]Read from MH i2c: 01 [10:44:40]MH_I2C_Read... [10:44:40]Read from MH i2c: 01 07 00 [10:44:40]MH_I2C_Read... [10:44:40]Read from MH i2c: 01 07 00 A4 1B 00 00 00 00 00 D4 0C A6 [10:44:40]RasterBufferAndPrint [10:44:40]line [10:44:40]line [10:44:40]line [10:44:40]line [10:44:40]line [10:44:40]written 0, free lines is 3290 [10:44:40]MH_Cut [10:44:40]Write to MH i2c: D1 01 00 AB 1B 01 98 [10:44:40]Write i2c OK [10:44:40]MH_I2C_Read... [10:44:40]Read from MH i2c: D1 [10:44:40]MH_I2C_Read... [10:44:40]Read from MH i2c: D1 01 00 [10:44:40]MH_I2C_Read... [10:44:40]Read from MH i2c: D1 01 00 AB 1B 00 97 [10:44:40]Write to MH i2c: 01 00 00 AC 1B C7 [10:44:40]Write i2c OK [10:44:40]MH_I2C_Read... [10:44:40]OFD Sender: No OFD packet to send [10:44:41]*** Cut start [10:44:41]*** Partial cut [10:44:41]*** CUTSNS_PIN = 1 [10:44:41]*** CUTSNS_PIN = 0 [10:44:41]*** Brake cut motor [10:44:41]Read from MH i2c: 01 [10:44:41]MH_I2C_Read... [10:44:41]*** Stop cut motor [10:44:41]*** Cut end [10:44:41]Read from MH i2c: 01 07 00 [10:44:41]MH_I2C_Read... [10:44:41]Read from MH i2c: 01 07 00 AC 1B 00 00 00 00 00 FF 0F DC [10:44:41]process_action close_receipt done [10:44:41]requested_data is exist [10:44:41]produce_requested_data [10:44:41]requested_item fm.sn is exist - process it [10:44:41]wFMCommunicate request_size=4 [10:44:41]MH_SAM_APDU [10:44:41]CAPDU: 80 11 00 00 [10:44:41]Write to MH i2c: E2 08 00 AD 1B 80 11 00 00 00 00 00 00 42 [10:44:41]Write i2c OK [10:44:41]MH_I2C_Read... [10:44:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:44:41]Read from MH i2c: E2 [10:44:41]MH_I2C_Read... [10:44:41]Read from MH i2c: E2 17 00 [10:44:41]MH_I2C_Read... [10:44:41]Read from MH i2c: E2 17 00 AD 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 8D [10:44:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [10:44:41]wFMCommunicate OK [10:44:41]requested_item fd.num is exist - process it [10:44:41]SAM_PROTO_GetFieldsCounters [10:44:41]wFMCommunicate request_size=4 [10:44:41]MH_SAM_APDU [10:44:41]CAPDU: 80 13 00 00 [10:44:41]Write to MH i2c: E2 08 00 AE 1B 80 13 00 00 00 00 00 00 45 [10:44:41]Write i2c OK [10:44:41]MH_I2C_Read... [10:44:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:44:41]Read from MH i2c: E2 [10:44:41]MH_I2C_Read... [10:44:41]Read from MH i2c: E2 62 00 [10:44:41]MH_I2C_Read... [10:44:41]Read from MH i2c: E2 62 00 AE 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 C4 0B 01 00 0E 04 04 00 45 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 05 [10:44:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 C4 0B 01 00 0E 04 04 00 45 01 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:44:42]wFMCommunicate OK [10:44:42]SAM_PROTO_GetFieldsCounters done [10:44:42]requested_item shift.num is exist - process it [10:44:42]requested_item shift.opened is exist - process it [10:44:42]req_shift_opened [10:44:42]FM_GetShiftState [10:44:42]SAM_PROTO_GetShiftState [10:44:42]wFMCommunicate request_size=4 [10:44:42]MH_SAM_APDU [10:44:42]CAPDU: 80 13 01 00 [10:44:42]Write to MH i2c: E2 08 00 AF 1B 80 13 01 00 00 00 00 00 47 [10:44:42]Write i2c OK [10:44:42]MH_I2C_Read... [10:44:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:44:42]Read from MH i2c: E2 [10:44:42]MH_I2C_Read... [10:44:42]Read from MH i2c: E2 0E 00 [10:44:42]MH_I2C_Read... [10:44:42]Read from MH i2c: E2 0E 00 AF 1B 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 E3 [10:44:42]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [10:44:42]wFMCommunicate OK [10:44:42]SAM_PROTO_GetShiftState done [10:44:42]FM_GetShiftState done [10:44:42]req_shift_opened done [10:44:42]requested_item shift.open_date is exist - process it [10:44:42]req_shift_open_date [10:44:42]req_shift_open_date done [10:44:42]produce_requested_data done [10:44:42]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68548,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [10:44:42]process_action_free close_receipt [10:44:42]json_value_free [10:44:42]json_value_free done [10:44:42]process_json_proto returns [10:44:42]Send response to host [10:44:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68548,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [10:44:42]free response buf [10:44:42]execute_script done [10:44:42]execute_script returns [10:44:42]free content buf [10:44:42]Sock 7.Close socket [10:44:42]Sock 7.Thread stoped [10:44:45]OFD Sender: No OFD packet to send [10:44:50]OFD Sender: No OFD packet to send [10:44:55]OFD Sender: No OFD packet to send [10:45:00]OFD Sender: No OFD packet to send [10:45:05]OFD Sender: No OFD packet to send [10:45:10]OFD Sender: No OFD packet to send [10:45:15]OFD Sender: No OFD packet to send [10:45:20]OFD Sender: No OFD packet to send [10:45:25]OFD Sender: No OFD packet to send [10:45:30]OFD Sender: No OFD packet to send [10:45:35]OFD Sender: No OFD packet to send [10:45:40]OFD Sender: No OFD packet to send [10:45:45]OFD Sender: No OFD packet to send [10:45:50]OFD Sender: No OFD packet to send [10:45:55]OFD Sender: No OFD packet to send [10:46:00]OFD Sender: No OFD packet to send [10:46:05]OFD Sender: No OFD packet to send [10:46:10]OFD Sender: No OFD packet to send [10:46:15]OFD Sender: No OFD packet to send [10:46:20]OFD Sender: No OFD packet to send [10:46:25]OFD Sender: No OFD packet to send [10:46:30]OFD Sender: No OFD packet to send [10:46:35]OFD Sender: No OFD packet to send [10:46:40]OFD Sender: No OFD packet to send [10:46:45]OFD Sender: No OFD packet to send [10:46:50]OFD Sender: No OFD packet to send [10:46:55]OFD Sender: No OFD packet to send [10:47:00]OFD Sender: No OFD packet to send [10:47:05]OFD Sender: No OFD packet to send [10:47:10]OFD Sender: No OFD packet to send [10:47:15]OFD Sender: No OFD packet to send [10:47:20]OFD Sender: No OFD packet to send [10:47:25]OFD Sender: No OFD packet to send [10:47:30]OFD Sender: No OFD packet to send [10:47:35]OFD Sender: No OFD packet to send [10:47:40]OFD Sender: No OFD packet to send [10:47:45]OFD Sender: No OFD packet to send [10:47:50]OFD Sender: No OFD packet to send [10:47:55]OFD Sender: No OFD packet to send [10:48:00]OFD Sender: No OFD packet to send [10:48:05]OFD Sender: No OFD packet to send [10:48:10]OFD Sender: No OFD packet to send [10:48:15]OFD Sender: No OFD packet to send [10:48:20]OFD Sender: No OFD packet to send [10:48:25]OFD Sender: No OFD packet to send [10:48:30]OFD Sender: No OFD packet to send [10:48:35]OFD Sender: No OFD packet to send [10:48:40]OFD Sender: No OFD packet to send [10:48:45]OFD Sender: No OFD packet to send [10:48:50]OFD Sender: No OFD packet to send [10:48:55]OFD Sender: No OFD packet to send [10:49:00]OFD Sender: No OFD packet to send [10:49:05]OFD Sender: No OFD packet to send [10:49:10]OFD Sender: No OFD packet to send [10:49:15]OFD Sender: No OFD packet to send [10:49:20]OFD Sender: No OFD packet to send [10:49:25]OFD Sender: No OFD packet to send [10:49:30]OFD Sender: No OFD packet to send [10:49:35]OFD Sender: No OFD packet to send [10:49:40]OFD Sender: No OFD packet to send [10:49:45]OFD Sender: No OFD packet to send [10:49:50]OFD Sender: No OFD packet to send [10:49:55]OFD Sender: No OFD packet to send [10:50:00]OFD Sender: No OFD packet to send [10:50:05]OFD Sender: No OFD packet to send [10:50:10]OFD Sender: No OFD packet to send [10:50:16]OFD Sender: No OFD packet to send [10:50:18]accept exits with 9 [10:50:18]New connection [10:50:18]New thread 3067084132 created [10:50:18]Thread 3067227492 joined [10:50:18]Waiting for new connection... [10:50:18] Sock 9.Parse request [10:50:18]Sock 9.Check first char [10:50:18]Sock 9.First char is OK [10:50:18]request: POST /json_proto HTTP/1.0 [10:50:18]Method: POST [10:50:18]URL: /json_proto [10:50:18]Method is POST - this is cgi request [10:50:18]url: /json_proto [10:50:18]query_string will be loaded in cgi processing [10:50:18]execute_cgi json_proto POST (null) [10:50:18]execute_cgi path=json_proto method=POST [10:50:18]POST find Content-Length [10:50:18]Host: 172.17.36.132:8080 [10:50:18]Content-Length: 682 [10:50:18]Content-Type: application/json [10:50:18] [10:50:18]POST finish read [10:50:18]Found Content-Length = 682 [10:50:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706673", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:50:18]execute_script... [10:50: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)706673", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:50:18]POST & json_proto [10:50:18]process_json_proto [10:50:18]json parsed OK: [10:50:18]protocol is kg_v1.0 [10:50:18]action value=close_receipt [10:50:18]process_action close_receipt [10:50:18]cmd_close_receipt [10:50:18]MH_GetDate [10:50:18]Write to MH i2c: F0 00 00 B0 1B BA [10:50:18]Write i2c OK [10:50:18]MH_I2C_Read... [10:50:18]Read from MH i2c: F0 [10:50:18]MH_I2C_Read... [10:50:18]Read from MH i2c: F0 09 00 [10:50:18]MH_I2C_Read... [10:50:18]Read from MH i2c: F0 09 00 B0 1B 00 6E F1 5E 66 B2 22 B0 64 CE [10:50:18]GetLastDocTimeStamp 1717497881 [10:50:18]current date 1717498222 [10:50:18]FM_GetShiftState [10:50:18]SAM_PROTO_GetShiftState [10:50:18]wFMCommunicate request_size=4 [10:50:18]MH_SAM_APDU [10:50:18]CAPDU: 80 13 01 00 [10:50:18]Write to MH i2c: E2 08 00 B1 1B 80 13 01 00 00 00 00 00 49 [10:50:18]Write i2c OK [10:50:18]MH_I2C_Read... [10:50:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:50:18]Read from MH i2c: E2 [10:50:18]MH_I2C_Read... [10:50:18]Read from MH i2c: E2 0E 00 [10:50:18]MH_I2C_Read... [10:50:18]Read from MH i2c: E2 0E 00 B1 1B 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 E5 [10:50:18]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [10:50:18]wFMCommunicate OK [10:50:18]SAM_PROTO_GetShiftState done [10:50:18]FM_GetShiftState done [10:50:18]opened in 1717460590 [10:50:18]opened+sec_in_day 1717546990 [10:50:18]quantity*price = 100015 [10:50:18]sum+1 = 100017 [10:50:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 47 04.06.2024 10:50 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68549 ФПД: 40126866000024 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T105022&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68549&fm=40126866000024&tin=02508201610067®Number=0000000000098096&sum=100000 [10:50:19]StoreToDocumentArchive [10:50:19]shift 325 fd 68549 [10:50:19]save to /storage/0325/doc_00068549 [10:50:19]save last doc name /storage/0325/doc_00068549 to /storage/kkm_last_doc_name [10:50:19]save OK [10:50:19]Clear old archive folders... [10:50:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:50:19]tlvbuf is B6DEB6B0 [10:50:19]SAM_PROTO_ClearQueue [10:50:19]wFMCommunicate request_size=4 [10:50:19]MH_SAM_APDU [10:50:19]CAPDU: 80 09 00 00 [10:50:19]Write to MH i2c: E2 08 00 BE 1B 80 09 00 00 00 00 00 00 4B [10:50:19]Write i2c OK [10:50:19]MH_I2C_Read... [10:50:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:50:19]Read from MH i2c: E2 [10:50:19]MH_I2C_Read... [10:50:19]Read from MH i2c: E2 03 00 [10:50:19]MH_I2C_Read... [10:50:19]Read from MH i2c: E2 03 00 BE 1B 00 90 00 4D [10:50:19]RAPDU: 90 00 [10:50:19]wFMCommunicate OK [10:50:19]SAM_PROTO_ClearQueue done [10:50:19]KKMCreateOFDPacket [10:50:19]OFDProtocolAddRootSTLVToBuf [10:50:19]FM_MakeSignedData [10:50:19]FM_MakeSignedData [10:50:19]SAM_PROTO_SignData [10:50:19]wFMCommunicate request_size=4 [10:50:19]MH_SAM_APDU [10:50:19]CAPDU: 80 0D 01 02 [10:50:19]Write to MH i2c: E2 08 00 BF 1B 80 0D 01 02 00 00 00 00 53 [10:50:19]Write i2c OK [10:50:19]MH_I2C_Read... [10:50:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:50:19]Read from MH i2c: E2 [10:50:19]MH_I2C_Read... [10:50:19]Read from MH i2c: E2 03 00 [10:50:19]MH_I2C_Read... [10:50:19]Read from MH i2c: E2 03 00 BF 1B 00 90 00 4E [10:50:19]RAPDU: 90 00 [10:50:19]wFMCommunicate OK [10:50:19]wFMCommunicate request_size=255 [10:50:19]MH_SAM_APDU [10:50: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 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 6E F1 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 C5 0B 01 00 35 04 06 00 24 [10:50:19]Write to MH i2c: E2 02 01 C0 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 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 6E F1 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 C5 0B 01 00 35 04 06 00 24 00 00 67 [10:50:19]Write i2c OK [10:50:19]MH_I2C_Read... [10:50:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:50:19]Read from MH i2c: E2 [10:50:19]MH_I2C_Read... [10:50:19]Read from MH i2c: E2 03 00 [10:50:19]MH_I2C_Read... [10:50:19]Read from MH i2c: E2 03 00 C0 1B 00 90 00 4F [10:50:19]RAPDU: 90 00 [10:50:19]wFMCommunicate OK [10:50:19]wFMCommunicate request_size=10 [10:50:19]MH_SAM_APDU [10:50:19]CAPDU: 80 0D 02 02 05 7E C3 98 08 98 [10:50:19]Write to MH i2c: E2 0D 00 C1 1B 80 0D 02 02 05 00 7E C3 98 08 98 00 00 D9 [10:50:19]Write i2c OK [10:50:19]MH_I2C_Read... [10:50:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:50:19]Read from MH i2c: E2 [10:50:19]MH_I2C_Read... [10:50:19]Read from MH i2c: E2 03 00 [10:50:19]MH_I2C_Read... [10:50:19]Read from MH i2c: E2 03 00 C1 1B 00 90 00 50 [10:50:19]RAPDU: 90 00 [10:50:19]wFMCommunicate OK [10:50:19]wFMCommunicate request_size=4 [10:50:19]MH_SAM_APDU [10:50:19]CAPDU: 80 0D 03 02 [10:50:19]Write to MH i2c: E2 08 00 C2 1B 80 0D 03 02 00 00 00 00 58 [10:50:19]Write i2c OK [10:50:19]MH_I2C_Read... [10:50:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:50:19]Read from MH i2c: E2 [10:50:19]MH_I2C_Read... [10:50:19]Read from MH i2c: E2 0B 00 [10:50:19]MH_I2C_Read... [10:50:19]Read from MH i2c: E2 0B 00 C2 1B 00 94 82 F3 8A E3 19 84 C6 90 00 32 [10:50:19]RAPDU: 94 82 F3 8A E3 19 84 C6 90 00 [10:50:19]wFMCommunicate OK [10:50:19]SAM_PROTO_SignData done [10:50:19]FM_MakeSignedData done [10:50:19]CreateOFDProtocolMessage [10:50:19]wFMCommunicate request_size=4 [10:50:19]MH_SAM_APDU [10:50:19]CAPDU: 80 11 00 00 [10:50:19]Write to MH i2c: E2 08 00 C3 1B 80 11 00 00 00 00 00 00 58 [10:50:19]Write i2c OK [10:50:19]MH_I2C_Read... [10:50:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:50:19]Read from MH i2c: E2 [10:50:19]MH_I2C_Read... [10:50:19]Read from MH i2c: E2 17 00 [10:50:19]MH_I2C_Read... [10:50:19]Read from MH i2c: E2 17 00 C3 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 A3 [10:50:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [10:50:19]wFMCommunicate OK [10:50:19]CreateOFDProtocolMessage done [10:50:19]OFDSenderStorePacket 68549 [10:50:19]StoreOFDPacket docnum=68549 [10:50:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 33 BC 07 01 54 1C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 6E F1 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 C5 0B 01 00 35 04 06 00 24 7E C3 98 08 98 94 82 F3 8A E3 19 84 C6 [10:50:19]CheckFolder [10:50:19]dirname=/storage/ofd_packets [10:50:19]CheckFolder done [10:50:19]ProducePacketName [10:50:19]name=ofd_packets/00068549 [10:50:19]NVStorageSaveData ofd_packets/00068549 [10:50:19]File name is /storage/ofd_packets/00068549 [10:50:19]Write 301 bytes [10:50:19]NVStorageSaveData done [10:50:19]OFDSenderStorePacket done [10:50:19]KKMCreateOFDPacket done [10:50:19]NVStorageSaveData kkm_last_timestamp [10:50:19]File name is /storage/kkm_last_timestamp [10:50:19]Write 4 bytes [10:50:19]NVStorageSaveData done [10:50:19]ExternCall_PrintAddStr [10:50:19]wPrintStart [10:50:19]Write to MH i2c: 01 00 00 C4 1B DF [10:50:19]Write i2c OK [10:50:19]MH_I2C_Read... [10:50:19]Read from MH i2c: 01 [10:50:19]MH_I2C_Read... [10:50:19]Read from MH i2c: 01 07 00 [10:50:19]MH_I2C_Read... [10:50:19]Read from MH i2c: 01 07 00 C4 1B 00 00 00 00 00 FF 0F F4 [10:50:19]RasterBufferAndPrint [10:50:19]line Счет N : (1)706673 [10:50:19]line ИНН: 02508201610067 [10:50:19]line Контрольно-Кассовый Чек [10:50:19]line ПРОДАЖА [10:50:19]line ТРК (МРК, ГНК) : 42 [10:50:19]line Товар: 2710124130 [10:50:19]line Аи-92-К-4 [10:50:19]line 14.950 * 66.90 [10:50:19]line = 1000.16 [10:50:19]line НДС 12% НСП 1% [10:50:19]line > о реализуемом товаре [10:50:19]line ОКРУГЛЕНИЕ: -0.16 [10:50:19]line ИТОГО: 1000.00 [10:50:19]line Внесено: 1000.00 [10:50:19]line СДАЧА: 0.00 [10:50:19]line НСП 1% : 8.85 [10:50:19]line НДС 12% : 106.21 [10:50:19]line Наличными: 1000.00 [10:50:19]line Безнал.: 0.00 [10:50:19]line Место: АЗС № 62 "Партнер Нефть" [10:50:19]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [10:50:19]line СНО: Общий режим [10:50:19]line Чек 47 04.06.2024 10:50 [10:50:19]line Смена: 325 ФФД: 1.0 [10:50:19]line ЗНМ: 0300000181 [10:50:19]line РНМ: 0000000000098096 [10:50:19]line Версия ККМ: 001 [10:50:19]line ФМ: 0000000000965400 [10:50:19]line ФД: 68549 [10:50:19]line ФПД: 40126866000024 [10:50:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T105022&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68549&fm=40126866000024&tin=02508201610067®Number=0000000000098096&sum=100000 [10:50:20]OFD Sender: Processing packet 68549 [packets to send 26, broken 25] [10:50:20]ProducePacketName [10:50:20]name=ofd_packets/00068549 [10:50:20]OFD Sender: To server: pG, [10:50:20]CommunicateWithHost lk.salyk.kg:30040 [10:50:20]ConnectInit lk.salyk.kg [10:50:20]written 0, free lines is 4095 [10:50:20]Connected sock=10 [10:50:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 33 BC 07 01 54 1C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 6E F1 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 C5 0B 01 00 35 04 06 00 24 7E C3 98 08 98 94 82 F3 8A E3 19 84 C6 [10:50:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 48 D0 47 00 74 6C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 C5 0B 01 00 F4 03 04 00 66 98 5E 66 B6 04 01 00 00 A5 9A 5F DF 54 EC 79 B9 [10:50:20]CommunicateWithHost err = 0 [10:50:20]CheckOFDResponse [10:50:20]1017 (14) - 77093643461234 [10:50:20]1041 (16) - 0000000000965400 [10:50:20]1040 (4) - 68549 [10:50:20]1012 (4) - 04.06.2024 04:30 [10:50:20]1206 (1) - 0 [10:50:20]OFD Sender: Remove packet 68549 [10:50:20]ProducePacketName [10:50:20]name=ofd_packets/00068549 [10:50:20]NVStorageDeleteData [10:50:20]Write to MH i2c: 01 00 00 EF 1B 0A [10:50:20]Write i2c OK [10:50:20]MH_I2C_Read... [10:50:20]Read from MH i2c: 01 [10:50:20]MH_I2C_Read... [10:50:20]Read from MH i2c: 01 07 00 [10:50:20]MH_I2C_Read... [10:50:20]Read from MH i2c: 01 07 00 EF 1B 00 00 00 00 00 CD 0C EA [10:50:20]RasterBufferAndPrint [10:50:20]line [10:50:20]line [10:50:20]line [10:50:20]line [10:50:20]line [10:50:20]written 0, free lines is 3283 [10:50:20]MH_Cut [10:50:20]Write to MH i2c: D1 01 00 F6 1B 01 E3 [10:50:20]Write i2c OK [10:50:20]MH_I2C_Read... [10:50:20]Read from MH i2c: D1 [10:50:20]MH_I2C_Read... [10:50:20]Read from MH i2c: D1 01 00 [10:50:20]MH_I2C_Read... [10:50:20]Read from MH i2c: D1 01 00 F6 1B 00 E2 [10:50:20]Write to MH i2c: 01 00 00 F7 1B 12 [10:50:20]Write i2c OK [10:50:20]MH_I2C_Read... [10:50:20]OFD Sender: No OFD packet to send [10:50:21]*** Cut start [10:50:21]*** Partial cut [10:50:21]*** CUTSNS_PIN = 1 [10:50:21]*** CUTSNS_PIN = 0 [10:50:21]*** Brake cut motor [10:50:21]Read from MH i2c: 01 [10:50:21]MH_I2C_Read... [10:50:21]*** Stop cut motor [10:50:21]*** Cut end [10:50:21]Read from MH i2c: 01 07 00 [10:50:21]MH_I2C_Read... [10:50:21]Read from MH i2c: 01 07 00 F7 1B 00 00 00 00 00 FF 0F 27 [10:50:21]process_action close_receipt done [10:50:21]requested_data is exist [10:50:21]produce_requested_data [10:50:21]requested_item fm.sn is exist - process it [10:50:21]wFMCommunicate request_size=4 [10:50:21]MH_SAM_APDU [10:50:21]CAPDU: 80 11 00 00 [10:50:21]Write to MH i2c: E2 08 00 F8 1B 80 11 00 00 00 00 00 00 8D [10:50:21]Write i2c OK [10:50:21]MH_I2C_Read... [10:50:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:50:22]Read from MH i2c: E2 [10:50:22]MH_I2C_Read... [10:50:22]Read from MH i2c: E2 17 00 [10:50:22]MH_I2C_Read... [10:50:22]Read from MH i2c: E2 17 00 F8 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 D8 [10:50:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [10:50:22]wFMCommunicate OK [10:50:22]requested_item fd.num is exist - process it [10:50:22]SAM_PROTO_GetFieldsCounters [10:50:22]wFMCommunicate request_size=4 [10:50:22]MH_SAM_APDU [10:50:22]CAPDU: 80 13 00 00 [10:50:22]Write to MH i2c: E2 08 00 F9 1B 80 13 00 00 00 00 00 00 90 [10:50:22]Write i2c OK [10:50:22]MH_I2C_Read... [10:50:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:50:22]Read from MH i2c: E2 [10:50:22]MH_I2C_Read... [10:50:22]Read from MH i2c: E2 62 00 [10:50:22]MH_I2C_Read... [10:50:22]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 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 C5 0B 01 00 0E 04 04 00 45 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 54 [10:50:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 C5 0B 01 00 0E 04 04 00 45 01 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:50:22]wFMCommunicate OK [10:50:22]SAM_PROTO_GetFieldsCounters done [10:50:22]requested_item shift.num is exist - process it [10:50:22]requested_item shift.opened is exist - process it [10:50:22]req_shift_opened [10:50:22]FM_GetShiftState [10:50:22]SAM_PROTO_GetShiftState [10:50:22]wFMCommunicate request_size=4 [10:50:22]MH_SAM_APDU [10:50:22]CAPDU: 80 13 01 00 [10:50:22]Write to MH i2c: E2 08 00 FA 1B 80 13 01 00 00 00 00 00 92 [10:50:22]Write i2c OK [10:50:22]MH_I2C_Read... [10:50:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:50:22]Read from MH i2c: E2 [10:50:22]MH_I2C_Read... [10:50:22]Read from MH i2c: E2 0E 00 [10:50:22]MH_I2C_Read... [10:50:22]Read from MH i2c: E2 0E 00 FA 1B 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 2E [10:50:22]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [10:50:22]wFMCommunicate OK [10:50:22]SAM_PROTO_GetShiftState done [10:50:22]FM_GetShiftState done [10:50:22]req_shift_opened done [10:50:22]requested_item shift.open_date is exist - process it [10:50:22]req_shift_open_date [10:50:22]req_shift_open_date done [10:50:22]produce_requested_data done [10:50:22]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68549,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [10:50:22]process_action_free close_receipt [10:50:22]json_value_free [10:50:22]json_value_free done [10:50:22]process_json_proto returns [10:50:22]Send response to host [10:50:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68549,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [10:50:22]free response buf [10:50:22]execute_script done [10:50:22]execute_script returns [10:50:22]free content buf [10:50:22]Sock 9.Close socket [10:50:22]Sock 9.Thread stoped [10:50:25]OFD Sender: No OFD packet to send [10:50:30]OFD Sender: No OFD packet to send [10:50:35]OFD Sender: No OFD packet to send [10:50:40]OFD Sender: No OFD packet to send [10:50:45]OFD Sender: No OFD packet to send [10:50:50]OFD Sender: No OFD packet to send [10:50:55]OFD Sender: No OFD packet to send [10:51:00]OFD Sender: No OFD packet to send [10:51:05]OFD Sender: No OFD packet to send [10:51:10]OFD Sender: No OFD packet to send [10:51:15]OFD Sender: No OFD packet to send [10:51:20]OFD Sender: No OFD packet to send [10:51:25]OFD Sender: No OFD packet to send [10:51:30]OFD Sender: No OFD packet to send [10:51:35]OFD Sender: No OFD packet to send [10:51:40]OFD Sender: No OFD packet to send [10:51:45]OFD Sender: No OFD packet to send [10:51:50]OFD Sender: No OFD packet to send [10:51:55]OFD Sender: No OFD packet to send [10:52:00]OFD Sender: No OFD packet to send [10:52:05]OFD Sender: No OFD packet to send [10:52:10]OFD Sender: No OFD packet to send [10:52:15]OFD Sender: No OFD packet to send [10:52:20]OFD Sender: No OFD packet to send [10:52:25]OFD Sender: No OFD packet to send [10:52:30]OFD Sender: No OFD packet to send [10:52:35]OFD Sender: No OFD packet to send [10:52:40]OFD Sender: No OFD packet to send [10:52:45]OFD Sender: No OFD packet to send [10:52:50]OFD Sender: No OFD packet to send [10:52:55]OFD Sender: No OFD packet to send [10:53:00]OFD Sender: No OFD packet to send [10:53:06]OFD Sender: No OFD packet to send [10:53:11]OFD Sender: No OFD packet to send [10:53:16]OFD Sender: No OFD packet to send [10:53:21]OFD Sender: No OFD packet to send [10:53:26]OFD Sender: No OFD packet to send [10:53:31]OFD Sender: No OFD packet to send [10:53:36]OFD Sender: No OFD packet to send [10:53:41]OFD Sender: No OFD packet to send [10:53:46]OFD Sender: No OFD packet to send [10:53:51]OFD Sender: No OFD packet to send [10:53:56]OFD Sender: No OFD packet to send [10:54:01]OFD Sender: No OFD packet to send [10:54:06]OFD Sender: No OFD packet to send [10:54:11]OFD Sender: No OFD packet to send [10:54:16]OFD Sender: No OFD packet to send [10:54:21]OFD Sender: No OFD packet to send [10:54:26]OFD Sender: No OFD packet to send [10:54:31]OFD Sender: No OFD packet to send [10:54:36]OFD Sender: No OFD packet to send [10:54:41]OFD Sender: No OFD packet to send [10:54:46]OFD Sender: No OFD packet to send [10:54:51]OFD Sender: No OFD packet to send [10:54:56]OFD Sender: No OFD packet to send [10:55:01]OFD Sender: No OFD packet to send [10:55:06]OFD Sender: No OFD packet to send [10:55:11]OFD Sender: No OFD packet to send [10:55:16]OFD Sender: No OFD packet to send [10:55:21]OFD Sender: No OFD packet to send [10:55:26]OFD Sender: No OFD packet to send [10:55:31]OFD Sender: No OFD packet to send [10:55:36]OFD Sender: No OFD packet to send [10:55:41]OFD Sender: No OFD packet to send [10:55:46]OFD Sender: No OFD packet to send [10:55:51]OFD Sender: No OFD packet to send [10:55:56]OFD Sender: No OFD packet to send [10:56:01]OFD Sender: No OFD packet to send [10:56:06]OFD Sender: No OFD packet to send [10:56:11]OFD Sender: No OFD packet to send [10:56:16]OFD Sender: No OFD packet to send [10:56:21]OFD Sender: No OFD packet to send [10:56:26]OFD Sender: No OFD packet to send [10:56:31]OFD Sender: No OFD packet to send [10:56:36]OFD Sender: No OFD packet to send [10:56:41]OFD Sender: No OFD packet to send [10:56:46]OFD Sender: No OFD packet to send [10:56:51]OFD Sender: No OFD packet to send [10:56:56]OFD Sender: No OFD packet to send [10:57:01]OFD Sender: No OFD packet to send [10:57:06]OFD Sender: No OFD packet to send [10:57:11]OFD Sender: No OFD packet to send [10:57:16]OFD Sender: No OFD packet to send [10:57:21]OFD Sender: No OFD packet to send [10:57:26]OFD Sender: No OFD packet to send [10:57:31]OFD Sender: No OFD packet to send [10:57:36]OFD Sender: No OFD packet to send [10:57:41]OFD Sender: No OFD packet to send [10:57:46]OFD Sender: No OFD packet to send [10:57:51]OFD Sender: No OFD packet to send [10:57:56]OFD Sender: No OFD packet to send [10:58:01]OFD Sender: No OFD packet to send [10:58:06]OFD Sender: No OFD packet to send [10:58:11]OFD Sender: No OFD packet to send [10:58:16]OFD Sender: No OFD packet to send [10:58:21]OFD Sender: No OFD packet to send [10:58:26]OFD Sender: No OFD packet to send [10:58:31]OFD Sender: No OFD packet to send [10:58:34]accept exits with 7 [10:58:34]New connection [10:58:34]New thread 3067227492 created [10:58:34]Thread 3067084132 joined [10:58:34]Waiting for new connection... [10:58:34] Sock 7.Parse request [10:58:34]Sock 7.Check first char [10:58:34]Sock 7.First char is OK [10:58:34]request: POST /json_proto HTTP/1.0 [10:58:34]Method: POST [10:58:34]URL: /json_proto [10:58:34]Method is POST - this is cgi request [10:58:34]url: /json_proto [10:58:34]query_string will be loaded in cgi processing [10:58:34]execute_cgi json_proto POST (null) [10:58:34]execute_cgi path=json_proto method=POST [10:58:34]POST find Content-Length [10:58:34]Host: 172.17.36.132:8080 [10:58:34]Content-Length: 677 [10:58:34]Content-Type: application/json [10:58:34] [10:58:34]POST finish read [10:58:34]Found Content-Length = 677 [10:58:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706674", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 6.730, "sum" : 450.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 450.00, "total" : 450.00, "payments": [ { "type": 0, "sum" : 450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:58:34]execute_script... [10:58:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706674", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 6.730, "sum" : 450.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 450.00, "total" : 450.00, "payments": [ { "type": 0, "sum" : 450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:58:34]POST & json_proto [10:58:34]process_json_proto [10:58:34]json parsed OK: [10:58:34]protocol is kg_v1.0 [10:58:34]action value=close_receipt [10:58:34]process_action close_receipt [10:58:34]cmd_close_receipt [10:58:34]MH_GetDate [10:58:34]Write to MH i2c: F0 00 00 FB 1B 05 [10:58:34]Write i2c OK [10:58:34]MH_I2C_Read... [10:58:34]Read from MH i2c: F0 [10:58:34]MH_I2C_Read... [10:58:34]Read from MH i2c: F0 09 00 [10:58:34]MH_I2C_Read... [10:58:34]Read from MH i2c: F0 09 00 FB 1B 00 5E F3 5E 66 B2 22 B0 64 0B [10:58:34]GetLastDocTimeStamp 1717498222 [10:58:34]current date 1717498718 [10:58:34]FM_GetShiftState [10:58:34]SAM_PROTO_GetShiftState [10:58:34]wFMCommunicate request_size=4 [10:58:34]MH_SAM_APDU [10:58:34]CAPDU: 80 13 01 00 [10:58:34]Write to MH i2c: E2 08 00 FC 1B 80 13 01 00 00 00 00 00 94 [10:58:34]Write i2c OK [10:58:34]MH_I2C_Read... [10:58:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:58:34]Read from MH i2c: E2 [10:58:34]MH_I2C_Read... [10:58:34]Read from MH i2c: E2 0E 00 [10:58:34]MH_I2C_Read... [10:58:34]Read from MH i2c: E2 0E 00 FC 1B 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 30 [10:58:34]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [10:58:34]wFMCommunicate OK [10:58:34]SAM_PROTO_GetShiftState done [10:58:34]FM_GetShiftState done [10:58:34]opened in 1717460590 [10:58:34]opened+sec_in_day 1717546990 [10:58:34]quantity*price = 45023 [10:58:34]sum+1 = 45025 [10:58:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 450.00 Внесено: 450.00 СДАЧА: 0.00 НСП 1% : 3.98 НДС 12% : 47.81 Наличными: 450.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 48 04.06.2024 10:58 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68550 ФПД: 160833347869879 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T105838&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68550&fm=160833347869879&tin=02508201610067®Number=0000000000098096&sum=45000 [10:58:35]StoreToDocumentArchive [10:58:35]shift 325 fd 68550 [10:58:35]save to /storage/0325/doc_00068550 [10:58:35]save last doc name /storage/0325/doc_00068550 to /storage/kkm_last_doc_name [10:58:35]save OK [10:58:35]Clear old archive folders... [10:58:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:58:35]tlvbuf is 00A77760 [10:58:35]SAM_PROTO_ClearQueue [10:58:35]wFMCommunicate request_size=4 [10:58:35]MH_SAM_APDU [10:58:35]CAPDU: 80 09 00 00 [10:58:35]Write to MH i2c: E2 08 00 09 1C 80 09 00 00 00 00 00 00 97 [10:58:35]Write i2c OK [10:58:35]MH_I2C_Read... [10:58:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:58:35]Read from MH i2c: E2 [10:58:35]MH_I2C_Read... [10:58:35]Read from MH i2c: E2 03 00 [10:58:35]MH_I2C_Read... [10:58:35]Read from MH i2c: E2 03 00 09 1C 00 90 00 99 [10:58:35]RAPDU: 90 00 [10:58:35]wFMCommunicate OK [10:58:35]SAM_PROTO_ClearQueue done [10:58:35]KKMCreateOFDPacket [10:58:35]OFDProtocolAddRootSTLVToBuf [10:58:35]FM_MakeSignedData [10:58:35]FM_MakeSignedData [10:58:35]SAM_PROTO_SignData [10:58:35]wFMCommunicate request_size=4 [10:58:35]MH_SAM_APDU [10:58:35]CAPDU: 80 0D 01 02 [10:58:35]Write to MH i2c: E2 08 00 0A 1C 80 0D 01 02 00 00 00 00 9F [10:58:35]Write i2c OK [10:58:35]MH_I2C_Read... [10:58:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:58:35]Read from MH i2c: E2 [10:58:35]MH_I2C_Read... [10:58:35]Read from MH i2c: E2 03 00 [10:58:35]MH_I2C_Read... [10:58:35]Read from MH i2c: E2 03 00 0A 1C 00 90 00 9A [10:58:35]RAPDU: 90 00 [10:58:35]wFMCommunicate OK [10:58:35]wFMCommunicate request_size=255 [10:58:35]MH_SAM_APDU [10:58: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 34 FF 03 08 00 03 4A 1A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E0 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 5E F3 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 C6 0B 01 00 35 04 06 00 92 [10:58:35]Write to MH i2c: E2 02 01 0B 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 34 FF 03 08 00 03 4A 1A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E0 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 5E F3 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 C6 0B 01 00 35 04 06 00 92 00 00 01 [10:58:35]Write i2c OK [10:58:35]MH_I2C_Read... [10:58:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:58:35]Read from MH i2c: E2 [10:58:35]MH_I2C_Read... [10:58:35]Read from MH i2c: E2 03 00 [10:58:35]MH_I2C_Read... [10:58:35]Read from MH i2c: E2 03 00 0B 1C 00 90 00 9B [10:58:35]RAPDU: 90 00 [10:58:35]wFMCommunicate OK [10:58:35]wFMCommunicate request_size=10 [10:58:35]MH_SAM_APDU [10:58:35]CAPDU: 80 0D 02 02 05 46 EE 91 5C B7 [10:58:35]Write to MH i2c: E2 0D 00 0C 1C 80 0D 02 02 05 00 46 EE 91 5C B7 00 00 84 [10:58:35]Write i2c OK [10:58:35]MH_I2C_Read... [10:58:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:58:36]Read from MH i2c: E2 [10:58:36]MH_I2C_Read... [10:58:36]Read from MH i2c: E2 03 00 [10:58:36]MH_I2C_Read... [10:58:36]Read from MH i2c: E2 03 00 0C 1C 00 90 00 9C [10:58:36]RAPDU: 90 00 [10:58:36]wFMCommunicate OK [10:58:36]wFMCommunicate request_size=4 [10:58:36]MH_SAM_APDU [10:58:36]CAPDU: 80 0D 03 02 [10:58:36]Write to MH i2c: E2 08 00 0D 1C 80 0D 03 02 00 00 00 00 A4 [10:58:36]Write i2c OK [10:58:36]MH_I2C_Read... [10:58:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:58:36]Read from MH i2c: E2 [10:58:36]MH_I2C_Read... [10:58:36]Read from MH i2c: E2 0B 00 [10:58:36]MH_I2C_Read... [10:58:36]Read from MH i2c: E2 0B 00 0D 1C 00 02 9C 67 EA 79 1A 3C 0C 90 00 6F [10:58:36]RAPDU: 02 9C 67 EA 79 1A 3C 0C 90 00 [10:58:36]wFMCommunicate OK [10:58:36]SAM_PROTO_SignData done [10:58:36]FM_MakeSignedData done [10:58:36]CreateOFDProtocolMessage [10:58:36]wFMCommunicate request_size=4 [10:58:36]MH_SAM_APDU [10:58:36]CAPDU: 80 11 00 00 [10:58:36]Write to MH i2c: E2 08 00 0E 1C 80 11 00 00 00 00 00 00 A4 [10:58:36]Write i2c OK [10:58:36]MH_I2C_Read... [10:58:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:58:36]Read from MH i2c: E2 [10:58:36]MH_I2C_Read... [10:58:36]Read from MH i2c: E2 17 00 [10:58:36]MH_I2C_Read... [10:58:36]Read from MH i2c: E2 17 00 0E 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 EF [10:58:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [10:58:36]wFMCommunicate OK [10:58:36]CreateOFDProtocolMessage done [10:58:36]OFDSenderStorePacket 68550 [10:58:36]StoreOFDPacket docnum=68550 [10:58:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 A2 4E 07 01 8A C6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4A 1A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E0 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 5E F3 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 C6 0B 01 00 35 04 06 00 92 46 EE 91 5C B7 02 9C 67 EA 79 1A 3C 0C [10:58:36]CheckFolder [10:58:36]dirname=/storage/ofd_packets [10:58:36]CheckFolder done [10:58:36]ProducePacketName [10:58:36]name=ofd_packets/00068550 [10:58:36]NVStorageSaveData ofd_packets/00068550 [10:58:36]File name is /storage/ofd_packets/00068550 [10:58:36]Write 301 bytes [10:58:36]NVStorageSaveData done [10:58:36]OFDSenderStorePacket done [10:58:36]KKMCreateOFDPacket done [10:58:36]NVStorageSaveData kkm_last_timestamp [10:58:36]File name is /storage/kkm_last_timestamp [10:58:36]Write 4 bytes [10:58:36]NVStorageSaveData done [10:58:36]ExternCall_PrintAddStr [10:58:36]wPrintStart [10:58:36]Write to MH i2c: 01 00 00 0F 1C 2B [10:58:36]Write i2c OK [10:58:36]MH_I2C_Read... [10:58:36]Read from MH i2c: 01 [10:58:36]MH_I2C_Read... [10:58:36]Read from MH i2c: 01 07 00 [10:58:36]MH_I2C_Read... [10:58:36]Read from MH i2c: 01 07 00 0F 1C 00 00 00 00 00 FF 0F 40 [10:58:36]RasterBufferAndPrint [10:58:36]line Счет N : (1)706674 [10:58:36]line ИНН: 02508201610067 [10:58:36]line Контрольно-Кассовый Чек [10:58:36]line ПРОДАЖА [10:58:36]line ТРК (МРК, ГНК) : 53 [10:58:36]line Товар: 2710124130 [10:58:36]line Аи-92-К-4 [10:58:36]line 6.730 * 66.90 [10:58:36]line = 450.24 [10:58:36]line НДС 12% НСП 1% [10:58:36]line > о реализуемом товаре [10:58:36]line ОКРУГЛЕНИЕ: -0.24 [10:58:36]line ИТОГО: 450.00 [10:58:36]line Внесено: 450.00 [10:58:36]line СДАЧА: 0.00 [10:58:36]line НСП 1% : 3.98 [10:58:36]line НДС 12% : 47.81 [10:58:36]line Наличными: 450.00 [10:58:36]line Безнал.: 0.00 [10:58:36]line Место: АЗС № 62 "Партнер Нефть" [10:58:36]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [10:58:36]line СНО: Общий режим [10:58:36]line Чек 48 04.06.2024 10:58 [10:58:36]line Смена: 325 ФФД: 1.0 [10:58:36]line ЗНМ: 0300000181 [10:58:36]line РНМ: 0000000000098096 [10:58:36]line Версия ККМ: 001 [10:58:36]line ФМ: 0000000000965400 [10:58:36]line ФД: 68550 [10:58:36]line ФПД: 160833347869879 [10:58:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T105838&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68550&fm=160833347869879&tin=02508201610067®Number=0000000000098096&sum=45000 [10:58:36]OFD Sender: Processing packet 68550 [packets to send 26, broken 25] [10:58:36]ProducePacketName [10:58:36]name=ofd_packets/00068550 [10:58:36]OFD Sender: To server: pG, [10:58:36]CommunicateWithHost lk.salyk.kg:30040 [10:58:36]ConnectInit lk.salyk.kg [10:58:36]written 0, free lines is 4095 [10:58:36]Connected sock=10 [10:58:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 A2 4E 07 01 8A C6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4A 1A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E0 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 5E F3 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 C6 0B 01 00 35 04 06 00 92 46 EE 91 5C B7 02 9C 67 EA 79 1A 3C 0C [10:58:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 2B 04 47 00 95 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 39 36 35 34 30 30 10 04 04 00 C6 0B 01 00 F4 03 04 00 57 9A 5E 66 B6 04 01 00 00 B2 A1 19 AD 4E FB F2 22 [10:58:36]CommunicateWithHost err = 0 [10:58:36]CheckOFDResponse [10:58:36]1017 (14) - 77093643461234 [10:58:36]1041 (16) - 0000000000965400 [10:58:36]1040 (4) - 68550 [10:58:36]1012 (4) - 04.06.2024 04:38 [10:58:36]1206 (1) - 0 [10:58:36]OFD Sender: Remove packet 68550 [10:58:36]ProducePacketName [10:58:36]name=ofd_packets/00068550 [10:58:36]NVStorageDeleteData [10:58:36]Write to MH i2c: 01 00 00 3A 1C 56 [10:58:36]Write i2c OK [10:58:36]MH_I2C_Read... [10:58:36]Read from MH i2c: 01 [10:58:36]MH_I2C_Read... [10:58:36]Read from MH i2c: 01 07 00 [10:58:36]MH_I2C_Read... [10:58:36]Read from MH i2c: 01 07 00 3A 1C 00 00 00 00 00 D7 0C 40 [10:58:36]RasterBufferAndPrint [10:58:36]line [10:58:36]line [10:58:36]line [10:58:36]line [10:58:36]line [10:58:36]written 0, free lines is 3294 [10:58:36]MH_Cut [10:58:36]Write to MH i2c: D1 01 00 41 1C 01 2F [10:58:36]Write i2c OK [10:58:36]MH_I2C_Read... [10:58:36]Read from MH i2c: D1 [10:58:36]MH_I2C_Read... [10:58:36]Read from MH i2c: D1 01 00 [10:58:36]MH_I2C_Read... [10:58:36]Read from MH i2c: D1 01 00 41 1C 00 2E [10:58:36]Write to MH i2c: 01 00 00 42 1C 5E [10:58:36]Write i2c OK [10:58:36]MH_I2C_Read... [10:58:37]OFD Sender: No OFD packet to send [10:58:37]*** Cut start [10:58:37]*** Partial cut [10:58:37]*** CUTSNS_PIN = 1 [10:58:37]*** CUTSNS_PIN = 0 [10:58:38]*** Brake cut motor [10:58:38]Read from MH i2c: 01 [10:58:38]MH_I2C_Read... [10:58:38]*** Stop cut motor [10:58:38]*** Cut end [10:58:38]Read from MH i2c: 01 07 00 [10:58:38]MH_I2C_Read... [10:58:38]Read from MH i2c: 01 07 00 42 1C 00 00 00 00 00 FF 0F 73 [10:58:38]process_action close_receipt done [10:58:38]requested_data is exist [10:58:38]produce_requested_data [10:58:38]requested_item fm.sn is exist - process it [10:58:38]wFMCommunicate request_size=4 [10:58:38]MH_SAM_APDU [10:58:38]CAPDU: 80 11 00 00 [10:58:38]Write to MH i2c: E2 08 00 43 1C 80 11 00 00 00 00 00 00 D9 [10:58:38]Write i2c OK [10:58:38]MH_I2C_Read... [10:58:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:58:38]Read from MH i2c: E2 [10:58:38]MH_I2C_Read... [10:58:38]Read from MH i2c: E2 17 00 [10:58:38]MH_I2C_Read... [10:58:38]Read from MH i2c: E2 17 00 43 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 24 [10:58:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [10:58:38]wFMCommunicate OK [10:58:38]requested_item fd.num is exist - process it [10:58:38]SAM_PROTO_GetFieldsCounters [10:58:38]wFMCommunicate request_size=4 [10:58:38]MH_SAM_APDU [10:58:38]CAPDU: 80 13 00 00 [10:58:38]Write to MH i2c: E2 08 00 44 1C 80 13 00 00 00 00 00 00 DC [10:58:38]Write i2c OK [10:58:38]MH_I2C_Read... [10:58:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:58:38]Read from MH i2c: E2 [10:58:38]MH_I2C_Read... [10:58:38]Read from MH i2c: E2 62 00 [10:58:38]MH_I2C_Read... [10:58:38]Read from MH i2c: E2 62 00 44 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 C6 0B 01 00 0E 04 04 00 45 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 A4 [10:58:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 C6 0B 01 00 0E 04 04 00 45 01 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:58:38]wFMCommunicate OK [10:58:38]SAM_PROTO_GetFieldsCounters done [10:58:38]requested_item shift.num is exist - process it [10:58:38]requested_item shift.opened is exist - process it [10:58:38]req_shift_opened [10:58:38]FM_GetShiftState [10:58:38]SAM_PROTO_GetShiftState [10:58:38]wFMCommunicate request_size=4 [10:58:38]MH_SAM_APDU [10:58:38]CAPDU: 80 13 01 00 [10:58:38]Write to MH i2c: E2 08 00 45 1C 80 13 01 00 00 00 00 00 DE [10:58:38]Write i2c OK [10:58:38]MH_I2C_Read... [10:58:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:58:38]Read from MH i2c: E2 [10:58:38]MH_I2C_Read... [10:58:38]Read from MH i2c: E2 0E 00 [10:58:38]MH_I2C_Read... [10:58:38]Read from MH i2c: E2 0E 00 45 1C 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 7A [10:58:38]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [10:58:38]wFMCommunicate OK [10:58:38]SAM_PROTO_GetShiftState done [10:58:38]FM_GetShiftState done [10:58:38]req_shift_opened done [10:58:38]requested_item shift.open_date is exist - process it [10:58:38]req_shift_open_date [10:58:38]req_shift_open_date done [10:58:38]produce_requested_data done [10:58:38]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68550,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [10:58:38]process_action_free close_receipt [10:58:38]json_value_free [10:58:38]json_value_free done [10:58:38]process_json_proto returns [10:58:38]Send response to host [10:58:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68550,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [10:58:38]free response buf [10:58:38]execute_script done [10:58:38]execute_script returns [10:58:38]free content buf [10:58:38]Sock 7.Close socket [10:58:38]Sock 7.Thread stoped [10:58:42]OFD Sender: No OFD packet to send [10:58:47]OFD Sender: No OFD packet to send [10:58:52]OFD Sender: No OFD packet to send [10:58:56]accept exits with 9 [10:58:56]New connection [10:58:56]New thread 3067084132 created [10:58:56]Thread 3067227492 joined [10:58:56]Waiting for new connection... [10:58:56] Sock 9.Parse request [10:58:56]Sock 9.Check first char [10:58:56]Sock 9.First char is OK [10:58:56]request: POST /json_proto HTTP/1.0 [10:58:56]Method: POST [10:58:56]URL: /json_proto [10:58:56]Method is POST - this is cgi request [10:58:56]url: /json_proto [10:58:56]query_string will be loaded in cgi processing [10:58:56]execute_cgi json_proto POST (null) [10:58:56]execute_cgi path=json_proto method=POST [10:58:56]POST find Content-Length [10:58:56]Host: 172.17.36.132:8080 [10:58:56]Content-Length: 677 [10:58:56]Content-Type: application/json [10:58:56] [10:58:56]POST finish read [10:58:56]Found Content-Length = 677 [10:58:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706675", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:58:56]execute_script... [10:58: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)706675", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:58:56]POST & json_proto [10:58:56]process_json_proto [10:58:56]json parsed OK: [10:58:56]protocol is kg_v1.0 [10:58:56]action value=close_receipt [10:58:56]process_action close_receipt [10:58:56]cmd_close_receipt [10:58:56]MH_GetDate [10:58:56]Write to MH i2c: F0 00 00 46 1C 51 [10:58:56]Write i2c OK [10:58:56]MH_I2C_Read... [10:58:56]Read from MH i2c: F0 [10:58:56]MH_I2C_Read... [10:58:56]Read from MH i2c: F0 09 00 [10:58:56]MH_I2C_Read... [10:58:56]Read from MH i2c: F0 09 00 46 1C 00 74 F3 5E 66 B2 22 B0 64 6D [10:58:56]GetLastDocTimeStamp 1717498718 [10:58:56]current date 1717498740 [10:58:56]FM_GetShiftState [10:58:56]SAM_PROTO_GetShiftState [10:58:56]wFMCommunicate request_size=4 [10:58:56]MH_SAM_APDU [10:58:56]CAPDU: 80 13 01 00 [10:58:56]Write to MH i2c: E2 08 00 47 1C 80 13 01 00 00 00 00 00 E0 [10:58:56]Write i2c OK [10:58:56]MH_I2C_Read... [10:58:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:58:56]Read from MH i2c: E2 [10:58:56]MH_I2C_Read... [10:58:56]Read from MH i2c: E2 0E 00 [10:58:56]MH_I2C_Read... [10:58:56]Read from MH i2c: E2 0E 00 47 1C 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 7C [10:58:56]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [10:58:56]wFMCommunicate OK [10:58:56]SAM_PROTO_GetShiftState done [10:58:56]FM_GetShiftState done [10:58:56]opened in 1717460590 [10:58:56]opened+sec_in_day 1717546990 [10:58:56]quantity*price = 30038 [10:58:56]sum+1 = 30039 [10:58:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 49 04.06.2024 10:59 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68551 ФПД: 149380978539583 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T105900&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68551&fm=149380978539583&tin=02508201610067®Number=0000000000098096&sum=30000 [10:58:57]StoreToDocumentArchive [10:58:57]shift 325 fd 68551 [10:58:57]save to /storage/0325/doc_00068551 [10:58:57]save last doc name /storage/0325/doc_00068551 to /storage/kkm_last_doc_name [10:58:57]save OK [10:58:57]Clear old archive folders... [10:58:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:58:57]tlvbuf is 00A4E4E0 [10:58:57]SAM_PROTO_ClearQueue [10:58:57]wFMCommunicate request_size=4 [10:58:57]MH_SAM_APDU [10:58:57]CAPDU: 80 09 00 00 [10:58:57]Write to MH i2c: E2 08 00 54 1C 80 09 00 00 00 00 00 00 E2 [10:58:57]Write i2c OK [10:58:57]MH_I2C_Read... [10:58:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:58:57]Read from MH i2c: E2 [10:58:57]MH_I2C_Read... [10:58:57]Read from MH i2c: E2 03 00 [10:58:57]MH_I2C_Read... [10:58:57]Read from MH i2c: E2 03 00 54 1C 00 90 00 E4 [10:58:57]RAPDU: 90 00 [10:58:57]wFMCommunicate OK [10:58:57]SAM_PROTO_ClearQueue done [10:58:57]KKMCreateOFDPacket [10:58:57]OFDProtocolAddRootSTLVToBuf [10:58:57]FM_MakeSignedData [10:58:57]FM_MakeSignedData [10:58:57]SAM_PROTO_SignData [10:58:57]wFMCommunicate request_size=4 [10:58:57]MH_SAM_APDU [10:58:57]CAPDU: 80 0D 01 02 [10:58:57]Write to MH i2c: E2 08 00 55 1C 80 0D 01 02 00 00 00 00 EA [10:58:57]Write i2c OK [10:58:57]MH_I2C_Read... [10:58:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:58:57]Read from MH i2c: E2 [10:58:57]MH_I2C_Read... [10:58:57]Read from MH i2c: E2 03 00 [10:58:57]MH_I2C_Read... [10:58:57]Read from MH i2c: E2 03 00 55 1C 00 90 00 E5 [10:58:57]RAPDU: 90 00 [10:58:57]wFMCommunicate OK [10:58:57]wFMCommunicate request_size=255 [10:58:57]MH_SAM_APDU [10:58:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 74 F3 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 C7 0B 01 00 35 04 06 00 87 [10:58:57]Write to MH i2c: E2 02 01 56 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 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 74 F3 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 C7 0B 01 00 35 04 06 00 87 00 00 67 [10:58:57]Write i2c OK [10:58:57]MH_I2C_Read... [10:58:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:58:57]Read from MH i2c: E2 [10:58:57]MH_I2C_Read... [10:58:57]Read from MH i2c: E2 03 00 [10:58:57]MH_I2C_Read... [10:58:57]Read from MH i2c: E2 03 00 56 1C 00 90 00 E6 [10:58:57]RAPDU: 90 00 [10:58:57]wFMCommunicate OK [10:58:57]wFMCommunicate request_size=10 [10:58:57]MH_SAM_APDU [10:58:57]CAPDU: 80 0D 02 02 05 DC 78 29 7C 3F [10:58:57]Write to MH i2c: E2 0D 00 57 1C 80 0D 02 02 05 00 DC 78 29 7C 3F 00 00 2F [10:58:57]Write i2c OK [10:58:57]MH_I2C_Read... [10:58:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:58:57]Read from MH i2c: E2 [10:58:57]MH_I2C_Read... [10:58:57]Read from MH i2c: E2 03 00 [10:58:57]MH_I2C_Read... [10:58:57]Read from MH i2c: E2 03 00 57 1C 00 90 00 E7 [10:58:57]RAPDU: 90 00 [10:58:57]wFMCommunicate OK [10:58:57]wFMCommunicate request_size=4 [10:58:57]MH_SAM_APDU [10:58:57]CAPDU: 80 0D 03 02 [10:58:57]Write to MH i2c: E2 08 00 58 1C 80 0D 03 02 00 00 00 00 EF [10:58:57]Write i2c OK [10:58:57]MH_I2C_Read... [10:58:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:58:57]Read from MH i2c: E2 [10:58:57]MH_I2C_Read... [10:58:57]Read from MH i2c: E2 0B 00 [10:58:57]MH_I2C_Read... [10:58:57]Read from MH i2c: E2 0B 00 58 1C 00 10 EC AD CD 81 8F 7E A5 90 00 99 [10:58:57]RAPDU: 10 EC AD CD 81 8F 7E A5 90 00 [10:58:57]wFMCommunicate OK [10:58:57]SAM_PROTO_SignData done [10:58:57]FM_MakeSignedData done [10:58:57]CreateOFDProtocolMessage [10:58:57]wFMCommunicate request_size=4 [10:58:57]MH_SAM_APDU [10:58:57]CAPDU: 80 11 00 00 [10:58:57]Write to MH i2c: E2 08 00 59 1C 80 11 00 00 00 00 00 00 EF [10:58:57]Write i2c OK [10:58:57]MH_I2C_Read... [10:58:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:58:57]Read from MH i2c: E2 [10:58:57]MH_I2C_Read... [10:58:57]Read from MH i2c: E2 17 00 [10:58:57]MH_I2C_Read... [10:58:57]Read from MH i2c: E2 17 00 59 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 3A [10:58:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [10:58:57]wFMCommunicate OK [10:58:57]CreateOFDProtocolMessage done [10:58:57]OFDSenderStorePacket 68551 [10:58:57]StoreOFDPacket docnum=68551 [10:58:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 D9 99 07 01 7D 76 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 74 F3 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 C7 0B 01 00 35 04 06 00 87 DC 78 29 7C 3F 10 EC AD CD 81 8F 7E A5 [10:58:57]CheckFolder [10:58:57]dirname=/storage/ofd_packets [10:58:57]CheckFolder done [10:58:57]ProducePacketName [10:58:57]name=ofd_packets/00068551 [10:58:57]NVStorageSaveData ofd_packets/00068551 [10:58:57]File name is /storage/ofd_packets/00068551 [10:58:57]Write 301 bytes [10:58:57]NVStorageSaveData done [10:58:57]OFDSenderStorePacket done [10:58:57]KKMCreateOFDPacket done [10:58:57]NVStorageSaveData kkm_last_timestamp [10:58:57]File name is /storage/kkm_last_timestamp [10:58:57]Write 4 bytes [10:58:57]NVStorageSaveData done [10:58:57]ExternCall_PrintAddStr [10:58:57]wPrintStart [10:58:57]Write to MH i2c: 01 00 00 5A 1C 76 [10:58:57]Write i2c OK [10:58:57]MH_I2C_Read... [10:58:57]Read from MH i2c: 01 [10:58:57]MH_I2C_Read... [10:58:57]Read from MH i2c: 01 07 00 [10:58:57]MH_I2C_Read... [10:58:57]Read from MH i2c: 01 07 00 5A 1C 00 00 00 00 00 FF 0F 8B [10:58:57]RasterBufferAndPrint [10:58:57]line Счет N : (1)706675 [10:58:57]line ИНН: 02508201610067 [10:58:57]line Контрольно-Кассовый Чек [10:58:57]line ПРОДАЖА [10:58:57]line ТРК (МРК, ГНК) : 32 [10:58:57]line Товар: 2710124130 [10:58:57]line Аи-92-К-4 [10:58:57]line 4.490 * 66.90 [10:58:57]line = 300.38 [10:58:57]line НДС 12% НСП 1% [10:58:57]line > о реализуемом товаре [10:58:57]line ОКРУГЛЕНИЕ: -0.38 [10:58:57]line ИТОГО: 300.00 [10:58:57]line Внесено: 300.00 [10:58:57]line СДАЧА: 0.00 [10:58:57]line НСП 1% : 2.66 [10:58:57]line НДС 12% : 31.90 [10:58:57]line Наличными: 300.00 [10:58:57]line Безнал.: 0.00 [10:58:57]line Место: АЗС № 62 "Партнер Нефть" [10:58:57]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [10:58:57]line СНО: Общий режим [10:58:57]line Чек 49 04.06.2024 10:59 [10:58:57]line Смена: 325 ФФД: 1.0 [10:58:57]line ЗНМ: 0300000181 [10:58:57]line РНМ: 0000000000098096 [10:58:57]line Версия ККМ: 001 [10:58:57]line ФМ: 0000000000965400 [10:58:57]line ФД: 68551 [10:58:57]line ФПД: 149380978539583 [10:58:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T105900&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68551&fm=149380978539583&tin=02508201610067®Number=0000000000098096&sum=30000 [10:58:58]OFD Sender: Processing packet 68551 [packets to send 26, broken 25] [10:58:58]ProducePacketName [10:58:58]name=ofd_packets/00068551 [10:58:58]OFD Sender: To server: pG, [10:58:58]CommunicateWithHost lk.salyk.kg:30040 [10:58:58]ConnectInit lk.salyk.kg [10:58:58]written 0, free lines is 4095 [10:58:58]Connected sock=10 [10:58:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 D9 99 07 01 7D 76 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 74 F3 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 C7 0B 01 00 35 04 06 00 87 DC 78 29 7C 3F 10 EC AD CD 81 8F 7E A5 [10:58:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 6F A4 47 00 20 00 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 C7 0B 01 00 F4 03 04 00 6D 9A 5E 66 B6 04 01 00 00 E4 95 68 B6 2C 12 C5 FC [10:58:58]CommunicateWithHost err = 0 [10:58:58]CheckOFDResponse [10:58:58]1017 (14) - 77093643461234 [10:58:58]1041 (16) - 0000000000965400 [10:58:58]1040 (4) - 68551 [10:58:58]1012 (4) - 04.06.2024 04:39 [10:58:58]1206 (1) - 0 [10:58:58]OFD Sender: Remove packet 68551 [10:58:58]ProducePacketName [10:58:58]name=ofd_packets/00068551 [10:58:58]NVStorageDeleteData [10:58:58]Write to MH i2c: 01 00 00 85 1C A1 [10:58:58]Write i2c OK [10:58:58]MH_I2C_Read... [10:58:58]Read from MH i2c: 01 [10:58:58]MH_I2C_Read... [10:58:58]Read from MH i2c: 01 07 00 [10:58:58]MH_I2C_Read... [10:58:58]Read from MH i2c: 01 07 00 85 1C 00 00 00 00 00 F0 0C A4 [10:58:58]RasterBufferAndPrint [10:58:58]line [10:58:58]line [10:58:58]line [10:58:58]line [10:58:58]line [10:58:58]written 0, free lines is 3318 [10:58:58]MH_Cut [10:58:58]Write to MH i2c: D1 01 00 8C 1C 01 7A [10:58:58]Write i2c OK [10:58:58]MH_I2C_Read... [10:58:58]Read from MH i2c: D1 [10:58:58]MH_I2C_Read... [10:58:58]Read from MH i2c: D1 01 00 [10:58:58]MH_I2C_Read... [10:58:58]Read from MH i2c: D1 01 00 8C 1C 00 79 [10:58:58]Write to MH i2c: 01 00 00 8D 1C A9 [10:58:58]Write i2c OK [10:58:58]MH_I2C_Read... [10:58:59]OFD Sender: No OFD packet to send [10:58:59]*** Cut start [10:58:59]*** Partial cut [10:58:59]*** CUTSNS_PIN = 1 [10:58:59]*** CUTSNS_PIN = 0 [10:58:59]*** Brake cut motor [10:59:00]Read from MH i2c: 01 [10:59:00]MH_I2C_Read... [10:59:00]*** Stop cut motor [10:59:00]*** Cut end [10:59:00]Read from MH i2c: 01 07 00 [10:59:00]MH_I2C_Read... [10:59:00]Read from MH i2c: 01 07 00 8D 1C 00 00 00 00 00 FF 0F BE [10:59:00]process_action close_receipt done [10:59:00]requested_data is exist [10:59:00]produce_requested_data [10:59:00]requested_item fm.sn is exist - process it [10:59:00]wFMCommunicate request_size=4 [10:59:00]MH_SAM_APDU [10:59:00]CAPDU: 80 11 00 00 [10:59:00]Write to MH i2c: E2 08 00 8E 1C 80 11 00 00 00 00 00 00 24 [10:59:00]Write i2c OK [10:59:00]MH_I2C_Read... [10:59:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:59:00]Read from MH i2c: E2 [10:59:00]MH_I2C_Read... [10:59:00]Read from MH i2c: E2 17 00 [10:59:00]MH_I2C_Read... [10:59:00]Read from MH i2c: E2 17 00 8E 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 6F [10:59:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [10:59:00]wFMCommunicate OK [10:59:00]requested_item fd.num is exist - process it [10:59:00]SAM_PROTO_GetFieldsCounters [10:59:00]wFMCommunicate request_size=4 [10:59:00]MH_SAM_APDU [10:59:00]CAPDU: 80 13 00 00 [10:59:00]Write to MH i2c: E2 08 00 8F 1C 80 13 00 00 00 00 00 00 27 [10:59:00]Write i2c OK [10:59:00]MH_I2C_Read... [10:59:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:59:00]Read from MH i2c: E2 [10:59:00]MH_I2C_Read... [10:59:00]Read from MH i2c: E2 62 00 [10:59:00]MH_I2C_Read... [10:59:00]Read from MH i2c: E2 62 00 8F 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 C7 0B 01 00 0E 04 04 00 45 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 F3 [10:59:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 C7 0B 01 00 0E 04 04 00 45 01 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:59:00]wFMCommunicate OK [10:59:00]SAM_PROTO_GetFieldsCounters done [10:59:00]requested_item shift.num is exist - process it [10:59:00]requested_item shift.opened is exist - process it [10:59:00]req_shift_opened [10:59:00]FM_GetShiftState [10:59:00]SAM_PROTO_GetShiftState [10:59:00]wFMCommunicate request_size=4 [10:59:00]MH_SAM_APDU [10:59:00]CAPDU: 80 13 01 00 [10:59:00]Write to MH i2c: E2 08 00 90 1C 80 13 01 00 00 00 00 00 29 [10:59:00]Write i2c OK [10:59:00]MH_I2C_Read... [10:59:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:59:00]Read from MH i2c: E2 [10:59:00]MH_I2C_Read... [10:59:00]Read from MH i2c: E2 0E 00 [10:59:00]MH_I2C_Read... [10:59:00]Read from MH i2c: E2 0E 00 90 1C 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 C5 [10:59:00]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [10:59:00]wFMCommunicate OK [10:59:00]SAM_PROTO_GetShiftState done [10:59:00]FM_GetShiftState done [10:59:00]req_shift_opened done [10:59:00]requested_item shift.open_date is exist - process it [10:59:00]req_shift_open_date [10:59:00]req_shift_open_date done [10:59:00]produce_requested_data done [10:59:00]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68551,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [10:59:00]process_action_free close_receipt [10:59:00]json_value_free [10:59:00]json_value_free done [10:59:00]process_json_proto returns [10:59:00]Send response to host [10:59:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68551,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [10:59:00]free response buf [10:59:00]execute_script done [10:59:00]execute_script returns [10:59:00]free content buf [10:59:00]Sock 9.Close socket [10:59:00]Sock 9.Thread stoped [10:59:04]OFD Sender: No OFD packet to send [10:59:09]OFD Sender: No OFD packet to send [10:59:14]OFD Sender: No OFD packet to send [10:59:19]OFD Sender: No OFD packet to send [10:59:24]OFD Sender: No OFD packet to send [10:59:29]OFD Sender: No OFD packet to send [10:59:34]OFD Sender: No OFD packet to send [10:59:39]OFD Sender: No OFD packet to send [10:59:44]OFD Sender: No OFD packet to send [10:59:49]OFD Sender: No OFD packet to send [10:59:54]OFD Sender: No OFD packet to send [10:59:59]OFD Sender: No OFD packet to send [11:00:04]OFD Sender: No OFD packet to send [11:00:09]OFD Sender: No OFD packet to send [11:00:14]OFD Sender: No OFD packet to send [11:00:19]OFD Sender: No OFD packet to send [11:00:24]OFD Sender: No OFD packet to send [11:00:29]OFD Sender: No OFD packet to send [11:00:34]OFD Sender: No OFD packet to send [11:00:39]OFD Sender: No OFD packet to send [11:00:44]OFD Sender: No OFD packet to send [11:00:49]OFD Sender: No OFD packet to send [11:00:54]OFD Sender: No OFD packet to send [11:00:59]OFD Sender: No OFD packet to send [11:01:04]OFD Sender: No OFD packet to send [11:01:09]OFD Sender: No OFD packet to send [11:01:14]OFD Sender: No OFD packet to send [11:01:19]OFD Sender: No OFD packet to send [11:01:24]OFD Sender: No OFD packet to send [11:01:29]OFD Sender: No OFD packet to send [11:01:34]OFD Sender: No OFD packet to send [11:01:39]OFD Sender: No OFD packet to send [11:01:44]OFD Sender: No OFD packet to send [11:01:49]OFD Sender: No OFD packet to send [11:01:54]OFD Sender: No OFD packet to send [11:01:59]OFD Sender: No OFD packet to send [11:02:04]OFD Sender: No OFD packet to send [11:02:09]OFD Sender: No OFD packet to send [11:02:14]OFD Sender: No OFD packet to send [11:02:19]OFD Sender: No OFD packet to send [11:02:24]OFD Sender: No OFD packet to send [11:02:29]OFD Sender: No OFD packet to send [11:02:34]OFD Sender: No OFD packet to send [11:02:39]OFD Sender: No OFD packet to send [11:02:44]OFD Sender: No OFD packet to send [11:02:49]OFD Sender: No OFD packet to send [11:02:54]OFD Sender: No OFD packet to send [11:02:59]OFD Sender: No OFD packet to send [11:03:04]OFD Sender: No OFD packet to send [11:03:09]OFD Sender: No OFD packet to send [11:03:14]OFD Sender: No OFD packet to send [11:03:19]OFD Sender: No OFD packet to send [11:03:24]OFD Sender: No OFD packet to send [11:03:29]OFD Sender: No OFD packet to send [11:03:34]OFD Sender: No OFD packet to send [11:03:39]OFD Sender: No OFD packet to send [11:03:44]OFD Sender: No OFD packet to send [11:03:49]OFD Sender: No OFD packet to send [11:03:54]OFD Sender: No OFD packet to send [11:03:59]OFD Sender: No OFD packet to send [11:04:04]OFD Sender: No OFD packet to send [11:04:09]OFD Sender: No OFD packet to send [11:04:14]OFD Sender: No OFD packet to send [11:04:19]OFD Sender: No OFD packet to send [11:04:24]OFD Sender: No OFD packet to send [11:04:29]OFD Sender: No OFD packet to send [11:04:34]OFD Sender: No OFD packet to send [11:04:39]OFD Sender: No OFD packet to send [11:04:44]OFD Sender: No OFD packet to send [11:04:49]OFD Sender: No OFD packet to send [11:04:54]OFD Sender: No OFD packet to send [11:04:59]OFD Sender: No OFD packet to send [11:05:04]OFD Sender: No OFD packet to send [11:05:09]OFD Sender: No OFD packet to send [11:05:14]OFD Sender: No OFD packet to send [11:05:19]OFD Sender: No OFD packet to send [11:05:24]OFD Sender: No OFD packet to send [11:05:29]OFD Sender: No OFD packet to send [11:05:34]OFD Sender: No OFD packet to send [11:05:39]OFD Sender: No OFD packet to send [11:05:44]OFD Sender: No OFD packet to send [11:05:49]OFD Sender: No OFD packet to send [11:05:54]OFD Sender: No OFD packet to send [11:05:59]OFD Sender: No OFD packet to send [11:06:04]OFD Sender: No OFD packet to send [11:06:09]OFD Sender: No OFD packet to send [11:06:14]OFD Sender: No OFD packet to send [11:06:15]accept exits with 7 [11:06:15]New connection [11:06:15]New thread 3067227492 created [11:06:15]Thread 3067084132 joined [11:06:15]Waiting for new connection... [11:06:15] Sock 7.Parse request [11:06:15]Sock 7.Check first char [11:06:15]Sock 7.First char is OK [11:06:15]request: POST /json_proto HTTP/1.0 [11:06:15]Method: POST [11:06:15]URL: /json_proto [11:06:15]Method is POST - this is cgi request [11:06:15]url: /json_proto [11:06:15]query_string will be loaded in cgi processing [11:06:15]execute_cgi json_proto POST (null) [11:06:15]execute_cgi path=json_proto method=POST [11:06:15]POST find Content-Length [11:06:15]Host: 172.17.36.132:8080 [11:06:15]Content-Length: 796 [11:06:15]Content-Type: application/json [11:06:15] [11:06:15]POST finish read [11:06:15]Found Content-Length = 796 [11:06:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706676", "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" : 67.90, "quantity" : 29.460, "sum" : 2000.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.33 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:06:15]execute_script... [11:06:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706676", "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" : 67.90, "quantity" : 29.460, "sum" : 2000.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.33 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:06:15]POST & json_proto [11:06:15]process_json_proto [11:06:15]json parsed OK: [11:06:15]protocol is kg_v1.0 [11:06:15]action value=close_receipt [11:06:15]process_action close_receipt [11:06:15]cmd_close_receipt [11:06:15]MH_GetDate [11:06:15]Write to MH i2c: F0 00 00 91 1C 9C [11:06:15]Write i2c OK [11:06:15]MH_I2C_Read... [11:06:15]Read from MH i2c: F0 [11:06:15]MH_I2C_Read... [11:06:15]Read from MH i2c: F0 09 00 [11:06:15]MH_I2C_Read... [11:06:15]Read from MH i2c: F0 09 00 91 1C 00 2B F5 5E 66 B2 22 B0 64 71 [11:06:15]GetLastDocTimeStamp 1717498740 [11:06:15]current date 1717499179 [11:06:15]FM_GetShiftState [11:06:15]SAM_PROTO_GetShiftState [11:06:15]wFMCommunicate request_size=4 [11:06:15]MH_SAM_APDU [11:06:15]CAPDU: 80 13 01 00 [11:06:15]Write to MH i2c: E2 08 00 92 1C 80 13 01 00 00 00 00 00 2B [11:06:15]Write i2c OK [11:06:15]MH_I2C_Read... [11:06:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:06:15]Read from MH i2c: E2 [11:06:15]MH_I2C_Read... [11:06:15]Read from MH i2c: E2 0E 00 [11:06:15]MH_I2C_Read... [11:06:15]Read from MH i2c: E2 0E 00 92 1C 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 C7 [11:06:15]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [11:06:15]wFMCommunicate OK [11:06:15]SAM_PROTO_GetShiftState done [11:06:15]FM_GetShiftState done [11:06:15]opened in 1717460590 [11:06:15]opened+sec_in_day 1717546990 [11:06:15]quantity*price = 200033 [11:06:15]sum+1 = 200034 [11:06:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.33 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.33 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 50 04.06.2024 11:06 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000965400 ФД: 68552 ФПД: 93319131195363 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T110619&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68552&fm=93319131195363&tin=02508201610067®Number=0000000000098096&sum=200033 [11:06:16]StoreToDocumentArchive [11:06:16]shift 325 fd 68552 [11:06:16]save to /storage/0325/doc_00068552 [11:06:16]save last doc name /storage/0325/doc_00068552 to /storage/kkm_last_doc_name [11:06:16]save OK [11:06:16]Clear old archive folders... [11:06:16]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:06:16]tlvbuf is 00A0E2B0 [11:06:16]SAM_PROTO_ClearQueue [11:06:16]wFMCommunicate request_size=4 [11:06:16]MH_SAM_APDU [11:06:16]CAPDU: 80 09 00 00 [11:06:16]Write to MH i2c: E2 08 00 9F 1C 80 09 00 00 00 00 00 00 2D [11:06:16]Write i2c OK [11:06:16]MH_I2C_Read... [11:06:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:06:16]Read from MH i2c: E2 [11:06:16]MH_I2C_Read... [11:06:16]Read from MH i2c: E2 03 00 [11:06:16]MH_I2C_Read... [11:06:16]Read from MH i2c: E2 03 00 9F 1C 00 90 00 2F [11:06:16]RAPDU: 90 00 [11:06:16]wFMCommunicate OK [11:06:16]SAM_PROTO_ClearQueue done [11:06:16]KKMCreateOFDPacket [11:06:16]OFDProtocolAddRootSTLVToBuf [11:06:16]FM_MakeSignedData [11:06:16]FM_MakeSignedData [11:06:16]SAM_PROTO_SignData [11:06:16]wFMCommunicate request_size=4 [11:06:16]MH_SAM_APDU [11:06:16]CAPDU: 80 0D 01 02 [11:06:16]Write to MH i2c: E2 08 00 A0 1C 80 0D 01 02 00 00 00 00 35 [11:06:16]Write i2c OK [11:06:16]MH_I2C_Read... [11:06:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:06:16]Read from MH i2c: E2 [11:06:16]MH_I2C_Read... [11:06:16]Read from MH i2c: E2 03 00 [11:06:16]MH_I2C_Read... [11:06:16]Read from MH i2c: E2 03 00 A0 1C 00 90 00 30 [11:06:16]RAPDU: 90 00 [11:06:16]wFMCommunicate OK [11:06:16]wFMCommunicate request_size=255 [11:06:16]MH_SAM_APDU [11:06: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 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 73 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 61 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 61 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 61 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 2B F5 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 C8 0B 01 00 35 04 06 00 [11:06:16]Write to MH i2c: E2 02 01 A1 1C 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 73 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 61 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 61 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 61 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 2B F5 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 C8 0B 01 00 35 04 06 00 00 00 4E [11:06:16]Write i2c OK [11:06:16]MH_I2C_Read... [11:06:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:06:16]Read from MH i2c: E2 [11:06:16]MH_I2C_Read... [11:06:16]Read from MH i2c: E2 03 00 [11:06:16]MH_I2C_Read... [11:06:16]Read from MH i2c: E2 03 00 A1 1C 00 90 00 31 [11:06:16]RAPDU: 90 00 [11:06:16]wFMCommunicate OK [11:06:16]wFMCommunicate request_size=11 [11:06:16]MH_SAM_APDU [11:06:16]CAPDU: 80 0D 02 02 06 54 DF 8D AA 67 E3 [11:06:16]Write to MH i2c: E2 0E 00 A2 1C 80 0D 02 02 06 00 54 DF 8D AA 67 E3 00 00 F8 [11:06:16]Write i2c OK [11:06:16]MH_I2C_Read... [11:06:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:06:16]Read from MH i2c: E2 [11:06:16]MH_I2C_Read... [11:06:16]Read from MH i2c: E2 03 00 [11:06:16]MH_I2C_Read... [11:06:16]Read from MH i2c: E2 03 00 A2 1C 00 90 00 32 [11:06:16]RAPDU: 90 00 [11:06:16]wFMCommunicate OK [11:06:16]wFMCommunicate request_size=4 [11:06:16]MH_SAM_APDU [11:06:16]CAPDU: 80 0D 03 02 [11:06:16]Write to MH i2c: E2 08 00 A3 1C 80 0D 03 02 00 00 00 00 3A [11:06:16]Write i2c OK [11:06:16]MH_I2C_Read... [11:06:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:06:16]Read from MH i2c: E2 [11:06:16]MH_I2C_Read... [11:06:16]Read from MH i2c: E2 0B 00 [11:06:16]MH_I2C_Read... [11:06:16]Read from MH i2c: E2 0B 00 A3 1C 00 27 48 5A 83 7A 85 B7 89 90 00 C6 [11:06:16]RAPDU: 27 48 5A 83 7A 85 B7 89 90 00 [11:06:16]wFMCommunicate OK [11:06:16]SAM_PROTO_SignData done [11:06:16]FM_MakeSignedData done [11:06:16]CreateOFDProtocolMessage [11:06:16]wFMCommunicate request_size=4 [11:06:16]MH_SAM_APDU [11:06:16]CAPDU: 80 11 00 00 [11:06:16]Write to MH i2c: E2 08 00 A4 1C 80 11 00 00 00 00 00 00 3A [11:06:16]Write i2c OK [11:06:16]MH_I2C_Read... [11:06:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:06:16]Read from MH i2c: E2 [11:06:16]MH_I2C_Read... [11:06:16]Read from MH i2c: E2 17 00 [11:06:16]MH_I2C_Read... [11:06:16]Read from MH i2c: E2 17 00 A4 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 85 [11:06:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [11:06:17]wFMCommunicate OK [11:06:17]CreateOFDProtocolMessage done [11:06:17]OFDSenderStorePacket 68552 [11:06:17]StoreOFDPacket docnum=68552 [11:06:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 3D 38 08 01 E7 5C 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 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 73 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 61 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 61 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 61 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 2B F5 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 C8 0B 01 00 35 04 06 00 54 DF 8D AA 67 E3 27 48 5A 83 7A 85 B7 89 [11:06:17]CheckFolder [11:06:17]dirname=/storage/ofd_packets [11:06:17]CheckFolder done [11:06:17]ProducePacketName [11:06:17]name=ofd_packets/00068552 [11:06:17]NVStorageSaveData ofd_packets/00068552 [11:06:17]File name is /storage/ofd_packets/00068552 [11:06:17]Write 302 bytes [11:06:17]NVStorageSaveData done [11:06:17]OFDSenderStorePacket done [11:06:17]KKMCreateOFDPacket done [11:06:17]NVStorageSaveData kkm_last_timestamp [11:06:17]File name is /storage/kkm_last_timestamp [11:06:17]Write 4 bytes [11:06:17]NVStorageSaveData done [11:06:17]ExternCall_PrintAddStr [11:06:17]wPrintStart [11:06:17]Write to MH i2c: 01 00 00 A5 1C C1 [11:06:17]Write i2c OK [11:06:17]MH_I2C_Read... [11:06:17]Read from MH i2c: 01 [11:06:17]MH_I2C_Read... [11:06:17]Read from MH i2c: 01 07 00 [11:06:17]MH_I2C_Read... [11:06:17]Read from MH i2c: 01 07 00 A5 1C 00 00 00 00 00 FF 0F D6 [11:06:17]RasterBufferAndPrint [11:06:17]line Счет N : (1)706676 [11:06:17]line ИНН: 02508201610067 [11:06:17]line Контрольно-Кассовый Чек [11:06:17]line ПРОДАЖА [11:06:17]line ТРК (МРК, ГНК) : 31 [11:06:17]line Товар: 2710124130 [11:06:17]line Super-92-К-5 [11:06:17]line 29.460 * 67.90 [11:06:17]line = 2000.33 [11:06:17]line НДС 12% НСП 1% [11:06:17]line > о реализуемом товаре [11:06:17]line ИТОГО: 2000.33 [11:06:17]line НСП 1% : 17.70 [11:06:17]line НДС 12% : 212.42 [11:06:17]line Наличными: 0.00 [11:06:17]line Безнал.: 2000.33 [11:06:17]line Место: АЗС № 62 "Партнер Нефть" [11:06:17]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [11:06:17]line СНО: Общий режим [11:06:17]line Чек 50 04.06.2024 11:06 [11:06:17]line Смена: 325 ФФД: 1.0 [11:06:17]line ЗНМ: 0300000181 [11:06:17]line РНМ: 0000000000098096 [11:06:17]line Версия ККМ: 001 [11:06:17]line Платежная система: O! деньги [11:06:17]line ФМ: 0000000000965400 [11:06:17]line ФД: 68552 [11:06:17]line ФПД: 93319131195363 [11:06:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T110619&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68552&fm=93319131195363&tin=02508201610067®Number=0000000000098096&sum=200033 [11:06:17]OFD Sender: Processing packet 68552 [packets to send 26, broken 25] [11:06:17]ProducePacketName [11:06:17]name=ofd_packets/00068552 [11:06:17]OFD Sender: To server: pG, [11:06:17]CommunicateWithHost lk.salyk.kg:30040 [11:06:17]ConnectInit lk.salyk.kg [11:06:17]written 0, free lines is 4095 [11:06:17]Connected sock=10 [11:06:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 3D 38 08 01 E7 5C 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 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 73 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 61 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 61 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 61 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 2B F5 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 C8 0B 01 00 35 04 06 00 54 DF 8D AA 67 E3 27 48 5A 83 7A 85 B7 89 [11:06:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 1E FE 47 00 6D 80 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 C8 0B 01 00 F4 03 04 00 24 9C 5E 66 B6 04 01 00 00 2D A4 73 F4 D2 1B 3A D1 [11:06:17]CommunicateWithHost err = 0 [11:06:17]CheckOFDResponse [11:06:17]1017 (14) - 77093643461234 [11:06:17]1041 (16) - 0000000000965400 [11:06:17]1040 (4) - 68552 [11:06:17]1012 (4) - 04.06.2024 04:46 [11:06:17]1206 (1) - 0 [11:06:17]OFD Sender: Remove packet 68552 [11:06:17]ProducePacketName [11:06:17]name=ofd_packets/00068552 [11:06:17]NVStorageDeleteData [11:06:17]Write to MH i2c: 01 00 00 CF 1C EB [11:06:17]Write i2c OK [11:06:17]MH_I2C_Read... [11:06:17]Read from MH i2c: 01 [11:06:17]MH_I2C_Read... [11:06:17]Read from MH i2c: 01 07 00 [11:06:17]MH_I2C_Read... [11:06:17]Read from MH i2c: 01 07 00 CF 1C 00 00 00 00 00 FE 0C FC [11:06:17]RasterBufferAndPrint [11:06:17]line [11:06:17]line [11:06:17]line [11:06:17]line [11:06:17]line [11:06:17]written 0, free lines is 3332 [11:06:17]MH_Cut [11:06:17]Write to MH i2c: D1 01 00 D6 1C 01 C4 [11:06:17]Write i2c OK [11:06:17]MH_I2C_Read... [11:06:17]Read from MH i2c: D1 [11:06:17]MH_I2C_Read... [11:06:17]Read from MH i2c: D1 01 00 [11:06:17]MH_I2C_Read... [11:06:17]Read from MH i2c: D1 01 00 D6 1C 00 C3 [11:06:17]Write to MH i2c: 01 00 00 D7 1C F3 [11:06:17]Write i2c OK [11:06:17]MH_I2C_Read... [11:06:18]OFD Sender: No OFD packet to send [11:06:18]*** Cut start [11:06:18]*** Partial cut [11:06:18]*** CUTSNS_PIN = 1 [11:06:18]*** CUTSNS_PIN = 0 [11:06:18]*** Brake cut motor [11:06:19]Read from MH i2c: 01 [11:06:19]MH_I2C_Read... [11:06:19]*** Stop cut motor [11:06:19]*** Cut end [11:06:19]Read from MH i2c: 01 07 00 [11:06:19]MH_I2C_Read... [11:06:19]Read from MH i2c: 01 07 00 D7 1C 00 00 00 00 00 FF 0F 08 [11:06:19]process_action close_receipt done [11:06:19]requested_data is exist [11:06:19]produce_requested_data [11:06:19]requested_item fm.sn is exist - process it [11:06:19]wFMCommunicate request_size=4 [11:06:19]MH_SAM_APDU [11:06:19]CAPDU: 80 11 00 00 [11:06:19]Write to MH i2c: E2 08 00 D8 1C 80 11 00 00 00 00 00 00 6E [11:06:19]Write i2c OK [11:06:19]MH_I2C_Read... [11:06:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:06:19]Read from MH i2c: E2 [11:06:19]MH_I2C_Read... [11:06:19]Read from MH i2c: E2 17 00 [11:06:19]MH_I2C_Read... [11:06:19]Read from MH i2c: E2 17 00 D8 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 B9 [11:06:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [11:06:19]wFMCommunicate OK [11:06:19]requested_item fd.num is exist - process it [11:06:19]SAM_PROTO_GetFieldsCounters [11:06:19]wFMCommunicate request_size=4 [11:06:19]MH_SAM_APDU [11:06:19]CAPDU: 80 13 00 00 [11:06:19]Write to MH i2c: E2 08 00 D9 1C 80 13 00 00 00 00 00 00 71 [11:06:19]Write i2c OK [11:06:19]MH_I2C_Read... [11:06:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:06:19]Read from MH i2c: E2 [11:06:19]MH_I2C_Read... [11:06:19]Read from MH i2c: E2 62 00 [11:06:19]MH_I2C_Read... [11:06:19]Read from MH i2c: E2 62 00 D9 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 C8 0B 01 00 0E 04 04 00 45 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 41 [11:06:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 C8 0B 01 00 0E 04 04 00 45 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 [11:06:19]wFMCommunicate OK [11:06:19]SAM_PROTO_GetFieldsCounters done [11:06:19]requested_item shift.num is exist - process it [11:06:19]requested_item shift.opened is exist - process it [11:06:19]req_shift_opened [11:06:19]FM_GetShiftState [11:06:19]SAM_PROTO_GetShiftState [11:06:19]wFMCommunicate request_size=4 [11:06:19]MH_SAM_APDU [11:06:19]CAPDU: 80 13 01 00 [11:06:19]Write to MH i2c: E2 08 00 DA 1C 80 13 01 00 00 00 00 00 73 [11:06:19]Write i2c OK [11:06:19]MH_I2C_Read... [11:06:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:06:19]Read from MH i2c: E2 [11:06:19]MH_I2C_Read... [11:06:19]Read from MH i2c: E2 0E 00 [11:06:19]MH_I2C_Read... [11:06:19]Read from MH i2c: E2 0E 00 DA 1C 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 0F [11:06:19]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [11:06:19]wFMCommunicate OK [11:06:19]SAM_PROTO_GetShiftState done [11:06:19]FM_GetShiftState done [11:06:19]req_shift_opened done [11:06:19]requested_item shift.open_date is exist - process it [11:06:19]req_shift_open_date [11:06:19]req_shift_open_date done [11:06:19]produce_requested_data done [11:06:19]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68552,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [11:06:19]process_action_free close_receipt [11:06:19]json_value_free [11:06:19]json_value_free done [11:06:19]process_json_proto returns [11:06:19]Send response to host [11:06:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68552,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [11:06:19]free response buf [11:06:19]execute_script done [11:06:19]execute_script returns [11:06:19]free content buf [11:06:19]Sock 7.Close socket [11:06:19]Sock 7.Thread stoped [11:06:23]OFD Sender: No OFD packet to send [11:06:28]OFD Sender: No OFD packet to send [11:06:33]OFD Sender: No OFD packet to send [11:06:38]OFD Sender: No OFD packet to send [11:06:43]OFD Sender: No OFD packet to send [11:06:48]OFD Sender: No OFD packet to send [11:06:53]OFD Sender: No OFD packet to send [11:06:58]OFD Sender: No OFD packet to send [11:07:03]OFD Sender: No OFD packet to send [11:07:08]OFD Sender: No OFD packet to send [11:07:13]OFD Sender: No OFD packet to send [11:07:18]OFD Sender: No OFD packet to send [11:07:23]OFD Sender: No OFD packet to send [11:07:28]OFD Sender: No OFD packet to send [11:07:33]OFD Sender: No OFD packet to send [11:07:38]OFD Sender: No OFD packet to send [11:07:43]OFD Sender: No OFD packet to send [11:07:48]OFD Sender: No OFD packet to send [11:07:53]OFD Sender: No OFD packet to send [11:07:58]OFD Sender: No OFD packet to send [11:08:03]OFD Sender: No OFD packet to send [11:08:08]OFD Sender: No OFD packet to send [11:08:13]OFD Sender: No OFD packet to send [11:08:18]OFD Sender: No OFD packet to send [11:08:23]OFD Sender: No OFD packet to send [11:08:28]OFD Sender: No OFD packet to send [11:08:33]OFD Sender: No OFD packet to send [11:08:38]OFD Sender: No OFD packet to send [11:08:43]OFD Sender: No OFD packet to send [11:08:48]OFD Sender: No OFD packet to send [11:08:53]OFD Sender: No OFD packet to send [11:08:58]OFD Sender: No OFD packet to send [11:09:03]OFD Sender: No OFD packet to send [11:09:08]OFD Sender: No OFD packet to send [11:09:13]OFD Sender: No OFD packet to send [11:09:18]OFD Sender: No OFD packet to send [11:09:23]OFD Sender: No OFD packet to send [11:09:28]OFD Sender: No OFD packet to send [11:09:33]OFD Sender: No OFD packet to send [11:09:38]OFD Sender: No OFD packet to send [11:09:43]OFD Sender: No OFD packet to send [11:09:48]OFD Sender: No OFD packet to send [11:09:53]OFD Sender: No OFD packet to send [11:09:58]OFD Sender: No OFD packet to send [11:10:03]OFD Sender: No OFD packet to send [11:10:08]OFD Sender: No OFD packet to send [11:10:13]OFD Sender: No OFD packet to send [11:10:18]OFD Sender: No OFD packet to send [11:10:23]OFD Sender: No OFD packet to send [11:10:28]OFD Sender: No OFD packet to send [11:10:33]OFD Sender: No OFD packet to send [11:10:38]OFD Sender: No OFD packet to send [11:10:43]OFD Sender: No OFD packet to send [11:10:48]OFD Sender: No OFD packet to send [11:10:53]OFD Sender: No OFD packet to send [11:10:58]OFD Sender: No OFD packet to send [11:11:03]OFD Sender: No OFD packet to send [11:11:08]OFD Sender: No OFD packet to send [11:11:13]OFD Sender: No OFD packet to send [11:11:18]OFD Sender: No OFD packet to send [11:11:23]OFD Sender: No OFD packet to send [11:11:28]OFD Sender: No OFD packet to send [11:11:33]OFD Sender: No OFD packet to send [11:11:38]OFD Sender: No OFD packet to send [11:11:43]OFD Sender: No OFD packet to send [11:11:48]OFD Sender: No OFD packet to send [11:11:53]OFD Sender: No OFD packet to send [11:11:58]OFD Sender: No OFD packet to send [11:12:03]OFD Sender: No OFD packet to send [11:12:08]OFD Sender: No OFD packet to send [11:12:13]OFD Sender: No OFD packet to send [11:12:18]OFD Sender: No OFD packet to send [11:12:23]OFD Sender: No OFD packet to send [11:12:28]OFD Sender: No OFD packet to send [11:12:33]OFD Sender: No OFD packet to send [11:12:38]OFD Sender: No OFD packet to send [11:12:43]OFD Sender: No OFD packet to send [11:12:48]OFD Sender: No OFD packet to send [11:12:53]OFD Sender: No OFD packet to send [11:12:58]OFD Sender: No OFD packet to send [11:13:03]OFD Sender: No OFD packet to send [11:13:08]OFD Sender: No OFD packet to send [11:13:13]OFD Sender: No OFD packet to send [11:13:18]OFD Sender: No OFD packet to send [11:13:23]OFD Sender: No OFD packet to send [11:13:28]OFD Sender: No OFD packet to send [11:13:33]OFD Sender: No OFD packet to send [11:13:38]OFD Sender: No OFD packet to send [11:13:43]OFD Sender: No OFD packet to send [11:13:48]OFD Sender: No OFD packet to send [11:13:53]OFD Sender: No OFD packet to send [11:13:58]OFD Sender: No OFD packet to send [11:14:03]OFD Sender: No OFD packet to send [11:14:08]OFD Sender: No OFD packet to send [11:14:13]OFD Sender: No OFD packet to send [11:14:18]OFD Sender: No OFD packet to send [11:14:23]OFD Sender: No OFD packet to send [11:14:28]OFD Sender: No OFD packet to send [11:14:33]OFD Sender: No OFD packet to send [11:14:38]OFD Sender: No OFD packet to send [11:14:43]OFD Sender: No OFD packet to send [11:14:48]OFD Sender: No OFD packet to send [11:14:53]OFD Sender: No OFD packet to send [11:14:58]OFD Sender: No OFD packet to send [11:15:03]OFD Sender: No OFD packet to send [11:15:08]OFD Sender: No OFD packet to send [11:15:13]OFD Sender: No OFD packet to send [11:15:18]OFD Sender: No OFD packet to send [11:15:23]OFD Sender: No OFD packet to send [11:15:28]OFD Sender: No OFD packet to send [11:15: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:04]accept exits with 9 [11:16:04]New connection [11:16:04]New thread 3067084132 created [11:16:04]Thread 3067227492 joined [11:16:04]Waiting for new connection... [11:16:04] Sock 9.Parse request [11:16:04]Sock 9.Check first char [11:16:04]Sock 9.First char is OK [11:16:04]request: POST /json_proto HTTP/1.0 [11:16:04]Method: POST [11:16:04]URL: /json_proto [11:16:04]Method is POST - this is cgi request [11:16:04]url: /json_proto [11:16:04]query_string will be loaded in cgi processing [11:16:04]execute_cgi json_proto POST (null) [11:16:04]execute_cgi path=json_proto method=POST [11:16:04]POST find Content-Length [11:16:04]Host: 172.17.36.132:8080 [11:16:04]Content-Length: 687 [11:16:04]Content-Type: application/json [11:16:04] [11:16:04]POST finish read [11:16:04]Found Content-Length = 687 [11:16:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706677", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "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" ] } } [11:16:04]execute_script... [11:16: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)706677", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "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" ] } } [11:16:04]POST & json_proto [11:16:04]process_json_proto [11:16:04]json parsed OK: [11:16:04]protocol is kg_v1.0 [11:16:04]action value=close_receipt [11:16:04]process_action close_receipt [11:16:04]cmd_close_receipt [11:16:04]MH_GetDate [11:16:04]Write to MH i2c: F0 00 00 DB 1C E6 [11:16:04]Write i2c OK [11:16:04]MH_I2C_Read... [11:16:04]Read from MH i2c: F0 [11:16:04]MH_I2C_Read... [11:16:04]Read from MH i2c: F0 09 00 [11:16:04]MH_I2C_Read... [11:16:04]Read from MH i2c: F0 09 00 DB 1C 00 78 F7 5E 66 B2 22 B0 64 0A [11:16:04]GetLastDocTimeStamp 1717499179 [11:16:04]current date 1717499768 [11:16:04]FM_GetShiftState [11:16:04]SAM_PROTO_GetShiftState [11:16:04]wFMCommunicate request_size=4 [11:16:04]MH_SAM_APDU [11:16:04]CAPDU: 80 13 01 00 [11:16:04]Write to MH i2c: E2 08 00 DC 1C 80 13 01 00 00 00 00 00 75 [11:16:04]Write i2c OK [11:16:04]MH_I2C_Read... [11:16:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:16:04]Read from MH i2c: E2 [11:16:04]MH_I2C_Read... [11:16:04]Read from MH i2c: E2 0E 00 [11:16:04]MH_I2C_Read... [11:16:04]Read from MH i2c: E2 0E 00 DC 1C 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 11 [11:16:04]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [11:16:04]wFMCommunicate OK [11:16:04]SAM_PROTO_GetShiftState done [11:16:04]FM_GetShiftState done [11:16:04]opened in 1717460590 [11:16:04]opened+sec_in_day 1717546990 [11:16:04]quantity*price = 200037 [11:16:04]sum+1 = 200039 [11:16:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 51 04.06.2024 11:16 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68553 ФПД: 259317845420768 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T111608&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68553&fm=259317845420768&tin=02508201610067®Number=0000000000098096&sum=200000 [11:16:05]StoreToDocumentArchive [11:16:05]shift 325 fd 68553 [11:16:05]save to /storage/0325/doc_00068553 [11:16:05]save last doc name /storage/0325/doc_00068553 to /storage/kkm_last_doc_name [11:16:05]save OK [11:16:05]Clear old archive folders... [11:16:05]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:16:05]tlvbuf is 00A42210 [11:16:05]SAM_PROTO_ClearQueue [11:16:05]wFMCommunicate request_size=4 [11:16:05]MH_SAM_APDU [11:16:05]CAPDU: 80 09 00 00 [11:16:05]Write to MH i2c: E2 08 00 E9 1C 80 09 00 00 00 00 00 00 77 [11:16:05]Write i2c OK [11:16:05]MH_I2C_Read... [11:16:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:16:05]Read from MH i2c: E2 [11:16:05]MH_I2C_Read... [11:16:05]Read from MH i2c: E2 03 00 [11:16:05]MH_I2C_Read... [11:16:05]Read from MH i2c: E2 03 00 E9 1C 00 90 00 79 [11:16:05]RAPDU: 90 00 [11:16:05]wFMCommunicate OK [11:16:05]SAM_PROTO_ClearQueue done [11:16:05]KKMCreateOFDPacket [11:16:05]OFDProtocolAddRootSTLVToBuf [11:16:05]FM_MakeSignedData [11:16:05]FM_MakeSignedData [11:16:05]SAM_PROTO_SignData [11:16:05]wFMCommunicate request_size=4 [11:16:05]MH_SAM_APDU [11:16:05]CAPDU: 80 0D 01 02 [11:16:05]Write to MH i2c: E2 08 00 EA 1C 80 0D 01 02 00 00 00 00 7F [11:16:05]Write i2c OK [11:16:05]MH_I2C_Read... [11:16:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:16:05]Read from MH i2c: E2 [11:16:05]MH_I2C_Read... [11:16:05]Read from MH i2c: E2 03 00 [11:16:05]MH_I2C_Read... [11:16:05]Read from MH i2c: E2 03 00 EA 1C 00 90 00 7A [11:16:05]RAPDU: 90 00 [11:16:05]wFMCommunicate OK [11:16:05]wFMCommunicate request_size=255 [11:16:05]MH_SAM_APDU [11:16:05]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 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 33 00 00 00 F4 03 04 00 78 F7 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 C9 0B 01 00 35 04 06 00 [11:16:05]Write to MH i2c: E2 02 01 EB 1C 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 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 33 00 00 00 F4 03 04 00 78 F7 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 C9 0B 01 00 35 04 06 00 00 00 C7 [11:16:05]Write i2c OK [11:16:05]MH_I2C_Read... [11:16:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:05]Read from MH i2c: E2 [11:16:05]MH_I2C_Read... [11:16:05]Read from MH i2c: E2 03 00 [11:16:05]MH_I2C_Read... [11:16:05]Read from MH i2c: E2 03 00 EB 1C 00 90 00 7B [11:16:05]RAPDU: 90 00 [11:16:05]wFMCommunicate OK [11:16:05]wFMCommunicate request_size=11 [11:16:05]MH_SAM_APDU [11:16:05]CAPDU: 80 0D 02 02 06 EB D9 24 0F 6A E0 [11:16:05]Write to MH i2c: E2 0E 00 EC 1C 80 0D 02 02 06 00 EB D9 24 0F 6A E0 00 00 CF [11:16:05]Write i2c OK [11:16:05]MH_I2C_Read... [11:16:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:05]Read from MH i2c: E2 [11:16:05]MH_I2C_Read... [11:16:05]Read from MH i2c: E2 03 00 [11:16:05]MH_I2C_Read... [11:16:05]Read from MH i2c: E2 03 00 EC 1C 00 90 00 7C [11:16:05]RAPDU: 90 00 [11:16:05]wFMCommunicate OK [11:16:05]wFMCommunicate request_size=4 [11:16:05]MH_SAM_APDU [11:16:05]CAPDU: 80 0D 03 02 [11:16:05]Write to MH i2c: E2 08 00 ED 1C 80 0D 03 02 00 00 00 00 84 [11:16:05]Write i2c OK [11:16:05]MH_I2C_Read... [11:16:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:16:05]Read from MH i2c: E2 [11:16:05]MH_I2C_Read... [11:16:05]Read from MH i2c: E2 0B 00 [11:16:05]MH_I2C_Read... [11:16:05]Read from MH i2c: E2 0B 00 ED 1C 00 90 03 E3 73 AD 14 DB AF 90 00 B9 [11:16:05]RAPDU: 90 03 E3 73 AD 14 DB AF 90 00 [11:16:05]wFMCommunicate OK [11:16:05]SAM_PROTO_SignData done [11:16:05]FM_MakeSignedData done [11:16:05]CreateOFDProtocolMessage [11:16:05]wFMCommunicate request_size=4 [11:16:05]MH_SAM_APDU [11:16:05]CAPDU: 80 11 00 00 [11:16:05]Write to MH i2c: E2 08 00 EE 1C 80 11 00 00 00 00 00 00 84 [11:16:05]Write i2c OK [11:16:05]MH_I2C_Read... [11:16:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:16:06]Read from MH i2c: E2 [11:16:06]MH_I2C_Read... [11:16:06]Read from MH i2c: E2 17 00 [11:16:06]MH_I2C_Read... [11:16:06]Read from MH i2c: E2 17 00 EE 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 CF [11:16:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [11:16:06]wFMCommunicate OK [11:16:06]CreateOFDProtocolMessage done [11:16:06]OFDSenderStorePacket 68553 [11:16:06]StoreOFDPacket docnum=68553 [11:16:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 1C 37 08 01 F4 02 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 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 33 00 00 00 F4 03 04 00 78 F7 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 C9 0B 01 00 35 04 06 00 EB D9 24 0F 6A E0 90 03 E3 73 AD 14 DB AF [11:16:06]CheckFolder [11:16:06]dirname=/storage/ofd_packets [11:16:06]CheckFolder done [11:16:06]ProducePacketName [11:16:06]name=ofd_packets/00068553 [11:16:06]NVStorageSaveData ofd_packets/00068553 [11:16:06]File name is /storage/ofd_packets/00068553 [11:16:06]Write 302 bytes [11:16:06]NVStorageSaveData done [11:16:06]OFDSenderStorePacket done [11:16:06]KKMCreateOFDPacket done [11:16:06]NVStorageSaveData kkm_last_timestamp [11:16:06]File name is /storage/kkm_last_timestamp [11:16:06]Write 4 bytes [11:16:06]NVStorageSaveData done [11:16:06]ExternCall_PrintAddStr [11:16:06]wPrintStart [11:16:06]Write to MH i2c: 01 00 00 EF 1C 0B [11:16:06]Write i2c OK [11:16:06]MH_I2C_Read... [11:16:06]Read from MH i2c: 01 [11:16:06]MH_I2C_Read... [11:16:06]Read from MH i2c: 01 07 00 [11:16:06]MH_I2C_Read... [11:16:06]Read from MH i2c: 01 07 00 EF 1C 00 00 00 00 00 FF 0F 20 [11:16:06]RasterBufferAndPrint [11:16:06]line Счет N : (1)706677 [11:16:06]line ИНН: 02508201610067 [11:16:06]line Контрольно-Кассовый Чек [11:16:06]line ПРОДАЖА [11:16:06]line ТРК (МРК, ГНК) : 61 [11:16:06]line Товар: 2710194210 [11:16:06]line ДТ(л)-К-4 [11:16:06]line 27.440 * 72.90 [11:16:06]line = 2000.38 [11:16:06]line НДС 12% НСП 1% [11:16:06]line > о реализуемом товаре [11:16:06]line ОКРУГЛЕНИЕ: -0.38 [11:16:06]line ИТОГО: 2000.00 [11:16:06]line Внесено: 2000.00 [11:16:06]line СДАЧА: 0.00 [11:16:06]line НСП 1% : 17.70 [11:16:06]line НДС 12% : 212.43 [11:16:06]line Наличными: 2000.00 [11:16:06]line Безнал.: 0.00 [11:16:06]line Место: АЗС № 62 "Партнер Нефть" [11:16:06]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [11:16:06]line СНО: Общий режим [11:16:06]line Чек 51 04.06.2024 11:16 [11:16:06]line Смена: 325 ФФД: 1.0 [11:16:06]line ЗНМ: 0300000181 [11:16:06]line РНМ: 0000000000098096 [11:16:06]line Версия ККМ: 001 [11:16:06]line ФМ: 0000000000965400 [11:16:06]line ФД: 68553 [11:16:06]line ФПД: 259317845420768 [11:16:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T111608&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68553&fm=259317845420768&tin=02508201610067®Number=0000000000098096&sum=200000 [11:16:06]OFD Sender: Processing packet 68553 [packets to send 26, broken 25] [11:16:06]ProducePacketName [11:16:06]name=ofd_packets/00068553 [11:16:06]OFD Sender: To server: pG, [11:16:06]CommunicateWithHost lk.salyk.kg:30040 [11:16:06]ConnectInit lk.salyk.kg [11:16:06]written 0, free lines is 4095 [11:16:06]Connected sock=10 [11:16:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 1C 37 08 01 F4 02 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 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 33 00 00 00 F4 03 04 00 78 F7 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 C9 0B 01 00 35 04 06 00 EB D9 24 0F 6A E0 90 03 E3 73 AD 14 DB AF [11:16:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 D3 50 47 00 13 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 39 36 35 34 30 30 10 04 04 00 C9 0B 01 00 F4 03 04 00 71 9E 5E 66 B6 04 01 00 00 51 C3 9A B1 70 E6 78 47 [11:16:06]CommunicateWithHost err = 0 [11:16:06]CheckOFDResponse [11:16:06]1017 (14) - 77093643461234 [11:16:06]1041 (16) - 0000000000965400 [11:16:06]1040 (4) - 68553 [11:16:06]1012 (4) - 04.06.2024 04:56 [11:16:06]1206 (1) - 0 [11:16:06]OFD Sender: Remove packet 68553 [11:16:06]ProducePacketName [11:16:06]name=ofd_packets/00068553 [11:16:06]NVStorageDeleteData [11:16:06]Write to MH i2c: 01 00 00 1A 1D 37 [11:16:06]Write i2c OK [11:16:06]MH_I2C_Read... [11:16:06]Read from MH i2c: 01 [11:16:06]MH_I2C_Read... [11:16:06]Read from MH i2c: 01 07 00 [11:16:06]MH_I2C_Read... [11:16:06]Read from MH i2c: 01 07 00 1A 1D 00 00 00 00 00 D9 0C 23 [11:16:06]RasterBufferAndPrint [11:16:06]line [11:16:06]line [11:16:06]line [11:16:06]line [11:16:06]line [11:16:06]written 0, free lines is 3296 [11:16:06]MH_Cut [11:16:06]Write to MH i2c: D1 01 00 21 1D 01 10 [11:16:06]Write i2c OK [11:16:06]MH_I2C_Read... [11:16:06]Read from MH i2c: D1 [11:16:06]MH_I2C_Read... [11:16:06]Read from MH i2c: D1 01 00 [11:16:06]MH_I2C_Read... [11:16:06]Read from MH i2c: D1 01 00 21 1D 00 0F [11:16:06]Write to MH i2c: 01 00 00 22 1D 3F [11:16:06]Write i2c OK [11:16:06]MH_I2C_Read... [11:16:07]OFD Sender: No OFD packet to send [11:16:07]*** Cut start [11:16:07]*** Partial cut [11:16:07]*** CUTSNS_PIN = 1 [11:16:07]*** CUTSNS_PIN = 0 [11:16:07]*** Brake cut motor [11:16:08]Read from MH i2c: 01 [11:16:08]MH_I2C_Read... [11:16:08]*** Stop cut motor [11:16:08]*** Cut end [11:16:08]Read from MH i2c: 01 07 00 [11:16:08]MH_I2C_Read... [11:16:08]Read from MH i2c: 01 07 00 22 1D 00 00 00 00 00 FF 0F 54 [11:16:08]process_action close_receipt done [11:16:08]requested_data is exist [11:16:08]produce_requested_data [11:16:08]requested_item fm.sn is exist - process it [11:16:08]wFMCommunicate request_size=4 [11:16:08]MH_SAM_APDU [11:16:08]CAPDU: 80 11 00 00 [11:16:08]Write to MH i2c: E2 08 00 23 1D 80 11 00 00 00 00 00 00 BA [11:16:08]Write i2c OK [11:16:08]MH_I2C_Read... [11:16:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:16:08]Read from MH i2c: E2 [11:16:08]MH_I2C_Read... [11:16:08]Read from MH i2c: E2 17 00 [11:16:08]MH_I2C_Read... [11:16:08]Read from MH i2c: E2 17 00 23 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 05 [11:16:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [11:16:08]wFMCommunicate OK [11:16:08]requested_item fd.num is exist - process it [11:16:08]SAM_PROTO_GetFieldsCounters [11:16:08]wFMCommunicate request_size=4 [11:16:08]MH_SAM_APDU [11:16:08]CAPDU: 80 13 00 00 [11:16:08]Write to MH i2c: E2 08 00 24 1D 80 13 00 00 00 00 00 00 BD [11:16:08]Write i2c OK [11:16:08]MH_I2C_Read... [11:16:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:16:08]Read from MH i2c: E2 [11:16:08]MH_I2C_Read... [11:16:08]Read from MH i2c: E2 62 00 [11:16:08]MH_I2C_Read... [11:16:08]Read from MH i2c: E2 62 00 24 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 C9 0B 01 00 0E 04 04 00 45 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 91 [11:16:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 C9 0B 01 00 0E 04 04 00 45 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 [11:16:08]wFMCommunicate OK [11:16:08]SAM_PROTO_GetFieldsCounters done [11:16:08]requested_item shift.num is exist - process it [11:16:08]requested_item shift.opened is exist - process it [11:16:08]req_shift_opened [11:16:08]FM_GetShiftState [11:16:08]SAM_PROTO_GetShiftState [11:16:08]wFMCommunicate request_size=4 [11:16:08]MH_SAM_APDU [11:16:08]CAPDU: 80 13 01 00 [11:16:08]Write to MH i2c: E2 08 00 25 1D 80 13 01 00 00 00 00 00 BF [11:16:08]Write i2c OK [11:16:08]MH_I2C_Read... [11:16:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:16:08]Read from MH i2c: E2 [11:16:08]MH_I2C_Read... [11:16:08]Read from MH i2c: E2 0E 00 [11:16:08]MH_I2C_Read... [11:16:08]Read from MH i2c: E2 0E 00 25 1D 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 5B [11:16:08]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [11:16:08]wFMCommunicate OK [11:16:08]SAM_PROTO_GetShiftState done [11:16:08]FM_GetShiftState done [11:16:08]req_shift_opened done [11:16:08]requested_item shift.open_date is exist - process it [11:16:08]req_shift_open_date [11:16:08]req_shift_open_date done [11:16:08]produce_requested_data done [11:16:08]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68553,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [11:16:08]process_action_free close_receipt [11:16:08]json_value_free [11:16:08]json_value_free done [11:16:08]process_json_proto returns [11:16:08]Send response to host [11:16:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68553,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [11:16:08]free response buf [11:16:08]execute_script done [11:16:08]execute_script returns [11:16:08]free content buf [11:16:08]Sock 9.Close socket [11:16:08]Sock 9.Thread stoped [11:16:12]OFD Sender: No OFD packet to send [11:16:17]OFD Sender: No OFD packet to send [11:16:22]OFD Sender: No OFD packet to send [11:16:27]OFD Sender: No OFD packet to send [11:16:32]OFD Sender: No OFD packet to send [11:16:37]accept exits with 7 [11:16:37]New connection [11:16:37]New thread 3067227492 created [11:16:37]Thread 3067084132 joined [11:16:37]Waiting for new connection... [11:16:37] Sock 7.Parse request [11:16:37]Sock 7.Check first char [11:16:37]Sock 7.First char is OK [11:16:37]request: POST /json_proto HTTP/1.0 [11:16:37]Method: POST [11:16:37]URL: /json_proto [11:16:37]Method is POST - this is cgi request [11:16:37]url: /json_proto [11:16:37]query_string will be loaded in cgi processing [11:16:37]execute_cgi json_proto POST (null) [11:16:37]execute_cgi path=json_proto method=POST [11:16:37]POST find Content-Length [11:16:37]Host: 172.17.36.132:8080 [11:16:37]Content-Length: 682 [11:16:37]Content-Type: application/json [11:16:37] [11:16:37]POST finish read [11:16:37]Found Content-Length = 682 [11:16:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706678", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 19.000, "sum" : 1271.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1271.00, "total" : 1271.00, "payments": [ { "type": 0, "sum" : 1271.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:16:37]execute_script... [11:16:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706678", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 19.000, "sum" : 1271.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1271.00, "total" : 1271.00, "payments": [ { "type": 0, "sum" : 1271.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:16:37]POST & json_proto [11:16:37]process_json_proto [11:16:37]json parsed OK: [11:16:37]protocol is kg_v1.0 [11:16:37]action value=close_receipt [11:16:37]process_action close_receipt [11:16:37]cmd_close_receipt [11:16:37]MH_GetDate [11:16:37]Write to MH i2c: F0 00 00 26 1D 32 [11:16:37]Write i2c OK [11:16:37]MH_I2C_Read... [11:16:37]Read from MH i2c: F0 [11:16:37]MH_I2C_Read... [11:16:37]Read from MH i2c: F0 09 00 [11:16:37]MH_I2C_Read... [11:16:37]Read from MH i2c: F0 09 00 26 1D 00 99 F7 5E 66 B2 22 B0 64 77 [11:16:37]GetLastDocTimeStamp 1717499768 [11:16:37]current date 1717499801 [11:16:37]FM_GetShiftState [11:16:37]SAM_PROTO_GetShiftState [11:16:37]wFMCommunicate request_size=4 [11:16:37]MH_SAM_APDU [11:16:37]CAPDU: 80 13 01 00 [11:16:37]Write to MH i2c: E2 08 00 27 1D 80 13 01 00 00 00 00 00 C1 [11:16:37]Write i2c OK [11:16:37]MH_I2C_Read... [11:16:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:16:37]Read from MH i2c: E2 [11:16:37]MH_I2C_Read... [11:16:37]Read from MH i2c: E2 0E 00 [11:16:37]MH_I2C_Read... [11:16:37]Read from MH i2c: E2 0E 00 27 1D 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 5D [11:16:37]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [11:16:37]wFMCommunicate OK [11:16:37]SAM_PROTO_GetShiftState done [11:16:37]FM_GetShiftState done [11:16:37]opened in 1717460590 [11:16:37]opened+sec_in_day 1717546990 [11:16:37]quantity*price = 127110 [11:16:37]sum+1 = 127111 [11:16:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 1271.00 Внесено: 1271.00 СДАЧА: 0.00 НСП 1% : 11.25 НДС 12% : 134.98 Наличными: 1271.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 52 04.06.2024 11:16 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68554 ФПД: 126239360059266 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T111641&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68554&fm=126239360059266&tin=02508201610067®Number=0000000000098096&sum=127100 [11:16:38]StoreToDocumentArchive [11:16:38]shift 325 fd 68554 [11:16:38]save to /storage/0325/doc_00068554 [11:16:38]save last doc name /storage/0325/doc_00068554 to /storage/kkm_last_doc_name [11:16:38]save OK [11:16:38]Clear old archive folders... [11:16:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:16:38]tlvbuf is B6F04890 [11:16:38]SAM_PROTO_ClearQueue [11:16:38]wFMCommunicate request_size=4 [11:16:38]MH_SAM_APDU [11:16:38]CAPDU: 80 09 00 00 [11:16:38]Write to MH i2c: E2 08 00 34 1D 80 09 00 00 00 00 00 00 C3 [11:16:38]Write i2c OK [11:16:38]MH_I2C_Read... [11:16:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:16:38]Read from MH i2c: E2 [11:16:38]MH_I2C_Read... [11:16:38]Read from MH i2c: E2 03 00 [11:16:38]MH_I2C_Read... [11:16:38]Read from MH i2c: E2 03 00 34 1D 00 90 00 C5 [11:16:38]RAPDU: 90 00 [11:16:38]wFMCommunicate OK [11:16:38]SAM_PROTO_ClearQueue done [11:16:38]KKMCreateOFDPacket [11:16:38]OFDProtocolAddRootSTLVToBuf [11:16:38]FM_MakeSignedData [11:16:38]FM_MakeSignedData [11:16:38]SAM_PROTO_SignData [11:16:38]wFMCommunicate request_size=4 [11:16:38]MH_SAM_APDU [11:16:38]CAPDU: 80 0D 01 02 [11:16:38]Write to MH i2c: E2 08 00 35 1D 80 0D 01 02 00 00 00 00 CB [11:16:38]Write i2c OK [11:16:38]MH_I2C_Read... [11:16:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:16:38]Read from MH i2c: E2 [11:16:38]MH_I2C_Read... [11:16:38]Read from MH i2c: E2 03 00 [11:16:38]MH_I2C_Read... [11:16:38]Read from MH i2c: E2 03 00 35 1D 00 90 00 C6 [11:16:38]RAPDU: 90 00 [11:16:38]wFMCommunicate OK [11:16:38]wFMCommunicate request_size=255 [11:16:38]MH_SAM_APDU [11:16:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 4A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 86 F0 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C F0 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 65 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 34 00 00 00 00 07 04 06 00 7C F0 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 99 F7 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 CA 0B 01 00 35 04 06 00 72 [11:16:38]Write to MH i2c: E2 02 01 36 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 34 FF 03 08 00 03 38 4A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 86 F0 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C F0 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 65 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 34 00 00 00 00 07 04 06 00 7C F0 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 99 F7 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 CA 0B 01 00 35 04 06 00 72 00 00 4F [11:16:38]Write i2c OK [11:16:38]MH_I2C_Read... [11:16:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:38]Read from MH i2c: E2 [11:16:38]MH_I2C_Read... [11:16:38]Read from MH i2c: E2 03 00 [11:16:38]MH_I2C_Read... [11:16:38]Read from MH i2c: E2 03 00 36 1D 00 90 00 C7 [11:16:38]RAPDU: 90 00 [11:16:38]wFMCommunicate OK [11:16:38]wFMCommunicate request_size=10 [11:16:38]MH_SAM_APDU [11:16:38]CAPDU: 80 0D 02 02 05 D0 64 36 87 82 [11:16:38]Write to MH i2c: E2 0D 00 37 1D 80 0D 02 02 05 00 D0 64 36 87 82 00 00 4B [11:16:38]Write i2c OK [11:16:38]MH_I2C_Read... [11:16:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:38]Read from MH i2c: E2 [11:16:38]MH_I2C_Read... [11:16:38]Read from MH i2c: E2 03 00 [11:16:38]MH_I2C_Read... [11:16:38]Read from MH i2c: E2 03 00 37 1D 00 90 00 C8 [11:16:38]RAPDU: 90 00 [11:16:38]wFMCommunicate OK [11:16:38]wFMCommunicate request_size=4 [11:16:38]MH_SAM_APDU [11:16:38]CAPDU: 80 0D 03 02 [11:16:38]Write to MH i2c: E2 08 00 38 1D 80 0D 03 02 00 00 00 00 D0 [11:16:38]Write i2c OK [11:16:38]MH_I2C_Read... [11:16:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:16:38]Read from MH i2c: E2 [11:16:38]MH_I2C_Read... [11:16:38]Read from MH i2c: E2 0B 00 [11:16:38]MH_I2C_Read... [11:16:38]Read from MH i2c: E2 0B 00 38 1D 00 F3 6D 82 2A 88 68 0E 8F 90 00 6A [11:16:38]RAPDU: F3 6D 82 2A 88 68 0E 8F 90 00 [11:16:38]wFMCommunicate OK [11:16:38]SAM_PROTO_SignData done [11:16:38]FM_MakeSignedData done [11:16:38]CreateOFDProtocolMessage [11:16:38]wFMCommunicate request_size=4 [11:16:38]MH_SAM_APDU [11:16:38]CAPDU: 80 11 00 00 [11:16:38]Write to MH i2c: E2 08 00 39 1D 80 11 00 00 00 00 00 00 D0 [11:16:38]Write i2c OK [11:16:38]MH_I2C_Read... [11:16:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:16:38]Read from MH i2c: E2 [11:16:38]MH_I2C_Read... [11:16:38]Read from MH i2c: E2 17 00 [11:16:38]MH_I2C_Read... [11:16:38]Read from MH i2c: E2 17 00 39 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 1B [11:16:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [11:16:38]wFMCommunicate OK [11:16:38]CreateOFDProtocolMessage done [11:16:38]OFDSenderStorePacket 68554 [11:16:38]StoreOFDPacket docnum=68554 [11:16:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 7A C9 07 01 47 EC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 4A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 86 F0 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C F0 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 65 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 34 00 00 00 00 07 04 06 00 7C F0 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 99 F7 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 CA 0B 01 00 35 04 06 00 72 D0 64 36 87 82 F3 6D 82 2A 88 68 0E 8F [11:16:38]CheckFolder [11:16:38]dirname=/storage/ofd_packets [11:16:38]CheckFolder done [11:16:38]ProducePacketName [11:16:38]name=ofd_packets/00068554 [11:16:38]NVStorageSaveData ofd_packets/00068554 [11:16:38]File name is /storage/ofd_packets/00068554 [11:16:38]Write 301 bytes [11:16:38]NVStorageSaveData done [11:16:38]OFDSenderStorePacket done [11:16:38]KKMCreateOFDPacket done [11:16:38]NVStorageSaveData kkm_last_timestamp [11:16:38]File name is /storage/kkm_last_timestamp [11:16:38]Write 4 bytes [11:16:38]NVStorageSaveData done [11:16:38]ExternCall_PrintAddStr [11:16:38]wPrintStart [11:16:38]Write to MH i2c: 01 00 00 3A 1D 57 [11:16:38]Write i2c OK [11:16:38]MH_I2C_Read... [11:16:38]Read from MH i2c: 01 [11:16:38]MH_I2C_Read... [11:16:38]Read from MH i2c: 01 07 00 [11:16:38]MH_I2C_Read... [11:16:38]Read from MH i2c: 01 07 00 3A 1D 00 00 00 00 00 FF 0F 6C [11:16:38]RasterBufferAndPrint [11:16:38]line Счет N : (1)706678 [11:16:38]line ИНН: 02508201610067 [11:16:38]line Контрольно-Кассовый Чек [11:16:38]line ПРОДАЖА [11:16:38]line ТРК (МРК, ГНК) : 32 [11:16:38]line Товар: 2710124130 [11:16:38]line Аи-92-К-4 [11:16:38]line 19.000 * 66.90 [11:16:38]line = 1271.10 [11:16:38]line НДС 12% НСП 1% [11:16:38]line > о реализуемом товаре [11:16:38]line ОКРУГЛЕНИЕ: -0.10 [11:16:38]line ИТОГО: 1271.00 [11:16:38]line Внесено: 1271.00 [11:16:38]line СДАЧА: 0.00 [11:16:38]line НСП 1% : 11.25 [11:16:38]line НДС 12% : 134.98 [11:16:38]line Наличными: 1271.00 [11:16:38]line Безнал.: 0.00 [11:16:38]line Место: АЗС № 62 "Партнер Нефть" [11:16:38]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [11:16:38]line СНО: Общий режим [11:16:38]line Чек 52 04.06.2024 11:16 [11:16:38]line Смена: 325 ФФД: 1.0 [11:16:38]line ЗНМ: 0300000181 [11:16:38]line РНМ: 0000000000098096 [11:16:38]line Версия ККМ: 001 [11:16:38]line ФМ: 0000000000965400 [11:16:38]line ФД: 68554 [11:16:38]line ФПД: 126239360059266 [11:16:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T111641&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68554&fm=126239360059266&tin=02508201610067®Number=0000000000098096&sum=127100 [11:16:39]OFD Sender: Processing packet 68554 [packets to send 26, broken 25] [11:16:39]ProducePacketName [11:16:39]name=ofd_packets/00068554 [11:16:39]OFD Sender: To server: pG, [11:16:39]CommunicateWithHost lk.salyk.kg:30040 [11:16:39]ConnectInit lk.salyk.kg [11:16:39]written 0, free lines is 4095 [11:16:39]Connected sock=10 [11:16:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 7A C9 07 01 47 EC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 4A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 86 F0 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C F0 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 65 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 34 00 00 00 00 07 04 06 00 7C F0 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 99 F7 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 CA 0B 01 00 35 04 06 00 72 D0 64 36 87 82 F3 6D 82 2A 88 68 0E 8F [11:16:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 F4 27 47 00 B3 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 39 36 35 34 30 30 10 04 04 00 CA 0B 01 00 F4 03 04 00 91 9E 5E 66 B6 04 01 00 00 6F D3 C6 44 6D C8 C8 39 [11:16:39]CommunicateWithHost err = 0 [11:16:39]CheckOFDResponse [11:16:39]1017 (14) - 77093643461234 [11:16:39]1041 (16) - 0000000000965400 [11:16:39]1040 (4) - 68554 [11:16:39]1012 (4) - 04.06.2024 04:56 [11:16:39]1206 (1) - 0 [11:16:39]OFD Sender: Remove packet 68554 [11:16:39]ProducePacketName [11:16:39]name=ofd_packets/00068554 [11:16:39]NVStorageDeleteData [11:16:39]Write to MH i2c: 01 00 00 65 1D 82 [11:16:39]Write i2c OK [11:16:39]MH_I2C_Read... [11:16:39]Read from MH i2c: 01 [11:16:39]MH_I2C_Read... [11:16:39]Read from MH i2c: 01 07 00 [11:16:39]MH_I2C_Read... [11:16:39]Read from MH i2c: 01 07 00 65 1D 00 00 00 00 00 E8 0C 7D [11:16:39]RasterBufferAndPrint [11:16:39]line [11:16:39]line [11:16:39]line [11:16:39]line [11:16:39]line [11:16:39]written 0, free lines is 3311 [11:16:39]MH_Cut [11:16:39]Write to MH i2c: D1 01 00 6C 1D 01 5B [11:16:39]Write i2c OK [11:16:39]MH_I2C_Read... [11:16:39]Read from MH i2c: D1 [11:16:39]MH_I2C_Read... [11:16:39]Read from MH i2c: D1 01 00 [11:16:39]MH_I2C_Read... [11:16:39]Read from MH i2c: D1 01 00 6C 1D 00 5A [11:16:39]Write to MH i2c: 01 00 00 6D 1D 8A [11:16:39]Write i2c OK [11:16:39]MH_I2C_Read... [11:16:39]OFD Sender: No OFD packet to send [11:16:40]*** Cut start [11:16:40]*** Partial cut [11:16:40]*** CUTSNS_PIN = 1 [11:16:40]*** CUTSNS_PIN = 0 [11:16:40]*** Brake cut motor [11:16:41]Read from MH i2c: 01 [11:16:41]MH_I2C_Read... [11:16:41]*** Stop cut motor [11:16:41]*** Cut end [11:16:41]Read from MH i2c: 01 07 00 [11:16:41]MH_I2C_Read... [11:16:41]Read from MH i2c: 01 07 00 6D 1D 00 00 00 00 00 FF 0F 9F [11:16:41]process_action close_receipt done [11:16:41]requested_data is exist [11:16:41]produce_requested_data [11:16:41]requested_item fm.sn is exist - process it [11:16:41]wFMCommunicate request_size=4 [11:16:41]MH_SAM_APDU [11:16:41]CAPDU: 80 11 00 00 [11:16:41]Write to MH i2c: E2 08 00 6E 1D 80 11 00 00 00 00 00 00 05 [11:16:41]Write i2c OK [11:16:41]MH_I2C_Read... [11:16:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:16:41]Read from MH i2c: E2 [11:16:41]MH_I2C_Read... [11:16:41]Read from MH i2c: E2 17 00 [11:16:41]MH_I2C_Read... [11:16:41]Read from MH i2c: E2 17 00 6E 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 50 [11:16:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [11:16:41]wFMCommunicate OK [11:16:41]requested_item fd.num is exist - process it [11:16:41]SAM_PROTO_GetFieldsCounters [11:16:41]wFMCommunicate request_size=4 [11:16:41]MH_SAM_APDU [11:16:41]CAPDU: 80 13 00 00 [11:16:41]Write to MH i2c: E2 08 00 6F 1D 80 13 00 00 00 00 00 00 08 [11:16:41]Write i2c OK [11:16:41]MH_I2C_Read... [11:16:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:16:41]Read from MH i2c: E2 [11:16:41]MH_I2C_Read... [11:16:41]Read from MH i2c: E2 62 00 [11:16:41]MH_I2C_Read... [11:16:41]Read from MH i2c: E2 62 00 6F 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 CA 0B 01 00 0E 04 04 00 45 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 E0 [11:16:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 CA 0B 01 00 0E 04 04 00 45 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 [11:16:41]wFMCommunicate OK [11:16:41]SAM_PROTO_GetFieldsCounters done [11:16:41]requested_item shift.num is exist - process it [11:16:41]requested_item shift.opened is exist - process it [11:16:41]req_shift_opened [11:16:41]FM_GetShiftState [11:16:41]SAM_PROTO_GetShiftState [11:16:41]wFMCommunicate request_size=4 [11:16:41]MH_SAM_APDU [11:16:41]CAPDU: 80 13 01 00 [11:16:41]Write to MH i2c: E2 08 00 70 1D 80 13 01 00 00 00 00 00 0A [11:16:41]Write i2c OK [11:16:41]MH_I2C_Read... [11:16:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:16:41]Read from MH i2c: E2 [11:16:41]MH_I2C_Read... [11:16:41]Read from MH i2c: E2 0E 00 [11:16:41]MH_I2C_Read... [11:16:41]Read from MH i2c: E2 0E 00 70 1D 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 A6 [11:16:41]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [11:16:41]wFMCommunicate OK [11:16:41]SAM_PROTO_GetShiftState done [11:16:41]FM_GetShiftState done [11:16:41]req_shift_opened done [11:16:41]requested_item shift.open_date is exist - process it [11:16:41]req_shift_open_date [11:16:41]req_shift_open_date done [11:16:41]produce_requested_data done [11:16:41]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68554,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [11:16:41]process_action_free close_receipt [11:16:41]json_value_free [11:16:41]json_value_free done [11:16:41]process_json_proto returns [11:16:41]Send response to host [11:16:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68554,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [11:16:41]free response buf [11:16:41]execute_script done [11:16:41]execute_script returns [11:16:41]free content buf [11:16:41]Sock 7.Close socket [11:16:41]Sock 7.Thread stoped [11:16:44]OFD Sender: No OFD packet to send [11:16:49]OFD Sender: No OFD packet to send [11:16:54]OFD Sender: No OFD packet to send [11:16:59]OFD Sender: No OFD packet to send [11:17:04]OFD Sender: No OFD packet to send [11:17:09]OFD Sender: No OFD packet to send [11:17:14]OFD Sender: No OFD packet to send [11:17:19]OFD Sender: No OFD packet to send [11:17:24]OFD Sender: No OFD packet to send [11:17:29]OFD Sender: No OFD packet to send [11:17:34]OFD Sender: No OFD packet to send [11:17:40]OFD Sender: No OFD packet to send [11:17:45]OFD Sender: No OFD packet to send [11:17:50]OFD Sender: No OFD packet to send [11:17:55]OFD Sender: No OFD packet to send [11:18:00]OFD Sender: No OFD packet to send [11:18:05]OFD Sender: No OFD packet to send [11:18:10]OFD Sender: No OFD packet to send [11:18:15]OFD Sender: No OFD packet to send [11:18:20]OFD Sender: No OFD packet to send [11:18:25]OFD Sender: No OFD packet to send [11:18:30]OFD Sender: No OFD packet to send [11:18:35]OFD Sender: No OFD packet to send [11:18:40]OFD Sender: No OFD packet to send [11:18:45]OFD Sender: No OFD packet to send [11:18:50]OFD Sender: No OFD packet to send [11:18:55]OFD Sender: No OFD packet to send [11:19:00]OFD Sender: No OFD packet to send [11:19:05]OFD Sender: No OFD packet to send [11:19:10]OFD Sender: No OFD packet to send [11:19:12]accept exits with 9 [11:19:12]New connection [11:19:12]New thread 3067084132 created [11:19:12]Thread 3067227492 joined [11:19:12]Waiting for new connection... [11:19:12] Sock 9.Parse request [11:19:12]Sock 9.Check first char [11:19:12]Sock 9.First char is OK [11:19:12]request: POST /json_proto HTTP/1.0 [11:19:12]Method: POST [11:19:12]URL: /json_proto [11:19:12]Method is POST - this is cgi request [11:19:12]url: /json_proto [11:19:12]query_string will be loaded in cgi processing [11:19:12]execute_cgi json_proto POST (null) [11:19:12]execute_cgi path=json_proto method=POST [11:19:12]POST find Content-Length [11:19:12]Host: 172.17.36.132:8080 [11:19:12]Content-Length: 661 [11:19:12]Content-Type: application/json [11:19:12] [11:19:12]POST finish read [11:19:12]Found Content-Length = 661 [11:19:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706679", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 10.000, "sum" : 669.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "payments": [ { "type": 0, "sum" : 669.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:19:12]execute_script... [11:19:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706679", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 10.000, "sum" : 669.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "payments": [ { "type": 0, "sum" : 669.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:19:12]POST & json_proto [11:19:12]process_json_proto [11:19:12]json parsed OK: [11:19:12]protocol is kg_v1.0 [11:19:12]action value=close_receipt [11:19:12]process_action close_receipt [11:19:12]cmd_close_receipt [11:19:12]MH_GetDate [11:19:12]Write to MH i2c: F0 00 00 71 1D 7D [11:19:12]Write i2c OK [11:19:12]MH_I2C_Read... [11:19:12]Read from MH i2c: F0 [11:19:12]MH_I2C_Read... [11:19:12]Read from MH i2c: F0 09 00 [11:19:12]MH_I2C_Read... [11:19:12]Read from MH i2c: F0 09 00 71 1D 00 34 F8 5E 66 B2 22 B0 64 5E [11:19:12]GetLastDocTimeStamp 1717499801 [11:19:12]current date 1717499956 [11:19:12]FM_GetShiftState [11:19:12]SAM_PROTO_GetShiftState [11:19:12]wFMCommunicate request_size=4 [11:19:12]MH_SAM_APDU [11:19:12]CAPDU: 80 13 01 00 [11:19:12]Write to MH i2c: E2 08 00 72 1D 80 13 01 00 00 00 00 00 0C [11:19:12]Write i2c OK [11:19:12]MH_I2C_Read... [11:19:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:19:12]Read from MH i2c: E2 [11:19:12]MH_I2C_Read... [11:19:12]Read from MH i2c: E2 0E 00 [11:19:12]MH_I2C_Read... [11:19:12]Read from MH i2c: E2 0E 00 72 1D 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 A8 [11:19:12]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [11:19:12]wFMCommunicate OK [11:19:12]SAM_PROTO_GetShiftState done [11:19:12]FM_GetShiftState done [11:19:12]opened in 1717460590 [11:19:12]opened+sec_in_day 1717546990 [11:19:12]quantity*price = 66900 [11:19:12]sum+1 = 66901 [11:19:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 669.00 Внесено: 1000.00 СДАЧА: 331.00 НСП 1% : 5.92 НДС 12% : 71.04 Наличными: 669.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 53 04.06.2024 11:19 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68555 ФПД: 35298667131290 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T111916&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68555&fm=35298667131290&tin=02508201610067®Number=0000000000098096&sum=66900 [11:19:13]StoreToDocumentArchive [11:19:13]shift 325 fd 68555 [11:19:13]save to /storage/0325/doc_00068555 [11:19:13]save last doc name /storage/0325/doc_00068555 to /storage/kkm_last_doc_name [11:19:13]save OK [11:19:13]Clear old archive folders... [11:19:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:19:13]tlvbuf is B6F1D840 [11:19:13]SAM_PROTO_ClearQueue [11:19:13]wFMCommunicate request_size=4 [11:19:13]MH_SAM_APDU [11:19:13]CAPDU: 80 09 00 00 [11:19:13]Write to MH i2c: E2 08 00 7F 1D 80 09 00 00 00 00 00 00 0E [11:19:13]Write i2c OK [11:19:13]MH_I2C_Read... [11:19:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:19:13]Read from MH i2c: E2 [11:19:13]MH_I2C_Read... [11:19:13]Read from MH i2c: E2 03 00 [11:19:13]MH_I2C_Read... [11:19:13]Read from MH i2c: E2 03 00 7F 1D 00 90 00 10 [11:19:13]RAPDU: 90 00 [11:19:13]wFMCommunicate OK [11:19:13]SAM_PROTO_ClearQueue done [11:19:13]KKMCreateOFDPacket [11:19:13]OFDProtocolAddRootSTLVToBuf [11:19:13]FM_MakeSignedData [11:19:13]FM_MakeSignedData [11:19:13]SAM_PROTO_SignData [11:19:13]wFMCommunicate request_size=4 [11:19:13]MH_SAM_APDU [11:19:13]CAPDU: 80 0D 01 02 [11:19:13]Write to MH i2c: E2 08 00 80 1D 80 0D 01 02 00 00 00 00 16 [11:19:13]Write i2c OK [11:19:13]MH_I2C_Read... [11:19:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:19:13]Read from MH i2c: E2 [11:19:13]MH_I2C_Read... [11:19:13]Read from MH i2c: E2 03 00 [11:19:13]MH_I2C_Read... [11:19:13]Read from MH i2c: E2 03 00 80 1D 00 90 00 11 [11:19:13]RAPDU: 90 00 [11:19:13]wFMCommunicate OK [11:19:13]wFMCommunicate request_size=255 [11:19:13]MH_SAM_APDU [11:19:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 54 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 1B 00 00 00 00 07 04 06 00 54 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 34 F8 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 CB 0B 01 00 35 04 06 00 20 [11:19:13]Write to MH i2c: E2 02 01 81 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 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 54 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 1B 00 00 00 00 07 04 06 00 54 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 34 F8 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 CB 0B 01 00 35 04 06 00 20 00 00 2E [11:19:13]Write i2c OK [11:19:13]MH_I2C_Read... [11:19:13]Read from MH i2c: E2 [11:19:13]MH_I2C_Read... [11:19:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:19:13]Read from MH i2c: E2 03 00 [11:19:13]MH_I2C_Read... [11:19:13]Read from MH i2c: E2 03 00 81 1D 00 90 00 12 [11:19:13]RAPDU: 90 00 [11:19:13]wFMCommunicate OK [11:19:13]wFMCommunicate request_size=10 [11:19:13]MH_SAM_APDU [11:19:13]CAPDU: 80 0D 02 02 05 1A 9C 83 F1 9A [11:19:13]Write to MH i2c: E2 0D 00 82 1D 80 0D 02 02 05 00 1A 9C 83 F1 9A 00 00 E7 [11:19:13]Write i2c OK [11:19:13]MH_I2C_Read... [11:19:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:19:13]Read from MH i2c: E2 [11:19:13]MH_I2C_Read... [11:19:13]Read from MH i2c: E2 03 00 [11:19:13]MH_I2C_Read... [11:19:13]Read from MH i2c: E2 03 00 82 1D 00 90 00 13 [11:19:13]RAPDU: 90 00 [11:19:13]wFMCommunicate OK [11:19:13]wFMCommunicate request_size=4 [11:19:13]MH_SAM_APDU [11:19:13]CAPDU: 80 0D 03 02 [11:19:13]Write to MH i2c: E2 08 00 83 1D 80 0D 03 02 00 00 00 00 1B [11:19:13]Write i2c OK [11:19:13]MH_I2C_Read... [11:19:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:19:13]Read from MH i2c: E2 [11:19:13]MH_I2C_Read... [11:19:13]Read from MH i2c: E2 0B 00 [11:19:13]MH_I2C_Read... [11:19:13]Read from MH i2c: E2 0B 00 83 1D 00 7F 51 FC A4 2C 2D 84 20 90 00 89 [11:19:13]RAPDU: 7F 51 FC A4 2C 2D 84 20 90 00 [11:19:13]wFMCommunicate OK [11:19:13]SAM_PROTO_SignData done [11:19:13]FM_MakeSignedData done [11:19:13]CreateOFDProtocolMessage [11:19:13]wFMCommunicate request_size=4 [11:19:13]MH_SAM_APDU [11:19:13]CAPDU: 80 11 00 00 [11:19:13]Write to MH i2c: E2 08 00 84 1D 80 11 00 00 00 00 00 00 1B [11:19:13]Write i2c OK [11:19:13]MH_I2C_Read... [11:19:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:19:13]Read from MH i2c: E2 [11:19:13]MH_I2C_Read... [11:19:13]Read from MH i2c: E2 17 00 [11:19:13]MH_I2C_Read... [11:19:13]Read from MH i2c: E2 17 00 84 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 66 [11:19:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [11:19:13]wFMCommunicate OK [11:19:13]CreateOFDProtocolMessage done [11:19:13]OFDSenderStorePacket 68555 [11:19:13]StoreOFDPacket docnum=68555 [11:19:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 F6 CD 07 01 13 03 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 54 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 1B 00 00 00 00 07 04 06 00 54 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 34 F8 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 CB 0B 01 00 35 04 06 00 20 1A 9C 83 F1 9A 7F 51 FC A4 2C 2D 84 20 [11:19:13]CheckFolder [11:19:13]dirname=/storage/ofd_packets [11:19:13]CheckFolder done [11:19:13]ProducePacketName [11:19:13]name=ofd_packets/00068555 [11:19:13]NVStorageSaveData ofd_packets/00068555 [11:19:13]File name is /storage/ofd_packets/00068555 [11:19:13]Write 301 bytes [11:19:13]NVStorageSaveData done [11:19:13]OFDSenderStorePacket done [11:19:13]KKMCreateOFDPacket done [11:19:13]NVStorageSaveData kkm_last_timestamp [11:19:13]File name is /storage/kkm_last_timestamp [11:19:13]Write 4 bytes [11:19:13]NVStorageSaveData done [11:19:13]ExternCall_PrintAddStr [11:19:13]wPrintStart [11:19:13]Write to MH i2c: 01 00 00 85 1D A2 [11:19:13]Write i2c OK [11:19:13]MH_I2C_Read... [11:19:13]Read from MH i2c: 01 [11:19:13]MH_I2C_Read... [11:19:13]Read from MH i2c: 01 07 00 [11:19:13]MH_I2C_Read... [11:19:13]Read from MH i2c: 01 07 00 85 1D 00 00 00 00 00 FF 0F B7 [11:19:13]RasterBufferAndPrint [11:19:13]line Счет N : (1)706679 [11:19:13]line ИНН: 02508201610067 [11:19:13]line Контрольно-Кассовый Чек [11:19:13]line ПРОДАЖА [11:19:13]line ТРК (МРК, ГНК) : 23 [11:19:13]line Товар: 2710124130 [11:19:13]line Аи-92-К-4 [11:19:13]line 10.000 * 66.90 [11:19:13]line = 669.00 [11:19:13]line НДС 12% НСП 1% [11:19:13]line > о реализуемом товаре [11:19:13]line ИТОГО: 669.00 [11:19:13]line Внесено: 1000.00 [11:19:13]line СДАЧА: 331.00 [11:19:13]line НСП 1% : 5.92 [11:19:13]line НДС 12% : 71.04 [11:19:13]line Наличными: 669.00 [11:19:13]line Безнал.: 0.00 [11:19:13]line Место: АЗС № 62 "Партнер Нефть" [11:19:13]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [11:19:13]line СНО: Общий режим [11:19:13]line Чек 53 04.06.2024 11:19 [11:19:13]line Смена: 325 ФФД: 1.0 [11:19:13]line ЗНМ: 0300000181 [11:19:13]line РНМ: 0000000000098096 [11:19:13]line Версия ККМ: 001 [11:19:13]line ФМ: 0000000000965400 [11:19:13]line ФД: 68555 [11:19:13]line ФПД: 35298667131290 [11:19:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T111916&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68555&fm=35298667131290&tin=02508201610067®Number=0000000000098096&sum=66900 [11:19:14]OFD Sender: Processing packet 68555 [packets to send 26, broken 25] [11:19:14]ProducePacketName [11:19:14]name=ofd_packets/00068555 [11:19:14]OFD Sender: To server: pG, [11:19:14]CommunicateWithHost lk.salyk.kg:30040 [11:19:14]ConnectInit lk.salyk.kg [11:19:14]written 0, free lines is 4095 [11:19:14]Connected sock=7 [11:19:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 F6 CD 07 01 13 03 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 54 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 1B 00 00 00 00 07 04 06 00 54 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 34 F8 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 CB 0B 01 00 35 04 06 00 20 1A 9C 83 F1 9A 7F 51 FC A4 2C 2D 84 20 [11:19:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 58 24 47 00 33 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 39 36 35 34 30 30 10 04 04 00 CB 0B 01 00 F4 03 04 00 2D 9F 5E 66 B6 04 01 00 00 38 98 88 8B 7D 82 25 BA [11:19:14]CommunicateWithHost err = 0 [11:19:14]CheckOFDResponse [11:19:14]1017 (14) - 77093643461234 [11:19:14]1041 (16) - 0000000000965400 [11:19:14]1040 (4) - 68555 [11:19:14]1012 (4) - 04.06.2024 04:59 [11:19:14]1206 (1) - 0 [11:19:14]OFD Sender: Remove packet 68555 [11:19:14]ProducePacketName [11:19:14]name=ofd_packets/00068555 [11:19:14]NVStorageDeleteData [11:19:14]Write to MH i2c: 01 00 00 AF 1D CC [11:19:14]Write i2c OK [11:19:14]MH_I2C_Read... [11:19:14]Read from MH i2c: 01 [11:19:14]MH_I2C_Read... [11:19:14]Read from MH i2c: 01 07 00 [11:19:14]MH_I2C_Read... [11:19:14]Read from MH i2c: 01 07 00 AF 1D 00 00 00 00 00 E2 0C C1 [11:19:14]RasterBufferAndPrint [11:19:14]line [11:19:14]line [11:19:14]line [11:19:14]line [11:19:14]line [11:19:14]written 0, free lines is 3304 [11:19:14]MH_Cut [11:19:14]Write to MH i2c: D1 01 00 B6 1D 01 A5 [11:19:14]Write i2c OK [11:19:14]MH_I2C_Read... [11:19:14]Read from MH i2c: D1 [11:19:14]MH_I2C_Read... [11:19:14]Read from MH i2c: D1 01 00 [11:19:14]MH_I2C_Read... [11:19:14]Read from MH i2c: D1 01 00 B6 1D 00 A4 [11:19:14]Write to MH i2c: 01 00 00 B7 1D D4 [11:19:14]Write i2c OK [11:19:14]MH_I2C_Read... [11:19:15]OFD Sender: No OFD packet to send [11:19:15]*** Cut start [11:19:15]*** Partial cut [11:19:15]*** CUTSNS_PIN = 1 [11:19:15]*** CUTSNS_PIN = 0 [11:19:15]*** Brake cut motor [11:19:16]Read from MH i2c: 01 [11:19:16]MH_I2C_Read... [11:19:16]*** Stop cut motor [11:19:16]*** Cut end [11:19:16]Read from MH i2c: 01 07 00 [11:19:16]MH_I2C_Read... [11:19:16]Read from MH i2c: 01 07 00 B7 1D 00 00 00 00 00 FF 0F E9 [11:19:16]process_action close_receipt done [11:19:16]requested_data is exist [11:19:16]produce_requested_data [11:19:16]requested_item fm.sn is exist - process it [11:19:16]wFMCommunicate request_size=4 [11:19:16]MH_SAM_APDU [11:19:16]CAPDU: 80 11 00 00 [11:19:16]Write to MH i2c: E2 08 00 B8 1D 80 11 00 00 00 00 00 00 4F [11:19:16]Write i2c OK [11:19:16]MH_I2C_Read... [11:19:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:19:16]Read from MH i2c: E2 [11:19:16]MH_I2C_Read... [11:19:16]Read from MH i2c: E2 17 00 [11:19:16]MH_I2C_Read... [11:19:16]Read from MH i2c: E2 17 00 B8 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 9A [11:19:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [11:19:16]wFMCommunicate OK [11:19:16]requested_item fd.num is exist - process it [11:19:16]SAM_PROTO_GetFieldsCounters [11:19:16]wFMCommunicate request_size=4 [11:19:16]MH_SAM_APDU [11:19:16]CAPDU: 80 13 00 00 [11:19:16]Write to MH i2c: E2 08 00 B9 1D 80 13 00 00 00 00 00 00 52 [11:19:16]Write i2c OK [11:19:16]MH_I2C_Read... [11:19:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:19:16]Read from MH i2c: E2 [11:19:16]MH_I2C_Read... [11:19:16]Read from MH i2c: E2 62 00 [11:19:16]MH_I2C_Read... [11:19:16]Read from MH i2c: E2 62 00 B9 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 CB 0B 01 00 0E 04 04 00 45 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 2E [11:19:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 CB 0B 01 00 0E 04 04 00 45 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 [11:19:16]wFMCommunicate OK [11:19:16]SAM_PROTO_GetFieldsCounters done [11:19:16]requested_item shift.num is exist - process it [11:19:16]requested_item shift.opened is exist - process it [11:19:16]req_shift_opened [11:19:16]FM_GetShiftState [11:19:16]SAM_PROTO_GetShiftState [11:19:16]wFMCommunicate request_size=4 [11:19:16]MH_SAM_APDU [11:19:16]CAPDU: 80 13 01 00 [11:19:16]Write to MH i2c: E2 08 00 BA 1D 80 13 01 00 00 00 00 00 54 [11:19:16]Write i2c OK [11:19:16]MH_I2C_Read... [11:19:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:19:16]Read from MH i2c: E2 [11:19:16]MH_I2C_Read... [11:19:16]Read from MH i2c: E2 0E 00 [11:19:16]MH_I2C_Read... [11:19:16]Read from MH i2c: E2 0E 00 BA 1D 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 F0 [11:19:16]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [11:19:16]wFMCommunicate OK [11:19:16]SAM_PROTO_GetShiftState done [11:19:16]FM_GetShiftState done [11:19:16]req_shift_opened done [11:19:16]requested_item shift.open_date is exist - process it [11:19:16]req_shift_open_date [11:19:16]req_shift_open_date done [11:19:16]produce_requested_data done [11:19:16]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68555,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [11:19:16]process_action_free close_receipt [11:19:16]json_value_free [11:19:16]json_value_free done [11:19:16]process_json_proto returns [11:19:16]Send response to host [11:19:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68555,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [11:19:16]free response buf [11:19:16]execute_script done [11:19:16]execute_script returns [11:19:16]free content buf [11:19:16]Sock 9.Close socket [11:19:16]Sock 9.Thread stoped [11:19:20]OFD Sender: No OFD packet to send [11:19:25]OFD Sender: No OFD packet to send [11:19:30]OFD Sender: No OFD packet to send [11:19:35]OFD Sender: No OFD packet to send [11:19:40]OFD Sender: No OFD packet to send [11:19:45]OFD Sender: No OFD packet to send [11:19:50]OFD Sender: No OFD packet to send [11:19:55]OFD Sender: No OFD packet to send [11:20:00]OFD Sender: No OFD packet to send [11:20:05]OFD Sender: No OFD packet to send [11:20:10]OFD Sender: No OFD packet to send [11:20:15]OFD Sender: No OFD packet to send [11:20:20]OFD Sender: No OFD packet to send [11:20:25]OFD Sender: No OFD packet to send [11:20:30]OFD Sender: No OFD packet to send [11:20:35]OFD Sender: No OFD packet to send [11:20:40]OFD Sender: No OFD packet to send [11:20:45]OFD Sender: No OFD packet to send [11:20:50]OFD Sender: No OFD packet to send [11:20:55]OFD Sender: No OFD packet to send [11:21:00]OFD Sender: No OFD packet to send [11:21:05]OFD Sender: No OFD packet to send [11:21:10]OFD Sender: No OFD packet to send [11:21:15]OFD Sender: No OFD packet to send [11:21:20]OFD Sender: No OFD packet to send [11:21:25]OFD Sender: No OFD packet to send [11:21:30]OFD Sender: No OFD packet to send [11:21:35]OFD Sender: No OFD packet to send [11:21:40]OFD Sender: No OFD packet to send [11:21:45]OFD Sender: No OFD packet to send [11:21:50]OFD Sender: No OFD packet to send [11:21:55]OFD Sender: No OFD packet to send [11:22:00]OFD Sender: No OFD packet to send [11:22:05]OFD Sender: No OFD packet to send [11:22:10]OFD Sender: No OFD packet to send [11:22:15]OFD Sender: No OFD packet to send [11:22:20]OFD Sender: No OFD packet to send [11:22:25]OFD Sender: No OFD packet to send [11:22:30]OFD Sender: No OFD packet to send [11:22:35]OFD Sender: No OFD packet to send [11:22:40]OFD Sender: No OFD packet to send [11:22:45]OFD Sender: No OFD packet to send [11:22:50]OFD Sender: No OFD packet to send [11:22:55]OFD Sender: No OFD packet to send [11:23:00]OFD Sender: No OFD packet to send [11:23:05]OFD Sender: No OFD packet to send [11:23:10]OFD Sender: No OFD packet to send [11:23:15]OFD Sender: No OFD packet to send [11:23:20]OFD Sender: No OFD packet to send [11:23:25]OFD Sender: No OFD packet to send [11:23:30]OFD Sender: No OFD packet to send [11:23:35]OFD Sender: No OFD packet to send [11:23:40]OFD Sender: No OFD packet to send [11:23:45]OFD Sender: No OFD packet to send [11:23:50]OFD Sender: No OFD packet to send [11:23:55]OFD Sender: No OFD packet to send [11:24:00]OFD Sender: No OFD packet to send [11:24:05]OFD Sender: No OFD packet to send [11:24:10]OFD Sender: No OFD packet to send [11:24:15]OFD Sender: No OFD packet to send [11:24:20]OFD Sender: No OFD packet to send [11:24:25]OFD Sender: No OFD packet to send [11:24:30]OFD Sender: No OFD packet to send [11:24:35]OFD Sender: No OFD packet to send [11:24:40]OFD Sender: No OFD packet to send [11:24:45]OFD Sender: No OFD packet to send [11:24:50]OFD Sender: No OFD packet to send [11:24:55]OFD Sender: No OFD packet to send [11:25:00]OFD Sender: No OFD packet to send [11:25:05]OFD Sender: No OFD packet to send [11:25:10]OFD Sender: No OFD packet to send [11:25:15]OFD Sender: No OFD packet to send [11:25:20]OFD Sender: No OFD packet to send [11:25:25]OFD Sender: No OFD packet to send [11:25:30]OFD Sender: No OFD packet to send [11:25:35]OFD Sender: No OFD packet to send [11:25:40]OFD Sender: No OFD packet to send [11:25:45]OFD Sender: No OFD packet to send [11:25:50]OFD Sender: No OFD packet to send [11:25:55]OFD Sender: No OFD packet to send [11:26:00]OFD Sender: No OFD packet to send [11:26:05]OFD Sender: No OFD packet to send [11:26:10]OFD Sender: No OFD packet to send [11:26:15]OFD Sender: No OFD packet to send [11:26:20]OFD Sender: No OFD packet to send [11:26:25]OFD Sender: No OFD packet to send [11:26:30]OFD Sender: No OFD packet to send [11:26:35]OFD Sender: No OFD packet to send [11:26:40]OFD Sender: No OFD packet to send [11:26:45]OFD Sender: No OFD packet to send [11:26:50]OFD Sender: No OFD packet to send [11:26:55]OFD Sender: No OFD packet to send [11:27:00]OFD Sender: No OFD packet to send [11:27:05]OFD Sender: No OFD packet to send [11:27:10]OFD Sender: No OFD packet to send [11:27:15]OFD Sender: No OFD packet to send [11:27:20]OFD Sender: No OFD packet to send [11:27:25]OFD Sender: No OFD packet to send [11:27:30]OFD Sender: No OFD packet to send [11:27:35]OFD Sender: No OFD packet to send [11:27:40]OFD Sender: No OFD packet to send [11:27:45]OFD Sender: No OFD packet to send [11:27:50]OFD Sender: No OFD packet to send [11:27:55]OFD Sender: No OFD packet to send [11:28:00]OFD Sender: No OFD packet to send [11:28:05]OFD Sender: No OFD packet to send [11:28:10]OFD Sender: No OFD packet to send [11:28:15]OFD Sender: No OFD packet to send [11:28:20]OFD Sender: No OFD packet to send [11:28:25]OFD Sender: No OFD packet to send [11:28:30]OFD Sender: No OFD packet to send [11:28:35]OFD Sender: No OFD packet to send [11:28:40]OFD Sender: No OFD packet to send [11:28:45]OFD Sender: No OFD packet to send [11:28:50]OFD Sender: No OFD packet to send [11:28:55]OFD Sender: No OFD packet to send [11:29:00]OFD Sender: No OFD packet to send [11:29:05]OFD Sender: No OFD packet to send [11:29:10]OFD Sender: No OFD packet to send [11:29:15]OFD Sender: No OFD packet to send [11:29:20]OFD Sender: No OFD packet to send [11:29:25]OFD Sender: No OFD packet to send [11:29:30]OFD Sender: No OFD packet to send [11:29:35]OFD Sender: No OFD packet to send [11:29:40]OFD Sender: No OFD packet to send [11:29:45]OFD Sender: No OFD packet to send [11:29:50]OFD Sender: No OFD packet to send [11:29:55]OFD Sender: No OFD packet to send [11:30:00]OFD Sender: No OFD packet to send [11:30:05]OFD Sender: No OFD packet to send [11:30:10]OFD Sender: No OFD packet to send [11:30:15]OFD Sender: No OFD packet to send [11:30:20]OFD Sender: No OFD packet to send [11:30:25]OFD Sender: No OFD packet to send [11:30:30]OFD Sender: No OFD packet to send [11:30:35]OFD Sender: No OFD packet to send [11:30:40]OFD Sender: No OFD packet to send [11:30:45]OFD Sender: No OFD packet to send [11:30:50]OFD Sender: No OFD packet to send [11:30:55]OFD Sender: No OFD packet to send [11:31:00]OFD Sender: No OFD packet to send [11:31:05]OFD Sender: No OFD packet to send [11:31:10]OFD Sender: No OFD packet to send [11:31:15]OFD Sender: No OFD packet to send [11:31:20]OFD Sender: No OFD packet to send [11:31:25]OFD Sender: No OFD packet to send [11:31:30]OFD Sender: No OFD packet to send [11:31:35]OFD Sender: No OFD packet to send [11:31:40]OFD Sender: No OFD packet to send [11:31:45]OFD Sender: No OFD packet to send [11:31:50]OFD Sender: No OFD packet to send [11:31:55]OFD Sender: No OFD packet to send [11:32:00]OFD Sender: No OFD packet to send [11:32:05]OFD Sender: No OFD packet to send [11:32:10]OFD Sender: No OFD packet to send [11:32:15]OFD Sender: No OFD packet to send [11:32:20]OFD Sender: No OFD packet to send [11:32:25]OFD Sender: No OFD packet to send [11:32:30]OFD Sender: No OFD packet to send [11:32:35]OFD Sender: No OFD packet to send [11:32:40]OFD Sender: No OFD packet to send [11:32:45]OFD Sender: No OFD packet to send [11:32:50]OFD Sender: No OFD packet to send [11:32:55]OFD Sender: No OFD packet to send [11:33:00]OFD Sender: No OFD packet to send [11:33:05]OFD Sender: No OFD packet to send [11:33:10]OFD Sender: No OFD packet to send [11:33:15]OFD Sender: No OFD packet to send [11:33:20]OFD Sender: No OFD packet to send [11:33:25]OFD Sender: No OFD packet to send [11:33:30]OFD Sender: No OFD packet to send [11:33:35]OFD Sender: No OFD packet to send [11:33:40]OFD Sender: No OFD packet to send [11:33:45]OFD Sender: No OFD packet to send [11:33:50]OFD Sender: No OFD packet to send [11:33:55]OFD Sender: No OFD packet to send [11:34:00]OFD Sender: No OFD packet to send [11:34:05]OFD Sender: No OFD packet to send [11:34:10]OFD Sender: No OFD packet to send [11:34:15]OFD Sender: No OFD packet to send [11:34:20]OFD Sender: No OFD packet to send [11:34:25]OFD Sender: No OFD packet to send [11:34:30]OFD Sender: No OFD packet to send [11:34:35]OFD Sender: No OFD packet to send [11:34:40]OFD Sender: No OFD packet to send [11:34:45]OFD Sender: No OFD packet to send [11:34:50]OFD Sender: No OFD packet to send [11:34:55]OFD Sender: No OFD packet to send [11:35:00]OFD Sender: No OFD packet to send [11:35:05]OFD Sender: No OFD packet to send [11:35:08]accept exits with 10 [11:35:08]New connection [11:35:08]New thread 3067227492 created [11:35:08]Thread 3067084132 joined [11:35:08]Waiting for new connection... [11:35:08] Sock 10.Parse request [11:35:08]Sock 10.Check first char [11:35:08]Sock 10.First char is OK [11:35:08]request: POST /json_proto HTTP/1.0 [11:35:08]Method: POST [11:35:08]URL: /json_proto [11:35:08]Method is POST - this is cgi request [11:35:08]url: /json_proto [11:35:08]query_string will be loaded in cgi processing [11:35:08]execute_cgi json_proto POST (null) [11:35:08]execute_cgi path=json_proto method=POST [11:35:08]POST find Content-Length [11:35:08]Host: 172.17.36.132:8080 [11:35:08]Content-Length: 840 [11:35:08]Content-Type: application/json [11:35:08] [11:35:08]POST finish read [11:35:08]Found Content-Length = 840 [11:35:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706681", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:35:08]execute_script... [11:35: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)706681", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:35:08]POST & json_proto [11:35:08]process_json_proto [11:35:08]json parsed OK: [11:35:08]protocol is kg_v1.0 [11:35:08]action value=close_receipt [11:35:08]process_action close_receipt [11:35:08]cmd_close_receipt [11:35:08]MH_GetDate [11:35:08]Write to MH i2c: F0 00 00 BB 1D C7 [11:35:08]Write i2c OK [11:35:08]MH_I2C_Read... [11:35:08]Read from MH i2c: F0 [11:35:08]MH_I2C_Read... [11:35:08]Read from MH i2c: F0 09 00 [11:35:08]MH_I2C_Read... [11:35:08]Read from MH i2c: F0 09 00 BB 1D 00 F1 FB 5E 66 B2 22 B0 64 68 [11:35:08]GetLastDocTimeStamp 1717499956 [11:35:08]current date 1717500913 [11:35:08]FM_GetShiftState [11:35:08]SAM_PROTO_GetShiftState [11:35:08]wFMCommunicate request_size=4 [11:35:08]MH_SAM_APDU [11:35:08]CAPDU: 80 13 01 00 [11:35:08]Write to MH i2c: E2 08 00 BC 1D 80 13 01 00 00 00 00 00 56 [11:35:08]Write i2c OK [11:35:08]MH_I2C_Read... [11:35:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:35:08]Read from MH i2c: E2 [11:35:08]MH_I2C_Read... [11:35:08]Read from MH i2c: E2 0E 00 [11:35:08]MH_I2C_Read... [11:35:08]Read from MH i2c: E2 0E 00 BC 1D 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 F2 [11:35:08]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [11:35:08]wFMCommunicate OK [11:35:08]SAM_PROTO_GetShiftState done [11:35:08]FM_GetShiftState done [11:35:08]opened in 1717460590 [11:35:08]opened+sec_in_day 1717546990 [11:35:08]quantity*price = 50041 [11:35:08]sum+1 = 50042 [11:35:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 54 04.06.2024 11:35 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000965400 ФД: 68556 ФПД: 187124273876588 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T113513&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68556&fm=187124273876588&tin=02508201610067®Number=0000000000098096&sum=50041 [11:35:10]StoreToDocumentArchive [11:35:10]shift 325 fd 68556 [11:35:10]save to /storage/0325/doc_00068556 [11:35:10]save last doc name /storage/0325/doc_00068556 to /storage/kkm_last_doc_name [11:35:10]save OK [11:35:10]Clear old archive folders... [11:35:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:35:10]tlvbuf is 00A42070 [11:35:10]SAM_PROTO_ClearQueue [11:35:10]wFMCommunicate request_size=4 [11:35:10]MH_SAM_APDU [11:35:10]CAPDU: 80 09 00 00 [11:35:10]Write to MH i2c: E2 08 00 C9 1D 80 09 00 00 00 00 00 00 58 [11:35:10]Write i2c OK [11:35:10]MH_I2C_Read... [11:35:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:35:10]Read from MH i2c: E2 [11:35:10]MH_I2C_Read... [11:35:10]Read from MH i2c: E2 03 00 [11:35:10]MH_I2C_Read... [11:35:10]Read from MH i2c: E2 03 00 C9 1D 00 90 00 5A [11:35:10]RAPDU: 90 00 [11:35:10]wFMCommunicate OK [11:35:10]SAM_PROTO_ClearQueue done [11:35:10]KKMCreateOFDPacket [11:35:10]OFDProtocolAddRootSTLVToBuf [11:35:10]FM_MakeSignedData [11:35:10]FM_MakeSignedData [11:35:10]SAM_PROTO_SignData [11:35:10]wFMCommunicate request_size=4 [11:35:10]MH_SAM_APDU [11:35:10]CAPDU: 80 0D 01 02 [11:35:10]Write to MH i2c: E2 08 00 CA 1D 80 0D 01 02 00 00 00 00 60 [11:35:10]Write i2c OK [11:35:10]MH_I2C_Read... [11:35:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:35:10]Read from MH i2c: E2 [11:35:10]MH_I2C_Read... [11:35:10]Read from MH i2c: E2 03 00 [11:35:10]MH_I2C_Read... [11:35:10]Read from MH i2c: E2 03 00 CA 1D 00 90 00 5B [11:35:10]RAPDU: 90 00 [11:35:10]wFMCommunicate OK [11:35:10]wFMCommunicate request_size=255 [11:35:10]MH_SAM_APDU [11:35: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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 F1 FB 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 CC 0B 01 00 35 04 06 00 AA [11:35:10]Write to MH i2c: E2 02 01 CB 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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 F1 FB 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 CC 0B 01 00 35 04 06 00 AA 00 00 ED [11:35:10]Write i2c OK [11:35:10]MH_I2C_Read... [11:35:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:35:10]Read from MH i2c: E2 [11:35:10]MH_I2C_Read... [11:35:10]Read from MH i2c: E2 03 00 [11:35:10]MH_I2C_Read... [11:35:10]Read from MH i2c: E2 03 00 CB 1D 00 90 00 5C [11:35:10]RAPDU: 90 00 [11:35:10]wFMCommunicate OK [11:35:10]wFMCommunicate request_size=10 [11:35:10]MH_SAM_APDU [11:35:10]CAPDU: 80 0D 02 02 05 30 43 DF 8E 6C [11:35:10]Write to MH i2c: E2 0D 00 CC 1D 80 0D 02 02 05 00 30 43 DF 8E 6C 00 00 B9 [11:35:10]Write i2c OK [11:35:10]MH_I2C_Read... [11:35:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:35:10]Read from MH i2c: E2 [11:35:10]MH_I2C_Read... [11:35:10]Read from MH i2c: E2 03 00 [11:35:10]MH_I2C_Read... [11:35:10]Read from MH i2c: E2 03 00 CC 1D 00 90 00 5D [11:35:10]RAPDU: 90 00 [11:35:10]wFMCommunicate OK [11:35:10]wFMCommunicate request_size=4 [11:35:10]MH_SAM_APDU [11:35:10]CAPDU: 80 0D 03 02 [11:35:10]Write to MH i2c: E2 08 00 CD 1D 80 0D 03 02 00 00 00 00 65 [11:35:10]Write i2c OK [11:35:10]MH_I2C_Read... [11:35:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:35:10]Read from MH i2c: E2 [11:35:10]MH_I2C_Read... [11:35:10]Read from MH i2c: E2 0B 00 [11:35:10]MH_I2C_Read... [11:35:10]Read from MH i2c: E2 0B 00 CD 1D 00 BB B8 13 9C 38 26 22 F1 90 00 F9 [11:35:10]RAPDU: BB B8 13 9C 38 26 22 F1 90 00 [11:35:10]wFMCommunicate OK [11:35:10]SAM_PROTO_SignData done [11:35:10]FM_MakeSignedData done [11:35:10]CreateOFDProtocolMessage [11:35:10]wFMCommunicate request_size=4 [11:35:10]MH_SAM_APDU [11:35:10]CAPDU: 80 11 00 00 [11:35:10]Write to MH i2c: E2 08 00 CE 1D 80 11 00 00 00 00 00 00 65 [11:35:10]Write i2c OK [11:35:10]MH_I2C_Read... [11:35:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:35:10]Read from MH i2c: E2 [11:35:10]MH_I2C_Read... [11:35:10]Read from MH i2c: E2 17 00 [11:35:10]MH_I2C_Read... [11:35:10]Read from MH i2c: E2 17 00 CE 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 B0 [11:35:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [11:35:10]wFMCommunicate OK [11:35:10]CreateOFDProtocolMessage done [11:35:10]OFDSenderStorePacket 68556 [11:35:10]StoreOFDPacket docnum=68556 [11:35:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 15 1B 07 01 19 72 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 F1 FB 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 CC 0B 01 00 35 04 06 00 AA 30 43 DF 8E 6C BB B8 13 9C 38 26 22 F1 [11:35:10]CheckFolder [11:35:10]dirname=/storage/ofd_packets [11:35:10]CheckFolder done [11:35:10]ProducePacketName [11:35:10]name=ofd_packets/00068556 [11:35:10]NVStorageSaveData ofd_packets/00068556 [11:35:10]File name is /storage/ofd_packets/00068556 [11:35:10]Write 301 bytes [11:35:10]NVStorageSaveData done [11:35:10]OFDSenderStorePacket done [11:35:10]KKMCreateOFDPacket done [11:35:10]NVStorageSaveData kkm_last_timestamp [11:35:10]File name is /storage/kkm_last_timestamp [11:35:10]Write 4 bytes [11:35:10]NVStorageSaveData done [11:35:10]ExternCall_PrintAddStr [11:35:10]wPrintStart [11:35:10]Write to MH i2c: 01 00 00 CF 1D EC [11:35:10]Write i2c OK [11:35:10]MH_I2C_Read... [11:35:10]Read from MH i2c: 01 [11:35:10]MH_I2C_Read... [11:35:10]Read from MH i2c: 01 07 00 [11:35:10]MH_I2C_Read... [11:35:10]Read from MH i2c: 01 07 00 CF 1D 00 00 00 00 00 FF 0F 01 [11:35:10]RasterBufferAndPrint [11:35:10]line Счет N : (1)706681 [11:35:10]line ИНН: 02508201610067 [11:35:10]line Контрольно-Кассовый Чек [11:35:10]line ПРОДАЖА [11:35:10]line ТРК (МРК, ГНК) : 32 [11:35:10]line Товар: 2710124130 [11:35:10]line Аи-92-К-4 [11:35:10]line 7.480 * 66.90 [11:35:10]line = 500.41 [11:35:10]line НДС 12% НСП 1% [11:35:10]line > о реализуемом товаре [11:35:10]line ИТОГО: 500.41 [11:35:10]line НСП 1% : 4.43 [11:35:10]line НДС 12% : 53.14 [11:35:10]line Наличными: 0.00 [11:35:10]line Безнал.: 500.41 [11:35:10]line Место: АЗС № 62 "Партнер Нефть" [11:35:10]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [11:35:10]line СНО: Общий режим [11:35:10]line Чек 54 04.06.2024 11:35 [11:35:10]line Смена: 325 ФФД: 1.0 [11:35:10]line ЗНМ: 0300000181 [11:35:10]line РНМ: 0000000000098096 [11:35:10]line Версия ККМ: 001 [11:35:10]line Платежная система: АКБ Кыргызстан [11:35:10]line ФМ: 0000000000965400 [11:35:10]line ФД: 68556 [11:35:10]line ФПД: 187124273876588 [11:35:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T113513&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68556&fm=187124273876588&tin=02508201610067®Number=0000000000098096&sum=50041 [11:35:10]OFD Sender: Processing packet 68556 [packets to send 26, broken 25] [11:35:10]ProducePacketName [11:35:10]name=ofd_packets/00068556 [11:35:10]OFD Sender: To server: pG, [11:35:10]CommunicateWithHost lk.salyk.kg:30040 [11:35:10]ConnectInit lk.salyk.kg [11:35:10]written 0, free lines is 4095 [11:35:11]Connected sock=9 [11:35:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 15 1B 07 01 19 72 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 F1 FB 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 CC 0B 01 00 35 04 06 00 AA 30 43 DF 8E 6C BB B8 13 9C 38 26 22 F1 [11:35:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 3F AB 47 00 6A 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 39 36 35 34 30 30 10 04 04 00 CC 0B 01 00 F4 03 04 00 E9 A2 5E 66 B6 04 01 00 00 C3 C2 3C BF FC E2 2F F1 [11:35:11]CommunicateWithHost err = 0 [11:35:11]CheckOFDResponse [11:35:11]1017 (14) - 77093643461234 [11:35:11]1041 (16) - 0000000000965400 [11:35:11]1040 (4) - 68556 [11:35:11]1012 (4) - 04.06.2024 05:15 [11:35:11]1206 (1) - 0 [11:35:11]OFD Sender: Remove packet 68556 [11:35:11]ProducePacketName [11:35:11]name=ofd_packets/00068556 [11:35:11]NVStorageDeleteData [11:35:11]Write to MH i2c: 01 00 00 F9 1D 16 [11:35:11]Write i2c OK [11:35:11]MH_I2C_Read... [11:35:11]Read from MH i2c: 01 [11:35:11]MH_I2C_Read... [11:35:11]Read from MH i2c: 01 07 00 [11:35:11]MH_I2C_Read... [11:35:11]Read from MH i2c: 01 07 00 F9 1D 00 00 00 00 00 E1 0C 0A [11:35:11]RasterBufferAndPrint [11:35:11]line [11:35:11]line [11:35:11]line [11:35:11]line [11:35:11]line [11:35:11]written 0, free lines is 3303 [11:35:11]MH_Cut [11:35:11]Write to MH i2c: D1 01 00 00 1E 01 F0 [11:35:11]Write i2c OK [11:35:11]MH_I2C_Read... [11:35:11]Read from MH i2c: D1 [11:35:11]MH_I2C_Read... [11:35:11]Read from MH i2c: D1 01 00 [11:35:11]MH_I2C_Read... [11:35:11]Read from MH i2c: D1 01 00 00 1E 00 EF [11:35:11]Write to MH i2c: 01 00 00 01 1E 1F [11:35:11]Write i2c OK [11:35:11]MH_I2C_Read... [11:35:11]OFD Sender: No OFD packet to send [11:35:12]*** Cut start [11:35:12]*** Partial cut [11:35:12]*** CUTSNS_PIN = 1 [11:35:12]*** CUTSNS_PIN = 0 [11:35:12]*** Brake cut motor [11:35:12]Read from MH i2c: 01 [11:35:12]MH_I2C_Read... [11:35:12]*** Stop cut motor [11:35:12]*** Cut end [11:35:12]Read from MH i2c: 01 07 00 [11:35:12]MH_I2C_Read... [11:35:12]Read from MH i2c: 01 07 00 01 1E 00 00 00 00 00 FF 0F 34 [11:35:12]process_action close_receipt done [11:35:12]requested_data is exist [11:35:12]produce_requested_data [11:35:12]requested_item fm.sn is exist - process it [11:35:12]wFMCommunicate request_size=4 [11:35:12]MH_SAM_APDU [11:35:12]CAPDU: 80 11 00 00 [11:35:12]Write to MH i2c: E2 08 00 02 1E 80 11 00 00 00 00 00 00 9A [11:35:12]Write i2c OK [11:35:12]MH_I2C_Read... [11:35:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:35:12]Read from MH i2c: E2 [11:35:12]MH_I2C_Read... [11:35:12]Read from MH i2c: E2 17 00 [11:35:12]MH_I2C_Read... [11:35:12]Read from MH i2c: E2 17 00 02 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 E5 [11:35:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [11:35:12]wFMCommunicate OK [11:35:12]requested_item fd.num is exist - process it [11:35:12]SAM_PROTO_GetFieldsCounters [11:35:12]wFMCommunicate request_size=4 [11:35:12]MH_SAM_APDU [11:35:12]CAPDU: 80 13 00 00 [11:35:12]Write to MH i2c: E2 08 00 03 1E 80 13 00 00 00 00 00 00 9D [11:35:12]Write i2c OK [11:35:12]MH_I2C_Read... [11:35:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:35:13]Read from MH i2c: E2 [11:35:13]MH_I2C_Read... [11:35:13]Read from MH i2c: E2 62 00 [11:35:13]MH_I2C_Read... [11:35:13]Read from MH i2c: E2 62 00 03 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 CC 0B 01 00 0E 04 04 00 45 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 7D [11:35:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 CC 0B 01 00 0E 04 04 00 45 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 [11:35:13]wFMCommunicate OK [11:35:13]SAM_PROTO_GetFieldsCounters done [11:35:13]requested_item shift.num is exist - process it [11:35:13]requested_item shift.opened is exist - process it [11:35:13]req_shift_opened [11:35:13]FM_GetShiftState [11:35:13]SAM_PROTO_GetShiftState [11:35:13]wFMCommunicate request_size=4 [11:35:13]MH_SAM_APDU [11:35:13]CAPDU: 80 13 01 00 [11:35:13]Write to MH i2c: E2 08 00 04 1E 80 13 01 00 00 00 00 00 9F [11:35:13]Write i2c OK [11:35:13]MH_I2C_Read... [11:35:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:35:13]Read from MH i2c: E2 [11:35:13]MH_I2C_Read... [11:35:13]Read from MH i2c: E2 0E 00 [11:35:13]MH_I2C_Read... [11:35:13]Read from MH i2c: E2 0E 00 04 1E 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 3B [11:35:13]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [11:35:13]wFMCommunicate OK [11:35:13]SAM_PROTO_GetShiftState done [11:35:13]FM_GetShiftState done [11:35:13]req_shift_opened done [11:35:13]requested_item shift.open_date is exist - process it [11:35:13]req_shift_open_date [11:35:13]req_shift_open_date done [11:35:13]produce_requested_data done [11:35:13]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68556,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [11:35:13]process_action_free close_receipt [11:35:13]json_value_free [11:35:13]json_value_free done [11:35:13]process_json_proto returns [11:35:13]Send response to host [11:35:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68556,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [11:35:13]free response buf [11:35:13]execute_script done [11:35:13]execute_script returns [11:35:13]free content buf [11:35:13]Sock 10.Close socket [11:35:13]Sock 10.Thread stoped [11:35:16]OFD Sender: No OFD packet to send [11:35:20]accept exits with 7 [11:35:20]New connection [11:35:20]New thread 3067084132 created [11:35:20]Thread 3067227492 joined [11:35:20]Waiting for new connection... [11:35:20] Sock 7.Parse request [11:35:20]Sock 7.Check first char [11:35:20]Sock 7.First char is OK [11:35:20]request: POST /json_proto HTTP/1.0 [11:35:20]Method: POST [11:35:20]URL: /json_proto [11:35:20]Method is POST - this is cgi request [11:35:20]url: /json_proto [11:35:20]query_string will be loaded in cgi processing [11:35:20]execute_cgi json_proto POST (null) [11:35:20]execute_cgi path=json_proto method=POST [11:35:20]POST find Content-Length [11:35:20]Host: 172.17.36.132:8080 [11:35:20]Content-Length: 848 [11:35:20]Content-Type: application/json [11:35:20] [11:35:20]POST finish read [11:35:20]Found Content-Length = 848 [11:35:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706680", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 21.820, "sum" : 1590.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1590.68 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:35:20]execute_script... [11:35: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)706680", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 21.820, "sum" : 1590.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1590.68 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:35:20]POST & json_proto [11:35:20]process_json_proto [11:35:20]json parsed OK: [11:35:20]protocol is kg_v1.0 [11:35:20]action value=close_receipt [11:35:20]process_action close_receipt [11:35:20]cmd_close_receipt [11:35:20]MH_GetDate [11:35:20]Write to MH i2c: F0 00 00 05 1E 12 [11:35:20]Write i2c OK [11:35:20]MH_I2C_Read... [11:35:20]Read from MH i2c: F0 [11:35:20]MH_I2C_Read... [11:35:20]Read from MH i2c: F0 09 00 [11:35:20]MH_I2C_Read... [11:35:20]Read from MH i2c: F0 09 00 05 1E 00 FD FB 5E 66 B2 22 B0 64 BF [11:35:20]GetLastDocTimeStamp 1717500913 [11:35:20]current date 1717500925 [11:35:20]FM_GetShiftState [11:35:20]SAM_PROTO_GetShiftState [11:35:20]wFMCommunicate request_size=4 [11:35:20]MH_SAM_APDU [11:35:20]CAPDU: 80 13 01 00 [11:35:20]Write to MH i2c: E2 08 00 06 1E 80 13 01 00 00 00 00 00 A1 [11:35:20]Write i2c OK [11:35:20]MH_I2C_Read... [11:35:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:35:20]Read from MH i2c: E2 [11:35:20]MH_I2C_Read... [11:35:20]Read from MH i2c: E2 0E 00 [11:35:20]MH_I2C_Read... [11:35:20]Read from MH i2c: E2 0E 00 06 1E 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 3D [11:35:20]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [11:35:20]wFMCommunicate OK [11:35:20]SAM_PROTO_GetShiftState done [11:35:20]FM_GetShiftState done [11:35:20]opened in 1717460590 [11:35:20]opened+sec_in_day 1717546990 [11:35:20]quantity*price = 159067 [11:35:20]sum+1 = 159069 [11:35:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1590.68 НСП 1% : 14.08 НДС 12% : 168.92 Наличными: 0.00 Безнал.: 1590.68 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 55 04.06.2024 11:35 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000965400 ФД: 68557 ФПД: 266882242414750 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T113525&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68557&fm=266882242414750&tin=02508201610067®Number=0000000000098096&sum=159068 [11:35:22]StoreToDocumentArchive [11:35:22]shift 325 fd 68557 [11:35:22]save to /storage/0325/doc_00068557 [11:35:22]save last doc name /storage/0325/doc_00068557 to /storage/kkm_last_doc_name [11:35:22]save OK [11:35:22]Clear old archive folders... [11:35:22]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:35:22]tlvbuf is 00A5CC90 [11:35:22]SAM_PROTO_ClearQueue [11:35:22]wFMCommunicate request_size=4 [11:35:22]MH_SAM_APDU [11:35:22]CAPDU: 80 09 00 00 [11:35:22]Write to MH i2c: E2 08 00 13 1E 80 09 00 00 00 00 00 00 A3 [11:35:22]Write i2c OK [11:35:22]MH_I2C_Read... [11:35:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:35:22]Read from MH i2c: E2 [11:35:22]MH_I2C_Read... [11:35:22]Read from MH i2c: E2 03 00 [11:35:22]MH_I2C_Read... [11:35:22]Read from MH i2c: E2 03 00 13 1E 00 90 00 A5 [11:35:22]RAPDU: 90 00 [11:35:22]wFMCommunicate OK [11:35:22]SAM_PROTO_ClearQueue done [11:35:22]KKMCreateOFDPacket [11:35:22]OFDProtocolAddRootSTLVToBuf [11:35:22]FM_MakeSignedData [11:35:22]FM_MakeSignedData [11:35:22]SAM_PROTO_SignData [11:35:22]wFMCommunicate request_size=4 [11:35:22]MH_SAM_APDU [11:35:22]CAPDU: 80 0D 01 02 [11:35:22]Write to MH i2c: E2 08 00 14 1E 80 0D 01 02 00 00 00 00 AB [11:35:22]Write i2c OK [11:35:22]MH_I2C_Read... [11:35:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:35:22]Read from MH i2c: E2 [11:35:22]MH_I2C_Read... [11:35:22]Read from MH i2c: E2 03 00 [11:35:22]MH_I2C_Read... [11:35:22]Read from MH i2c: E2 03 00 14 1E 00 90 00 A6 [11:35:22]RAPDU: 90 00 [11:35:22]wFMCommunicate OK [11:35:22]wFMCommunicate request_size=255 [11:35:22]MH_SAM_APDU [11:35:22]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 3C 55 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 5C 6D 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 6D 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 80 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 41 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 6D 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 FD FB 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 CD 0B 01 00 35 04 06 00 [11:35:22]Write to MH i2c: E2 02 01 15 1E 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 3C 55 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 5C 6D 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 6D 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 80 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 41 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 6D 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 FD FB 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 CD 0B 01 00 35 04 06 00 00 00 4A [11:35:22]Write i2c OK [11:35:22]MH_I2C_Read... [11:35:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:35:22]Read from MH i2c: E2 [11:35:22]MH_I2C_Read... [11:35:22]Read from MH i2c: E2 03 00 [11:35:22]MH_I2C_Read... [11:35:22]Read from MH i2c: E2 03 00 15 1E 00 90 00 A7 [11:35:22]RAPDU: 90 00 [11:35:22]wFMCommunicate OK [11:35:22]wFMCommunicate request_size=11 [11:35:22]MH_SAM_APDU [11:35:22]CAPDU: 80 0D 02 02 06 F2 BA 5D 41 88 9E [11:35:22]Write to MH i2c: E2 0E 00 16 1E 80 0D 02 02 06 00 F2 BA 5D 41 88 9E 00 00 2A [11:35:22]Write i2c OK [11:35:22]MH_I2C_Read... [11:35:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:35:22]Read from MH i2c: E2 [11:35:22]MH_I2C_Read... [11:35:22]Read from MH i2c: E2 03 00 [11:35:22]MH_I2C_Read... [11:35:22]Read from MH i2c: E2 03 00 16 1E 00 90 00 A8 [11:35:22]RAPDU: 90 00 [11:35:22]wFMCommunicate OK [11:35:22]wFMCommunicate request_size=4 [11:35:22]MH_SAM_APDU [11:35:22]CAPDU: 80 0D 03 02 [11:35:22]Write to MH i2c: E2 08 00 17 1E 80 0D 03 02 00 00 00 00 B0 [11:35:22]Write i2c OK [11:35:22]MH_I2C_Read... [11:35:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:35:22]Read from MH i2c: E2 [11:35:22]MH_I2C_Read... [11:35:22]Read from MH i2c: E2 0B 00 [11:35:22]MH_I2C_Read... [11:35:22]Read from MH i2c: E2 0B 00 17 1E 00 15 61 45 BB 65 B4 D5 0B 90 00 20 [11:35:22]RAPDU: 15 61 45 BB 65 B4 D5 0B 90 00 [11:35:22]wFMCommunicate OK [11:35:22]SAM_PROTO_SignData done [11:35:22]FM_MakeSignedData done [11:35:22]CreateOFDProtocolMessage [11:35:22]wFMCommunicate request_size=4 [11:35:22]MH_SAM_APDU [11:35:22]CAPDU: 80 11 00 00 [11:35:22]Write to MH i2c: E2 08 00 18 1E 80 11 00 00 00 00 00 00 B0 [11:35:22]Write i2c OK [11:35:22]MH_I2C_Read... [11:35:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:35:22]Read from MH i2c: E2 [11:35:22]MH_I2C_Read... [11:35:22]Read from MH i2c: E2 17 00 [11:35:22]MH_I2C_Read... [11:35:22]Read from MH i2c: E2 17 00 18 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 FB [11:35:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [11:35:22]wFMCommunicate OK [11:35:22]CreateOFDProtocolMessage done [11:35:22]OFDSenderStorePacket 68557 [11:35:22]StoreOFDPacket docnum=68557 [11:35:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 18 C0 08 01 EA 2E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 3C 55 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 5C 6D 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 6D 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 80 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 41 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 6D 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 FD FB 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 CD 0B 01 00 35 04 06 00 F2 BA 5D 41 88 9E 15 61 45 BB 65 B4 D5 0B [11:35:22]CheckFolder [11:35:22]dirname=/storage/ofd_packets [11:35:22]CheckFolder done [11:35:22]ProducePacketName [11:35:22]name=ofd_packets/00068557 [11:35:22]NVStorageSaveData ofd_packets/00068557 [11:35:22]File name is /storage/ofd_packets/00068557 [11:35:22]Write 302 bytes [11:35:22]NVStorageSaveData done [11:35:22]OFDSenderStorePacket done [11:35:22]KKMCreateOFDPacket done [11:35:22]NVStorageSaveData kkm_last_timestamp [11:35:22]File name is /storage/kkm_last_timestamp [11:35:22]Write 4 bytes [11:35:22]NVStorageSaveData done [11:35:22]ExternCall_PrintAddStr [11:35:22]wPrintStart [11:35:22]Write to MH i2c: 01 00 00 19 1E 37 [11:35:22]Write i2c OK [11:35:22]MH_I2C_Read... [11:35:22]Read from MH i2c: 01 [11:35:22]MH_I2C_Read... [11:35:22]Read from MH i2c: 01 07 00 [11:35:22]MH_I2C_Read... [11:35:22]Read from MH i2c: 01 07 00 19 1E 00 00 00 00 00 FF 0F 4C [11:35:22]RasterBufferAndPrint [11:35:22]line Счет N : (1)706680 [11:35:22]line ИНН: 02508201610067 [11:35:22]line Контрольно-Кассовый Чек [11:35:22]line ПРОДАЖА [11:35:22]line ТРК (МРК, ГНК) : 21 [11:35:22]line Товар: 2710194210 [11:35:22]line ДТ(л)-К-4 [11:35:22]line 21.820 * 72.90 [11:35:22]line = 1590.68 [11:35:22]line НДС 12% НСП 1% [11:35:22]line > о реализуемом товаре [11:35:22]line ИТОГО: 1590.68 [11:35:22]line НСП 1% : 14.08 [11:35:22]line НДС 12% : 168.92 [11:35:22]line Наличными: 0.00 [11:35:22]line Безнал.: 1590.68 [11:35:22]line Место: АЗС № 62 "Партнер Нефть" [11:35:22]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [11:35:22]line СНО: Общий режим [11:35:22]line Чек 55 04.06.2024 11:35 [11:35:22]line Смена: 325 ФФД: 1.0 [11:35:22]line ЗНМ: 0300000181 [11:35:22]line РНМ: 0000000000098096 [11:35:22]line Версия ККМ: 001 [11:35:22]line Платежная система: АКБ Кыргызстан [11:35:22]line ФМ: 0000000000965400 [11:35:22]line ФД: 68557 [11:35:22]line ФПД: 266882242414750 [11:35:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T113525&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68557&fm=266882242414750&tin=02508201610067®Number=0000000000098096&sum=159068 [11:35:22]written 0, free lines is 4095 [11:35:22]OFD Sender: Processing packet 68557 [packets to send 26, broken 25] [11:35:22]ProducePacketName [11:35:22]name=ofd_packets/00068557 [11:35:22]OFD Sender: To server: pG, [11:35:22]CommunicateWithHost lk.salyk.kg:30040 [11:35:22]ConnectInit lk.salyk.kg [11:35:22]Connected sock=10 [11:35:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 18 C0 08 01 EA 2E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 3C 55 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 5C 6D 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 6D 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 80 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 41 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 6D 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 FD FB 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 CD 0B 01 00 35 04 06 00 F2 BA 5D 41 88 9E 15 61 45 BB 65 B4 D5 0B [11:35:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 A4 7B 47 00 B9 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 39 36 35 34 30 30 10 04 04 00 CD 0B 01 00 F4 03 04 00 F5 A2 5E 66 B6 04 01 00 00 FC 7C 6A FB E0 69 6A F1 [11:35:22]CommunicateWithHost err = 0 [11:35:22]CheckOFDResponse [11:35:22]1017 (14) - 77093643461234 [11:35:22]1041 (16) - 0000000000965400 [11:35:22]1040 (4) - 68557 [11:35:22]1012 (4) - 04.06.2024 05:15 [11:35:22]1206 (1) - 0 [11:35:22]OFD Sender: Remove packet 68557 [11:35:22]ProducePacketName [11:35:22]name=ofd_packets/00068557 [11:35:22]NVStorageDeleteData [11:35:23]Write to MH i2c: 01 00 00 43 1E 61 [11:35:23]Write i2c OK [11:35:23]MH_I2C_Read... [11:35:23]Read from MH i2c: 01 [11:35:23]MH_I2C_Read... [11:35:23]Read from MH i2c: 01 07 00 [11:35:23]MH_I2C_Read... [11:35:23]Read from MH i2c: 01 07 00 43 1E 00 00 00 00 00 F2 0C 66 [11:35:23]RasterBufferAndPrint [11:35:23]line [11:35:23]line [11:35:23]line [11:35:23]line [11:35:23]line [11:35:23]written 0, free lines is 3324 [11:35:23]MH_Cut [11:35:23]Write to MH i2c: D1 01 00 4A 1E 01 3A [11:35:23]Write i2c OK [11:35:23]MH_I2C_Read... [11:35:23]Read from MH i2c: D1 [11:35:23]MH_I2C_Read... [11:35:23]Read from MH i2c: D1 01 00 [11:35:23]MH_I2C_Read... [11:35:23]Read from MH i2c: D1 01 00 4A 1E 00 39 [11:35:23]Write to MH i2c: 01 00 00 4B 1E 69 [11:35:23]Write i2c OK [11:35:23]MH_I2C_Read... [11:35:23]OFD Sender: No OFD packet to send [11:35:23]*** Cut start [11:35:23]*** Partial cut [11:35:23]*** CUTSNS_PIN = 1 [11:35:23]*** CUTSNS_PIN = 0 [11:35:24]*** Brake cut motor [11:35:24]Read from MH i2c: 01 [11:35:24]MH_I2C_Read... [11:35:24]*** Stop cut motor [11:35:24]*** Cut end [11:35:24]Read from MH i2c: 01 07 00 [11:35:24]MH_I2C_Read... [11:35:24]Read from MH i2c: 01 07 00 4B 1E 00 00 00 00 00 FF 0F 7E [11:35:24]process_action close_receipt done [11:35:24]requested_data is exist [11:35:24]produce_requested_data [11:35:24]requested_item fm.sn is exist - process it [11:35:24]wFMCommunicate request_size=4 [11:35:24]MH_SAM_APDU [11:35:24]CAPDU: 80 11 00 00 [11:35:24]Write to MH i2c: E2 08 00 4C 1E 80 11 00 00 00 00 00 00 E4 [11:35:24]Write i2c OK [11:35:24]MH_I2C_Read... [11:35:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:35:24]Read from MH i2c: E2 [11:35:24]MH_I2C_Read... [11:35:24]Read from MH i2c: E2 17 00 [11:35:24]MH_I2C_Read... [11:35:24]Read from MH i2c: E2 17 00 4C 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 2F [11:35:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [11:35:24]wFMCommunicate OK [11:35:24]requested_item fd.num is exist - process it [11:35:24]SAM_PROTO_GetFieldsCounters [11:35:24]wFMCommunicate request_size=4 [11:35:24]MH_SAM_APDU [11:35:24]CAPDU: 80 13 00 00 [11:35:24]Write to MH i2c: E2 08 00 4D 1E 80 13 00 00 00 00 00 00 E7 [11:35:24]Write i2c OK [11:35:24]MH_I2C_Read... [11:35:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:35:24]Read from MH i2c: E2 [11:35:24]MH_I2C_Read... [11:35:24]Read from MH i2c: E2 62 00 [11:35:24]MH_I2C_Read... [11:35:24]Read from MH i2c: E2 62 00 4D 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 CD 0B 01 00 0E 04 04 00 45 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 CB [11:35:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 CD 0B 01 00 0E 04 04 00 45 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 [11:35:24]wFMCommunicate OK [11:35:24]SAM_PROTO_GetFieldsCounters done [11:35:24]requested_item shift.num is exist - process it [11:35:24]requested_item shift.opened is exist - process it [11:35:24]req_shift_opened [11:35:24]FM_GetShiftState [11:35:24]SAM_PROTO_GetShiftState [11:35:24]wFMCommunicate request_size=4 [11:35:24]MH_SAM_APDU [11:35:24]CAPDU: 80 13 01 00 [11:35:24]Write to MH i2c: E2 08 00 4E 1E 80 13 01 00 00 00 00 00 E9 [11:35:24]Write i2c OK [11:35:24]MH_I2C_Read... [11:35:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:35:24]Read from MH i2c: E2 [11:35:24]MH_I2C_Read... [11:35:24]Read from MH i2c: E2 0E 00 [11:35:24]MH_I2C_Read... [11:35:24]Read from MH i2c: E2 0E 00 4E 1E 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 85 [11:35:24]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [11:35:24]wFMCommunicate OK [11:35:24]SAM_PROTO_GetShiftState done [11:35:24]FM_GetShiftState done [11:35:24]req_shift_opened done [11:35:24]requested_item shift.open_date is exist - process it [11:35:24]req_shift_open_date [11:35:24]req_shift_open_date done [11:35:24]produce_requested_data done [11:35:24]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68557,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [11:35:24]process_action_free close_receipt [11:35:24]json_value_free [11:35:24]json_value_free done [11:35:24]process_json_proto returns [11:35:24]Send response to host [11:35:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68557,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [11:35:24]free response buf [11:35:24]execute_script done [11:35:24]execute_script returns [11:35:24]free content buf [11:35:24]Sock 7.Close socket [11:35:24]Sock 7.Thread stoped [11:35:28]OFD Sender: No OFD packet to send [11:35:33]OFD Sender: No OFD packet to send [11:35:38]OFD Sender: No OFD packet to send [11:35:43]OFD Sender: No OFD packet to send [11:35:48]OFD Sender: No OFD packet to send [11:35:53]OFD Sender: No OFD packet to send [11:35:58]OFD Sender: No OFD packet to send [11:36:03]OFD Sender: No OFD packet to send [11:36:08]OFD Sender: No OFD packet to send [11:36:13]OFD Sender: No OFD packet to send [11:36:18]OFD Sender: No OFD packet to send [11:36:23]OFD Sender: No OFD packet to send [11:36:28]OFD Sender: No OFD packet to send [11:36:33]OFD Sender: No OFD packet to send [11:36:38]OFD Sender: No OFD packet to send [11:36:43]OFD Sender: No OFD packet to send [11:36:48]OFD Sender: No OFD packet to send [11:36:53]OFD Sender: No OFD packet to send [11:36:58]OFD Sender: No OFD packet to send [11:37:03]OFD Sender: No OFD packet to send [11:37:08]OFD Sender: No OFD packet to send [11:37:13]OFD Sender: No OFD packet to send [11:37:18]OFD Sender: No OFD packet to send [11:37:23]OFD Sender: No OFD packet to send [11:37:28]OFD Sender: No OFD packet to send [11:37:33]OFD Sender: No OFD packet to send [11:37:38]OFD Sender: No OFD packet to send [11:37:40]accept exits with 9 [11:37:40]New connection [11:37:40]New thread 3067227492 created [11:37:40]Thread 3067084132 joined [11:37:40]Waiting for new connection... [11:37:40] Sock 9.Parse request [11:37:40]Sock 9.Check first char [11:37:40]Sock 9.First char is OK [11:37:40]request: POST /json_proto HTTP/1.0 [11:37:40]Method: POST [11:37:40]URL: /json_proto [11:37:40]Method is POST - this is cgi request [11:37:40]url: /json_proto [11:37:40]query_string will be loaded in cgi processing [11:37:40]execute_cgi json_proto POST (null) [11:37:40]execute_cgi path=json_proto method=POST [11:37:40]POST find Content-Length [11:37:40]Host: 172.17.36.132:8080 [11:37:40]Content-Length: 843 [11:37:40]Content-Type: application/json [11:37:40] [11:37:40]POST finish read [11:37:40]Found Content-Length = 843 [11:37:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706682", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:37:40]execute_script... [11:37: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)706682", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:37:40]POST & json_proto [11:37:40]process_json_proto [11:37:40]json parsed OK: [11:37:40]protocol is kg_v1.0 [11:37:40]action value=close_receipt [11:37:40]process_action close_receipt [11:37:40]cmd_close_receipt [11:37:40]MH_GetDate [11:37:40]Write to MH i2c: F0 00 00 4F 1E 5C [11:37:40]Write i2c OK [11:37:40]MH_I2C_Read... [11:37:40]Read from MH i2c: F0 [11:37:40]MH_I2C_Read... [11:37:40]Read from MH i2c: F0 09 00 [11:37:40]MH_I2C_Read... [11:37:40]Read from MH i2c: F0 09 00 4F 1E 00 88 FC 5E 66 B2 22 B0 64 95 [11:37:40]GetLastDocTimeStamp 1717500925 [11:37:40]current date 1717501064 [11:37:40]FM_GetShiftState [11:37:40]SAM_PROTO_GetShiftState [11:37:40]wFMCommunicate request_size=4 [11:37:40]MH_SAM_APDU [11:37:40]CAPDU: 80 13 01 00 [11:37:40]Write to MH i2c: E2 08 00 50 1E 80 13 01 00 00 00 00 00 EB [11:37:40]Write i2c OK [11:37:40]MH_I2C_Read... [11:37:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:37:40]Read from MH i2c: E2 [11:37:40]MH_I2C_Read... [11:37:40]Read from MH i2c: E2 0E 00 [11:37:40]MH_I2C_Read... [11:37:40]Read from MH i2c: E2 0E 00 50 1E 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 87 [11:37:40]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [11:37:40]wFMCommunicate OK [11:37:40]SAM_PROTO_GetShiftState done [11:37:40]FM_GetShiftState done [11:37:40]opened in 1717460590 [11:37:40]opened+sec_in_day 1717546990 [11:37:40]quantity*price = 100015 [11:37:40]sum+1 = 100017 [11:37:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 56 04.06.2024 11:37 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000965400 ФД: 68558 ФПД: 201917092818195 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T113744&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68558&fm=201917092818195&tin=02508201610067®Number=0000000000098096&sum=100016 [11:37:41]StoreToDocumentArchive [11:37:41]shift 325 fd 68558 [11:37:41]save to /storage/0325/doc_00068558 [11:37:41]save last doc name /storage/0325/doc_00068558 to /storage/kkm_last_doc_name [11:37:41]save OK [11:37:41]Clear old archive folders... [11:37:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:37:41]tlvbuf is 00A41FC0 [11:37:41]SAM_PROTO_ClearQueue [11:37:41]wFMCommunicate request_size=4 [11:37:41]MH_SAM_APDU [11:37:41]CAPDU: 80 09 00 00 [11:37:41]Write to MH i2c: E2 08 00 5D 1E 80 09 00 00 00 00 00 00 ED [11:37:41]Write i2c OK [11:37:41]MH_I2C_Read... [11:37:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:37:41]Read from MH i2c: E2 [11:37:41]MH_I2C_Read... [11:37:41]Read from MH i2c: E2 03 00 [11:37:41]MH_I2C_Read... [11:37:41]Read from MH i2c: E2 03 00 5D 1E 00 90 00 EF [11:37:41]RAPDU: 90 00 [11:37:41]wFMCommunicate OK [11:37:41]SAM_PROTO_ClearQueue done [11:37:41]KKMCreateOFDPacket [11:37:41]OFDProtocolAddRootSTLVToBuf [11:37:41]FM_MakeSignedData [11:37:41]FM_MakeSignedData [11:37:41]SAM_PROTO_SignData [11:37:41]wFMCommunicate request_size=4 [11:37:41]MH_SAM_APDU [11:37:41]CAPDU: 80 0D 01 02 [11:37:41]Write to MH i2c: E2 08 00 5E 1E 80 0D 01 02 00 00 00 00 F5 [11:37:41]Write i2c OK [11:37:41]MH_I2C_Read... [11:37:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:37:42]Read from MH i2c: E2 [11:37:42]MH_I2C_Read... [11:37:42]Read from MH i2c: E2 03 00 [11:37:42]MH_I2C_Read... [11:37:42]Read from MH i2c: E2 03 00 5E 1E 00 90 00 F0 [11:37:42]RAPDU: 90 00 [11:37:42]wFMCommunicate OK [11:37:42]wFMCommunicate request_size=255 [11:37:42]MH_SAM_APDU [11:37: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 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 88 FC 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 CE 0B 01 00 35 04 06 00 B7 [11:37:42]Write to MH i2c: E2 02 01 5F 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 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 88 FC 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 CE 0B 01 00 35 04 06 00 B7 00 00 F3 [11:37:42]Write i2c OK [11:37:42]MH_I2C_Read... [11:37:42]Read from MH i2c: E2 [11:37:42]MH_I2C_Read... [11:37:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:37:42]Read from MH i2c: E2 03 00 [11:37:42]MH_I2C_Read... [11:37:42]Read from MH i2c: E2 03 00 5F 1E 00 90 00 F1 [11:37:42]RAPDU: 90 00 [11:37:42]wFMCommunicate OK [11:37:42]wFMCommunicate request_size=10 [11:37:42]MH_SAM_APDU [11:37:42]CAPDU: 80 0D 02 02 05 A4 7C 97 6D 13 [11:37:42]Write to MH i2c: E2 0D 00 60 1E 80 0D 02 02 05 00 A4 7C 97 6D 13 00 00 39 [11:37:42]Write i2c OK [11:37:42]MH_I2C_Read... [11:37:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:37:42]Read from MH i2c: E2 [11:37:42]MH_I2C_Read... [11:37:42]Read from MH i2c: E2 03 00 [11:37:42]MH_I2C_Read... [11:37:42]Read from MH i2c: E2 03 00 60 1E 00 90 00 F2 [11:37:42]RAPDU: 90 00 [11:37:42]wFMCommunicate OK [11:37:42]wFMCommunicate request_size=4 [11:37:42]MH_SAM_APDU [11:37:42]CAPDU: 80 0D 03 02 [11:37:42]Write to MH i2c: E2 08 00 61 1E 80 0D 03 02 00 00 00 00 FA [11:37:42]Write i2c OK [11:37:42]MH_I2C_Read... [11:37:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:37:42]Read from MH i2c: E2 [11:37:42]MH_I2C_Read... [11:37:42]Read from MH i2c: E2 0B 00 [11:37:42]MH_I2C_Read... [11:37:42]Read from MH i2c: E2 0B 00 61 1E 00 7E 84 2B CE 84 94 C2 81 90 00 51 [11:37:42]RAPDU: 7E 84 2B CE 84 94 C2 81 90 00 [11:37:42]wFMCommunicate OK [11:37:42]SAM_PROTO_SignData done [11:37:42]FM_MakeSignedData done [11:37:42]CreateOFDProtocolMessage [11:37:42]wFMCommunicate request_size=4 [11:37:42]MH_SAM_APDU [11:37:42]CAPDU: 80 11 00 00 [11:37:42]Write to MH i2c: E2 08 00 62 1E 80 11 00 00 00 00 00 00 FA [11:37:42]Write i2c OK [11:37:42]MH_I2C_Read... [11:37:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:37:42]Read from MH i2c: E2 [11:37:42]MH_I2C_Read... [11:37:42]Read from MH i2c: E2 17 00 [11:37:42]MH_I2C_Read... [11:37:42]Read from MH i2c: E2 17 00 62 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 45 [11:37:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [11:37:42]wFMCommunicate OK [11:37:42]CreateOFDProtocolMessage done [11:37:42]OFDSenderStorePacket 68558 [11:37:42]StoreOFDPacket docnum=68558 [11:37:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 DE 51 07 01 7B 82 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 88 FC 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 CE 0B 01 00 35 04 06 00 B7 A4 7C 97 6D 13 7E 84 2B CE 84 94 C2 81 [11:37:42]CheckFolder [11:37:42]dirname=/storage/ofd_packets [11:37:42]CheckFolder done [11:37:42]ProducePacketName [11:37:42]name=ofd_packets/00068558 [11:37:42]NVStorageSaveData ofd_packets/00068558 [11:37:42]File name is /storage/ofd_packets/00068558 [11:37:42]Write 301 bytes [11:37:42]NVStorageSaveData done [11:37:42]OFDSenderStorePacket done [11:37:42]KKMCreateOFDPacket done [11:37:42]NVStorageSaveData kkm_last_timestamp [11:37:42]File name is /storage/kkm_last_timestamp [11:37:42]Write 4 bytes [11:37:42]NVStorageSaveData done [11:37:42]ExternCall_PrintAddStr [11:37:42]wPrintStart [11:37:42]Write to MH i2c: 01 00 00 63 1E 81 [11:37:42]Write i2c OK [11:37:42]MH_I2C_Read... [11:37:42]Read from MH i2c: 01 [11:37:42]MH_I2C_Read... [11:37:42]Read from MH i2c: 01 07 00 [11:37:42]MH_I2C_Read... [11:37:42]Read from MH i2c: 01 07 00 63 1E 00 00 00 00 00 FF 0F 96 [11:37:42]RasterBufferAndPrint [11:37:42]line Счет N : (1)706682 [11:37:42]line ИНН: 02508201610067 [11:37:42]line Контрольно-Кассовый Чек [11:37:42]line ПРОДАЖА [11:37:42]line ТРК (МРК, ГНК) : 13 [11:37:42]line Товар: 2710124130 [11:37:42]line Аи-92-К-4 [11:37:42]line 14.950 * 66.90 [11:37:42]line = 1000.16 [11:37:42]line НДС 12% НСП 1% [11:37:42]line > о реализуемом товаре [11:37:42]line ИТОГО: 1000.16 [11:37:42]line НСП 1% : 8.85 [11:37:42]line НДС 12% : 106.21 [11:37:42]line Наличными: 0.00 [11:37:42]line Безнал.: 1000.16 [11:37:42]line Место: АЗС № 62 "Партнер Нефть" [11:37:42]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [11:37:42]line СНО: Общий режим [11:37:42]line Чек 56 04.06.2024 11:37 [11:37:42]line Смена: 325 ФФД: 1.0 [11:37:42]line ЗНМ: 0300000181 [11:37:42]line РНМ: 0000000000098096 [11:37:42]line Версия ККМ: 001 [11:37:42]line Платежная система: АКБ Кыргызстан [11:37:42]line ФМ: 0000000000965400 [11:37:42]line ФД: 68558 [11:37:42]line ФПД: 201917092818195 [11:37:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T113744&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68558&fm=201917092818195&tin=02508201610067®Number=0000000000098096&sum=100016 [11:37:42]written 0, free lines is 4095 [11:37:42]OFD Sender: Processing packet 68558 [packets to send 26, broken 25] [11:37:42]ProducePacketName [11:37:42]name=ofd_packets/00068558 [11:37:42]OFD Sender: To server: pG, [11:37:42]CommunicateWithHost lk.salyk.kg:30040 [11:37:42]ConnectInit lk.salyk.kg [11:37:42]Connected sock=10 [11:37:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 DE 51 07 01 7B 82 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 88 FC 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 CE 0B 01 00 35 04 06 00 B7 A4 7C 97 6D 13 7E 84 2B CE 84 94 C2 81 [11:37:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 5A DF 47 00 AB AC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 CE 0B 01 00 F4 03 04 00 81 A3 5E 66 B6 04 01 00 00 DB 74 1C 7B 3E 83 6E 8E [11:37:43]CommunicateWithHost err = 0 [11:37:43]CheckOFDResponse [11:37:43]1017 (14) - 77093643461234 [11:37:43]1041 (16) - 0000000000965400 [11:37:43]1040 (4) - 68558 [11:37:43]1012 (4) - 04.06.2024 05:17 [11:37:43]1206 (1) - 0 [11:37:43]OFD Sender: Remove packet 68558 [11:37:43]ProducePacketName [11:37:43]name=ofd_packets/00068558 [11:37:43]NVStorageDeleteData [11:37:43]Write to MH i2c: 01 00 00 8D 1E AB [11:37:43]Write i2c OK [11:37:43]MH_I2C_Read... [11:37:43]Read from MH i2c: 01 [11:37:43]MH_I2C_Read... [11:37:43]Read from MH i2c: 01 07 00 [11:37:43]MH_I2C_Read... [11:37:43]Read from MH i2c: 01 07 00 8D 1E 00 00 00 00 00 EF 0C AD [11:37:43]RasterBufferAndPrint [11:37:43]line [11:37:43]line [11:37:43]line [11:37:43]line [11:37:43]line [11:37:43]written 0, free lines is 3318 [11:37:43]MH_Cut [11:37:43]Write to MH i2c: D1 01 00 94 1E 01 84 [11:37:43]Write i2c OK [11:37:43]MH_I2C_Read... [11:37:43]Read from MH i2c: D1 [11:37:43]MH_I2C_Read... [11:37:43]Read from MH i2c: D1 01 00 [11:37:43]MH_I2C_Read... [11:37:43]Read from MH i2c: D1 01 00 94 1E 00 83 [11:37:43]Write to MH i2c: 01 00 00 95 1E B3 [11:37:43]Write i2c OK [11:37:43]MH_I2C_Read... [11:37:43]OFD Sender: No OFD packet to send [11:37:44]*** Cut start [11:37:44]*** Partial cut [11:37:44]*** CUTSNS_PIN = 1 [11:37:44]*** CUTSNS_PIN = 0 [11:37:44]*** Brake cut motor [11:37:44]Read from MH i2c: 01 [11:37:44]MH_I2C_Read... [11:37:44]*** Stop cut motor [11:37:44]*** Cut end [11:37:44]Read from MH i2c: 01 07 00 [11:37:44]MH_I2C_Read... [11:37:44]Read from MH i2c: 01 07 00 95 1E 00 00 00 00 00 FF 0F C8 [11:37:44]process_action close_receipt done [11:37:44]requested_data is exist [11:37:44]produce_requested_data [11:37:44]requested_item fm.sn is exist - process it [11:37:44]wFMCommunicate request_size=4 [11:37:44]MH_SAM_APDU [11:37:44]CAPDU: 80 11 00 00 [11:37:44]Write to MH i2c: E2 08 00 96 1E 80 11 00 00 00 00 00 00 2E [11:37:44]Write i2c OK [11:37:44]MH_I2C_Read... [11:37:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:37:44]Read from MH i2c: E2 [11:37:44]MH_I2C_Read... [11:37:44]Read from MH i2c: E2 17 00 [11:37:44]MH_I2C_Read... [11:37:44]Read from MH i2c: E2 17 00 96 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 79 [11:37:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [11:37:44]wFMCommunicate OK [11:37:44]requested_item fd.num is exist - process it [11:37:44]SAM_PROTO_GetFieldsCounters [11:37:44]wFMCommunicate request_size=4 [11:37:44]MH_SAM_APDU [11:37:44]CAPDU: 80 13 00 00 [11:37:44]Write to MH i2c: E2 08 00 97 1E 80 13 00 00 00 00 00 00 31 [11:37:44]Write i2c OK [11:37:44]MH_I2C_Read... [11:37:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:37:44]Read from MH i2c: E2 [11:37:44]MH_I2C_Read... [11:37:44]Read from MH i2c: E2 62 00 [11:37:44]MH_I2C_Read... [11:37:44]Read from MH i2c: E2 62 00 97 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 CE 0B 01 00 0E 04 04 00 45 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 19 [11:37:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 CE 0B 01 00 0E 04 04 00 45 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 [11:37:44]wFMCommunicate OK [11:37:44]SAM_PROTO_GetFieldsCounters done [11:37:44]requested_item shift.num is exist - process it [11:37:44]requested_item shift.opened is exist - process it [11:37:44]req_shift_opened [11:37:44]FM_GetShiftState [11:37:44]SAM_PROTO_GetShiftState [11:37:44]wFMCommunicate request_size=4 [11:37:44]MH_SAM_APDU [11:37:44]CAPDU: 80 13 01 00 [11:37:44]Write to MH i2c: E2 08 00 98 1E 80 13 01 00 00 00 00 00 33 [11:37:44]Write i2c OK [11:37:44]MH_I2C_Read... [11:37:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:37:44]Read from MH i2c: E2 [11:37:44]MH_I2C_Read... [11:37:44]Read from MH i2c: E2 0E 00 [11:37:44]MH_I2C_Read... [11:37:44]Read from MH i2c: E2 0E 00 98 1E 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 CF [11:37:44]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [11:37:44]wFMCommunicate OK [11:37:44]SAM_PROTO_GetShiftState done [11:37:44]FM_GetShiftState done [11:37:44]req_shift_opened done [11:37:44]requested_item shift.open_date is exist - process it [11:37:44]req_shift_open_date [11:37:44]req_shift_open_date done [11:37:44]produce_requested_data done [11:37:44]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68558,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [11:37:44]process_action_free close_receipt [11:37:44]json_value_free [11:37:44]json_value_free done [11:37:44]process_json_proto returns [11:37:44]Send response to host [11:37:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68558,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [11:37:44]free response buf [11:37:44]execute_script done [11:37:44]execute_script returns [11:37:44]free content buf [11:37:44]Sock 9.Close socket [11:37:44]Sock 9.Thread stoped [11:37:48]OFD Sender: No OFD packet to send [11:37:53]OFD Sender: No OFD packet to send [11:37:58]OFD Sender: No OFD packet to send [11:38:03]OFD Sender: No OFD packet to send [11:38:08]OFD Sender: No OFD packet to send [11:38:13]OFD Sender: No OFD packet to send [11:38:18]OFD Sender: No OFD packet to send [11:38:23]OFD Sender: No OFD packet to send [11:38:28]OFD Sender: No OFD packet to send [11:38:33]OFD Sender: No OFD packet to send [11:38:38]OFD Sender: No OFD packet to send [11:38:39]accept exits with 7 [11:38:39]New connection [11:38:39]New thread 3067084132 created [11:38:39]Thread 3067227492 joined [11:38:39]Waiting for new connection... [11:38:39] Sock 7.Parse request [11:38:39]Sock 7.Check first char [11:38:39]Sock 7.First char is OK [11:38:39]request: POST /json_proto HTTP/1.0 [11:38:39]Method: POST [11:38:39]URL: /json_proto [11:38:39]Method is POST - this is cgi request [11:38:39]url: /json_proto [11:38:39]query_string will be loaded in cgi processing [11:38:39]execute_cgi json_proto POST (null) [11:38:39]execute_cgi path=json_proto method=POST [11:38:39]POST find Content-Length [11:38:39]Host: 172.17.36.132:8080 [11:38:39]Content-Length: 677 [11:38:39]Content-Type: application/json [11:38:39] [11:38:39]POST finish read [11:38:39]Found Content-Length = 677 [11:38:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706684", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 6.770, "sum" : 500.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:38:39]execute_script... [11:38: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)706684", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 6.770, "sum" : 500.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:38:39]POST & json_proto [11:38:39]process_json_proto [11:38:39]json parsed OK: [11:38:39]protocol is kg_v1.0 [11:38:39]action value=close_receipt [11:38:39]process_action close_receipt [11:38:39]cmd_close_receipt [11:38:39]MH_GetDate [11:38:39]Write to MH i2c: F0 00 00 99 1E A6 [11:38:39]Write i2c OK [11:38:39]MH_I2C_Read... [11:38:39]Read from MH i2c: F0 [11:38:39]MH_I2C_Read... [11:38:39]Read from MH i2c: F0 09 00 [11:38:39]MH_I2C_Read... [11:38:39]Read from MH i2c: F0 09 00 99 1E 00 C3 FC 5E 66 B2 22 B0 64 1A [11:38:39]GetLastDocTimeStamp 1717501064 [11:38:39]current date 1717501123 [11:38:39]FM_GetShiftState [11:38:39]SAM_PROTO_GetShiftState [11:38:39]wFMCommunicate request_size=4 [11:38:39]MH_SAM_APDU [11:38:39]CAPDU: 80 13 01 00 [11:38:39]Write to MH i2c: E2 08 00 9A 1E 80 13 01 00 00 00 00 00 35 [11:38:39]Write i2c OK [11:38:39]MH_I2C_Read... [11:38:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:38:39]Read from MH i2c: E2 [11:38:39]MH_I2C_Read... [11:38:39]Read from MH i2c: E2 0E 00 [11:38:39]MH_I2C_Read... [11:38:39]Read from MH i2c: E2 0E 00 9A 1E 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 D1 [11:38:39]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [11:38:39]wFMCommunicate OK [11:38:39]SAM_PROTO_GetShiftState done [11:38:39]FM_GetShiftState done [11:38:39]opened in 1717460590 [11:38:39]opened+sec_in_day 1717546990 [11:38:39]quantity*price = 50030 [11:38:39]sum+1 = 50031 [11:38:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.30 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 57 04.06.2024 11:38 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68559 ФПД: 180474379901297 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T113843&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68559&fm=180474379901297&tin=02508201610067®Number=0000000000098096&sum=50000 [11:38:40]StoreToDocumentArchive [11:38:40]shift 325 fd 68559 [11:38:40]save to /storage/0325/doc_00068559 [11:38:40]save last doc name /storage/0325/doc_00068559 to /storage/kkm_last_doc_name [11:38:40]save OK [11:38:40]Clear old archive folders... [11:38:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:38:40]tlvbuf is B6F1DA00 [11:38:40]SAM_PROTO_ClearQueue [11:38:40]wFMCommunicate request_size=4 [11:38:40]MH_SAM_APDU [11:38:40]CAPDU: 80 09 00 00 [11:38:40]Write to MH i2c: E2 08 00 A7 1E 80 09 00 00 00 00 00 00 37 [11:38:40]Write i2c OK [11:38:40]MH_I2C_Read... [11:38:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:38:40]Read from MH i2c: E2 [11:38:40]MH_I2C_Read... [11:38:40]Read from MH i2c: E2 03 00 [11:38:40]MH_I2C_Read... [11:38:40]Read from MH i2c: E2 03 00 A7 1E 00 90 00 39 [11:38:40]RAPDU: 90 00 [11:38:40]wFMCommunicate OK [11:38:40]SAM_PROTO_ClearQueue done [11:38:40]KKMCreateOFDPacket [11:38:40]OFDProtocolAddRootSTLVToBuf [11:38:40]FM_MakeSignedData [11:38:40]FM_MakeSignedData [11:38:40]SAM_PROTO_SignData [11:38:40]wFMCommunicate request_size=4 [11:38:40]MH_SAM_APDU [11:38:40]CAPDU: 80 0D 01 02 [11:38:40]Write to MH i2c: E2 08 00 A8 1E 80 0D 01 02 00 00 00 00 3F [11:38:40]Write i2c OK [11:38:40]MH_I2C_Read... [11:38:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:38:40]Read from MH i2c: E2 [11:38:40]MH_I2C_Read... [11:38:40]Read from MH i2c: E2 03 00 [11:38:40]MH_I2C_Read... [11:38:40]Read from MH i2c: E2 03 00 A8 1E 00 90 00 3A [11:38:40]RAPDU: 90 00 [11:38:40]wFMCommunicate OK [11:38:40]wFMCommunicate request_size=255 [11:38:40]MH_SAM_APDU [11:38: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 72 1A 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6E C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 C3 FC 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 CF 0B 01 00 35 04 06 00 A4 [11:38:40]Write to MH i2c: E2 02 01 A9 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 72 1A 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6E C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 C3 FC 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 CF 0B 01 00 35 04 06 00 A4 00 00 3B [11:38:40]Write i2c OK [11:38:40]MH_I2C_Read... [11:38:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:38:40]Read from MH i2c: E2 [11:38:40]MH_I2C_Read... [11:38:40]Read from MH i2c: E2 03 00 [11:38:40]MH_I2C_Read... [11:38:40]Read from MH i2c: E2 03 00 A9 1E 00 90 00 3B [11:38:40]RAPDU: 90 00 [11:38:40]wFMCommunicate OK [11:38:40]wFMCommunicate request_size=10 [11:38:40]MH_SAM_APDU [11:38:40]CAPDU: 80 0D 02 02 05 23 F7 4E 19 71 [11:38:40]Write to MH i2c: E2 0D 00 AA 1E 80 0D 02 02 05 00 23 F7 4E 19 71 00 00 3E [11:38:40]Write i2c OK [11:38:40]MH_I2C_Read... [11:38:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:38:40]Read from MH i2c: E2 [11:38:40]MH_I2C_Read... [11:38:40]Read from MH i2c: E2 03 00 [11:38:40]MH_I2C_Read... [11:38:40]Read from MH i2c: E2 03 00 AA 1E 00 90 00 3C [11:38:40]RAPDU: 90 00 [11:38:40]wFMCommunicate OK [11:38:40]wFMCommunicate request_size=4 [11:38:40]MH_SAM_APDU [11:38:40]CAPDU: 80 0D 03 02 [11:38:40]Write to MH i2c: E2 08 00 AB 1E 80 0D 03 02 00 00 00 00 44 [11:38:40]Write i2c OK [11:38:40]MH_I2C_Read... [11:38:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:38:40]Read from MH i2c: E2 [11:38:40]MH_I2C_Read... [11:38:40]Read from MH i2c: E2 0B 00 [11:38:40]MH_I2C_Read... [11:38:40]Read from MH i2c: E2 0B 00 AB 1E 00 E6 F7 1B B7 9C 57 3C AF 90 00 D2 [11:38:40]RAPDU: E6 F7 1B B7 9C 57 3C AF 90 00 [11:38:40]wFMCommunicate OK [11:38:40]SAM_PROTO_SignData done [11:38:40]FM_MakeSignedData done [11:38:40]CreateOFDProtocolMessage [11:38:40]wFMCommunicate request_size=4 [11:38:40]MH_SAM_APDU [11:38:40]CAPDU: 80 11 00 00 [11:38:40]Write to MH i2c: E2 08 00 AC 1E 80 11 00 00 00 00 00 00 44 [11:38:40]Write i2c OK [11:38:40]MH_I2C_Read... [11:38:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:38:40]Read from MH i2c: E2 [11:38:40]MH_I2C_Read... [11:38:40]Read from MH i2c: E2 17 00 [11:38:40]MH_I2C_Read... [11:38:40]Read from MH i2c: E2 17 00 AC 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 8F [11:38:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [11:38:40]wFMCommunicate OK [11:38:40]CreateOFDProtocolMessage done [11:38:40]OFDSenderStorePacket 68559 [11:38:40]StoreOFDPacket docnum=68559 [11:38:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 B0 B4 07 01 51 DB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 72 1A 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6E C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 C3 FC 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 CF 0B 01 00 35 04 06 00 A4 23 F7 4E 19 71 E6 F7 1B B7 9C 57 3C AF [11:38:40]CheckFolder [11:38:40]dirname=/storage/ofd_packets [11:38:40]CheckFolder done [11:38:40]ProducePacketName [11:38:40]name=ofd_packets/00068559 [11:38:40]NVStorageSaveData ofd_packets/00068559 [11:38:40]File name is /storage/ofd_packets/00068559 [11:38:40]Write 301 bytes [11:38:40]NVStorageSaveData done [11:38:40]OFDSenderStorePacket done [11:38:40]KKMCreateOFDPacket done [11:38:40]NVStorageSaveData kkm_last_timestamp [11:38:40]File name is /storage/kkm_last_timestamp [11:38:40]Write 4 bytes [11:38:40]NVStorageSaveData done [11:38:40]ExternCall_PrintAddStr [11:38:40]wPrintStart [11:38:40]Write to MH i2c: 01 00 00 AD 1E CB [11:38:40]Write i2c OK [11:38:40]MH_I2C_Read... [11:38:40]Read from MH i2c: 01 [11:38:40]MH_I2C_Read... [11:38:40]Read from MH i2c: 01 07 00 [11:38:40]MH_I2C_Read... [11:38:40]Read from MH i2c: 01 07 00 AD 1E 00 00 00 00 00 FF 0F E0 [11:38:40]RasterBufferAndPrint [11:38:40]line Счет N : (1)706684 [11:38:40]line ИНН: 02508201610067 [11:38:40]line Контрольно-Кассовый Чек [11:38:40]line ПРОДАЖА [11:38:40]line ТРК (МРК, ГНК) : 33 [11:38:40]line Товар: 2710124500 [11:38:40]line Аи-95-К-5 [11:38:40]line 6.770 * 73.90 [11:38:40]line = 500.30 [11:38:40]line НДС 12% НСП 1% [11:38:40]line > о реализуемом товаре [11:38:40]line ОКРУГЛЕНИЕ: -0.30 [11:38:40]line ИТОГО: 500.00 [11:38:40]line Внесено: 500.00 [11:38:40]line СДАЧА: 0.00 [11:38:40]line НСП 1% : 4.43 [11:38:40]line НДС 12% : 53.13 [11:38:40]line Наличными: 500.00 [11:38:40]line Безнал.: 0.00 [11:38:40]line Место: АЗС № 62 "Партнер Нефть" [11:38:40]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [11:38:40]line СНО: Общий режим [11:38:40]line Чек 57 04.06.2024 11:38 [11:38:40]line Смена: 325 ФФД: 1.0 [11:38:40]line ЗНМ: 0300000181 [11:38:40]line РНМ: 0000000000098096 [11:38:40]line Версия ККМ: 001 [11:38:40]line ФМ: 0000000000965400 [11:38:40]line ФД: 68559 [11:38:40]line ФПД: 180474379901297 [11:38:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T113843&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68559&fm=180474379901297&tin=02508201610067®Number=0000000000098096&sum=50000 [11:38:41]OFD Sender: Processing packet 68559 [packets to send 26, broken 25] [11:38:41]ProducePacketName [11:38:41]name=ofd_packets/00068559 [11:38:41]OFD Sender: To server: pG, [11:38:41]CommunicateWithHost lk.salyk.kg:30040 [11:38:41]ConnectInit lk.salyk.kg [11:38:41]written 0, free lines is 4095 [11:38:41]Connected sock=10 [11:38:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 B0 B4 07 01 51 DB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 72 1A 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6E C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 C3 FC 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 CF 0B 01 00 35 04 06 00 A4 23 F7 4E 19 71 E6 F7 1B B7 9C 57 3C AF [11:38:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 39 CD 47 00 77 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 39 36 35 34 30 30 10 04 04 00 CF 0B 01 00 F4 03 04 00 BC A3 5E 66 B6 04 01 00 00 42 EB 5C 23 30 DC 7E F6 [11:38:41]CommunicateWithHost err = 0 [11:38:41]CheckOFDResponse [11:38:41]1017 (14) - 77093643461234 [11:38:41]1041 (16) - 0000000000965400 [11:38:41]1040 (4) - 68559 [11:38:41]1012 (4) - 04.06.2024 05:18 [11:38:41]1206 (1) - 0 [11:38:41]OFD Sender: Remove packet 68559 [11:38:41]ProducePacketName [11:38:41]name=ofd_packets/00068559 [11:38:41]NVStorageDeleteData [11:38:41]Write to MH i2c: 01 00 00 D8 1E F6 [11:38:41]Write i2c OK [11:38:41]MH_I2C_Read... [11:38:41]Read from MH i2c: 01 [11:38:41]MH_I2C_Read... [11:38:41]Read from MH i2c: 01 07 00 [11:38:41]MH_I2C_Read... [11:38:41]Read from MH i2c: 01 07 00 D8 1E 00 00 00 00 00 D4 0C DD [11:38:41]RasterBufferAndPrint [11:38:41]line [11:38:41]line [11:38:41]line [11:38:41]line [11:38:41]line [11:38:41]written 0, free lines is 3292 [11:38:41]MH_Cut [11:38:41]Write to MH i2c: D1 01 00 DF 1E 01 CF [11:38:41]Write i2c OK [11:38:41]MH_I2C_Read... [11:38:41]Read from MH i2c: D1 [11:38:41]MH_I2C_Read... [11:38:41]Read from MH i2c: D1 01 00 [11:38:41]MH_I2C_Read... [11:38:41]Read from MH i2c: D1 01 00 DF 1E 00 CE [11:38:41]Write to MH i2c: 01 00 00 E0 1E FE [11:38:41]Write i2c OK [11:38:41]MH_I2C_Read... [11:38:41]OFD Sender: No OFD packet to send [11:38:42]*** Cut start [11:38:42]*** Partial cut [11:38:42]*** CUTSNS_PIN = 1 [11:38:42]*** CUTSNS_PIN = 0 [11:38:42]*** Brake cut motor [11:38:43]Read from MH i2c: 01 [11:38:43]MH_I2C_Read... [11:38:43]*** Stop cut motor [11:38:43]*** Cut end [11:38:43]Read from MH i2c: 01 07 00 [11:38:43]MH_I2C_Read... [11:38:43]Read from MH i2c: 01 07 00 E0 1E 00 00 00 00 00 FF 0F 13 [11:38:43]process_action close_receipt done [11:38:43]requested_data is exist [11:38:43]produce_requested_data [11:38:43]requested_item fm.sn is exist - process it [11:38:43]wFMCommunicate request_size=4 [11:38:43]MH_SAM_APDU [11:38:43]CAPDU: 80 11 00 00 [11:38:43]Write to MH i2c: E2 08 00 E1 1E 80 11 00 00 00 00 00 00 79 [11:38:43]Write i2c OK [11:38:43]MH_I2C_Read... [11:38:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:38:43]Read from MH i2c: E2 [11:38:43]MH_I2C_Read... [11:38:43]Read from MH i2c: E2 17 00 [11:38:43]MH_I2C_Read... [11:38:43]Read from MH i2c: E2 17 00 E1 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 C4 [11:38:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [11:38:43]wFMCommunicate OK [11:38:43]requested_item fd.num is exist - process it [11:38:43]SAM_PROTO_GetFieldsCounters [11:38:43]wFMCommunicate request_size=4 [11:38:43]MH_SAM_APDU [11:38:43]CAPDU: 80 13 00 00 [11:38:43]Write to MH i2c: E2 08 00 E2 1E 80 13 00 00 00 00 00 00 7C [11:38:43]Write i2c OK [11:38:43]MH_I2C_Read... [11:38:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:38:43]Read from MH i2c: E2 [11:38:43]MH_I2C_Read... [11:38:43]Read from MH i2c: E2 62 00 [11:38:43]MH_I2C_Read... [11:38:43]Read from MH i2c: E2 62 00 E2 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 CF 0B 01 00 0E 04 04 00 45 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 68 [11:38:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 CF 0B 01 00 0E 04 04 00 45 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 [11:38:43]wFMCommunicate OK [11:38:43]SAM_PROTO_GetFieldsCounters done [11:38:43]requested_item shift.num is exist - process it [11:38:43]requested_item shift.opened is exist - process it [11:38:43]req_shift_opened [11:38:43]FM_GetShiftState [11:38:43]SAM_PROTO_GetShiftState [11:38:43]wFMCommunicate request_size=4 [11:38:43]MH_SAM_APDU [11:38:43]CAPDU: 80 13 01 00 [11:38:43]Write to MH i2c: E2 08 00 E3 1E 80 13 01 00 00 00 00 00 7E [11:38:43]Write i2c OK [11:38:43]MH_I2C_Read... [11:38:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:38:43]Read from MH i2c: E2 [11:38:43]MH_I2C_Read... [11:38:43]Read from MH i2c: E2 0E 00 [11:38:43]MH_I2C_Read... [11:38:43]Read from MH i2c: E2 0E 00 E3 1E 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 1A [11:38:43]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [11:38:43]wFMCommunicate OK [11:38:43]SAM_PROTO_GetShiftState done [11:38:43]FM_GetShiftState done [11:38:43]req_shift_opened done [11:38:43]requested_item shift.open_date is exist - process it [11:38:43]req_shift_open_date [11:38:43]req_shift_open_date done [11:38:43]produce_requested_data done [11:38:43]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68559,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [11:38:43]process_action_free close_receipt [11:38:43]json_value_free [11:38:43]json_value_free done [11:38:43]process_json_proto returns [11:38:43]Send response to host [11:38:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68559,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [11:38:43]free response buf [11:38:43]execute_script done [11:38:43]execute_script returns [11:38:43]free content buf [11:38:43]Sock 7.Close socket [11:38:43]Sock 7.Thread stoped [11:38:46]OFD Sender: No OFD packet to send [11:38:51]OFD Sender: No OFD packet to send [11:38:56]OFD Sender: No OFD packet to send [11:39:01]OFD Sender: No OFD packet to send [11:39:06]OFD Sender: No OFD packet to send [11:39:11]OFD Sender: No OFD packet to send [11:39:16]OFD Sender: No OFD packet to send [11:39:21]OFD Sender: No OFD packet to send [11:39:26]OFD Sender: No OFD packet to send [11:39:31]OFD Sender: No OFD packet to send [11:39:37]OFD Sender: No OFD packet to send [11:39:42]OFD Sender: No OFD packet to send [11:39:47]OFD Sender: No OFD packet to send [11:39:52]OFD Sender: No OFD packet to send [11:39:57]OFD Sender: No OFD packet to send [11:40:02]OFD Sender: No OFD packet to send [11:40:07]OFD Sender: No OFD packet to send [11:40:12]OFD Sender: No OFD packet to send [11:40:17]OFD Sender: No OFD packet to send [11:40:18]accept exits with 9 [11:40:18]New connection [11:40:18]New thread 3067227492 created [11:40:18]Thread 3067084132 joined [11:40:18]Waiting for new connection... [11:40:18] Sock 9.Parse request [11:40:18]Sock 9.Check first char [11:40:18]Sock 9.First char is OK [11:40:18]request: POST /json_proto HTTP/1.0 [11:40:18]Method: POST [11:40:18]URL: /json_proto [11:40:18]Method is POST - this is cgi request [11:40:18]url: /json_proto [11:40:18]query_string will be loaded in cgi processing [11:40:18]execute_cgi json_proto POST (null) [11:40:18]execute_cgi path=json_proto method=POST [11:40:18]POST find Content-Length [11:40:18]Host: 172.17.36.132:8080 [11:40:18]Content-Length: 677 [11:40:18]Content-Type: application/json [11:40:18] [11:40:18]POST finish read [11:40:18]Found Content-Length = 677 [11:40:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706685", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:40:18]execute_script... [11:40: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)706685", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:40:18]POST & json_proto [11:40:18]process_json_proto [11:40:18]json parsed OK: [11:40:18]protocol is kg_v1.0 [11:40:18]action value=close_receipt [11:40:18]process_action close_receipt [11:40:18]cmd_close_receipt [11:40:18]MH_GetDate [11:40:18]Write to MH i2c: F0 00 00 E4 1E F1 [11:40:18]Write i2c OK [11:40:18]MH_I2C_Read... [11:40:18]Read from MH i2c: F0 [11:40:18]MH_I2C_Read... [11:40:18]Read from MH i2c: F0 09 00 [11:40:18]MH_I2C_Read... [11:40:18]Read from MH i2c: F0 09 00 E4 1E 00 26 FD 5E 66 B2 22 B0 64 C9 [11:40:18]GetLastDocTimeStamp 1717501123 [11:40:18]current date 1717501222 [11:40:18]FM_GetShiftState [11:40:18]SAM_PROTO_GetShiftState [11:40:18]wFMCommunicate request_size=4 [11:40:18]MH_SAM_APDU [11:40:18]CAPDU: 80 13 01 00 [11:40:18]Write to MH i2c: E2 08 00 E5 1E 80 13 01 00 00 00 00 00 80 [11:40:18]Write i2c OK [11:40:18]MH_I2C_Read... [11:40:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:40:18]Read from MH i2c: E2 [11:40:18]MH_I2C_Read... [11:40:18]Read from MH i2c: E2 0E 00 [11:40:18]MH_I2C_Read... [11:40:18]Read from MH i2c: E2 0E 00 E5 1E 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 1C [11:40:18]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [11:40:18]wFMCommunicate OK [11:40:18]SAM_PROTO_GetShiftState done [11:40:18]FM_GetShiftState done [11:40:18]opened in 1717460590 [11:40:18]opened+sec_in_day 1717546990 [11:40:18]quantity*price = 30038 [11:40:18]sum+1 = 30039 [11:40:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 58 04.06.2024 11:40 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68560 ФПД: 162320266047013 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T114022&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68560&fm=162320266047013&tin=02508201610067®Number=0000000000098096&sum=30000 [11:40:19]StoreToDocumentArchive [11:40:19]shift 325 fd 68560 [11:40:19]save to /storage/0325/doc_00068560 [11:40:19]save last doc name /storage/0325/doc_00068560 to /storage/kkm_last_doc_name [11:40:19]save OK [11:40:19]Clear old archive folders... [11:40:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:40:19]tlvbuf is 00A1ADE0 [11:40:19]SAM_PROTO_ClearQueue [11:40:19]wFMCommunicate request_size=4 [11:40:19]MH_SAM_APDU [11:40:19]CAPDU: 80 09 00 00 [11:40:19]Write to MH i2c: E2 08 00 F2 1E 80 09 00 00 00 00 00 00 82 [11:40:19]Write i2c OK [11:40:19]MH_I2C_Read... [11:40:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:40:19]Read from MH i2c: E2 [11:40:19]MH_I2C_Read... [11:40:19]Read from MH i2c: E2 03 00 [11:40:19]MH_I2C_Read... [11:40:19]Read from MH i2c: E2 03 00 F2 1E 00 90 00 84 [11:40:19]RAPDU: 90 00 [11:40:19]wFMCommunicate OK [11:40:19]SAM_PROTO_ClearQueue done [11:40:19]KKMCreateOFDPacket [11:40:19]OFDProtocolAddRootSTLVToBuf [11:40:19]FM_MakeSignedData [11:40:19]FM_MakeSignedData [11:40:19]SAM_PROTO_SignData [11:40:19]wFMCommunicate request_size=4 [11:40:19]MH_SAM_APDU [11:40:19]CAPDU: 80 0D 01 02 [11:40:19]Write to MH i2c: E2 08 00 F3 1E 80 0D 01 02 00 00 00 00 8A [11:40:19]Write i2c OK [11:40:19]MH_I2C_Read... [11:40:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:40:19]Read from MH i2c: E2 [11:40:19]MH_I2C_Read... [11:40:19]Read from MH i2c: E2 03 00 [11:40:19]MH_I2C_Read... [11:40:19]Read from MH i2c: E2 03 00 F3 1E 00 90 00 85 [11:40:19]RAPDU: 90 00 [11:40:19]wFMCommunicate OK [11:40:19]wFMCommunicate request_size=255 [11:40:19]MH_SAM_APDU [11:40: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 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 26 FD 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 D0 0B 01 00 35 04 06 00 93 [11:40:19]Write to MH i2c: E2 02 01 F4 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 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 26 FD 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 D0 0B 01 00 35 04 06 00 93 00 00 E1 [11:40:19]Write i2c OK [11:40:19]MH_I2C_Read... [11:40:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:40:19]Read from MH i2c: E2 [11:40:19]MH_I2C_Read... [11:40:19]Read from MH i2c: E2 03 00 [11:40:19]MH_I2C_Read... [11:40:19]Read from MH i2c: E2 03 00 F4 1E 00 90 00 86 [11:40:19]RAPDU: 90 00 [11:40:19]wFMCommunicate OK [11:40:19]wFMCommunicate request_size=10 [11:40:19]MH_SAM_APDU [11:40:19]CAPDU: 80 0D 02 02 05 A1 21 CC 2E 25 [11:40:19]Write to MH i2c: E2 0D 00 F5 1E 80 0D 02 02 05 00 A1 21 CC 2E 25 00 00 78 [11:40:19]Write i2c OK [11:40:19]MH_I2C_Read... [11:40:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:40:19]Read from MH i2c: E2 [11:40:19]MH_I2C_Read... [11:40:19]Read from MH i2c: E2 03 00 [11:40:19]MH_I2C_Read... [11:40:19]Read from MH i2c: E2 03 00 F5 1E 00 90 00 87 [11:40:19]RAPDU: 90 00 [11:40:19]wFMCommunicate OK [11:40:19]wFMCommunicate request_size=4 [11:40:19]MH_SAM_APDU [11:40:19]CAPDU: 80 0D 03 02 [11:40:19]Write to MH i2c: E2 08 00 F6 1E 80 0D 03 02 00 00 00 00 8F [11:40:19]Write i2c OK [11:40:19]MH_I2C_Read... [11:40:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:40:19]Read from MH i2c: E2 [11:40:19]MH_I2C_Read... [11:40:19]Read from MH i2c: E2 0B 00 [11:40:19]MH_I2C_Read... [11:40:19]Read from MH i2c: E2 0B 00 F6 1E 00 30 EF 0C 0F 99 1E 2C 39 90 00 E6 [11:40:19]RAPDU: 30 EF 0C 0F 99 1E 2C 39 90 00 [11:40:19]wFMCommunicate OK [11:40:19]SAM_PROTO_SignData done [11:40:19]FM_MakeSignedData done [11:40:19]CreateOFDProtocolMessage [11:40:19]wFMCommunicate request_size=4 [11:40:19]MH_SAM_APDU [11:40:19]CAPDU: 80 11 00 00 [11:40:19]Write to MH i2c: E2 08 00 F7 1E 80 11 00 00 00 00 00 00 8F [11:40:19]Write i2c OK [11:40:19]MH_I2C_Read... [11:40:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:40:19]Read from MH i2c: E2 [11:40:19]MH_I2C_Read... [11:40:19]Read from MH i2c: E2 17 00 [11:40:19]MH_I2C_Read... [11:40:19]Read from MH i2c: E2 17 00 F7 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 DA [11:40:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [11:40:19]wFMCommunicate OK [11:40:19]CreateOFDProtocolMessage done [11:40:19]OFDSenderStorePacket 68560 [11:40:19]StoreOFDPacket docnum=68560 [11:40:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 14 13 07 01 55 33 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 26 FD 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 D0 0B 01 00 35 04 06 00 93 A1 21 CC 2E 25 30 EF 0C 0F 99 1E 2C 39 [11:40:19]CheckFolder [11:40:19]dirname=/storage/ofd_packets [11:40:19]CheckFolder done [11:40:19]ProducePacketName [11:40:19]name=ofd_packets/00068560 [11:40:19]NVStorageSaveData ofd_packets/00068560 [11:40:19]File name is /storage/ofd_packets/00068560 [11:40:19]Write 301 bytes [11:40:19]NVStorageSaveData done [11:40:19]OFDSenderStorePacket done [11:40:19]KKMCreateOFDPacket done [11:40:19]NVStorageSaveData kkm_last_timestamp [11:40:19]File name is /storage/kkm_last_timestamp [11:40:19]Write 4 bytes [11:40:19]NVStorageSaveData done [11:40:19]ExternCall_PrintAddStr [11:40:19]wPrintStart [11:40:19]Write to MH i2c: 01 00 00 F8 1E 16 [11:40:19]Write i2c OK [11:40:19]MH_I2C_Read... [11:40:19]Read from MH i2c: 01 [11:40:19]MH_I2C_Read... [11:40:19]Read from MH i2c: 01 07 00 [11:40:19]MH_I2C_Read... [11:40:19]Read from MH i2c: 01 07 00 F8 1E 00 00 00 00 00 FF 0F 2B [11:40:19]RasterBufferAndPrint [11:40:19]line Счет N : (1)706685 [11:40:19]line ИНН: 02508201610067 [11:40:19]line Контрольно-Кассовый Чек [11:40:19]line ПРОДАЖА [11:40:19]line ТРК (МРК, ГНК) : 53 [11:40:19]line Товар: 2710124130 [11:40:19]line Аи-92-К-4 [11:40:19]line 4.490 * 66.90 [11:40:19]line = 300.38 [11:40:19]line НДС 12% НСП 1% [11:40:19]line > о реализуемом товаре [11:40:19]line ОКРУГЛЕНИЕ: -0.38 [11:40:19]line ИТОГО: 300.00 [11:40:19]line Внесено: 300.00 [11:40:19]line СДАЧА: 0.00 [11:40:19]line НСП 1% : 2.66 [11:40:19]line НДС 12% : 31.90 [11:40:19]line Наличными: 300.00 [11:40:19]line Безнал.: 0.00 [11:40:19]line Место: АЗС № 62 "Партнер Нефть" [11:40:19]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [11:40:19]line СНО: Общий режим [11:40:19]line Чек 58 04.06.2024 11:40 [11:40:19]line Смена: 325 ФФД: 1.0 [11:40:19]line ЗНМ: 0300000181 [11:40:19]line РНМ: 0000000000098096 [11:40:19]line Версия ККМ: 001 [11:40:19]line ФМ: 0000000000965400 [11:40:19]line ФД: 68560 [11:40:19]line ФПД: 162320266047013 [11:40:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T114022&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68560&fm=162320266047013&tin=02508201610067®Number=0000000000098096&sum=30000 [11:40:20]OFD Sender: Processing packet 68560 [packets to send 26, broken 25] [11:40:20]ProducePacketName [11:40:20]name=ofd_packets/00068560 [11:40:20]OFD Sender: To server: pG, [11:40:20]CommunicateWithHost lk.salyk.kg:30040 [11:40:20]ConnectInit lk.salyk.kg [11:40:20]written 0, free lines is 4095 [11:40:20]Connected sock=10 [11:40:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 14 13 07 01 55 33 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 26 FD 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 D0 0B 01 00 35 04 06 00 93 A1 21 CC 2E 25 30 EF 0C 0F 99 1E 2C 39 [11:40:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 7A 71 47 00 F5 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 39 36 35 34 30 30 10 04 04 00 D0 0B 01 00 F4 03 04 00 1E A4 5E 66 B6 04 01 00 00 BE 19 3B 6F 12 E1 89 1F [11:40:20]CommunicateWithHost err = 0 [11:40:20]CheckOFDResponse [11:40:20]1017 (14) - 77093643461234 [11:40:20]1041 (16) - 0000000000965400 [11:40:20]1040 (4) - 68560 [11:40:20]1012 (4) - 04.06.2024 05:20 [11:40:20]1206 (1) - 0 [11:40:20]OFD Sender: Remove packet 68560 [11:40:20]ProducePacketName [11:40:20]name=ofd_packets/00068560 [11:40:20]NVStorageDeleteData [11:40:20]Write to MH i2c: 01 00 00 23 1F 42 [11:40:20]Write i2c OK [11:40:20]MH_I2C_Read... [11:40:20]Read from MH i2c: 01 [11:40:20]MH_I2C_Read... [11:40:20]Read from MH i2c: 01 07 00 [11:40:20]MH_I2C_Read... [11:40:20]Read from MH i2c: 01 07 00 23 1F 00 00 00 00 00 D4 0C 29 [11:40:20]RasterBufferAndPrint [11:40:20]line [11:40:20]line [11:40:20]line [11:40:20]line [11:40:20]line [11:40:20]written 0, free lines is 3292 [11:40:20]MH_Cut [11:40:20]Write to MH i2c: D1 01 00 2A 1F 01 1B [11:40:20]Write i2c OK [11:40:20]MH_I2C_Read... [11:40:20]Read from MH i2c: D1 [11:40:20]MH_I2C_Read... [11:40:20]Read from MH i2c: D1 01 00 [11:40:20]MH_I2C_Read... [11:40:20]Read from MH i2c: D1 01 00 2A 1F 00 1A [11:40:20]Write to MH i2c: 01 00 00 2B 1F 4A [11:40:20]Write i2c OK [11:40:20]MH_I2C_Read... [11:40:20]OFD Sender: No OFD packet to send [11:40:21]*** Cut start [11:40:21]*** Partial cut [11:40:21]*** CUTSNS_PIN = 1 [11:40:21]*** CUTSNS_PIN = 0 [11:40:21]*** Brake cut motor [11:40:21]Read from MH i2c: 01 [11:40:21]MH_I2C_Read... [11:40:21]*** Stop cut motor [11:40:21]*** Cut end [11:40:21]Read from MH i2c: 01 07 00 [11:40:21]MH_I2C_Read... [11:40:21]Read from MH i2c: 01 07 00 2B 1F 00 00 00 00 00 FF 0F 5F [11:40:21]process_action close_receipt done [11:40:21]requested_data is exist [11:40:21]produce_requested_data [11:40:21]requested_item fm.sn is exist - process it [11:40:21]wFMCommunicate request_size=4 [11:40:21]MH_SAM_APDU [11:40:21]CAPDU: 80 11 00 00 [11:40:21]Write to MH i2c: E2 08 00 2C 1F 80 11 00 00 00 00 00 00 C5 [11:40:21]Write i2c OK [11:40:21]MH_I2C_Read... [11:40:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:40:21]Read from MH i2c: E2 [11:40:21]MH_I2C_Read... [11:40:21]Read from MH i2c: E2 17 00 [11:40:21]MH_I2C_Read... [11:40:21]Read from MH i2c: E2 17 00 2C 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 10 [11:40:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [11:40:21]wFMCommunicate OK [11:40:21]requested_item fd.num is exist - process it [11:40:21]SAM_PROTO_GetFieldsCounters [11:40:21]wFMCommunicate request_size=4 [11:40:21]MH_SAM_APDU [11:40:21]CAPDU: 80 13 00 00 [11:40:21]Write to MH i2c: E2 08 00 2D 1F 80 13 00 00 00 00 00 00 C8 [11:40:22]Write i2c OK [11:40:22]MH_I2C_Read... [11:40:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:40:22]Read from MH i2c: E2 [11:40:22]MH_I2C_Read... [11:40:22]Read from MH i2c: E2 62 00 [11:40:22]MH_I2C_Read... [11:40:22]Read from MH i2c: E2 62 00 2D 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 D0 0B 01 00 0E 04 04 00 45 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 B8 [11:40:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 D0 0B 01 00 0E 04 04 00 45 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 [11:40:22]wFMCommunicate OK [11:40:22]SAM_PROTO_GetFieldsCounters done [11:40:22]requested_item shift.num is exist - process it [11:40:22]requested_item shift.opened is exist - process it [11:40:22]req_shift_opened [11:40:22]FM_GetShiftState [11:40:22]SAM_PROTO_GetShiftState [11:40:22]wFMCommunicate request_size=4 [11:40:22]MH_SAM_APDU [11:40:22]CAPDU: 80 13 01 00 [11:40:22]Write to MH i2c: E2 08 00 2E 1F 80 13 01 00 00 00 00 00 CA [11:40:22]Write i2c OK [11:40:22]MH_I2C_Read... [11:40:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:40:22]Read from MH i2c: E2 [11:40:22]MH_I2C_Read... [11:40:22]Read from MH i2c: E2 0E 00 [11:40:22]MH_I2C_Read... [11:40:22]Read from MH i2c: E2 0E 00 2E 1F 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 66 [11:40:22]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [11:40:22]wFMCommunicate OK [11:40:22]SAM_PROTO_GetShiftState done [11:40:22]FM_GetShiftState done [11:40:22]req_shift_opened done [11:40:22]requested_item shift.open_date is exist - process it [11:40:22]req_shift_open_date [11:40:22]req_shift_open_date done [11:40:22]produce_requested_data done [11:40:22]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68560,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [11:40:22]process_action_free close_receipt [11:40:22]json_value_free [11:40:22]json_value_free done [11:40:22]process_json_proto returns [11:40:22]Send response to host [11:40:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68560,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [11:40:22]free response buf [11:40:22]execute_script done [11:40:22]execute_script returns [11:40:22]free content buf [11:40:22]Sock 9.Close socket [11:40:22]Sock 9.Thread stoped [11:40:25]OFD Sender: No OFD packet to send [11:40:30]OFD Sender: No OFD packet to send [11:40:35]OFD Sender: No OFD packet to send [11:40:40]OFD Sender: No OFD packet to send [11:40:45]OFD Sender: No OFD packet to send [11:40:50]OFD Sender: No OFD packet to send [11:40:55]OFD Sender: No OFD packet to send [11:41:00]OFD Sender: No OFD packet to send [11:41:05]OFD Sender: No OFD packet to send [11:41:10]OFD Sender: No OFD packet to send [11:41:15]OFD Sender: No OFD packet to send [11:41:20]OFD Sender: No OFD packet to send [11:41:25]OFD Sender: No OFD packet to send [11:41:30]OFD Sender: No OFD packet to send [11:41:35]OFD Sender: No OFD packet to send [11:41:40]OFD Sender: No OFD packet to send [11:41:45]OFD Sender: No OFD packet to send [11:41:50]OFD Sender: No OFD packet to send [11:41:55]OFD Sender: No OFD packet to send [11:42:00]OFD Sender: No OFD packet to send [11:42:05]OFD Sender: No OFD packet to send [11:42:10]OFD Sender: No OFD packet to send [11:42:15]OFD Sender: No OFD packet to send [11:42:20]OFD Sender: No OFD packet to send [11:42:25]OFD Sender: No OFD packet to send [11:42:30]OFD Sender: No OFD packet to send [11:42:34]accept exits with 7 [11:42:34]New connection [11:42:34]New thread 3067084132 created [11:42:34]Thread 3067227492 joined [11:42:34]Waiting for new connection... [11:42:34] Sock 7.Parse request [11:42:34]Sock 7.Check first char [11:42:34]Sock 7.First char is OK [11:42:34]request: POST /json_proto HTTP/1.0 [11:42:34]Method: POST [11:42:34]URL: /json_proto [11:42:34]Method is POST - this is cgi request [11:42:34]url: /json_proto [11:42:34]query_string will be loaded in cgi processing [11:42:34]execute_cgi json_proto POST (null) [11:42:34]execute_cgi path=json_proto method=POST [11:42:34]POST find Content-Length [11:42:34]Host: 172.17.36.132:8080 [11:42:34]Content-Length: 687 [11:42:34]Content-Type: application/json [11:42:34] [11:42:34]POST finish read [11:42:34]Found Content-Length = 687 [11:42:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706686", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "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" ] } } [11:42:34]execute_script... [11:42:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706686", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "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" ] } } [11:42:34]POST & json_proto [11:42:34]process_json_proto [11:42:34]json parsed OK: [11:42:34]protocol is kg_v1.0 [11:42:34]action value=close_receipt [11:42:34]process_action close_receipt [11:42:34]cmd_close_receipt [11:42:34]MH_GetDate [11:42:34]Write to MH i2c: F0 00 00 2F 1F 3D [11:42:34]Write i2c OK [11:42:34]MH_I2C_Read... [11:42:34]Read from MH i2c: F0 [11:42:34]MH_I2C_Read... [11:42:34]Read from MH i2c: F0 09 00 [11:42:34]MH_I2C_Read... [11:42:34]Read from MH i2c: F0 09 00 2F 1F 00 AF FD 5E 66 B2 22 B0 64 9E [11:42:34]GetLastDocTimeStamp 1717501222 [11:42:34]current date 1717501359 [11:42:34]FM_GetShiftState [11:42:34]SAM_PROTO_GetShiftState [11:42:34]wFMCommunicate request_size=4 [11:42:34]MH_SAM_APDU [11:42:34]CAPDU: 80 13 01 00 [11:42:34]Write to MH i2c: E2 08 00 30 1F 80 13 01 00 00 00 00 00 CC [11:42:34]Write i2c OK [11:42:34]MH_I2C_Read... [11:42:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:42:34]Read from MH i2c: E2 [11:42:34]MH_I2C_Read... [11:42:34]Read from MH i2c: E2 0E 00 [11:42:34]MH_I2C_Read... [11:42:34]Read from MH i2c: E2 0E 00 30 1F 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 68 [11:42:34]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [11:42:34]wFMCommunicate OK [11:42:34]SAM_PROTO_GetShiftState done [11:42:34]FM_GetShiftState done [11:42:34]opened in 1717460590 [11:42:34]opened+sec_in_day 1717546990 [11:42:34]quantity*price = 150028 [11:42:34]sum+1 = 150029 [11:42:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.32 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 59 04.06.2024 11:42 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68561 ФПД: 200527232607525 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T114239&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68561&fm=200527232607525&tin=02508201610067®Number=0000000000098096&sum=150000 [11:42:36]StoreToDocumentArchive [11:42:36]shift 325 fd 68561 [11:42:36]save to /storage/0325/doc_00068561 [11:42:36]save last doc name /storage/0325/doc_00068561 to /storage/kkm_last_doc_name [11:42:36]save OK [11:42:36]Clear old archive folders... [11:42:36]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:42:36]tlvbuf is 009C8710 [11:42:36]SAM_PROTO_ClearQueue [11:42:36]wFMCommunicate request_size=4 [11:42:36]MH_SAM_APDU [11:42:36]CAPDU: 80 09 00 00 [11:42:36]Write to MH i2c: E2 08 00 3D 1F 80 09 00 00 00 00 00 00 CE [11:42:36]Write i2c OK [11:42:36]MH_I2C_Read... [11:42:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:42:36]Read from MH i2c: E2 [11:42:36]MH_I2C_Read... [11:42:36]Read from MH i2c: E2 03 00 [11:42:36]MH_I2C_Read... [11:42:36]Read from MH i2c: E2 03 00 3D 1F 00 90 00 D0 [11:42:36]RAPDU: 90 00 [11:42:36]wFMCommunicate OK [11:42:36]SAM_PROTO_ClearQueue done [11:42:36]KKMCreateOFDPacket [11:42:36]OFDProtocolAddRootSTLVToBuf [11:42:36]FM_MakeSignedData [11:42:36]FM_MakeSignedData [11:42:36]SAM_PROTO_SignData [11:42:36]wFMCommunicate request_size=4 [11:42:36]MH_SAM_APDU [11:42:36]CAPDU: 80 0D 01 02 [11:42:36]Write to MH i2c: E2 08 00 3E 1F 80 0D 01 02 00 00 00 00 D6 [11:42:36]Write i2c OK [11:42:36]MH_I2C_Read... [11:42:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:42:36]Read from MH i2c: E2 [11:42:36]MH_I2C_Read... [11:42:36]Read from MH i2c: E2 03 00 [11:42:36]MH_I2C_Read... [11:42:36]Read from MH i2c: E2 03 00 3E 1F 00 90 00 D1 [11:42:36]RAPDU: 90 00 [11:42:36]wFMCommunicate OK [11:42:36]wFMCommunicate request_size=255 [11:42:36]MH_SAM_APDU [11:42:36]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 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 3B 00 00 00 F4 03 04 00 AF FD 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 D1 0B 01 00 35 04 06 00 [11:42:36]Write to MH i2c: E2 02 01 3F 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 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 3B 00 00 00 F4 03 04 00 AF FD 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 D1 0B 01 00 35 04 06 00 00 00 AE [11:42:36]Write i2c OK [11:42:36]MH_I2C_Read... [11:42:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:42:36]Read from MH i2c: E2 [11:42:36]MH_I2C_Read... [11:42:36]Read from MH i2c: E2 03 00 [11:42:36]MH_I2C_Read... [11:42:36]Read from MH i2c: E2 03 00 3F 1F 00 90 00 D2 [11:42:36]RAPDU: 90 00 [11:42:36]wFMCommunicate OK [11:42:36]wFMCommunicate request_size=11 [11:42:36]MH_SAM_APDU [11:42:36]CAPDU: 80 0D 02 02 06 B6 60 E2 77 A5 25 [11:42:36]Write to MH i2c: E2 0E 00 40 1F 80 0D 02 02 06 00 B6 60 E2 77 A5 25 00 00 1E [11:42:36]Write i2c OK [11:42:36]MH_I2C_Read... [11:42:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:42:36]Read from MH i2c: E2 [11:42:36]MH_I2C_Read... [11:42:36]Read from MH i2c: E2 03 00 [11:42:36]MH_I2C_Read... [11:42:36]Read from MH i2c: E2 03 00 40 1F 00 90 00 D3 [11:42:36]RAPDU: 90 00 [11:42:36]wFMCommunicate OK [11:42:36]wFMCommunicate request_size=4 [11:42:36]MH_SAM_APDU [11:42:36]CAPDU: 80 0D 03 02 [11:42:36]Write to MH i2c: E2 08 00 41 1F 80 0D 03 02 00 00 00 00 DB [11:42:36]Write i2c OK [11:42:36]MH_I2C_Read... [11:42:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:42:36]Read from MH i2c: E2 [11:42:36]MH_I2C_Read... [11:42:36]Read from MH i2c: E2 0B 00 [11:42:36]MH_I2C_Read... [11:42:36]Read from MH i2c: E2 0B 00 41 1F 00 3E FD 8D 8D 9C 6C 4B 21 90 00 A5 [11:42:36]RAPDU: 3E FD 8D 8D 9C 6C 4B 21 90 00 [11:42:36]wFMCommunicate OK [11:42:36]SAM_PROTO_SignData done [11:42:36]FM_MakeSignedData done [11:42:36]CreateOFDProtocolMessage [11:42:36]wFMCommunicate request_size=4 [11:42:36]MH_SAM_APDU [11:42:36]CAPDU: 80 11 00 00 [11:42:36]Write to MH i2c: E2 08 00 42 1F 80 11 00 00 00 00 00 00 DB [11:42:36]Write i2c OK [11:42:36]MH_I2C_Read... [11:42:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:42:36]Read from MH i2c: E2 [11:42:36]MH_I2C_Read... [11:42:36]Read from MH i2c: E2 17 00 [11:42:36]MH_I2C_Read... [11:42:36]Read from MH i2c: E2 17 00 42 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 26 [11:42:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [11:42:36]wFMCommunicate OK [11:42:36]CreateOFDProtocolMessage done [11:42:36]OFDSenderStorePacket 68561 [11:42:36]StoreOFDPacket docnum=68561 [11:42:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 ED 2E 08 01 B9 C9 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 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 3B 00 00 00 F4 03 04 00 AF FD 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 D1 0B 01 00 35 04 06 00 B6 60 E2 77 A5 25 3E FD 8D 8D 9C 6C 4B 21 [11:42:36]CheckFolder [11:42:36]dirname=/storage/ofd_packets [11:42:36]CheckFolder done [11:42:36]ProducePacketName [11:42:36]name=ofd_packets/00068561 [11:42:36]NVStorageSaveData ofd_packets/00068561 [11:42:36]File name is /storage/ofd_packets/00068561 [11:42:36]Write 302 bytes [11:42:36]NVStorageSaveData done [11:42:36]OFDSenderStorePacket done [11:42:36]KKMCreateOFDPacket done [11:42:36]NVStorageSaveData kkm_last_timestamp [11:42:36]File name is /storage/kkm_last_timestamp [11:42:36]Write 4 bytes [11:42:36]NVStorageSaveData done [11:42:36]ExternCall_PrintAddStr [11:42:36]wPrintStart [11:42:36]Write to MH i2c: 01 00 00 43 1F 62 [11:42:36]Write i2c OK [11:42:36]MH_I2C_Read... [11:42:36]Read from MH i2c: 01 [11:42:36]MH_I2C_Read... [11:42:36]Read from MH i2c: 01 07 00 [11:42:36]MH_I2C_Read... [11:42:36]Read from MH i2c: 01 07 00 43 1F 00 00 00 00 00 FF 0F 77 [11:42:36]RasterBufferAndPrint [11:42:36]line Счет N : (1)706686 [11:42:36]line ИНН: 02508201610067 [11:42:36]line Контрольно-Кассовый Чек [11:42:36]line ПРОДАЖА [11:42:36]line ТРК (МРК, ГНК) : 21 [11:42:36]line Товар: 2710194210 [11:42:36]line ДТ(л)-К-4 [11:42:36]line 20.580 * 72.90 [11:42:36]line = 1500.28 [11:42:36]line НДС 12% НСП 1% [11:42:36]line > о реализуемом товаре [11:42:36]line ОКРУГЛЕНИЕ: -0.28 [11:42:36]line ИТОГО: 1500.00 [11:42:36]line Внесено: 1500.00 [11:42:36]line СДАЧА: 0.00 [11:42:36]line НСП 1% : 13.28 [11:42:36]line НДС 12% : 159.32 [11:42:36]line Наличными: 1500.00 [11:42:36]line Безнал.: 0.00 [11:42:36]line Место: АЗС № 62 "Партнер Нефть" [11:42:36]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [11:42:36]line СНО: Общий режим [11:42:36]line Чек 59 04.06.2024 11:42 [11:42:36]line Смена: 325 ФФД: 1.0 [11:42:36]line ЗНМ: 0300000181 [11:42:36]line РНМ: 0000000000098096 [11:42:36]line Версия ККМ: 001 [11:42:36]line ФМ: 0000000000965400 [11:42:36]line ФД: 68561 [11:42:36]line ФПД: 200527232607525 [11:42:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T114239&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68561&fm=200527232607525&tin=02508201610067®Number=0000000000098096&sum=150000 [11:42:36]OFD Sender: Processing packet 68561 [packets to send 26, broken 25] [11:42:36]ProducePacketName [11:42:36]name=ofd_packets/00068561 [11:42:36]OFD Sender: To server: pG, [11:42:36]CommunicateWithHost lk.salyk.kg:30040 [11:42:36]ConnectInit lk.salyk.kg [11:42:36]written 0, free lines is 4095 [11:42:37]Connected sock=10 [11:42:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 ED 2E 08 01 B9 C9 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 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 3B 00 00 00 F4 03 04 00 AF FD 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 D1 0B 01 00 35 04 06 00 B6 60 E2 77 A5 25 3E FD 8D 8D 9C 6C 4B 21 [11:42:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 28 B5 47 00 68 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 39 36 35 34 30 30 10 04 04 00 D1 0B 01 00 F4 03 04 00 A7 A4 5E 66 B6 04 01 00 00 BB 11 8C 59 45 A8 59 53 [11:42:37]CommunicateWithHost err = 0 [11:42:37]CheckOFDResponse [11:42:37]1017 (14) - 77093643461234 [11:42:37]1041 (16) - 0000000000965400 [11:42:37]1040 (4) - 68561 [11:42:37]1012 (4) - 04.06.2024 05:22 [11:42:37]1206 (1) - 0 [11:42:37]OFD Sender: Remove packet 68561 [11:42:37]ProducePacketName [11:42:37]name=ofd_packets/00068561 [11:42:37]NVStorageDeleteData [11:42:37]Write to MH i2c: 01 00 00 6E 1F 8D [11:42:37]Write i2c OK [11:42:37]MH_I2C_Read... [11:42:37]Read from MH i2c: 01 [11:42:37]MH_I2C_Read... [11:42:37]Read from MH i2c: 01 07 00 [11:42:37]MH_I2C_Read... [11:42:37]Read from MH i2c: 01 07 00 6E 1F 00 00 00 00 00 E1 0C 81 [11:42:37]RasterBufferAndPrint [11:42:37]line [11:42:37]line [11:42:37]line [11:42:37]line [11:42:37]line [11:42:37]written 0, free lines is 3303 [11:42:37]MH_Cut [11:42:37]Write to MH i2c: D1 01 00 75 1F 01 66 [11:42:37]Write i2c OK [11:42:37]MH_I2C_Read... [11:42:37]Read from MH i2c: D1 [11:42:37]MH_I2C_Read... [11:42:37]Read from MH i2c: D1 01 00 [11:42:37]MH_I2C_Read... [11:42:37]Read from MH i2c: D1 01 00 75 1F 00 65 [11:42:37]Write to MH i2c: 01 00 00 76 1F 95 [11:42:37]Write i2c OK [11:42:37]MH_I2C_Read... [11:42:37]OFD Sender: No OFD packet to send [11:42:38]*** Cut start [11:42:38]*** Partial cut [11:42:38]*** CUTSNS_PIN = 1 [11:42:38]*** CUTSNS_PIN = 0 [11:42:38]*** Brake cut motor [11:42:38]Read from MH i2c: 01 [11:42:38]MH_I2C_Read... [11:42:38]*** Stop cut motor [11:42:38]*** Cut end [11:42:38]Read from MH i2c: 01 07 00 [11:42:38]MH_I2C_Read... [11:42:38]Read from MH i2c: 01 07 00 76 1F 00 00 00 00 00 FF 0F AA [11:42:38]process_action close_receipt done [11:42:38]requested_data is exist [11:42:38]produce_requested_data [11:42:38]requested_item fm.sn is exist - process it [11:42:38]wFMCommunicate request_size=4 [11:42:38]MH_SAM_APDU [11:42:38]CAPDU: 80 11 00 00 [11:42:38]Write to MH i2c: E2 08 00 77 1F 80 11 00 00 00 00 00 00 10 [11:42:38]Write i2c OK [11:42:38]MH_I2C_Read... [11:42:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:42:38]Read from MH i2c: E2 [11:42:38]MH_I2C_Read... [11:42:38]Read from MH i2c: E2 17 00 [11:42:38]MH_I2C_Read... [11:42:38]Read from MH i2c: E2 17 00 77 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 5B [11:42:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [11:42:38]wFMCommunicate OK [11:42:38]requested_item fd.num is exist - process it [11:42:38]SAM_PROTO_GetFieldsCounters [11:42:38]wFMCommunicate request_size=4 [11:42:38]MH_SAM_APDU [11:42:38]CAPDU: 80 13 00 00 [11:42:38]Write to MH i2c: E2 08 00 78 1F 80 13 00 00 00 00 00 00 13 [11:42:38]Write i2c OK [11:42:38]MH_I2C_Read... [11:42:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:42:39]Read from MH i2c: E2 [11:42:39]MH_I2C_Read... [11:42:39]Read from MH i2c: E2 62 00 [11:42:39]MH_I2C_Read... [11:42:39]Read from MH i2c: E2 62 00 78 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 D1 0B 01 00 0E 04 04 00 45 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 07 [11:42:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 D1 0B 01 00 0E 04 04 00 45 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 [11:42:39]wFMCommunicate OK [11:42:39]SAM_PROTO_GetFieldsCounters done [11:42:39]requested_item shift.num is exist - process it [11:42:39]requested_item shift.opened is exist - process it [11:42:39]req_shift_opened [11:42:39]FM_GetShiftState [11:42:39]SAM_PROTO_GetShiftState [11:42:39]wFMCommunicate request_size=4 [11:42:39]MH_SAM_APDU [11:42:39]CAPDU: 80 13 01 00 [11:42:39]Write to MH i2c: E2 08 00 79 1F 80 13 01 00 00 00 00 00 15 [11:42:39]Write i2c OK [11:42:39]MH_I2C_Read... [11:42:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:42:39]Read from MH i2c: E2 [11:42:39]MH_I2C_Read... [11:42:39]Read from MH i2c: E2 0E 00 [11:42:39]MH_I2C_Read... [11:42:39]Read from MH i2c: E2 0E 00 79 1F 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 B1 [11:42:39]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [11:42:39]wFMCommunicate OK [11:42:39]SAM_PROTO_GetShiftState done [11:42:39]FM_GetShiftState done [11:42:39]req_shift_opened done [11:42:39]requested_item shift.open_date is exist - process it [11:42:39]req_shift_open_date [11:42:39]req_shift_open_date done [11:42:39]produce_requested_data done [11:42:39]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68561,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [11:42:39]process_action_free close_receipt [11:42:39]json_value_free [11:42:39]json_value_free done [11:42:39]process_json_proto returns [11:42:39]Send response to host [11:42:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68561,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [11:42:39]free response buf [11:42:39]execute_script done [11:42:39]execute_script returns [11:42:39]free content buf [11:42:39]Sock 7.Close socket [11:42:39]Sock 7.Thread stoped [11:42:42]OFD Sender: No OFD packet to send [11:42:47]OFD Sender: No OFD packet to send [11:42:52]OFD Sender: No OFD packet to send [11:42:57]OFD Sender: No OFD packet to send [11:43:02]OFD Sender: No OFD packet to send [11:43:07]OFD Sender: No OFD packet to send [11:43:12]OFD Sender: No OFD packet to send [11:43:17]OFD Sender: No OFD packet to send [11:43:22]OFD Sender: No OFD packet to send [11:43:27]OFD Sender: No OFD packet to send [11:43:32]OFD Sender: No OFD packet to send [11:43:37]OFD Sender: No OFD packet to send [11:43:42]OFD Sender: No OFD packet to send [11:43:47]OFD Sender: No OFD packet to send [11:43:52]OFD Sender: No OFD packet to send [11:43:57]OFD Sender: No OFD packet to send [11:44:02]OFD Sender: No OFD packet to send [11:44:07]OFD Sender: No OFD packet to send [11:44:12]OFD Sender: No OFD packet to send [11:44:17]OFD Sender: No OFD packet to send [11:44:22]OFD Sender: No OFD packet to send [11:44:27]OFD Sender: No OFD packet to send [11:44:32]OFD Sender: No OFD packet to send [11:44:37]OFD Sender: No OFD packet to send [11:44:42]OFD Sender: No OFD packet to send [11:44:47]OFD Sender: No OFD packet to send [11:44:52]OFD Sender: No OFD packet to send [11:44:57]OFD Sender: No OFD packet to send [11:45:02]OFD Sender: No OFD packet to send [11:45:07]OFD Sender: No OFD packet to send [11:45:12]OFD Sender: No OFD packet to send [11:45:17]OFD Sender: No OFD packet to send [11:45:22]OFD Sender: No OFD packet to send [11:45:27]OFD Sender: No OFD packet to send [11:45:32]OFD Sender: No OFD packet to send [11:45:37]OFD Sender: No OFD packet to send [11:45:42]OFD Sender: No OFD packet to send [11:45:47]OFD Sender: No OFD packet to send [11:45:52]OFD Sender: No OFD packet to send [11:45:57]OFD Sender: No OFD packet to send [11:46:02]OFD Sender: No OFD packet to send [11:46:07]OFD Sender: No OFD packet to send [11:46:08]accept exits with 9 [11:46:08]New connection [11:46:08]New thread 3067227492 created [11:46:08]Thread 3067084132 joined [11:46:08]Waiting for new connection... [11:46:08] Sock 9.Parse request [11:46:08]Sock 9.Check first char [11:46:08]Sock 9.First char is OK [11:46:08]request: POST /json_proto HTTP/1.0 [11:46:08]Method: POST [11:46:08]URL: /json_proto [11:46:08]Method is POST - this is cgi request [11:46:08]url: /json_proto [11:46:08]query_string will be loaded in cgi processing [11:46:08]execute_cgi json_proto POST (null) [11:46:08]execute_cgi path=json_proto method=POST [11:46:08]POST find Content-Length [11:46:08]Host: 172.17.36.132:8080 [11:46:08]Content-Length: 678 [11:46:08]Content-Type: application/json [11:46:08] [11:46:08]POST finish read [11:46:08]Found Content-Length = 678 [11:46:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706687", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 10.770, "sum" : 720.51, "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" ] } } [11:46:08]execute_script... [11:46: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)706687", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 10.770, "sum" : 720.51, "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" ] } } [11:46:08]POST & json_proto [11:46:08]process_json_proto [11:46:08]json parsed OK: [11:46:08]protocol is kg_v1.0 [11:46:08]action value=close_receipt [11:46:08]process_action close_receipt [11:46:08]cmd_close_receipt [11:46:08]MH_GetDate [11:46:08]Write to MH i2c: F0 00 00 7A 1F 88 [11:46:08]Write i2c OK [11:46:08]MH_I2C_Read... [11:46:08]Read from MH i2c: F0 [11:46:08]MH_I2C_Read... [11:46:08]Read from MH i2c: F0 09 00 [11:46:08]MH_I2C_Read... [11:46:08]Read from MH i2c: F0 09 00 7A 1F 00 85 FE 5E 66 B2 22 B0 64 C0 [11:46:08]GetLastDocTimeStamp 1717501359 [11:46:08]current date 1717501573 [11:46:08]FM_GetShiftState [11:46:08]SAM_PROTO_GetShiftState [11:46:08]wFMCommunicate request_size=4 [11:46:08]MH_SAM_APDU [11:46:08]CAPDU: 80 13 01 00 [11:46:08]Write to MH i2c: E2 08 00 7B 1F 80 13 01 00 00 00 00 00 17 [11:46:08]Write i2c OK [11:46:08]MH_I2C_Read... [11:46:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:46:08]Read from MH i2c: E2 [11:46:08]MH_I2C_Read... [11:46:08]Read from MH i2c: E2 0E 00 [11:46:08]MH_I2C_Read... [11:46:08]Read from MH i2c: E2 0E 00 7B 1F 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 B3 [11:46:08]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [11:46:08]wFMCommunicate OK [11:46:08]SAM_PROTO_GetShiftState done [11:46:08]FM_GetShiftState done [11:46:08]opened in 1717460590 [11:46:08]opened+sec_in_day 1717546990 [11:46:08]quantity*price = 72051 [11:46:08]sum+1 = 72052 [11:46:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 720.00 Внесено: 720.00 СДАЧА: 0.00 НСП 1% : 6.38 НДС 12% : 76.51 Наличными: 720.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 60 04.06.2024 11:46 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68562 ФПД: 100791916644127 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T114613&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68562&fm=100791916644127&tin=02508201610067®Number=0000000000098096&sum=72000 [11:46:10]StoreToDocumentArchive [11:46:10]shift 325 fd 68562 [11:46:10]save to /storage/0325/doc_00068562 [11:46:10]save last doc name /storage/0325/doc_00068562 to /storage/kkm_last_doc_name [11:46:10]save OK [11:46:10]Clear old archive folders... [11:46:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:46:10]tlvbuf is 00A24D80 [11:46:10]SAM_PROTO_ClearQueue [11:46:10]wFMCommunicate request_size=4 [11:46:10]MH_SAM_APDU [11:46:10]CAPDU: 80 09 00 00 [11:46:10]Write to MH i2c: E2 08 00 88 1F 80 09 00 00 00 00 00 00 19 [11:46:10]Write i2c OK [11:46:10]MH_I2C_Read... [11:46:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:46:10]Read from MH i2c: E2 [11:46:10]MH_I2C_Read... [11:46:10]Read from MH i2c: E2 03 00 [11:46:10]MH_I2C_Read... [11:46:10]Read from MH i2c: E2 03 00 88 1F 00 90 00 1B [11:46:10]RAPDU: 90 00 [11:46:10]wFMCommunicate OK [11:46:10]SAM_PROTO_ClearQueue done [11:46:10]KKMCreateOFDPacket [11:46:10]OFDProtocolAddRootSTLVToBuf [11:46:10]FM_MakeSignedData [11:46:10]FM_MakeSignedData [11:46:10]SAM_PROTO_SignData [11:46:10]wFMCommunicate request_size=4 [11:46:10]MH_SAM_APDU [11:46:10]CAPDU: 80 0D 01 02 [11:46:10]Write to MH i2c: E2 08 00 89 1F 80 0D 01 02 00 00 00 00 21 [11:46:10]Write i2c OK [11:46:10]MH_I2C_Read... [11:46:10]Read from MH i2c: E2 [11:46:10]MH_I2C_Read... [11:46:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:46:10]Read from MH i2c: E2 03 00 [11:46:10]MH_I2C_Read... [11:46:10]Read from MH i2c: E2 03 00 89 1F 00 90 00 1C [11:46:10]RAPDU: 90 00 [11:46:10]wFMCommunicate OK [11:46:10]wFMCommunicate request_size=255 [11:46:10]MH_SAM_APDU [11:46: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 34 FF 03 08 00 03 12 2A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 73 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 7E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E3 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 3C 00 00 00 F4 03 04 00 85 FE 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 D2 0B 01 00 35 04 06 00 5B [11:46:10]Write to MH i2c: E2 02 01 8A 1F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 12 2A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 73 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 7E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E3 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 3C 00 00 00 F4 03 04 00 85 FE 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 D2 0B 01 00 35 04 06 00 5B 00 00 64 [11:46:10]Write i2c OK [11:46:10]MH_I2C_Read... [11:46:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:46:10]Read from MH i2c: E2 [11:46:10]MH_I2C_Read... [11:46:10]Read from MH i2c: E2 03 00 [11:46:10]MH_I2C_Read... [11:46:10]Read from MH i2c: E2 03 00 8A 1F 00 90 00 1D [11:46:10]RAPDU: 90 00 [11:46:10]wFMCommunicate OK [11:46:10]wFMCommunicate request_size=10 [11:46:10]MH_SAM_APDU [11:46:10]CAPDU: 80 0D 02 02 05 AB 72 63 47 1F [11:46:10]Write to MH i2c: E2 0D 00 8B 1F 80 0D 02 02 05 00 AB 72 63 47 1F 00 00 14 [11:46:10]Write i2c OK [11:46:10]MH_I2C_Read... [11:46:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:46:10]Read from MH i2c: E2 [11:46:10]MH_I2C_Read... [11:46:10]Read from MH i2c: E2 03 00 [11:46:10]MH_I2C_Read... [11:46:10]Read from MH i2c: E2 03 00 8B 1F 00 90 00 1E [11:46:10]RAPDU: 90 00 [11:46:10]wFMCommunicate OK [11:46:10]wFMCommunicate request_size=4 [11:46:10]MH_SAM_APDU [11:46:10]CAPDU: 80 0D 03 02 [11:46:10]Write to MH i2c: E2 08 00 8C 1F 80 0D 03 02 00 00 00 00 26 [11:46:10]Write i2c OK [11:46:10]MH_I2C_Read... [11:46:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:46:10]Read from MH i2c: E2 [11:46:10]MH_I2C_Read... [11:46:10]Read from MH i2c: E2 0B 00 [11:46:10]MH_I2C_Read... [11:46:10]Read from MH i2c: E2 0B 00 8C 1F 00 1F B0 70 86 99 9A 3D 00 90 00 5C [11:46:10]RAPDU: 1F B0 70 86 99 9A 3D 00 90 00 [11:46:10]wFMCommunicate OK [11:46:10]SAM_PROTO_SignData done [11:46:10]FM_MakeSignedData done [11:46:10]CreateOFDProtocolMessage [11:46:10]wFMCommunicate request_size=4 [11:46:10]MH_SAM_APDU [11:46:10]CAPDU: 80 11 00 00 [11:46:10]Write to MH i2c: E2 08 00 8D 1F 80 11 00 00 00 00 00 00 26 [11:46:10]Write i2c OK [11:46:10]MH_I2C_Read... [11:46:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:46:10]Read from MH i2c: E2 [11:46:10]MH_I2C_Read... [11:46:10]Read from MH i2c: E2 17 00 [11:46:10]MH_I2C_Read... [11:46:10]Read from MH i2c: E2 17 00 8D 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 71 [11:46:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [11:46:10]wFMCommunicate OK [11:46:10]CreateOFDProtocolMessage done [11:46:10]OFDSenderStorePacket 68562 [11:46:10]StoreOFDPacket docnum=68562 [11:46:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 64 A5 07 01 56 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 34 FF 03 08 00 03 12 2A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 73 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 7E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E3 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 3C 00 00 00 F4 03 04 00 85 FE 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 D2 0B 01 00 35 04 06 00 5B AB 72 63 47 1F 1F B0 70 86 99 9A 3D 00 [11:46:10]CheckFolder [11:46:10]dirname=/storage/ofd_packets [11:46:10]CheckFolder done [11:46:10]ProducePacketName [11:46:10]name=ofd_packets/00068562 [11:46:10]NVStorageSaveData ofd_packets/00068562 [11:46:10]File name is /storage/ofd_packets/00068562 [11:46:10]Write 301 bytes [11:46:10]NVStorageSaveData done [11:46:10]OFDSenderStorePacket done [11:46:10]KKMCreateOFDPacket done [11:46:10]NVStorageSaveData kkm_last_timestamp [11:46:10]File name is /storage/kkm_last_timestamp [11:46:10]Write 4 bytes [11:46:10]NVStorageSaveData done [11:46:10]ExternCall_PrintAddStr [11:46:10]wPrintStart [11:46:10]Write to MH i2c: 01 00 00 8E 1F AD [11:46:10]Write i2c OK [11:46:10]MH_I2C_Read... [11:46:10]Read from MH i2c: 01 [11:46:10]MH_I2C_Read... [11:46:10]Read from MH i2c: 01 07 00 [11:46:10]MH_I2C_Read... [11:46:10]Read from MH i2c: 01 07 00 8E 1F 00 00 00 00 00 FF 0F C2 [11:46:10]RasterBufferAndPrint [11:46:10]line Счет N : (1)706687 [11:46:10]line ИНН: 02508201610067 [11:46:10]line Контрольно-Кассовый Чек [11:46:10]line ПРОДАЖА [11:46:10]line ТРК (МРК, ГНК) : 32 [11:46:10]line Товар: 2710124130 [11:46:10]line Аи-92-К-4 [11:46:10]line 10.770 * 66.90 [11:46:10]line = 720.51 [11:46:10]line НДС 12% НСП 1% [11:46:10]line > о реализуемом товаре [11:46:10]line ОКРУГЛЕНИЕ: -0.51 [11:46:10]line ИТОГО: 720.00 [11:46:10]line Внесено: 720.00 [11:46:10]line СДАЧА: 0.00 [11:46:10]line НСП 1% : 6.38 [11:46:10]line НДС 12% : 76.51 [11:46:10]line Наличными: 720.00 [11:46:10]line Безнал.: 0.00 [11:46:10]line Место: АЗС № 62 "Партнер Нефть" [11:46:10]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [11:46:10]line СНО: Общий режим [11:46:10]line Чек 60 04.06.2024 11:46 [11:46:10]line Смена: 325 ФФД: 1.0 [11:46:10]line ЗНМ: 0300000181 [11:46:10]line РНМ: 0000000000098096 [11:46:10]line Версия ККМ: 001 [11:46:10]line ФМ: 0000000000965400 [11:46:10]line ФД: 68562 [11:46:10]line ФПД: 100791916644127 [11:46:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T114613&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68562&fm=100791916644127&tin=02508201610067®Number=0000000000098096&sum=72000 [11:46:10]OFD Sender: Processing packet 68562 [packets to send 26, broken 25] [11:46:10]ProducePacketName [11:46:10]name=ofd_packets/00068562 [11:46:10]OFD Sender: To server: pG, [11:46:10]CommunicateWithHost lk.salyk.kg:30040 [11:46:10]ConnectInit lk.salyk.kg [11:46:10]written 0, free lines is 4095 [11:46:10]Connected sock=10 [11:46:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 64 A5 07 01 56 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 34 FF 03 08 00 03 12 2A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 73 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 7E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E3 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 3C 00 00 00 F4 03 04 00 85 FE 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 D2 0B 01 00 35 04 06 00 5B AB 72 63 47 1F 1F B0 70 86 99 9A 3D 00 [11:46:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 AF 62 47 00 45 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 39 36 35 34 30 30 10 04 04 00 D2 0B 01 00 F4 03 04 00 7D A5 5E 66 B6 04 01 00 00 C5 B6 C1 1F 16 C4 55 B9 [11:46:11]CommunicateWithHost err = 0 [11:46:11]CheckOFDResponse [11:46:11]1017 (14) - 77093643461234 [11:46:11]1041 (16) - 0000000000965400 [11:46:11]1040 (4) - 68562 [11:46:11]1012 (4) - 04.06.2024 05:26 [11:46:11]1206 (1) - 0 [11:46:11]OFD Sender: Remove packet 68562 [11:46:11]ProducePacketName [11:46:11]name=ofd_packets/00068562 [11:46:11]NVStorageDeleteData [11:46:11]Write to MH i2c: 01 00 00 B9 1F D8 [11:46:11]Write i2c OK [11:46:11]MH_I2C_Read... [11:46:11]Read from MH i2c: 01 [11:46:11]MH_I2C_Read... [11:46:11]Read from MH i2c: 01 07 00 [11:46:11]MH_I2C_Read... [11:46:11]Read from MH i2c: 01 07 00 B9 1F 00 00 00 00 00 CE 0C B9 [11:46:11]RasterBufferAndPrint [11:46:11]line [11:46:11]line [11:46:11]line [11:46:11]line [11:46:11]line [11:46:11]written 0, free lines is 3286 [11:46:11]MH_Cut [11:46:11]Write to MH i2c: D1 01 00 C0 1F 01 B1 [11:46:11]Write i2c OK [11:46:11]MH_I2C_Read... [11:46:11]Read from MH i2c: D1 [11:46:11]MH_I2C_Read... [11:46:11]Read from MH i2c: D1 01 00 [11:46:11]MH_I2C_Read... [11:46:11]Read from MH i2c: D1 01 00 C0 1F 00 B0 [11:46:11]Write to MH i2c: 01 00 00 C1 1F E0 [11:46:11]Write i2c OK [11:46:11]MH_I2C_Read... [11:46:11]OFD Sender: No OFD packet to send [11:46:12]*** Cut start [11:46:12]*** Partial cut [11:46:12]*** CUTSNS_PIN = 1 [11:46:12]*** CUTSNS_PIN = 0 [11:46:12]*** Brake cut motor [11:46:12]Read from MH i2c: 01 [11:46:12]MH_I2C_Read... [11:46:12]*** Stop cut motor [11:46:12]*** Cut end [11:46:12]Read from MH i2c: 01 07 00 [11:46:12]MH_I2C_Read... [11:46:12]Read from MH i2c: 01 07 00 C1 1F 00 00 00 00 00 FF 0F F5 [11:46:12]process_action close_receipt done [11:46:12]requested_data is exist [11:46:12]produce_requested_data [11:46:12]requested_item fm.sn is exist - process it [11:46:12]wFMCommunicate request_size=4 [11:46:12]MH_SAM_APDU [11:46:12]CAPDU: 80 11 00 00 [11:46:12]Write to MH i2c: E2 08 00 C2 1F 80 11 00 00 00 00 00 00 5B [11:46:12]Write i2c OK [11:46:12]MH_I2C_Read... [11:46:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:46:12]Read from MH i2c: E2 [11:46:12]MH_I2C_Read... [11:46:12]Read from MH i2c: E2 17 00 [11:46:12]MH_I2C_Read... [11:46:12]Read from MH i2c: E2 17 00 C2 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 A6 [11:46:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [11:46:12]wFMCommunicate OK [11:46:12]requested_item fd.num is exist - process it [11:46:12]SAM_PROTO_GetFieldsCounters [11:46:12]wFMCommunicate request_size=4 [11:46:12]MH_SAM_APDU [11:46:12]CAPDU: 80 13 00 00 [11:46:12]Write to MH i2c: E2 08 00 C3 1F 80 13 00 00 00 00 00 00 5E [11:46:12]Write i2c OK [11:46:12]MH_I2C_Read... [11:46:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:46:12]Read from MH i2c: E2 [11:46:12]MH_I2C_Read... [11:46:12]Read from MH i2c: E2 62 00 [11:46:12]MH_I2C_Read... [11:46:12]Read from MH i2c: E2 62 00 C3 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 D2 0B 01 00 0E 04 04 00 45 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 56 [11:46:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 D2 0B 01 00 0E 04 04 00 45 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 [11:46:12]wFMCommunicate OK [11:46:12]SAM_PROTO_GetFieldsCounters done [11:46:12]requested_item shift.num is exist - process it [11:46:12]requested_item shift.opened is exist - process it [11:46:12]req_shift_opened [11:46:12]FM_GetShiftState [11:46:12]SAM_PROTO_GetShiftState [11:46:12]wFMCommunicate request_size=4 [11:46:12]MH_SAM_APDU [11:46:12]CAPDU: 80 13 01 00 [11:46:12]Write to MH i2c: E2 08 00 C4 1F 80 13 01 00 00 00 00 00 60 [11:46:12]Write i2c OK [11:46:12]MH_I2C_Read... [11:46:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:46:12]Read from MH i2c: E2 [11:46:12]MH_I2C_Read... [11:46:12]Read from MH i2c: E2 0E 00 [11:46:12]MH_I2C_Read... [11:46:13]Read from MH i2c: E2 0E 00 C4 1F 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 FC [11:46:13]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [11:46:13]wFMCommunicate OK [11:46:13]SAM_PROTO_GetShiftState done [11:46:13]FM_GetShiftState done [11:46:13]req_shift_opened done [11:46:13]requested_item shift.open_date is exist - process it [11:46:13]req_shift_open_date [11:46:13]req_shift_open_date done [11:46:13]produce_requested_data done [11:46:13]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68562,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [11:46:13]process_action_free close_receipt [11:46:13]json_value_free [11:46:13]json_value_free done [11:46:13]process_json_proto returns [11:46:13]Send response to host [11:46:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68562,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [11:46:13]free response buf [11:46:13]execute_script done [11:46:13]execute_script returns [11:46:13]free content buf [11:46:13]Sock 9.Close socket [11:46:13]Sock 9.Thread stoped [11:46:16]OFD Sender: No OFD packet to send [11:46:21]OFD Sender: No OFD packet to send [11:46:26]OFD Sender: No OFD packet to send [11:46:31]OFD Sender: No OFD packet to send [11:46:36]OFD Sender: No OFD packet to send [11:46:41]OFD Sender: No OFD packet to send [11:46:46]OFD Sender: No OFD packet to send [11:46:51]OFD Sender: No OFD packet to send [11:46:56]OFD Sender: No OFD packet to send [11:47:01]OFD Sender: No OFD packet to send [11:47:06]OFD Sender: No OFD packet to send [11:47:11]OFD Sender: No OFD packet to send [11:47:16]OFD Sender: No OFD packet to send [11:47:21]OFD Sender: No OFD packet to send [11:47:26]OFD Sender: No OFD packet to send [11:47:31]OFD Sender: No OFD packet to send [11:47:36]OFD Sender: No OFD packet to send [11:47:41]OFD Sender: No OFD packet to send [11:47:46]OFD Sender: No OFD packet to send [11:47:51]OFD Sender: No OFD packet to send [11:47:56]OFD Sender: No OFD packet to send [11:48:01]OFD Sender: No OFD packet to send [11:48:06]OFD Sender: No OFD packet to send [11:48:11]OFD Sender: No OFD packet to send [11:48:16]OFD Sender: No OFD packet to send [11:48:21]OFD Sender: No OFD packet to send [11:48:26]OFD Sender: No OFD packet to send [11:48:31]OFD Sender: No OFD packet to send [11:48:36]OFD Sender: No OFD packet to send [11:48:41]OFD Sender: No OFD packet to send [11:48:46]OFD Sender: No OFD packet to send [11:48:51]OFD Sender: No OFD packet to send [11:48:56]OFD Sender: No OFD packet to send [11:49:01]OFD Sender: No OFD packet to send [11:49:06]OFD Sender: No OFD packet to send [11:49:11]OFD Sender: No OFD packet to send [11:49:16]OFD Sender: No OFD packet to send [11:49:21]OFD Sender: No OFD packet to send [11:49:26]OFD Sender: No OFD packet to send [11:49:31]OFD Sender: No OFD packet to send [11:49:36]OFD Sender: No OFD packet to send [11:49:41]OFD Sender: No OFD packet to send [11:49:46]OFD Sender: No OFD packet to send [11:49:51]OFD Sender: No OFD packet to send [11:49:56]OFD Sender: No OFD packet to send [11:50:01]OFD Sender: No OFD packet to send [11:50:06]OFD Sender: No OFD packet to send [11:50:11]OFD Sender: No OFD packet to send [11:50:16]OFD Sender: No OFD packet to send [11:50:21]OFD Sender: No OFD packet to send [11:50:26]OFD Sender: No OFD packet to send [11:50:31]OFD Sender: No OFD packet to send [11:50:36]OFD Sender: No OFD packet to send [11:50:41]OFD Sender: No OFD packet to send [11:50:46]OFD Sender: No OFD packet to send [11:50:51]OFD Sender: No OFD packet to send [11:50:56]OFD Sender: No OFD packet to send [11:51:01]OFD Sender: No OFD packet to send [11:51:06]OFD Sender: No OFD packet to send [11:51:11]OFD Sender: No OFD packet to send [11:51:16]OFD Sender: No OFD packet to send [11:51:21]OFD Sender: No OFD packet to send [11:51:26]OFD Sender: No OFD packet to send [11:51:31]OFD Sender: No OFD packet to send [11:51:36]OFD Sender: No OFD packet to send [11:51:41]OFD Sender: No OFD packet to send [11:51:46]OFD Sender: No OFD packet to send [11:51:51]OFD Sender: No OFD packet to send [11:51:56]OFD Sender: No OFD packet to send [11:52:01]OFD Sender: No OFD packet to send [11:52:06]OFD Sender: No OFD packet to send [11:52:11]OFD Sender: No OFD packet to send [11:52:16]OFD Sender: No OFD packet to send [11:52:21]OFD Sender: No OFD packet to send [11:52:26]OFD Sender: No OFD packet to send [11:52:31]OFD Sender: No OFD packet to send [11:52:36]OFD Sender: No OFD packet to send [11:52:41]OFD Sender: No OFD packet to send [11:52:44]accept exits with 7 [11:52:44]New connection [11:52:44]New thread 3067084132 created [11:52:44]Thread 3067227492 joined [11:52:44]Waiting for new connection... [11:52:44] Sock 7.Parse request [11:52:44]Sock 7.Check first char [11:52:44]Sock 7.First char is OK [11:52:44]request: POST /json_proto HTTP/1.0 [11:52:44]Method: POST [11:52:44]URL: /json_proto [11:52:44]Method is POST - this is cgi request [11:52:44]url: /json_proto [11:52:44]query_string will be loaded in cgi processing [11:52:44]execute_cgi json_proto POST (null) [11:52:44]execute_cgi path=json_proto method=POST [11:52:44]POST find Content-Length [11:52:44]Host: 172.17.36.132:8080 [11:52:44]Content-Length: 840 [11:52:44]Content-Type: application/json [11:52:44] [11:52:44]POST finish read [11:52:44]Found Content-Length = 840 [11:52:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706688", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 6.000, "sum" : 401.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 401.40 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:52:44]execute_script... [11:52:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706688", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 6.000, "sum" : 401.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 401.40 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:52:44]POST & json_proto [11:52:44]process_json_proto [11:52:44]json parsed OK: [11:52:44]protocol is kg_v1.0 [11:52:44]action value=close_receipt [11:52:44]process_action close_receipt [11:52:44]cmd_close_receipt [11:52:44]MH_GetDate [11:52:44]Write to MH i2c: F0 00 00 C5 1F D3 [11:52:44]Write i2c OK [11:52:44]MH_I2C_Read... [11:52:44]Read from MH i2c: F0 [11:52:44]MH_I2C_Read... [11:52:44]Read from MH i2c: F0 09 00 [11:52:44]MH_I2C_Read... [11:52:44]Read from MH i2c: F0 09 00 C5 1F 00 10 00 5F 66 B2 22 B0 64 99 [11:52:44]GetLastDocTimeStamp 1717501573 [11:52:44]current date 1717501968 [11:52:44]FM_GetShiftState [11:52:44]SAM_PROTO_GetShiftState [11:52:44]wFMCommunicate request_size=4 [11:52:44]MH_SAM_APDU [11:52:44]CAPDU: 80 13 01 00 [11:52:44]Write to MH i2c: E2 08 00 C6 1F 80 13 01 00 00 00 00 00 62 [11:52:44]Write i2c OK [11:52:44]MH_I2C_Read... [11:52:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:52:44]Read from MH i2c: E2 [11:52:44]MH_I2C_Read... [11:52:44]Read from MH i2c: E2 0E 00 [11:52:44]MH_I2C_Read... [11:52:44]Read from MH i2c: E2 0E 00 C6 1F 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 FE [11:52:44]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [11:52:44]wFMCommunicate OK [11:52:44]SAM_PROTO_GetShiftState done [11:52:44]FM_GetShiftState done [11:52:44]opened in 1717460590 [11:52:44]opened+sec_in_day 1717546990 [11:52:44]quantity*price = 40140 [11:52:44]sum+1 = 40141 [11:52:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 401.40 НСП 1% : 3.55 НДС 12% : 42.63 Наличными: 0.00 Безнал.: 401.40 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 61 04.06.2024 11:52 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000965400 ФД: 68563 ФПД: 46445654095036 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T115248&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68563&fm=46445654095036&tin=02508201610067®Number=0000000000098096&sum=40140 [11:52:45]StoreToDocumentArchive [11:52:45]shift 325 fd 68563 [11:52:45]save to /storage/0325/doc_00068563 [11:52:45]save last doc name /storage/0325/doc_00068563 to /storage/kkm_last_doc_name [11:52:45]save OK [11:52:45]Clear old archive folders... [11:52:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:52:45]tlvbuf is B6F98340 [11:52:45]SAM_PROTO_ClearQueue [11:52:45]wFMCommunicate request_size=4 [11:52:45]MH_SAM_APDU [11:52:45]CAPDU: 80 09 00 00 [11:52:45]Write to MH i2c: E2 08 00 D3 1F 80 09 00 00 00 00 00 00 64 [11:52:45]Write i2c OK [11:52:45]MH_I2C_Read... [11:52:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:52:45]Read from MH i2c: E2 [11:52:45]MH_I2C_Read... [11:52:45]Read from MH i2c: E2 03 00 [11:52:45]MH_I2C_Read... [11:52:45]Read from MH i2c: E2 03 00 D3 1F 00 90 00 66 [11:52:45]RAPDU: 90 00 [11:52:45]wFMCommunicate OK [11:52:45]SAM_PROTO_ClearQueue done [11:52:45]KKMCreateOFDPacket [11:52:45]OFDProtocolAddRootSTLVToBuf [11:52:45]FM_MakeSignedData [11:52:45]FM_MakeSignedData [11:52:45]SAM_PROTO_SignData [11:52:45]wFMCommunicate request_size=4 [11:52:45]MH_SAM_APDU [11:52:45]CAPDU: 80 0D 01 02 [11:52:45]Write to MH i2c: E2 08 00 D4 1F 80 0D 01 02 00 00 00 00 6C [11:52:45]Write i2c OK [11:52:45]MH_I2C_Read... [11:52:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:52:45]Read from MH i2c: E2 [11:52:45]MH_I2C_Read... [11:52:45]Read from MH i2c: E2 03 00 [11:52:45]MH_I2C_Read... [11:52:45]Read from MH i2c: E2 03 00 D4 1F 00 90 00 67 [11:52:45]RAPDU: 90 00 [11:52:45]wFMCommunicate OK [11:52:45]wFMCommunicate request_size=255 [11:52:45]MH_SAM_APDU [11:52: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 34 FF 03 08 00 03 70 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CC 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CC 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 10 00 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 D3 0B 01 00 35 04 06 00 2A [11:52:45]Write to MH i2c: E2 02 01 D5 1F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 70 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CC 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CC 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 10 00 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 D3 0B 01 00 35 04 06 00 2A 00 00 EB [11:52:45]Write i2c OK [11:52:45]MH_I2C_Read... [11:52:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:52:45]Read from MH i2c: E2 [11:52:45]MH_I2C_Read... [11:52:45]Read from MH i2c: E2 03 00 [11:52:45]MH_I2C_Read... [11:52:45]Read from MH i2c: E2 03 00 D5 1F 00 90 00 68 [11:52:45]RAPDU: 90 00 [11:52:45]wFMCommunicate OK [11:52:45]wFMCommunicate request_size=10 [11:52:45]MH_SAM_APDU [11:52:45]CAPDU: 80 0D 02 02 05 3D F8 B6 B4 BC [11:52:45]Write to MH i2c: E2 0D 00 D6 1F 80 0D 02 02 05 00 3D F8 B6 B4 BC 00 00 D4 [11:52:45]Write i2c OK [11:52:45]MH_I2C_Read... [11:52:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:52:45]Read from MH i2c: E2 [11:52:45]MH_I2C_Read... [11:52:45]Read from MH i2c: E2 03 00 [11:52:45]MH_I2C_Read... [11:52:45]Read from MH i2c: E2 03 00 D6 1F 00 90 00 69 [11:52:45]RAPDU: 90 00 [11:52:45]wFMCommunicate OK [11:52:45]wFMCommunicate request_size=4 [11:52:45]MH_SAM_APDU [11:52:45]CAPDU: 80 0D 03 02 [11:52:45]Write to MH i2c: E2 08 00 D7 1F 80 0D 03 02 00 00 00 00 71 [11:52:45]Write i2c OK [11:52:45]MH_I2C_Read... [11:52:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:52:45]Read from MH i2c: E2 [11:52:45]MH_I2C_Read... [11:52:45]Read from MH i2c: E2 0B 00 [11:52:45]MH_I2C_Read... [11:52:45]Read from MH i2c: E2 0B 00 D7 1F 00 B5 FB 8E 61 B5 FB 8D 2C 90 00 7A [11:52:45]RAPDU: B5 FB 8E 61 B5 FB 8D 2C 90 00 [11:52:45]wFMCommunicate OK [11:52:45]SAM_PROTO_SignData done [11:52:45]FM_MakeSignedData done [11:52:45]CreateOFDProtocolMessage [11:52:45]wFMCommunicate request_size=4 [11:52:45]MH_SAM_APDU [11:52:45]CAPDU: 80 11 00 00 [11:52:45]Write to MH i2c: E2 08 00 D8 1F 80 11 00 00 00 00 00 00 71 [11:52:45]Write i2c OK [11:52:45]MH_I2C_Read... [11:52:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:52:45]Read from MH i2c: E2 [11:52:45]MH_I2C_Read... [11:52:45]Read from MH i2c: E2 17 00 [11:52:45]MH_I2C_Read... [11:52:45]Read from MH i2c: E2 17 00 D8 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 BC [11:52:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [11:52:45]wFMCommunicate OK [11:52:45]CreateOFDProtocolMessage done [11:52:45]OFDSenderStorePacket 68563 [11:52:45]StoreOFDPacket docnum=68563 [11:52:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 10 E7 07 01 8E 56 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 70 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CC 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CC 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 10 00 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 D3 0B 01 00 35 04 06 00 2A 3D F8 B6 B4 BC B5 FB 8E 61 B5 FB 8D 2C [11:52:45]CheckFolder [11:52:45]dirname=/storage/ofd_packets [11:52:45]CheckFolder done [11:52:45]ProducePacketName [11:52:45]name=ofd_packets/00068563 [11:52:45]NVStorageSaveData ofd_packets/00068563 [11:52:45]File name is /storage/ofd_packets/00068563 [11:52:45]Write 301 bytes [11:52:45]NVStorageSaveData done [11:52:45]OFDSenderStorePacket done [11:52:45]KKMCreateOFDPacket done [11:52:45]NVStorageSaveData kkm_last_timestamp [11:52:45]File name is /storage/kkm_last_timestamp [11:52:45]Write 4 bytes [11:52:45]NVStorageSaveData done [11:52:45]ExternCall_PrintAddStr [11:52:45]wPrintStart [11:52:45]Write to MH i2c: 01 00 00 D9 1F F8 [11:52:45]Write i2c OK [11:52:45]MH_I2C_Read... [11:52:45]Read from MH i2c: 01 [11:52:45]MH_I2C_Read... [11:52:45]Read from MH i2c: 01 07 00 [11:52:45]MH_I2C_Read... [11:52:45]Read from MH i2c: 01 07 00 D9 1F 00 00 00 00 00 FF 0F 0D [11:52:45]RasterBufferAndPrint [11:52:45]line Счет N : (1)706688 [11:52:45]line ИНН: 02508201610067 [11:52:45]line Контрольно-Кассовый Чек [11:52:45]line ПРОДАЖА [11:52:45]line ТРК (МРК, ГНК) : 53 [11:52:45]line Товар: 2710124130 [11:52:45]line Аи-92-К-4 [11:52:45]line 6.000 * 66.90 [11:52:45]line = 401.40 [11:52:45]line НДС 12% НСП 1% [11:52:45]line > о реализуемом товаре [11:52:45]line ИТОГО: 401.40 [11:52:45]line НСП 1% : 3.55 [11:52:45]line НДС 12% : 42.63 [11:52:45]line Наличными: 0.00 [11:52:45]line Безнал.: 401.40 [11:52:45]line Место: АЗС № 62 "Партнер Нефть" [11:52:45]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [11:52:45]line СНО: Общий режим [11:52:45]line Чек 61 04.06.2024 11:52 [11:52:45]line Смена: 325 ФФД: 1.0 [11:52:45]line ЗНМ: 0300000181 [11:52:45]line РНМ: 0000000000098096 [11:52:45]line Версия ККМ: 001 [11:52:45]line Платежная система: АКБ Кыргызстан [11:52:45]line ФМ: 0000000000965400 [11:52:45]line ФД: 68563 [11:52:45]line ФПД: 46445654095036 [11:52:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T115248&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68563&fm=46445654095036&tin=02508201610067®Number=0000000000098096&sum=40140 [11:52:46]OFD Sender: Processing packet 68563 [packets to send 26, broken 25] [11:52:46]ProducePacketName [11:52:46]name=ofd_packets/00068563 [11:52:46]OFD Sender: To server: pG, [11:52:46]CommunicateWithHost lk.salyk.kg:30040 [11:52:46]ConnectInit lk.salyk.kg [11:52:46]written 0, free lines is 4095 [11:52:46]Connected sock=10 [11:52:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 10 E7 07 01 8E 56 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 70 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CC 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CC 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 10 00 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 D3 0B 01 00 35 04 06 00 2A 3D F8 B6 B4 BC B5 FB 8E 61 B5 FB 8D 2C [11:52:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 26 B2 47 00 C3 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 39 36 35 34 30 30 10 04 04 00 D3 0B 01 00 F4 03 04 00 08 A7 5E 66 B6 04 01 00 00 89 54 BA 2B 1F 9F BC F8 [11:52:46]CommunicateWithHost err = 0 [11:52:46]CheckOFDResponse [11:52:46]1017 (14) - 77093643461234 [11:52:46]1041 (16) - 0000000000965400 [11:52:46]1040 (4) - 68563 [11:52:46]1012 (4) - 04.06.2024 05:32 [11:52:46]1206 (1) - 0 [11:52:46]OFD Sender: Remove packet 68563 [11:52:46]ProducePacketName [11:52:46]name=ofd_packets/00068563 [11:52:46]NVStorageDeleteData [11:52:46]Write to MH i2c: 01 00 00 03 20 23 [11:52:46]Write i2c OK [11:52:46]MH_I2C_Read... [11:52:46]Read from MH i2c: 01 [11:52:46]MH_I2C_Read... [11:52:46]Read from MH i2c: 01 07 00 [11:52:46]MH_I2C_Read... [11:52:46]Read from MH i2c: 01 07 00 03 20 00 00 00 00 00 E9 0C 1F [11:52:46]RasterBufferAndPrint [11:52:46]line [11:52:46]line [11:52:46]line [11:52:46]line [11:52:46]line [11:52:46]written 0, free lines is 3311 [11:52:46]MH_Cut [11:52:46]Write to MH i2c: D1 01 00 0A 20 01 FC [11:52:46]Write i2c OK [11:52:46]MH_I2C_Read... [11:52:46]Read from MH i2c: D1 [11:52:46]MH_I2C_Read... [11:52:46]Read from MH i2c: D1 01 00 [11:52:46]MH_I2C_Read... [11:52:46]Read from MH i2c: D1 01 00 0A 20 00 FB [11:52:46]Write to MH i2c: 01 00 00 0B 20 2B [11:52:46]Write i2c OK [11:52:46]MH_I2C_Read... [11:52:46]OFD Sender: No OFD packet to send [11:52:47]*** Cut start [11:52:47]*** Partial cut [11:52:47]*** CUTSNS_PIN = 1 [11:52:47]*** CUTSNS_PIN = 0 [11:52:47]*** Brake cut motor [11:52:47]Read from MH i2c: 01 [11:52:47]MH_I2C_Read... [11:52:47]*** Stop cut motor [11:52:47]*** Cut end [11:52:47]Read from MH i2c: 01 07 00 [11:52:47]MH_I2C_Read... [11:52:48]Read from MH i2c: 01 07 00 0B 20 00 00 00 00 00 FF 0F 40 [11:52:48]process_action close_receipt done [11:52:48]requested_data is exist [11:52:48]produce_requested_data [11:52:48]requested_item fm.sn is exist - process it [11:52:48]wFMCommunicate request_size=4 [11:52:48]MH_SAM_APDU [11:52:48]CAPDU: 80 11 00 00 [11:52:48]Write to MH i2c: E2 08 00 0C 20 80 11 00 00 00 00 00 00 A6 [11:52:48]Write i2c OK [11:52:48]MH_I2C_Read... [11:52:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:52:48]Read from MH i2c: E2 [11:52:48]MH_I2C_Read... [11:52:48]Read from MH i2c: E2 17 00 [11:52:48]MH_I2C_Read... [11:52:48]Read from MH i2c: E2 17 00 0C 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 F1 [11:52:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [11:52:48]wFMCommunicate OK [11:52:48]requested_item fd.num is exist - process it [11:52:48]SAM_PROTO_GetFieldsCounters [11:52:48]wFMCommunicate request_size=4 [11:52:48]MH_SAM_APDU [11:52:48]CAPDU: 80 13 00 00 [11:52:48]Write to MH i2c: E2 08 00 0D 20 80 13 00 00 00 00 00 00 A9 [11:52:48]Write i2c OK [11:52:48]MH_I2C_Read... [11:52:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:52:48]Read from MH i2c: E2 [11:52:48]MH_I2C_Read... [11:52:48]Read from MH i2c: E2 62 00 [11:52:48]MH_I2C_Read... [11:52:48]Read from MH i2c: E2 62 00 0D 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 D3 0B 01 00 0E 04 04 00 45 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 A5 [11:52:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 D3 0B 01 00 0E 04 04 00 45 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 [11:52:48]wFMCommunicate OK [11:52:48]SAM_PROTO_GetFieldsCounters done [11:52:48]requested_item shift.num is exist - process it [11:52:48]requested_item shift.opened is exist - process it [11:52:48]req_shift_opened [11:52:48]FM_GetShiftState [11:52:48]SAM_PROTO_GetShiftState [11:52:48]wFMCommunicate request_size=4 [11:52:48]MH_SAM_APDU [11:52:48]CAPDU: 80 13 01 00 [11:52:48]Write to MH i2c: E2 08 00 0E 20 80 13 01 00 00 00 00 00 AB [11:52:48]Write i2c OK [11:52:48]MH_I2C_Read... [11:52:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:52:48]Read from MH i2c: E2 [11:52:48]MH_I2C_Read... [11:52:48]Read from MH i2c: E2 0E 00 [11:52:48]MH_I2C_Read... [11:52:48]Read from MH i2c: E2 0E 00 0E 20 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 47 [11:52:48]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [11:52:48]wFMCommunicate OK [11:52:48]SAM_PROTO_GetShiftState done [11:52:48]FM_GetShiftState done [11:52:48]req_shift_opened done [11:52:48]requested_item shift.open_date is exist - process it [11:52:48]req_shift_open_date [11:52:48]req_shift_open_date done [11:52:48]produce_requested_data done [11:52:48]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68563,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [11:52:48]process_action_free close_receipt [11:52:48]json_value_free [11:52:48]json_value_free done [11:52:48]process_json_proto returns [11:52:48]Send response to host [11:52:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68563,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [11:52:48]free response buf [11:52:48]execute_script done [11:52:48]execute_script returns [11:52:48]free content buf [11:52:48]Sock 7.Close socket [11:52:48]Sock 7.Thread stoped [11:52:51]OFD Sender: No OFD packet to send [11:52:56]OFD Sender: No OFD packet to send [11:53:01]OFD Sender: No OFD packet to send [11:53:06]OFD Sender: No OFD packet to send [11:53:11]OFD Sender: No OFD packet to send [11:53:16]OFD Sender: No OFD packet to send [11:53:21]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:46]OFD Sender: No OFD packet to send [11:54:52]OFD Sender: No OFD packet to send [11:54:57]OFD Sender: No OFD packet to send [11:55:02]OFD Sender: No OFD packet to send [11:55:07]OFD Sender: No OFD packet to send [11:55:12]OFD Sender: No OFD packet to send [11:55:17]OFD Sender: No OFD packet to send [11:55:22]OFD Sender: No OFD packet to send [11:55:27]OFD Sender: No OFD packet to send [11:55:32]OFD Sender: No OFD packet to send [11:55:37]OFD Sender: No OFD packet to send [11:55:42]OFD Sender: No OFD packet to send [11:55:47]OFD Sender: No OFD packet to send [11:55:52]OFD Sender: No OFD packet to send [11:55:57]OFD Sender: No OFD packet to send [11:56:02]OFD Sender: No OFD packet to send [11:56:07]OFD Sender: No OFD packet to send [11:56:12]OFD Sender: No OFD packet to send [11:56:17]OFD Sender: No OFD packet to send [11:56:22]OFD Sender: No OFD packet to send [11:56:27]OFD Sender: No OFD packet to send [11:56:32]OFD Sender: No OFD packet to send [11:56:37]OFD Sender: No OFD packet to send [11:56:42]OFD Sender: No OFD packet to send [11:56:47]OFD Sender: No OFD packet to send [11:56:52]OFD Sender: No OFD packet to send [11:56:57]OFD Sender: No OFD packet to send [11:57:02]OFD Sender: No OFD packet to send [11:57:07]OFD Sender: No OFD packet to send [11:57:12]OFD Sender: No OFD packet to send [11:57:15]accept exits with 9 [11:57:15]New connection [11:57:15]New thread 3067227492 created [11:57:15]Thread 3067084132 joined [11:57:15]Waiting for new connection... [11:57:15] Sock 9.Parse request [11:57:15]Sock 9.Check first char [11:57:15]Sock 9.First char is OK [11:57:15]request: POST /json_proto HTTP/1.0 [11:57:15]Method: POST [11:57:15]URL: /json_proto [11:57:15]Method is POST - this is cgi request [11:57:15]url: /json_proto [11:57:15]query_string will be loaded in cgi processing [11:57:15]execute_cgi json_proto POST (null) [11:57:15]execute_cgi path=json_proto method=POST [11:57:15]POST find Content-Length [11:57:15]Host: 172.17.36.132:8080 [11:57:15]Content-Length: 677 [11:57:15]Content-Type: application/json [11:57:15] [11:57:15]POST finish read [11:57:15]Found Content-Length = 677 [11:57:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706689", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 3.640, "sum" : 243.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 243.00, "total" : 243.00, "payments": [ { "type": 0, "sum" : 243.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:57:15]execute_script... [11:57: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)706689", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 3.640, "sum" : 243.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 243.00, "total" : 243.00, "payments": [ { "type": 0, "sum" : 243.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:57:15]POST & json_proto [11:57:15]process_json_proto [11:57:15]json parsed OK: [11:57:15]protocol is kg_v1.0 [11:57:15]action value=close_receipt [11:57:15]process_action close_receipt [11:57:15]cmd_close_receipt [11:57:15]MH_GetDate [11:57:15]Write to MH i2c: F0 00 00 0F 20 1E [11:57:15]Write i2c OK [11:57:15]MH_I2C_Read... [11:57:15]Read from MH i2c: F0 [11:57:15]MH_I2C_Read... [11:57:15]Read from MH i2c: F0 09 00 [11:57:15]MH_I2C_Read... [11:57:15]Read from MH i2c: F0 09 00 0F 20 00 1F 01 5F 66 B2 22 B0 64 F4 [11:57:15]GetLastDocTimeStamp 1717501968 [11:57:15]current date 1717502239 [11:57:15]FM_GetShiftState [11:57:15]SAM_PROTO_GetShiftState [11:57:15]wFMCommunicate request_size=4 [11:57:15]MH_SAM_APDU [11:57:15]CAPDU: 80 13 01 00 [11:57:15]Write to MH i2c: E2 08 00 10 20 80 13 01 00 00 00 00 00 AD [11:57:15]Write i2c OK [11:57:15]MH_I2C_Read... [11:57:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:57:15]Read from MH i2c: E2 [11:57:15]MH_I2C_Read... [11:57:15]Read from MH i2c: E2 0E 00 [11:57:15]MH_I2C_Read... [11:57:15]Read from MH i2c: E2 0E 00 10 20 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 49 [11:57:15]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [11:57:15]wFMCommunicate OK [11:57:15]SAM_PROTO_GetShiftState done [11:57:15]FM_GetShiftState done [11:57:15]opened in 1717460590 [11:57:15]opened+sec_in_day 1717546990 [11:57:15]quantity*price = 24351 [11:57:15]sum+1 = 24353 [11:57:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 243.00 Внесено: 243.00 СДАЧА: 0.00 НСП 1% : 2.15 НДС 12% : 25.86 Наличными: 243.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 62 04.06.2024 11:57 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68564 ФПД: 208587400554722 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T115719&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68564&fm=208587400554722&tin=02508201610067®Number=0000000000098096&sum=24300 [11:57:16]StoreToDocumentArchive [11:57:16]shift 325 fd 68564 [11:57:16]save to /storage/0325/doc_00068564 [11:57:16]save last doc name /storage/0325/doc_00068564 to /storage/kkm_last_doc_name [11:57:16]save OK [11:57:16]Clear old archive folders... [11:57:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:57:16]tlvbuf is 00A5A700 [11:57:16]SAM_PROTO_ClearQueue [11:57:16]wFMCommunicate request_size=4 [11:57:16]MH_SAM_APDU [11:57:16]CAPDU: 80 09 00 00 [11:57:16]Write to MH i2c: E2 08 00 1D 20 80 09 00 00 00 00 00 00 AF [11:57:16]Write i2c OK [11:57:16]MH_I2C_Read... [11:57:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:57:16]Read from MH i2c: E2 [11:57:16]MH_I2C_Read... [11:57:16]Read from MH i2c: E2 03 00 [11:57:16]MH_I2C_Read... [11:57:16]Read from MH i2c: E2 03 00 1D 20 00 90 00 B1 [11:57:16]RAPDU: 90 00 [11:57:16]wFMCommunicate OK [11:57:16]SAM_PROTO_ClearQueue done [11:57:16]KKMCreateOFDPacket [11:57:16]OFDProtocolAddRootSTLVToBuf [11:57:16]FM_MakeSignedData [11:57:16]FM_MakeSignedData [11:57:16]SAM_PROTO_SignData [11:57:16]wFMCommunicate request_size=4 [11:57:16]MH_SAM_APDU [11:57:16]CAPDU: 80 0D 01 02 [11:57:16]Write to MH i2c: E2 08 00 1E 20 80 0D 01 02 00 00 00 00 B7 [11:57:16]Write i2c OK [11:57:16]MH_I2C_Read... [11:57:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:57:16]Read from MH i2c: E2 [11:57:16]MH_I2C_Read... [11:57:16]Read from MH i2c: E2 03 00 [11:57:16]MH_I2C_Read... [11:57:16]Read from MH i2c: E2 03 00 1E 20 00 90 00 B2 [11:57:16]RAPDU: 90 00 [11:57:16]wFMCommunicate OK [11:57:16]wFMCommunicate request_size=255 [11:57:16]MH_SAM_APDU [11:57:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 20 5F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 5E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1A 0A 00 00 00 00 07 04 06 00 EC 5E 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 1F 01 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 D4 0B 01 00 35 04 06 00 BD [11:57:16]Write to MH i2c: E2 02 01 1F 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 34 FF 03 08 00 03 38 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 20 5F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 5E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1A 0A 00 00 00 00 07 04 06 00 EC 5E 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 1F 01 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 D4 0B 01 00 35 04 06 00 BD 00 00 55 [11:57:16]Write i2c OK [11:57:16]MH_I2C_Read... [11:57:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:57:17]Read from MH i2c: E2 [11:57:17]MH_I2C_Read... [11:57:17]Read from MH i2c: E2 03 00 [11:57:17]MH_I2C_Read... [11:57:17]Read from MH i2c: E2 03 00 1F 20 00 90 00 B3 [11:57:17]RAPDU: 90 00 [11:57:17]wFMCommunicate OK [11:57:17]wFMCommunicate request_size=10 [11:57:17]MH_SAM_APDU [11:57:17]CAPDU: 80 0D 02 02 05 B5 89 EA 28 E2 [11:57:17]Write to MH i2c: E2 0D 00 20 20 80 0D 02 02 05 00 B5 89 EA 28 E2 00 00 F6 [11:57:17]Write i2c OK [11:57:17]MH_I2C_Read... [11:57:17]OFD Sender: No OFD packet to send [11:57:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:57:17]Read from MH i2c: E2 [11:57:17]MH_I2C_Read... [11:57:17]Read from MH i2c: E2 03 00 [11:57:17]MH_I2C_Read... [11:57:17]Read from MH i2c: E2 03 00 20 20 00 90 00 B4 [11:57:17]RAPDU: 90 00 [11:57:17]wFMCommunicate OK [11:57:17]wFMCommunicate request_size=4 [11:57:17]MH_SAM_APDU [11:57:17]CAPDU: 80 0D 03 02 [11:57:17]Write to MH i2c: E2 08 00 21 20 80 0D 03 02 00 00 00 00 BC [11:57:17]Write i2c OK [11:57:17]MH_I2C_Read... [11:57:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:57:17]Read from MH i2c: E2 [11:57:17]MH_I2C_Read... [11:57:17]Read from MH i2c: E2 0B 00 [11:57:17]MH_I2C_Read... [11:57:17]Read from MH i2c: E2 0B 00 21 20 00 8E 32 C1 B0 2D 58 29 AC 90 00 48 [11:57:17]RAPDU: 8E 32 C1 B0 2D 58 29 AC 90 00 [11:57:17]wFMCommunicate OK [11:57:17]SAM_PROTO_SignData done [11:57:17]FM_MakeSignedData done [11:57:17]CreateOFDProtocolMessage [11:57:17]wFMCommunicate request_size=4 [11:57:17]MH_SAM_APDU [11:57:17]CAPDU: 80 11 00 00 [11:57:17]Write to MH i2c: E2 08 00 22 20 80 11 00 00 00 00 00 00 BC [11:57:17]Write i2c OK [11:57:17]MH_I2C_Read... [11:57:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:57:17]Read from MH i2c: E2 [11:57:17]MH_I2C_Read... [11:57:17]Read from MH i2c: E2 17 00 [11:57:17]MH_I2C_Read... [11:57:17]Read from MH i2c: E2 17 00 22 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 07 [11:57:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [11:57:17]wFMCommunicate OK [11:57:17]CreateOFDProtocolMessage done [11:57:17]OFDSenderStorePacket 68564 [11:57:17]StoreOFDPacket docnum=68564 [11:57:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 FD 4E 07 01 60 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 34 FF 03 08 00 03 38 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 20 5F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 5E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1A 0A 00 00 00 00 07 04 06 00 EC 5E 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 1F 01 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 D4 0B 01 00 35 04 06 00 BD B5 89 EA 28 E2 8E 32 C1 B0 2D 58 29 AC [11:57:17]CheckFolder [11:57:17]dirname=/storage/ofd_packets [11:57:17]CheckFolder done [11:57:17]ProducePacketName [11:57:17]name=ofd_packets/00068564 [11:57:17]NVStorageSaveData ofd_packets/00068564 [11:57:17]File name is /storage/ofd_packets/00068564 [11:57:17]Write 301 bytes [11:57:17]NVStorageSaveData done [11:57:17]OFDSenderStorePacket done [11:57:17]KKMCreateOFDPacket done [11:57:17]NVStorageSaveData kkm_last_timestamp [11:57:17]File name is /storage/kkm_last_timestamp [11:57:17]Write 4 bytes [11:57:17]NVStorageSaveData done [11:57:17]ExternCall_PrintAddStr [11:57:17]wPrintStart [11:57:17]Write to MH i2c: 01 00 00 23 20 43 [11:57:17]Write i2c OK [11:57:17]MH_I2C_Read... [11:57:17]Read from MH i2c: 01 [11:57:17]MH_I2C_Read... [11:57:17]Read from MH i2c: 01 07 00 [11:57:17]MH_I2C_Read... [11:57:17]Read from MH i2c: 01 07 00 23 20 00 00 00 00 00 FF 0F 58 [11:57:17]RasterBufferAndPrint [11:57:17]line Счет N : (1)706689 [11:57:17]line ИНН: 02508201610067 [11:57:17]line Контрольно-Кассовый Чек [11:57:17]line ПРОДАЖА [11:57:17]line ТРК (МРК, ГНК) : 53 [11:57:17]line Товар: 2710124130 [11:57:17]line Аи-92-К-4 [11:57:17]line 3.640 * 66.90 [11:57:17]line = 243.52 [11:57:17]line НДС 12% НСП 1% [11:57:17]line > о реализуемом товаре [11:57:17]line ОКРУГЛЕНИЕ: -0.52 [11:57:17]line ИТОГО: 243.00 [11:57:17]line Внесено: 243.00 [11:57:17]line СДАЧА: 0.00 [11:57:17]line НСП 1% : 2.15 [11:57:17]line НДС 12% : 25.86 [11:57:17]line Наличными: 243.00 [11:57:17]line Безнал.: 0.00 [11:57:17]line Место: АЗС № 62 "Партнер Нефть" [11:57:17]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [11:57:17]line СНО: Общий режим [11:57:17]line Чек 62 04.06.2024 11:57 [11:57:17]line Смена: 325 ФФД: 1.0 [11:57:17]line ЗНМ: 0300000181 [11:57:17]line РНМ: 0000000000098096 [11:57:17]line Версия ККМ: 001 [11:57:17]line ФМ: 0000000000965400 [11:57:17]line ФД: 68564 [11:57:17]line ФПД: 208587400554722 [11:57:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T115719&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68564&fm=208587400554722&tin=02508201610067®Number=0000000000098096&sum=24300 [11:57:17]OFD Sender: Processing packet 68564 [packets to send 26, broken 25] [11:57:17]ProducePacketName [11:57:17]name=ofd_packets/00068564 [11:57:17]OFD Sender: To server: pG, [11:57:17]CommunicateWithHost lk.salyk.kg:30040 [11:57:17]ConnectInit lk.salyk.kg [11:57:17]written 0, free lines is 4095 [11:57:17]Connected sock=10 [11:57:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 FD 4E 07 01 60 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 34 FF 03 08 00 03 38 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 20 5F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 5E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1A 0A 00 00 00 00 07 04 06 00 EC 5E 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 1F 01 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 D4 0B 01 00 35 04 06 00 BD B5 89 EA 28 E2 8E 32 C1 B0 2D 58 29 AC [11:57:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 EB 86 47 00 69 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 39 36 35 34 30 30 10 04 04 00 D4 0B 01 00 F4 03 04 00 18 A8 5E 66 B6 04 01 00 00 F0 30 D9 DB 35 AB 56 AF [11:57:17]CommunicateWithHost err = 0 [11:57:17]CheckOFDResponse [11:57:17]1017 (14) - 77093643461234 [11:57:17]1041 (16) - 0000000000965400 [11:57:17]1040 (4) - 68564 [11:57:17]1012 (4) - 04.06.2024 05:37 [11:57:17]1206 (1) - 0 [11:57:17]OFD Sender: Remove packet 68564 [11:57:17]ProducePacketName [11:57:17]name=ofd_packets/00068564 [11:57:17]NVStorageDeleteData [11:57:18]Write to MH i2c: 01 00 00 4E 20 6E [11:57:18]Write i2c OK [11:57:18]MH_I2C_Read... [11:57:18]Read from MH i2c: 01 [11:57:18]MH_I2C_Read... [11:57:18]Read from MH i2c: 01 07 00 [11:57:18]MH_I2C_Read... [11:57:18]Read from MH i2c: 01 07 00 4E 20 00 00 00 00 00 E3 0C 64 [11:57:18]RasterBufferAndPrint [11:57:18]line [11:57:18]line [11:57:18]line [11:57:18]line [11:57:18]line [11:57:18]written 0, free lines is 3305 [11:57:18]MH_Cut [11:57:18]Write to MH i2c: D1 01 00 55 20 01 47 [11:57:18]Write i2c OK [11:57:18]MH_I2C_Read... [11:57:18]Read from MH i2c: D1 [11:57:18]MH_I2C_Read... [11:57:18]Read from MH i2c: D1 01 00 [11:57:18]MH_I2C_Read... [11:57:18]Read from MH i2c: D1 01 00 55 20 00 46 [11:57:18]Write to MH i2c: 01 00 00 56 20 76 [11:57:18]Write i2c OK [11:57:18]MH_I2C_Read... [11:57:18]OFD Sender: No OFD packet to send [11:57:18]*** Cut start [11:57:18]*** Partial cut [11:57:18]*** CUTSNS_PIN = 1 [11:57:18]*** CUTSNS_PIN = 0 [11:57:19]*** Brake cut motor [11:57:19]Read from MH i2c: 01 [11:57:19]MH_I2C_Read... [11:57:19]*** Stop cut motor [11:57:19]*** Cut end [11:57:19]Read from MH i2c: 01 07 00 [11:57:19]MH_I2C_Read... [11:57:19]Read from MH i2c: 01 07 00 56 20 00 00 00 00 00 FF 0F 8B [11:57:19]process_action close_receipt done [11:57:19]requested_data is exist [11:57:19]produce_requested_data [11:57:19]requested_item fm.sn is exist - process it [11:57:19]wFMCommunicate request_size=4 [11:57:19]MH_SAM_APDU [11:57:19]CAPDU: 80 11 00 00 [11:57:19]Write to MH i2c: E2 08 00 57 20 80 11 00 00 00 00 00 00 F1 [11:57:19]Write i2c OK [11:57:19]MH_I2C_Read... [11:57:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:57:19]Read from MH i2c: E2 [11:57:19]MH_I2C_Read... [11:57:19]Read from MH i2c: E2 17 00 [11:57:19]MH_I2C_Read... [11:57:19]Read from MH i2c: E2 17 00 57 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 3C [11:57:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [11:57:19]wFMCommunicate OK [11:57:19]requested_item fd.num is exist - process it [11:57:19]SAM_PROTO_GetFieldsCounters [11:57:19]wFMCommunicate request_size=4 [11:57:19]MH_SAM_APDU [11:57:19]CAPDU: 80 13 00 00 [11:57:19]Write to MH i2c: E2 08 00 58 20 80 13 00 00 00 00 00 00 F4 [11:57:19]Write i2c OK [11:57:19]MH_I2C_Read... [11:57:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:57:19]Read from MH i2c: E2 [11:57:19]MH_I2C_Read... [11:57:19]Read from MH i2c: E2 62 00 [11:57:19]MH_I2C_Read... [11:57:19]Read from MH i2c: E2 62 00 58 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 D4 0B 01 00 0E 04 04 00 45 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 F4 [11:57:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 D4 0B 01 00 0E 04 04 00 45 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 [11:57:19]wFMCommunicate OK [11:57:19]SAM_PROTO_GetFieldsCounters done [11:57:19]requested_item shift.num is exist - process it [11:57:19]requested_item shift.opened is exist - process it [11:57:19]req_shift_opened [11:57:19]FM_GetShiftState [11:57:19]SAM_PROTO_GetShiftState [11:57:19]wFMCommunicate request_size=4 [11:57:19]MH_SAM_APDU [11:57:19]CAPDU: 80 13 01 00 [11:57:19]Write to MH i2c: E2 08 00 59 20 80 13 01 00 00 00 00 00 F6 [11:57:19]Write i2c OK [11:57:19]MH_I2C_Read... [11:57:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:57:19]Read from MH i2c: E2 [11:57:19]MH_I2C_Read... [11:57:19]Read from MH i2c: E2 0E 00 [11:57:19]MH_I2C_Read... [11:57:19]Read from MH i2c: E2 0E 00 59 20 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 92 [11:57:19]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [11:57:19]wFMCommunicate OK [11:57:19]SAM_PROTO_GetShiftState done [11:57:19]FM_GetShiftState done [11:57:19]req_shift_opened done [11:57:19]requested_item shift.open_date is exist - process it [11:57:19]req_shift_open_date [11:57:19]req_shift_open_date done [11:57:19]produce_requested_data done [11:57:19]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68564,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [11:57:19]process_action_free close_receipt [11:57:19]json_value_free [11:57:19]json_value_free done [11:57:19]process_json_proto returns [11:57:19]Send response to host [11:57:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68564,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [11:57:19]free response buf [11:57:19]execute_script done [11:57:19]execute_script returns [11:57:19]free content buf [11:57:19]Sock 9.Close socket [11:57:19]Sock 9.Thread stoped [11:57:23]OFD Sender: No OFD packet to send [11:57:28]OFD Sender: No OFD packet to send [11:57:33]OFD Sender: No OFD packet to send [11:57:38]OFD Sender: No OFD packet to send [11:57:43]OFD Sender: No OFD packet to send [11:57:48]OFD Sender: No OFD packet to send [11:57:53]OFD Sender: No OFD packet to send [11:57:58]OFD Sender: No OFD packet to send [11:58:03]OFD Sender: No OFD packet to send [11:58:08]OFD Sender: No OFD packet to send [11:58:13]OFD Sender: No OFD packet to send [11:58:18]OFD Sender: No OFD packet to send [11:58:23]OFD Sender: No OFD packet to send [11:58:28]OFD Sender: No OFD packet to send [11:58:30]accept exits with 7 [11:58:30]New connection [11:58:30]New thread 3067084132 created [11:58:30]Thread 3067227492 joined [11:58:30]Waiting for new connection... [11:58:30] Sock 7.Parse request [11:58:30]Sock 7.Check first char [11:58:30]Sock 7.First char is OK [11:58:30]request: POST /json_proto HTTP/1.0 [11:58:30]Method: POST [11:58:30]URL: /json_proto [11:58:30]Method is POST - this is cgi request [11:58:30]url: /json_proto [11:58:30]query_string will be loaded in cgi processing [11:58:30]execute_cgi json_proto POST (null) [11:58:30]execute_cgi path=json_proto method=POST [11:58:30]POST find Content-Length [11:58:30]Host: 172.17.36.132:8080 [11:58:30]Content-Length: 677 [11:58:30]Content-Type: application/json [11:58:30] [11:58:30]POST finish read [11:58:30]Found Content-Length = 677 [11:58:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706690", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.780, "sum" : 520.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 520.00, "total" : 520.00, "payments": [ { "type": 0, "sum" : 520.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:58:30]execute_script... [11:58:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706690", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.780, "sum" : 520.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 520.00, "total" : 520.00, "payments": [ { "type": 0, "sum" : 520.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:58:30]POST & json_proto [11:58:30]process_json_proto [11:58:30]json parsed OK: [11:58:30]protocol is kg_v1.0 [11:58:30]action value=close_receipt [11:58:30]process_action close_receipt [11:58:30]cmd_close_receipt [11:58:30]MH_GetDate [11:58:30]Write to MH i2c: F0 00 00 5A 20 69 [11:58:30]Write i2c OK [11:58:30]MH_I2C_Read... [11:58:30]Read from MH i2c: F0 [11:58:30]MH_I2C_Read... [11:58:30]Read from MH i2c: F0 09 00 [11:58:30]MH_I2C_Read... [11:58:30]Read from MH i2c: F0 09 00 5A 20 00 6B 01 5F 66 B2 22 B0 64 8B [11:58:30]GetLastDocTimeStamp 1717502239 [11:58:30]current date 1717502315 [11:58:30]FM_GetShiftState [11:58:30]SAM_PROTO_GetShiftState [11:58:30]wFMCommunicate request_size=4 [11:58:30]MH_SAM_APDU [11:58:30]CAPDU: 80 13 01 00 [11:58:30]Write to MH i2c: E2 08 00 5B 20 80 13 01 00 00 00 00 00 F8 [11:58:30]Write i2c OK [11:58:30]MH_I2C_Read... [11:58:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:58:30]Read from MH i2c: E2 [11:58:30]MH_I2C_Read... [11:58:30]Read from MH i2c: E2 0E 00 [11:58:30]MH_I2C_Read... [11:58:30]Read from MH i2c: E2 0E 00 5B 20 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 94 [11:58:30]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [11:58:30]wFMCommunicate OK [11:58:30]SAM_PROTO_GetShiftState done [11:58:30]FM_GetShiftState done [11:58:30]opened in 1717460590 [11:58:30]opened+sec_in_day 1717546990 [11:58:30]quantity*price = 52048 [11:58:30]sum+1 = 52049 [11:58:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.48 ИТОГО: 520.00 Внесено: 520.00 СДАЧА: 0.00 НСП 1% : 4.61 НДС 12% : 55.27 Наличными: 520.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 63 04.06.2024 11:58 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68565 ФПД: 220543554824956 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T115835&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68565&fm=220543554824956&tin=02508201610067®Number=0000000000098096&sum=52000 [11:58:31]StoreToDocumentArchive [11:58:31]shift 325 fd 68565 [11:58:31]save to /storage/0325/doc_00068565 [11:58:31]save last doc name /storage/0325/doc_00068565 to /storage/kkm_last_doc_name [11:58:31]save OK [11:58:31]Clear old archive folders... [11:58:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:58:31]tlvbuf is 00A07E50 [11:58:31]SAM_PROTO_ClearQueue [11:58:31]wFMCommunicate request_size=4 [11:58:31]MH_SAM_APDU [11:58:31]CAPDU: 80 09 00 00 [11:58:31]Write to MH i2c: E2 08 00 68 20 80 09 00 00 00 00 00 00 FA [11:58:31]Write i2c OK [11:58:31]MH_I2C_Read... [11:58:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:58:31]Read from MH i2c: E2 [11:58:31]MH_I2C_Read... [11:58:31]Read from MH i2c: E2 03 00 [11:58:31]MH_I2C_Read... [11:58:31]Read from MH i2c: E2 03 00 68 20 00 90 00 FC [11:58:31]RAPDU: 90 00 [11:58:31]wFMCommunicate OK [11:58:31]SAM_PROTO_ClearQueue done [11:58:31]KKMCreateOFDPacket [11:58:31]OFDProtocolAddRootSTLVToBuf [11:58:31]FM_MakeSignedData [11:58:31]FM_MakeSignedData [11:58:31]SAM_PROTO_SignData [11:58:31]wFMCommunicate request_size=4 [11:58:31]MH_SAM_APDU [11:58:31]CAPDU: 80 0D 01 02 [11:58:31]Write to MH i2c: E2 08 00 69 20 80 0D 01 02 00 00 00 00 02 [11:58:31]Write i2c OK [11:58:31]MH_I2C_Read... [11:58:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:58:32]Read from MH i2c: E2 [11:58:32]MH_I2C_Read... [11:58:32]Read from MH i2c: E2 03 00 [11:58:32]MH_I2C_Read... [11:58:32]Read from MH i2c: E2 03 00 69 20 00 90 00 FD [11:58:32]RAPDU: 90 00 [11:58:32]wFMCommunicate OK [11:58:32]wFMCommunicate request_size=255 [11:58:32]MH_SAM_APDU [11:58: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 34 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 50 CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 15 00 00 00 00 07 04 06 00 20 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 6B 01 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 D5 0B 01 00 35 04 06 00 C8 [11:58:32]Write to MH i2c: E2 02 01 6A 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 34 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 50 CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 15 00 00 00 00 07 04 06 00 20 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 6B 01 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 D5 0B 01 00 35 04 06 00 C8 00 00 92 [11:58:32]Write i2c OK [11:58:32]MH_I2C_Read... [11:58:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:58:32]Read from MH i2c: E2 [11:58:32]MH_I2C_Read... [11:58:32]Read from MH i2c: E2 03 00 [11:58:32]MH_I2C_Read... [11:58:32]Read from MH i2c: E2 03 00 6A 20 00 90 00 FE [11:58:32]RAPDU: 90 00 [11:58:32]wFMCommunicate OK [11:58:32]wFMCommunicate request_size=10 [11:58:32]MH_SAM_APDU [11:58:32]CAPDU: 80 0D 02 02 05 95 4C 3E 2A FC [11:58:32]Write to MH i2c: E2 0D 00 6B 20 80 0D 02 02 05 00 95 4C 3E 2A FC 00 00 54 [11:58:32]Write i2c OK [11:58:32]MH_I2C_Read... [11:58:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:58:32]Read from MH i2c: E2 [11:58:32]MH_I2C_Read... [11:58:32]Read from MH i2c: E2 03 00 [11:58:32]MH_I2C_Read... [11:58:32]Read from MH i2c: E2 03 00 6B 20 00 90 00 FF [11:58:32]RAPDU: 90 00 [11:58:32]wFMCommunicate OK [11:58:32]wFMCommunicate request_size=4 [11:58:32]MH_SAM_APDU [11:58:32]CAPDU: 80 0D 03 02 [11:58:32]Write to MH i2c: E2 08 00 6C 20 80 0D 03 02 00 00 00 00 07 [11:58:32]Write i2c OK [11:58:32]MH_I2C_Read... [11:58:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:58:32]Read from MH i2c: E2 [11:58:32]MH_I2C_Read... [11:58:32]Read from MH i2c: E2 0B 00 [11:58:32]MH_I2C_Read... [11:58:32]Read from MH i2c: E2 0B 00 6C 20 00 D9 EB F0 BE F7 F7 48 0F 90 00 BF [11:58:32]RAPDU: D9 EB F0 BE F7 F7 48 0F 90 00 [11:58:32]wFMCommunicate OK [11:58:32]SAM_PROTO_SignData done [11:58:32]FM_MakeSignedData done [11:58:32]CreateOFDProtocolMessage [11:58:32]wFMCommunicate request_size=4 [11:58:32]MH_SAM_APDU [11:58:32]CAPDU: 80 11 00 00 [11:58:32]Write to MH i2c: E2 08 00 6D 20 80 11 00 00 00 00 00 00 07 [11:58:32]Write i2c OK [11:58:32]MH_I2C_Read... [11:58:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:58:32]Read from MH i2c: E2 [11:58:32]MH_I2C_Read... [11:58:32]Read from MH i2c: E2 17 00 [11:58:32]MH_I2C_Read... [11:58:32]Read from MH i2c: E2 17 00 6D 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 52 [11:58:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [11:58:32]wFMCommunicate OK [11:58:32]CreateOFDProtocolMessage done [11:58:32]OFDSenderStorePacket 68565 [11:58:32]StoreOFDPacket docnum=68565 [11:58:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 32 41 07 01 FA 99 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 50 CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 15 00 00 00 00 07 04 06 00 20 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 6B 01 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 D5 0B 01 00 35 04 06 00 C8 95 4C 3E 2A FC D9 EB F0 BE F7 F7 48 0F [11:58:32]CheckFolder [11:58:32]dirname=/storage/ofd_packets [11:58:32]CheckFolder done [11:58:32]ProducePacketName [11:58:32]name=ofd_packets/00068565 [11:58:32]NVStorageSaveData ofd_packets/00068565 [11:58:32]File name is /storage/ofd_packets/00068565 [11:58:32]Write 301 bytes [11:58:32]NVStorageSaveData done [11:58:32]OFDSenderStorePacket done [11:58:32]KKMCreateOFDPacket done [11:58:32]NVStorageSaveData kkm_last_timestamp [11:58:32]File name is /storage/kkm_last_timestamp [11:58:32]Write 4 bytes [11:58:32]NVStorageSaveData done [11:58:32]ExternCall_PrintAddStr [11:58:32]wPrintStart [11:58:32]Write to MH i2c: 01 00 00 6E 20 8E [11:58:32]Write i2c OK [11:58:32]MH_I2C_Read... [11:58:32]Read from MH i2c: 01 [11:58:32]MH_I2C_Read... [11:58:32]Read from MH i2c: 01 07 00 [11:58:32]MH_I2C_Read... [11:58:32]Read from MH i2c: 01 07 00 6E 20 00 00 00 00 00 FF 0F A3 [11:58:32]RasterBufferAndPrint [11:58:32]line Счет N : (1)706690 [11:58:32]line ИНН: 02508201610067 [11:58:32]line Контрольно-Кассовый Чек [11:58:32]line ПРОДАЖА [11:58:32]line ТРК (МРК, ГНК) : 32 [11:58:32]line Товар: 2710124130 [11:58:32]line Аи-92-К-4 [11:58:32]line 7.780 * 66.90 [11:58:32]line = 520.48 [11:58:32]line НДС 12% НСП 1% [11:58:32]line > о реализуемом товаре [11:58:32]line ОКРУГЛЕНИЕ: -0.48 [11:58:32]line ИТОГО: 520.00 [11:58:32]line Внесено: 520.00 [11:58:32]line СДАЧА: 0.00 [11:58:32]line НСП 1% : 4.61 [11:58:32]line НДС 12% : 55.27 [11:58:32]line Наличными: 520.00 [11:58:32]line Безнал.: 0.00 [11:58:32]line Место: АЗС № 62 "Партнер Нефть" [11:58:32]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [11:58:32]line СНО: Общий режим [11:58:32]line Чек 63 04.06.2024 11:58 [11:58:32]line Смена: 325 ФФД: 1.0 [11:58:32]line ЗНМ: 0300000181 [11:58:32]line РНМ: 0000000000098096 [11:58:32]line Версия ККМ: 001 [11:58:32]line ФМ: 0000000000965400 [11:58:32]line ФД: 68565 [11:58:32]line ФПД: 220543554824956 [11:58:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T115835&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68565&fm=220543554824956&tin=02508201610067®Number=0000000000098096&sum=52000 [11:58:32]OFD Sender: Processing packet 68565 [packets to send 26, broken 25] [11:58:32]ProducePacketName [11:58:32]name=ofd_packets/00068565 [11:58:32]OFD Sender: To server: pG, [11:58:32]CommunicateWithHost lk.salyk.kg:30040 [11:58:32]ConnectInit lk.salyk.kg [11:58:32]written 0, free lines is 4095 [11:58:32]Connected sock=9 [11:58:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 32 41 07 01 FA 99 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 50 CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 15 00 00 00 00 07 04 06 00 20 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 6B 01 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 D5 0B 01 00 35 04 06 00 C8 95 4C 3E 2A FC D9 EB F0 BE F7 F7 48 0F [11:58:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 72 CD 47 00 D9 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 39 36 35 34 30 30 10 04 04 00 D5 0B 01 00 F4 03 04 00 63 A8 5E 66 B6 04 01 00 00 7A 03 29 51 15 AF E0 8D [11:58:33]CommunicateWithHost err = 0 [11:58:33]CheckOFDResponse [11:58:33]1017 (14) - 77093643461234 [11:58:33]1041 (16) - 0000000000965400 [11:58:33]1040 (4) - 68565 [11:58:33]1012 (4) - 04.06.2024 05:38 [11:58:33]1206 (1) - 0 [11:58:33]OFD Sender: Remove packet 68565 [11:58:33]ProducePacketName [11:58:33]name=ofd_packets/00068565 [11:58:33]NVStorageDeleteData [11:58:33]Write to MH i2c: 01 00 00 99 20 B9 [11:58:33]Write i2c OK [11:58:33]MH_I2C_Read... [11:58:33]Read from MH i2c: 01 [11:58:33]MH_I2C_Read... [11:58:33]Read from MH i2c: 01 07 00 [11:58:33]MH_I2C_Read... [11:58:33]Read from MH i2c: 01 07 00 99 20 00 00 00 00 00 D6 0C A2 [11:58:33]RasterBufferAndPrint [11:58:33]line [11:58:33]line [11:58:33]line [11:58:33]line [11:58:33]line [11:58:33]written 0, free lines is 3293 [11:58:33]MH_Cut [11:58:33]Write to MH i2c: D1 01 00 A0 20 01 92 [11:58:33]Write i2c OK [11:58:33]MH_I2C_Read... [11:58:33]Read from MH i2c: D1 [11:58:33]MH_I2C_Read... [11:58:33]Read from MH i2c: D1 01 00 [11:58:33]MH_I2C_Read... [11:58:33]Read from MH i2c: D1 01 00 A0 20 00 91 [11:58:33]Write to MH i2c: 01 00 00 A1 20 C1 [11:58:33]Write i2c OK [11:58:33]MH_I2C_Read... [11:58:33]OFD Sender: No OFD packet to send [11:58:34]*** Cut start [11:58:34]*** Partial cut [11:58:34]*** CUTSNS_PIN = 1 [11:58:34]*** CUTSNS_PIN = 0 [11:58:34]*** Brake cut motor [11:58:34]Read from MH i2c: 01 [11:58:34]MH_I2C_Read... [11:58:34]*** Stop cut motor [11:58:34]*** Cut end [11:58:34]Read from MH i2c: 01 07 00 [11:58:34]MH_I2C_Read... [11:58:34]Read from MH i2c: 01 07 00 A1 20 00 00 00 00 00 FF 0F D6 [11:58:34]process_action close_receipt done [11:58:34]requested_data is exist [11:58:34]produce_requested_data [11:58:34]requested_item fm.sn is exist - process it [11:58:34]wFMCommunicate request_size=4 [11:58:34]MH_SAM_APDU [11:58:34]CAPDU: 80 11 00 00 [11:58:34]Write to MH i2c: E2 08 00 A2 20 80 11 00 00 00 00 00 00 3C [11:58:34]Write i2c OK [11:58:34]MH_I2C_Read... [11:58:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:58:34]Read from MH i2c: E2 [11:58:34]MH_I2C_Read... [11:58:34]Read from MH i2c: E2 17 00 [11:58:34]MH_I2C_Read... [11:58:34]Read from MH i2c: E2 17 00 A2 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 87 [11:58:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [11:58:34]wFMCommunicate OK [11:58:34]requested_item fd.num is exist - process it [11:58:34]SAM_PROTO_GetFieldsCounters [11:58:34]wFMCommunicate request_size=4 [11:58:34]MH_SAM_APDU [11:58:34]CAPDU: 80 13 00 00 [11:58:34]Write to MH i2c: E2 08 00 A3 20 80 13 00 00 00 00 00 00 3F [11:58:34]Write i2c OK [11:58:34]MH_I2C_Read... [11:58:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:58:34]Read from MH i2c: E2 [11:58:34]MH_I2C_Read... [11:58:34]Read from MH i2c: E2 62 00 [11:58:34]MH_I2C_Read... [11:58:34]Read from MH i2c: E2 62 00 A3 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 D5 0B 01 00 0E 04 04 00 45 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 43 [11:58:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 D5 0B 01 00 0E 04 04 00 45 01 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:58:34]wFMCommunicate OK [11:58:34]SAM_PROTO_GetFieldsCounters done [11:58:34]requested_item shift.num is exist - process it [11:58:34]requested_item shift.opened is exist - process it [11:58:34]req_shift_opened [11:58:34]FM_GetShiftState [11:58:34]SAM_PROTO_GetShiftState [11:58:34]wFMCommunicate request_size=4 [11:58:34]MH_SAM_APDU [11:58:34]CAPDU: 80 13 01 00 [11:58:34]Write to MH i2c: E2 08 00 A4 20 80 13 01 00 00 00 00 00 41 [11:58:34]Write i2c OK [11:58:34]MH_I2C_Read... [11:58:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:58:34]Read from MH i2c: E2 [11:58:34]MH_I2C_Read... [11:58:34]Read from MH i2c: E2 0E 00 [11:58:34]MH_I2C_Read... [11:58:34]Read from MH i2c: E2 0E 00 A4 20 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 DD [11:58:34]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [11:58:34]wFMCommunicate OK [11:58:34]SAM_PROTO_GetShiftState done [11:58:34]FM_GetShiftState done [11:58:34]req_shift_opened done [11:58:34]requested_item shift.open_date is exist - process it [11:58:34]req_shift_open_date [11:58:34]req_shift_open_date done [11:58:34]produce_requested_data done [11:58:34]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68565,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [11:58:34]process_action_free close_receipt [11:58:34]json_value_free [11:58:34]json_value_free done [11:58:34]process_json_proto returns [11:58:34]Send response to host [11:58:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68565,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [11:58:34]free response buf [11:58:34]execute_script done [11:58:34]execute_script returns [11:58:34]free content buf [11:58:34]Sock 7.Close socket [11:58:34]Sock 7.Thread stoped [11:58:38]OFD Sender: No OFD packet to send [11:58:43]OFD Sender: No OFD packet to send [11:58:48]OFD Sender: No OFD packet to send [11:58:53]OFD Sender: No OFD packet to send [11:58:58]OFD Sender: No OFD packet to send [11:59:03]OFD Sender: No OFD packet to send [11:59:08]OFD Sender: No OFD packet to send [11:59:13]OFD Sender: No OFD packet to send [11:59:18]OFD Sender: No OFD packet to send [11:59:23]OFD Sender: No OFD packet to send [11:59:28]OFD Sender: No OFD packet to send [11:59:33]OFD Sender: No OFD packet to send [11:59:38]OFD Sender: No OFD packet to send [11:59:43]OFD Sender: No OFD packet to send [11:59:48]OFD Sender: No OFD packet to send [11:59:53]OFD Sender: No OFD packet to send [11:59:58]OFD Sender: No OFD packet to send [12:00:03]OFD Sender: No OFD packet to send [12:00:08]OFD Sender: No OFD packet to send [12:00:13]OFD Sender: No OFD packet to send [12:00:18]OFD Sender: No OFD packet to send [12:00:23]OFD Sender: No OFD packet to send [12:00:28]OFD Sender: No OFD packet to send [12:00:33]OFD Sender: No OFD packet to send [12:00:38]OFD Sender: No OFD packet to send [12:00:43]OFD Sender: No OFD packet to send [12:00:48]OFD Sender: No OFD packet to send [12:00:53]OFD Sender: No OFD packet to send [12:00:58]OFD Sender: No OFD packet to send [12:01:03]OFD Sender: No OFD packet to send [12:01:08]OFD Sender: No OFD packet to send [12:01:13]OFD Sender: No OFD packet to send [12:01:18]OFD Sender: No OFD packet to send [12:01:23]OFD Sender: No OFD packet to send [12:01:28]OFD Sender: No OFD packet to send [12:01:33]OFD Sender: No OFD packet to send [12:01:38]OFD Sender: No OFD packet to send [12:01:43]OFD Sender: No OFD packet to send [12:01:48]OFD Sender: No OFD packet to send [12:01:53]OFD Sender: No OFD packet to send [12:01:58]OFD Sender: No OFD packet to send [12:02:03]OFD Sender: No OFD packet to send [12:02:08]OFD Sender: No OFD packet to send [12:02:13]OFD Sender: No OFD packet to send [12:02:18]OFD Sender: No OFD packet to send [12:02:23]OFD Sender: No OFD packet to send [12:02:28]OFD Sender: No OFD packet to send [12:02:33]OFD Sender: No OFD packet to send [12:02:38]OFD Sender: No OFD packet to send [12:02:43]OFD Sender: No OFD packet to send [12:02:48]OFD Sender: No OFD packet to send [12:02:53]OFD Sender: No OFD packet to send [12:02:58]OFD Sender: No OFD packet to send [12:03:03]OFD Sender: No OFD packet to send [12:03:08]OFD Sender: No OFD packet to send [12:03:13]OFD Sender: No OFD packet to send [12:03:18]OFD Sender: No OFD packet to send [12:03:23]OFD Sender: No OFD packet to send [12:03:28]OFD Sender: No OFD packet to send [12:03:33]OFD Sender: No OFD packet to send [12:03:38]OFD Sender: No OFD packet to send [12:03:43]OFD Sender: No OFD packet to send [12:03:48]OFD Sender: No OFD packet to send [12:03:53]OFD Sender: No OFD packet to send [12:03:58]OFD Sender: No OFD packet to send [12:04:03]OFD Sender: No OFD packet to send [12:04:08]OFD Sender: No OFD packet to send [12:04:13]OFD Sender: No OFD packet to send [12:04:18]OFD Sender: No OFD packet to send [12:04:23]OFD Sender: No OFD packet to send [12:04:28]OFD Sender: No OFD packet to send [12:04:33]OFD Sender: No OFD packet to send [12:04:38]OFD Sender: No OFD packet to send [12:04:43]OFD Sender: No OFD packet to send [12:04:48]OFD Sender: No OFD packet to send [12:04:53]OFD Sender: No OFD packet to send [12:04:58]OFD Sender: No OFD packet to send [12:05:03]OFD Sender: No OFD packet to send [12:05:08]OFD Sender: No OFD packet to send [12:05:13]OFD Sender: No OFD packet to send [12:05:18]OFD Sender: No OFD packet to send [12:05:23]OFD Sender: No OFD packet to send [12:05:26]accept exits with 10 [12:05:26]New connection [12:05:26]New thread 3067227492 created [12:05:26]Thread 3067084132 joined [12:05:26]Waiting for new connection... [12:05:26] Sock 10.Parse request [12:05:26]Sock 10.Check first char [12:05:26]Sock 10.First char is OK [12:05:26]request: POST /json_proto HTTP/1.0 [12:05:26]Method: POST [12:05:26]URL: /json_proto [12:05:26]Method is POST - this is cgi request [12:05:26]url: /json_proto [12:05:26]query_string will be loaded in cgi processing [12:05:26]execute_cgi json_proto POST (null) [12:05:26]execute_cgi path=json_proto method=POST [12:05:26]POST find Content-Length [12:05:26]Host: 172.17.36.132:8080 [12:05:26]Content-Length: 1202 [12:05:26]Content-Type: application/json [12:05:26] [12:05:26]POST finish read [12:05:26]Found Content-Length = 1202 [12:05: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 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0418\u0441\u043C\u0430\u043D\u0430\u043B\u0438\u0435\u0432 \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)706691\u000A04.06.2024 11:42\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-4\u000A 20.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 1458.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3788978\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:05:26]execute_script... [12:05: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 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0418\u0441\u043C\u0430\u043D\u0430\u043B\u0438\u0435\u0432 \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)706691\u000A04.06.2024 11:42\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-4\u000A 20.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 1458.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3788978\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:05:26]POST & json_proto [12:05:26]process_json_proto [12:05:26]json parsed OK: [12:05:26]protocol is kg_v1.0 [12:05:26]action value=print_text [12:05:26]process_action print_text [12:05:26]cmd_print_text [12:05:26]ExternCall_PrintAddStr [12:05:26]wPrintStart [12:05:26]Write to MH i2c: 01 00 00 A5 20 C5 [12:05:26]Write i2c OK [12:05:26]MH_I2C_Read... [12:05:26]Read from MH i2c: 01 [12:05:26]MH_I2C_Read... [12:05:26]Read from MH i2c: 01 07 00 [12:05:26]MH_I2C_Read... [12:05:26]Read from MH i2c: 01 07 00 A5 20 00 00 00 00 00 FF 0F DA [12:05:26]RasterBufferAndPrint [12:05:26]line *****ТОВАРНЫЙ ЧЕК***** [12:05:26]line АЗС 62 [12:05:26]line Партнер нефть [12:05:26]line 02508201610067 [12:05:26]line Кассир : Исманалиев Д. [12:05:26]line Счет N : (1)706691 [12:05:26]line 04.06.2024 11:42 [12:05:26]line ПРОДАЖА [12:05:26]line ТРК (МРК, ГНК): 21 [12:05:26]line Вид ГСМ : 2710194210 [12:05:26]line ДТ(л)-К-4 [12:05:26]line 20.000 x 72.90 [12:05:26]line ИТОГ: 1458.00 [12:05:26]line Тип оплаты: Талоны: Партнер нефть [12:05:26]line 3788978 [12:05:26]line ______________________ [12:05:26]line (подпись) [12:05:26]written 0, free lines is 4095 [12:05:26]Write to MH i2c: 01 00 00 B9 20 D9 [12:05:26]Write i2c OK [12:05:26]MH_I2C_Read... [12:05:26]Read from MH i2c: 01 [12:05:26]MH_I2C_Read... [12:05:26]Read from MH i2c: 01 07 00 [12:05:26]MH_I2C_Read... [12:05:26]Read from MH i2c: 01 07 00 B9 20 00 00 00 00 00 12 0E 00 [12:05:26]RasterBufferAndPrint [12:05:26]line [12:05:26]line [12:05:26]line [12:05:26]line [12:05:26]line [12:05:26]written 0, free lines is 3604 [12:05:26]MH_Cut [12:05:26]Write to MH i2c: D1 01 00 C0 20 01 B2 [12:05:26]Write i2c OK [12:05:26]MH_I2C_Read... [12:05:26]Read from MH i2c: D1 [12:05:26]MH_I2C_Read... [12:05:26]Read from MH i2c: D1 01 00 [12:05:26]MH_I2C_Read... [12:05:26]Read from MH i2c: D1 01 00 C0 20 00 B1 [12:05:26]Write to MH i2c: 01 00 00 C1 20 E1 [12:05:26]Write i2c OK [12:05:26]MH_I2C_Read... [12:05:27]*** Cut start [12:05:27]*** Partial cut [12:05:27]*** CUTSNS_PIN = 1 [12:05:27]*** CUTSNS_PIN = 0 [12:05:27]*** Brake cut motor [12:05:27]Read from MH i2c: 01 [12:05:27]MH_I2C_Read... [12:05:27]Read from MH i2c: 01 07 00 [12:05:27]MH_I2C_Read... [12:05:27]*** Stop cut motor [12:05:27]*** Cut end [12:05:27]Read from MH i2c: 01 07 00 C1 20 00 00 00 00 00 FF 0F F6 [12:05:27]process_action print_text done [12:05:27]requested_data is exist [12:05:27]produce_requested_data [12:05:27]requested_item fm.sn is exist - process it [12:05:27]wFMCommunicate request_size=4 [12:05:27]MH_SAM_APDU [12:05:27]CAPDU: 80 11 00 00 [12:05:27]Write to MH i2c: E2 08 00 C2 20 80 11 00 00 00 00 00 00 5C [12:05:27]Write i2c OK [12:05:27]MH_I2C_Read... [12:05:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:05:27]Read from MH i2c: E2 [12:05:27]MH_I2C_Read... [12:05:27]Read from MH i2c: E2 17 00 [12:05:27]MH_I2C_Read... [12:05:27]Read from MH i2c: E2 17 00 C2 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 A7 [12:05:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [12:05:27]wFMCommunicate OK [12:05:27]requested_item fd.num is exist - process it [12:05:27]SAM_PROTO_GetFieldsCounters [12:05:27]wFMCommunicate request_size=4 [12:05:27]MH_SAM_APDU [12:05:27]CAPDU: 80 13 00 00 [12:05:27]Write to MH i2c: E2 08 00 C3 20 80 13 00 00 00 00 00 00 5F [12:05:27]Write i2c OK [12:05:27]MH_I2C_Read... [12:05:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:05:27]Read from MH i2c: E2 [12:05:27]MH_I2C_Read... [12:05:27]Read from MH i2c: E2 62 00 [12:05:27]MH_I2C_Read... [12:05:27]Read from MH i2c: E2 62 00 C3 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 D5 0B 01 00 0E 04 04 00 45 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 63 [12:05:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 D5 0B 01 00 0E 04 04 00 45 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 [12:05:27]wFMCommunicate OK [12:05:27]SAM_PROTO_GetFieldsCounters done [12:05:27]requested_item shift.num is exist - process it [12:05:27]requested_item shift.opened is exist - process it [12:05:27]req_shift_opened [12:05:27]FM_GetShiftState [12:05:27]SAM_PROTO_GetShiftState [12:05:27]wFMCommunicate request_size=4 [12:05:27]MH_SAM_APDU [12:05:27]CAPDU: 80 13 01 00 [12:05:27]Write to MH i2c: E2 08 00 C4 20 80 13 01 00 00 00 00 00 61 [12:05:27]Write i2c OK [12:05:27]MH_I2C_Read... [12:05:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:05:27]Read from MH i2c: E2 [12:05:27]MH_I2C_Read... [12:05:27]Read from MH i2c: E2 0E 00 [12:05:27]MH_I2C_Read... [12:05:27]Read from MH i2c: E2 0E 00 C4 20 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 FD [12:05:27]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [12:05:27]wFMCommunicate OK [12:05:27]SAM_PROTO_GetShiftState done [12:05:27]FM_GetShiftState done [12:05:27]req_shift_opened done [12:05:27]requested_item shift.open_date is exist - process it [12:05:27]req_shift_open_date [12:05:27]req_shift_open_date done [12:05:27]produce_requested_data done [12:05:27]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68565,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [12:05:27]process_action_free print_text [12:05:27]json_value_free [12:05:27]json_value_free done [12:05:27]process_json_proto returns [12:05:27]Send response to host [12:05:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68565,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [12:05:27]free response buf [12:05:27]execute_script done [12:05:27]execute_script returns [12:05:27]free content buf [12:05:27]Sock 10.Close socket [12:05:27]Sock 10.Thread stoped [12:05:28]OFD Sender: No OFD packet to send [12:05:33]OFD Sender: No OFD packet to send [12:05:35]accept exits with 7 [12:05:35]New connection [12:05:35]New thread 3067084132 created [12:05:35]Thread 3067227492 joined [12:05:35]Waiting for new connection... [12:05:35] Sock 7.Parse request [12:05:35]Sock 7.Check first char [12:05:35]Sock 7.First char is OK [12:05:35]request: POST /json_proto HTTP/1.0 [12:05:35]Method: POST [12:05:35]URL: /json_proto [12:05:35]Method is POST - this is cgi request [12:05:35]url: /json_proto [12:05:35]query_string will be loaded in cgi processing [12:05:35]execute_cgi json_proto POST (null) [12:05:35]execute_cgi path=json_proto method=POST [12:05:35]POST find Content-Length [12:05:35]Host: 172.17.36.132:8080 [12:05:35]Content-Length: 682 [12:05:35]Content-Type: application/json [12:05:35] [12:05:35]POST finish read [12:05:35]Found Content-Length = 682 [12:05:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706693", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 7.430, "sum" : 541.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 541.00, "total" : 541.00, "payments": [ { "type": 0, "sum" : 541.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:05:35]execute_script... [12:05:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706693", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 7.430, "sum" : 541.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 541.00, "total" : 541.00, "payments": [ { "type": 0, "sum" : 541.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:05:35]POST & json_proto [12:05:35]process_json_proto [12:05:35]json parsed OK: [12:05:35]protocol is kg_v1.0 [12:05:35]action value=close_receipt [12:05:35]process_action close_receipt [12:05:35]cmd_close_receipt [12:05:35]MH_GetDate [12:05:35]Write to MH i2c: F0 00 00 C5 20 D4 [12:05:35]Write i2c OK [12:05:35]MH_I2C_Read... [12:05:35]Read from MH i2c: F0 [12:05:35]MH_I2C_Read... [12:05:35]Read from MH i2c: F0 09 00 [12:05:35]MH_I2C_Read... [12:05:35]Read from MH i2c: F0 09 00 C5 20 00 13 03 5F 66 B2 22 B0 64 A0 [12:05:35]GetLastDocTimeStamp 1717502315 [12:05:35]current date 1717502739 [12:05:35]FM_GetShiftState [12:05:35]SAM_PROTO_GetShiftState [12:05:35]wFMCommunicate request_size=4 [12:05:35]MH_SAM_APDU [12:05:35]CAPDU: 80 13 01 00 [12:05:35]Write to MH i2c: E2 08 00 C6 20 80 13 01 00 00 00 00 00 63 [12:05:35]Write i2c OK [12:05:35]MH_I2C_Read... [12:05:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:05:35]Read from MH i2c: E2 [12:05:35]MH_I2C_Read... [12:05:35]Read from MH i2c: E2 0E 00 [12:05:35]MH_I2C_Read... [12:05:35]Read from MH i2c: E2 0E 00 C6 20 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 FF [12:05:35]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [12:05:35]wFMCommunicate OK [12:05:35]SAM_PROTO_GetShiftState done [12:05:35]FM_GetShiftState done [12:05:35]opened in 1717460590 [12:05:35]opened+sec_in_day 1717546990 [12:05:35]quantity*price = 54164 [12:05:35]sum+1 = 54166 [12:05:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 541.00 Внесено: 541.00 СДАЧА: 0.00 НСП 1% : 4.79 НДС 12% : 57.52 Наличными: 541.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 64 04.06.2024 12:05 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68566 ФПД: 87399912404047 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T120539&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68566&fm=87399912404047&tin=02508201610067®Number=0000000000098096&sum=54100 [12:05:36]StoreToDocumentArchive [12:05:36]shift 325 fd 68566 [12:05:36]save to /storage/0325/doc_00068566 [12:05:36]save last doc name /storage/0325/doc_00068566 to /storage/kkm_last_doc_name [12:05:36]save OK [12:05:36]Clear old archive folders... [12:05:36]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:05:36]tlvbuf is 00A5A450 [12:05:36]SAM_PROTO_ClearQueue [12:05:36]wFMCommunicate request_size=4 [12:05:36]MH_SAM_APDU [12:05:36]CAPDU: 80 09 00 00 [12:05:36]Write to MH i2c: E2 08 00 D3 20 80 09 00 00 00 00 00 00 65 [12:05:36]Write i2c OK [12:05:36]MH_I2C_Read... [12:05:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:05:36]Read from MH i2c: E2 [12:05:36]MH_I2C_Read... [12:05:36]Read from MH i2c: E2 03 00 [12:05:36]MH_I2C_Read... [12:05:36]Read from MH i2c: E2 03 00 D3 20 00 90 00 67 [12:05:36]RAPDU: 90 00 [12:05:36]wFMCommunicate OK [12:05:36]SAM_PROTO_ClearQueue done [12:05:36]KKMCreateOFDPacket [12:05:36]OFDProtocolAddRootSTLVToBuf [12:05:36]FM_MakeSignedData [12:05:36]FM_MakeSignedData [12:05:36]SAM_PROTO_SignData [12:05:36]wFMCommunicate request_size=4 [12:05:36]MH_SAM_APDU [12:05:36]CAPDU: 80 0D 01 02 [12:05:36]Write to MH i2c: E2 08 00 D4 20 80 0D 01 02 00 00 00 00 6D [12:05:36]Write i2c OK [12:05:36]MH_I2C_Read... [12:05:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:05:36]Read from MH i2c: E2 [12:05:36]MH_I2C_Read... [12:05:36]Read from MH i2c: E2 03 00 [12:05:36]MH_I2C_Read... [12:05:36]Read from MH i2c: E2 03 00 D4 20 00 90 00 68 [12:05:36]RAPDU: 90 00 [12:05:36]wFMCommunicate OK [12:05:36]wFMCommunicate request_size=255 [12:05:36]MH_SAM_APDU [12:05:36]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 06 1D 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 95 D3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 D3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DF 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 16 00 00 00 00 07 04 06 00 54 D3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 13 03 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 D6 0B 01 00 35 04 06 00 [12:05:36]Write to MH i2c: E2 02 01 D5 20 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 06 1D 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 95 D3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 D3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DF 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 16 00 00 00 00 07 04 06 00 54 D3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 13 03 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 D6 0B 01 00 35 04 06 00 00 00 D0 [12:05:36]Write i2c OK [12:05:36]MH_I2C_Read... [12:05:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:05:37]Read from MH i2c: E2 [12:05:37]MH_I2C_Read... [12:05:37]Read from MH i2c: E2 03 00 [12:05:37]MH_I2C_Read... [12:05:37]Read from MH i2c: E2 03 00 D5 20 00 90 00 69 [12:05:37]RAPDU: 90 00 [12:05:37]wFMCommunicate OK [12:05:37]wFMCommunicate request_size=11 [12:05:37]MH_SAM_APDU [12:05:37]CAPDU: 80 0D 02 02 06 4F 7D 60 BB 74 4F [12:05:37]Write to MH i2c: E2 0E 00 D6 20 80 0D 02 02 06 00 4F 7D 60 BB 74 4F 00 00 26 [12:05:37]Write i2c OK [12:05:37]MH_I2C_Read... [12:05:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:05:37]Read from MH i2c: E2 [12:05:37]MH_I2C_Read... [12:05:37]Read from MH i2c: E2 03 00 [12:05:37]MH_I2C_Read... [12:05:37]Read from MH i2c: E2 03 00 D6 20 00 90 00 6A [12:05:37]RAPDU: 90 00 [12:05:37]wFMCommunicate OK [12:05:37]wFMCommunicate request_size=4 [12:05:37]MH_SAM_APDU [12:05:37]CAPDU: 80 0D 03 02 [12:05:37]Write to MH i2c: E2 08 00 D7 20 80 0D 03 02 00 00 00 00 72 [12:05:37]Write i2c OK [12:05:37]MH_I2C_Read... [12:05:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:05:37]Read from MH i2c: E2 [12:05:37]MH_I2C_Read... [12:05:37]Read from MH i2c: E2 0B 00 [12:05:37]MH_I2C_Read... [12:05:37]Read from MH i2c: E2 0B 00 D7 20 00 75 32 83 31 59 1E 62 33 90 00 DA [12:05:37]RAPDU: 75 32 83 31 59 1E 62 33 90 00 [12:05:37]wFMCommunicate OK [12:05:37]SAM_PROTO_SignData done [12:05:37]FM_MakeSignedData done [12:05:37]CreateOFDProtocolMessage [12:05:37]wFMCommunicate request_size=4 [12:05:37]MH_SAM_APDU [12:05:37]CAPDU: 80 11 00 00 [12:05:37]Write to MH i2c: E2 08 00 D8 20 80 11 00 00 00 00 00 00 72 [12:05:37]Write i2c OK [12:05:37]MH_I2C_Read... [12:05:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:05:37]Read from MH i2c: E2 [12:05:37]MH_I2C_Read... [12:05:37]Read from MH i2c: E2 17 00 [12:05:37]MH_I2C_Read... [12:05:37]Read from MH i2c: E2 17 00 D8 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 BD [12:05:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [12:05:37]wFMCommunicate OK [12:05:37]CreateOFDProtocolMessage done [12:05:37]OFDSenderStorePacket 68566 [12:05:37]StoreOFDPacket docnum=68566 [12:05:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 A6 95 08 01 23 70 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 06 1D 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 95 D3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 D3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DF 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 16 00 00 00 00 07 04 06 00 54 D3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 13 03 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 D6 0B 01 00 35 04 06 00 4F 7D 60 BB 74 4F 75 32 83 31 59 1E 62 33 [12:05:37]CheckFolder [12:05:37]dirname=/storage/ofd_packets [12:05:37]CheckFolder done [12:05:37]ProducePacketName [12:05:37]name=ofd_packets/00068566 [12:05:37]NVStorageSaveData ofd_packets/00068566 [12:05:37]File name is /storage/ofd_packets/00068566 [12:05:37]Write 302 bytes [12:05:37]NVStorageSaveData done [12:05:37]OFDSenderStorePacket done [12:05:37]KKMCreateOFDPacket done [12:05:37]NVStorageSaveData kkm_last_timestamp [12:05:37]File name is /storage/kkm_last_timestamp [12:05:37]Write 4 bytes [12:05:37]NVStorageSaveData done [12:05:37]ExternCall_PrintAddStr [12:05:37]wPrintStart [12:05:37]Write to MH i2c: 01 00 00 D9 20 F9 [12:05:37]Write i2c OK [12:05:37]MH_I2C_Read... [12:05:37]Read from MH i2c: 01 [12:05:37]MH_I2C_Read... [12:05:37]Read from MH i2c: 01 07 00 [12:05:37]MH_I2C_Read... [12:05:37]Read from MH i2c: 01 07 00 D9 20 00 00 00 00 00 FF 0F 0E [12:05:37]RasterBufferAndPrint [12:05:37]line Счет N : (1)706693 [12:05:37]line ИНН: 02508201610067 [12:05:37]line Контрольно-Кассовый Чек [12:05:37]line ПРОДАЖА [12:05:37]line ТРК (МРК, ГНК) : 21 [12:05:37]line Товар: 2710194210 [12:05:37]line ДТ(л)-К-4 [12:05:37]line 7.430 * 72.90 [12:05:37]line = 541.65 [12:05:37]line НДС 12% НСП 1% [12:05:37]line > о реализуемом товаре [12:05:37]line ОКРУГЛЕНИЕ: -0.65 [12:05:37]line ИТОГО: 541.00 [12:05:37]line Внесено: 541.00 [12:05:37]line СДАЧА: 0.00 [12:05:37]line НСП 1% : 4.79 [12:05:37]line НДС 12% : 57.52 [12:05:37]line Наличными: 541.00 [12:05:37]line Безнал.: 0.00 [12:05:37]line Место: АЗС № 62 "Партнер Нефть" [12:05:37]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [12:05:37]line СНО: Общий режим [12:05:37]line Чек 64 04.06.2024 12:05 [12:05:37]line Смена: 325 ФФД: 1.0 [12:05:37]line ЗНМ: 0300000181 [12:05:37]line РНМ: 0000000000098096 [12:05:37]line Версия ККМ: 001 [12:05:37]line ФМ: 0000000000965400 [12:05:37]line ФД: 68566 [12:05:37]line ФПД: 87399912404047 [12:05:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T120539&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68566&fm=87399912404047&tin=02508201610067®Number=0000000000098096&sum=54100 [12:05:37]OFD Sender: Processing packet 68566 [packets to send 26, broken 25] [12:05:37]ProducePacketName [12:05:37]name=ofd_packets/00068566 [12:05:37]OFD Sender: To server: pG, [12:05:37]CommunicateWithHost lk.salyk.kg:30040 [12:05:37]ConnectInit lk.salyk.kg [12:05:37]written 0, free lines is 4095 [12:05:37]Connected sock=10 [12:05:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 A6 95 08 01 23 70 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 06 1D 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 95 D3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 D3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DF 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 16 00 00 00 00 07 04 06 00 54 D3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 13 03 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 D6 0B 01 00 35 04 06 00 4F 7D 60 BB 74 4F 75 32 83 31 59 1E 62 33 [12:05:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 51 4B 47 00 79 FC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 D6 0B 01 00 F4 03 04 00 0C AA 5E 66 B6 04 01 00 00 3D 26 FA 7D 1B C8 F6 68 [12:05:37]CommunicateWithHost err = 0 [12:05:37]CheckOFDResponse [12:05:37]1017 (14) - 77093643461234 [12:05:37]1041 (16) - 0000000000965400 [12:05:37]1040 (4) - 68566 [12:05:37]1012 (4) - 04.06.2024 05:45 [12:05:37]1206 (1) - 0 [12:05:37]OFD Sender: Remove packet 68566 [12:05:37]ProducePacketName [12:05:37]name=ofd_packets/00068566 [12:05:37]NVStorageDeleteData [12:05:38]Write to MH i2c: 01 00 00 04 21 25 [12:05:38]Write i2c OK [12:05:38]MH_I2C_Read... [12:05:38]Read from MH i2c: 01 [12:05:38]MH_I2C_Read... [12:05:38]Read from MH i2c: 01 07 00 [12:05:38]MH_I2C_Read... [12:05:38]Read from MH i2c: 01 07 00 04 21 00 00 00 00 00 D3 0C 0B [12:05:38]RasterBufferAndPrint [12:05:38]line [12:05:38]line [12:05:38]line [12:05:38]line [12:05:38]line [12:05:38]written 0, free lines is 3290 [12:05:38]MH_Cut [12:05:38]Write to MH i2c: D1 01 00 0B 21 01 FE [12:05:38]Write i2c OK [12:05:38]MH_I2C_Read... [12:05:38]Read from MH i2c: D1 [12:05:38]MH_I2C_Read... [12:05:38]Read from MH i2c: D1 01 00 [12:05:38]MH_I2C_Read... [12:05:38]Read from MH i2c: D1 01 00 0B 21 00 FD [12:05:38]Write to MH i2c: 01 00 00 0C 21 2D [12:05:38]Write i2c OK [12:05:38]MH_I2C_Read... [12:05:38]OFD Sender: No OFD packet to send [12:05:38]*** Cut start [12:05:38]*** Partial cut [12:05:38]*** CUTSNS_PIN = 1 [12:05:38]*** CUTSNS_PIN = 0 [12:05:39]*** Brake cut motor [12:05:39]Read from MH i2c: 01 [12:05:39]MH_I2C_Read... [12:05:39]*** Stop cut motor [12:05:39]*** Cut end [12:05:39]Read from MH i2c: 01 07 00 [12:05:39]MH_I2C_Read... [12:05:39]Read from MH i2c: 01 07 00 0C 21 00 00 00 00 00 FF 0F 42 [12:05:39]process_action close_receipt done [12:05:39]requested_data is exist [12:05:39]produce_requested_data [12:05:39]requested_item fm.sn is exist - process it [12:05:39]wFMCommunicate request_size=4 [12:05:39]MH_SAM_APDU [12:05:39]CAPDU: 80 11 00 00 [12:05:39]Write to MH i2c: E2 08 00 0D 21 80 11 00 00 00 00 00 00 A8 [12:05:39]Write i2c OK [12:05:39]MH_I2C_Read... [12:05:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:05:39]Read from MH i2c: E2 [12:05:39]MH_I2C_Read... [12:05:39]Read from MH i2c: E2 17 00 [12:05:39]MH_I2C_Read... [12:05:39]Read from MH i2c: E2 17 00 0D 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 F3 [12:05:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [12:05:39]wFMCommunicate OK [12:05:39]requested_item fd.num is exist - process it [12:05:39]SAM_PROTO_GetFieldsCounters [12:05:39]wFMCommunicate request_size=4 [12:05:39]MH_SAM_APDU [12:05:39]CAPDU: 80 13 00 00 [12:05:39]Write to MH i2c: E2 08 00 0E 21 80 13 00 00 00 00 00 00 AB [12:05:39]Write i2c OK [12:05:39]MH_I2C_Read... [12:05:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:05:39]Read from MH i2c: E2 [12:05:39]MH_I2C_Read... [12:05:39]Read from MH i2c: E2 62 00 [12:05:39]MH_I2C_Read... [12:05:39]Read from MH i2c: E2 62 00 0E 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 D6 0B 01 00 0E 04 04 00 45 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 B3 [12:05:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 D6 0B 01 00 0E 04 04 00 45 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 [12:05:39]wFMCommunicate OK [12:05:39]SAM_PROTO_GetFieldsCounters done [12:05:39]requested_item shift.num is exist - process it [12:05:39]requested_item shift.opened is exist - process it [12:05:39]req_shift_opened [12:05:39]FM_GetShiftState [12:05:39]SAM_PROTO_GetShiftState [12:05:39]wFMCommunicate request_size=4 [12:05:39]MH_SAM_APDU [12:05:39]CAPDU: 80 13 01 00 [12:05:39]Write to MH i2c: E2 08 00 0F 21 80 13 01 00 00 00 00 00 AD [12:05:39]Write i2c OK [12:05:39]MH_I2C_Read... [12:05:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:05:39]Read from MH i2c: E2 [12:05:39]MH_I2C_Read... [12:05:39]Read from MH i2c: E2 0E 00 [12:05:39]MH_I2C_Read... [12:05:39]Read from MH i2c: E2 0E 00 0F 21 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 49 [12:05:39]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [12:05:39]wFMCommunicate OK [12:05:39]SAM_PROTO_GetShiftState done [12:05:39]FM_GetShiftState done [12:05:39]req_shift_opened done [12:05:39]requested_item shift.open_date is exist - process it [12:05:39]req_shift_open_date [12:05:39]req_shift_open_date done [12:05:39]produce_requested_data done [12:05:39]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68566,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [12:05:39]process_action_free close_receipt [12:05:39]json_value_free [12:05:39]json_value_free done [12:05:39]process_json_proto returns [12:05:39]Send response to host [12:05:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68566,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [12:05:39]free response buf [12:05:39]execute_script done [12:05:39]execute_script returns [12:05:39]free content buf [12:05:39]Sock 7.Close socket [12:05:39]Sock 7.Thread stoped [12:05:43]OFD Sender: No OFD packet to send [12:05:48]OFD Sender: No OFD packet to send [12:05:53]OFD Sender: No OFD packet to send [12:05:58]OFD Sender: No OFD packet to send [12:06:00]accept exits with 9 [12:06:00]New connection [12:06:00]New thread 3067227492 created [12:06:00]Thread 3067084132 joined [12:06:00]Waiting for new connection... [12:06:00] Sock 9.Parse request [12:06:00]Sock 9.Check first char [12:06:00]Sock 9.First char is OK [12:06:00]request: POST /json_proto HTTP/1.0 [12:06:00]Method: POST [12:06:00]URL: /json_proto [12:06:00]Method is POST - this is cgi request [12:06:00]url: /json_proto [12:06:00]query_string will be loaded in cgi processing [12:06:00]execute_cgi json_proto POST (null) [12:06:00]execute_cgi path=json_proto method=POST [12:06:00]POST find Content-Length [12:06:00]Host: 172.17.36.132:8080 [12:06:00]Content-Length: 1207 [12:06:00]Content-Type: application/json [12:06:00] [12:06:00]POST finish read [12:06:00]Found Content-Length = 1207 [12:06:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0418\u0441\u043C\u0430\u043D\u0430\u043B\u0438\u0435\u0432 \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)706692\u000A04.06.2024 11:43\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 63\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-4\u000A 25.000 x 66.90\u000A\u0418\u0422\u041E\u0413: 1672.50\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\u000A53217\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:06:00]execute_script... [12:06:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0418\u0441\u043C\u0430\u043D\u0430\u043B\u0438\u0435\u0432 \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)706692\u000A04.06.2024 11:43\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 63\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-4\u000A 25.000 x 66.90\u000A\u0418\u0422\u041E\u0413: 1672.50\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\u000A53217\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:06:00]POST & json_proto [12:06:00]process_json_proto [12:06:00]json parsed OK: [12:06:00]protocol is kg_v1.0 [12:06:00]action value=print_text [12:06:00]process_action print_text [12:06:00]cmd_print_text [12:06:00]ExternCall_PrintAddStr [12:06:00]wPrintStart [12:06:00]Write to MH i2c: 01 00 00 10 21 31 [12:06:00]Write i2c OK [12:06:00]MH_I2C_Read... [12:06:00]Read from MH i2c: 01 [12:06:00]MH_I2C_Read... [12:06:00]Read from MH i2c: 01 07 00 [12:06:00]MH_I2C_Read... [12:06:00]Read from MH i2c: 01 07 00 10 21 00 00 00 00 00 FF 0F 46 [12:06:00]RasterBufferAndPrint [12:06:00]line *****ТОВАРНЫЙ ЧЕК***** [12:06:00]line АЗС 62 [12:06:00]line Партнер нефть [12:06:00]line 02508201610067 [12:06:00]line Кассир : Исманалиев Д. [12:06:00]line Счет N : (1)706692 [12:06:00]line 04.06.2024 11:43 [12:06:00]line ПРОДАЖА [12:06:00]line ТРК (МРК, ГНК): 63 [12:06:00]line Вид ГСМ : 2710124130 [12:06:00]line Аи-92-К-4 [12:06:00]line 25.000 x 66.90 [12:06:00]line ИТОГ: 1672.50 [12:06:00]line Тип оплаты: Талоны: Топливная Карта [12:06:00]line 53217 [12:06:00]line ______________________ [12:06:00]line (подпись) [12:06:00]written 0, free lines is 4095 [12:06:01]Write to MH i2c: 01 00 00 24 21 45 [12:06:01]Write i2c OK [12:06:01]MH_I2C_Read... [12:06:01]Read from MH i2c: 01 [12:06:01]MH_I2C_Read... [12:06:01]Read from MH i2c: 01 07 00 [12:06:01]MH_I2C_Read... [12:06:01]Read from MH i2c: 01 07 00 24 21 00 00 00 00 00 12 0E 6C [12:06:01]RasterBufferAndPrint [12:06:01]line [12:06:01]line [12:06:01]line [12:06:01]line [12:06:01]line [12:06:01]written 0, free lines is 3604 [12:06:01]MH_Cut [12:06:01]Write to MH i2c: D1 01 00 2B 21 01 1E [12:06:01]Write i2c OK [12:06:01]MH_I2C_Read... [12:06:01]Read from MH i2c: D1 [12:06:01]MH_I2C_Read... [12:06:01]Read from MH i2c: D1 01 00 [12:06:01]MH_I2C_Read... [12:06:01]Read from MH i2c: D1 01 00 2B 21 00 1D [12:06:01]Write to MH i2c: 01 00 00 2C 21 4D [12:06:01]Write i2c OK [12:06:01]MH_I2C_Read... [12:06:01]*** Cut start [12:06:01]*** Partial cut [12:06:01]*** CUTSNS_PIN = 1 [12:06:01]*** CUTSNS_PIN = 0 [12:06:02]*** Brake cut motor [12:06:02]Read from MH i2c: 01 [12:06:02]MH_I2C_Read... [12:06:02]Read from MH i2c: 01 07 00 [12:06:02]MH_I2C_Read... [12:06:02]*** Stop cut motor [12:06:02]*** Cut end [12:06:02]Read from MH i2c: 01 07 00 2C 21 00 00 00 00 00 FF 0F 62 [12:06:02]process_action print_text done [12:06:02]requested_data is exist [12:06:02]produce_requested_data [12:06:02]requested_item fm.sn is exist - process it [12:06:02]wFMCommunicate request_size=4 [12:06:02]MH_SAM_APDU [12:06:02]CAPDU: 80 11 00 00 [12:06:02]Write to MH i2c: E2 08 00 2D 21 80 11 00 00 00 00 00 00 C8 [12:06:02]Write i2c OK [12:06:02]MH_I2C_Read... [12:06:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:06:02]Read from MH i2c: E2 [12:06:02]MH_I2C_Read... [12:06:02]Read from MH i2c: E2 17 00 [12:06:02]MH_I2C_Read... [12:06:02]Read from MH i2c: E2 17 00 2D 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 13 [12:06:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [12:06:02]wFMCommunicate OK [12:06:02]requested_item fd.num is exist - process it [12:06:02]SAM_PROTO_GetFieldsCounters [12:06:02]wFMCommunicate request_size=4 [12:06:02]MH_SAM_APDU [12:06:02]CAPDU: 80 13 00 00 [12:06:02]Write to MH i2c: E2 08 00 2E 21 80 13 00 00 00 00 00 00 CB [12:06:02]Write i2c OK [12:06:02]MH_I2C_Read... [12:06:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:06:02]Read from MH i2c: E2 [12:06:02]MH_I2C_Read... [12:06:02]Read from MH i2c: E2 62 00 [12:06:02]MH_I2C_Read... [12:06:02]Read from MH i2c: E2 62 00 2E 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 D6 0B 01 00 0E 04 04 00 45 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 D3 [12:06:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 D6 0B 01 00 0E 04 04 00 45 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 [12:06:02]wFMCommunicate OK [12:06:02]SAM_PROTO_GetFieldsCounters done [12:06:02]requested_item shift.num is exist - process it [12:06:02]requested_item shift.opened is exist - process it [12:06:02]req_shift_opened [12:06:02]FM_GetShiftState [12:06:02]SAM_PROTO_GetShiftState [12:06:02]wFMCommunicate request_size=4 [12:06:02]MH_SAM_APDU [12:06:02]CAPDU: 80 13 01 00 [12:06:02]Write to MH i2c: E2 08 00 2F 21 80 13 01 00 00 00 00 00 CD [12:06:02]Write i2c OK [12:06:02]MH_I2C_Read... [12:06:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:06:02]Read from MH i2c: E2 [12:06:02]MH_I2C_Read... [12:06:02]Read from MH i2c: E2 0E 00 [12:06:02]MH_I2C_Read... [12:06:02]Read from MH i2c: E2 0E 00 2F 21 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 69 [12:06:02]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [12:06:02]wFMCommunicate OK [12:06:02]SAM_PROTO_GetShiftState done [12:06:02]FM_GetShiftState done [12:06:02]req_shift_opened done [12:06:02]requested_item shift.open_date is exist - process it [12:06:02]req_shift_open_date [12:06:02]req_shift_open_date done [12:06:02]produce_requested_data done [12:06:02]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68566,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [12:06:02]process_action_free print_text [12:06:02]json_value_free [12:06:02]json_value_free done [12:06:02]process_json_proto returns [12:06:02]Send response to host [12:06:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68566,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [12:06:02]free response buf [12:06:02]execute_script done [12:06:02]execute_script returns [12:06:02]free content buf [12:06:02]Sock 9.Close socket [12:06:02]Sock 9.Thread stoped [12:06:03]OFD Sender: No OFD packet to send [12:06:08]OFD Sender: No OFD packet to send [12:06:13]OFD Sender: No OFD packet to send [12:06:18]OFD Sender: No OFD packet to send [12:06:23]OFD Sender: No OFD packet to send [12:06:28]OFD Sender: No OFD packet to send [12:06:33]OFD Sender: No OFD packet to send [12:06:38]OFD Sender: No OFD packet to send [12:06:43]OFD Sender: No OFD packet to send [12:06:48]OFD Sender: No OFD packet to send [12:06:53]OFD Sender: No OFD packet to send [12:06:58]OFD Sender: No OFD packet to send [12:07:03]OFD Sender: No OFD packet to send [12:07:08]OFD Sender: No OFD packet to send [12:07:13]OFD Sender: No OFD packet to send [12:07:18]OFD Sender: No OFD packet to send [12:07:23]OFD Sender: No OFD packet to send [12:07:28]OFD Sender: No OFD packet to send [12:07:33]OFD Sender: No OFD packet to send [12:07:38]OFD Sender: No OFD packet to send [12:07:43]OFD Sender: No OFD packet to send [12:07:48]OFD Sender: No OFD packet to send [12:07:53]OFD Sender: No OFD packet to send [12:07:58]OFD Sender: No OFD packet to send [12:08:03]OFD Sender: No OFD packet to send [12:08:08]OFD Sender: No OFD packet to send [12:08:13]OFD Sender: No OFD packet to send [12:08:18]OFD Sender: No OFD packet to send [12:08:23]OFD Sender: No OFD packet to send [12:08:28]OFD Sender: No OFD packet to send [12:08:33]OFD Sender: No OFD packet to send [12:08:38]OFD Sender: No OFD packet to send [12:08:43]OFD Sender: No OFD packet to send [12:08:48]OFD Sender: No OFD packet to send [12:08:53]OFD Sender: No OFD packet to send [12:08:58]OFD Sender: No OFD packet to send [12:09:03]OFD Sender: No OFD packet to send [12:09:08]OFD Sender: No OFD packet to send [12:09:13]OFD Sender: No OFD packet to send [12:09:18]OFD Sender: No OFD packet to send [12:09:23]OFD Sender: No OFD packet to send [12:09:28]OFD Sender: No OFD packet to send [12:09:33]OFD Sender: No OFD packet to send [12:09:38]OFD Sender: No OFD packet to send [12:09:43]OFD Sender: No OFD packet to send [12:09:48]OFD Sender: No OFD packet to send [12:09:53]OFD Sender: No OFD packet to send [12:09:58]OFD Sender: No OFD packet to send [12:10:03]OFD Sender: No OFD packet to send [12:10:06]accept exits with 7 [12:10:06]New connection [12:10:06]New thread 3067084132 created [12:10:06]Thread 3067227492 joined [12:10:06]Waiting for new connection... [12:10:06] Sock 7.Parse request [12:10:06]Sock 7.Check first char [12:10:06]Sock 7.First char is OK [12:10:06]request: POST /json_proto HTTP/1.0 [12:10:06]Method: POST [12:10:06]URL: /json_proto [12:10:06]Method is POST - this is cgi request [12:10:06]url: /json_proto [12:10:06]query_string will be loaded in cgi processing [12:10:06]execute_cgi json_proto POST (null) [12:10:06]execute_cgi path=json_proto method=POST [12:10:06]POST find Content-Length [12:10:06]Host: 172.17.36.132:8080 [12:10:06]Content-Length: 678 [12:10:06]Content-Type: application/json [12:10:06] [12:10:06]POST finish read [12:10:06]Found Content-Length = 678 [12:10:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706694", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:10:06]execute_script... [12:10: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)706694", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:10:06]POST & json_proto [12:10:06]process_json_proto [12:10:06]json parsed OK: [12:10:06]protocol is kg_v1.0 [12:10:06]action value=close_receipt [12:10:06]process_action close_receipt [12:10:06]cmd_close_receipt [12:10:06]MH_GetDate [12:10:06]Write to MH i2c: F0 00 00 30 21 40 [12:10:06]Write i2c OK [12:10:06]MH_I2C_Read... [12:10:06]Read from MH i2c: F0 [12:10:06]MH_I2C_Read... [12:10:06]Read from MH i2c: F0 09 00 [12:10:06]MH_I2C_Read... [12:10:06]Read from MH i2c: F0 09 00 30 21 00 22 04 5F 66 B2 22 B0 64 1C [12:10:06]GetLastDocTimeStamp 1717502739 [12:10:06]current date 1717503010 [12:10:06]FM_GetShiftState [12:10:06]SAM_PROTO_GetShiftState [12:10:06]wFMCommunicate request_size=4 [12:10:06]MH_SAM_APDU [12:10:06]CAPDU: 80 13 01 00 [12:10:06]Write to MH i2c: E2 08 00 31 21 80 13 01 00 00 00 00 00 CF [12:10:06]Write i2c OK [12:10:06]MH_I2C_Read... [12:10:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:10:06]Read from MH i2c: E2 [12:10:06]MH_I2C_Read... [12:10:06]Read from MH i2c: E2 0E 00 [12:10:06]MH_I2C_Read... [12:10:06]Read from MH i2c: E2 0E 00 31 21 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 6B [12:10:06]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [12:10:06]wFMCommunicate OK [12:10:06]SAM_PROTO_GetShiftState done [12:10:06]FM_GetShiftState done [12:10:06]opened in 1717460590 [12:10:06]opened+sec_in_day 1717546990 [12:10:06]quantity*price = 80012 [12:10:06]sum+1 = 80013 [12:10:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 65 04.06.2024 12:10 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68567 ФПД: 25887751460148 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T121010&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68567&fm=25887751460148&tin=02508201610067®Number=0000000000098096&sum=80000 [12:10:07]StoreToDocumentArchive [12:10:07]shift 325 fd 68567 [12:10:07]save to /storage/0325/doc_00068567 [12:10:07]save last doc name /storage/0325/doc_00068567 to /storage/kkm_last_doc_name [12:10:07]save OK [12:10:07]Clear old archive folders... [12:10:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:10:07]tlvbuf is B6F9BC60 [12:10:07]SAM_PROTO_ClearQueue [12:10:07]wFMCommunicate request_size=4 [12:10:07]MH_SAM_APDU [12:10:07]CAPDU: 80 09 00 00 [12:10:07]Write to MH i2c: E2 08 00 3E 21 80 09 00 00 00 00 00 00 D1 [12:10:07]Write i2c OK [12:10:07]MH_I2C_Read... [12:10:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:10:07]Read from MH i2c: E2 [12:10:07]MH_I2C_Read... [12:10:07]Read from MH i2c: E2 03 00 [12:10:07]MH_I2C_Read... [12:10:07]Read from MH i2c: E2 03 00 3E 21 00 90 00 D3 [12:10:07]RAPDU: 90 00 [12:10:07]wFMCommunicate OK [12:10:07]SAM_PROTO_ClearQueue done [12:10:07]KKMCreateOFDPacket [12:10:07]OFDProtocolAddRootSTLVToBuf [12:10:07]FM_MakeSignedData [12:10:07]FM_MakeSignedData [12:10:07]SAM_PROTO_SignData [12:10:07]wFMCommunicate request_size=4 [12:10:07]MH_SAM_APDU [12:10:07]CAPDU: 80 0D 01 02 [12:10:07]Write to MH i2c: E2 08 00 3F 21 80 0D 01 02 00 00 00 00 D9 [12:10:07]Write i2c OK [12:10:07]MH_I2C_Read... [12:10:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:10:07]Read from MH i2c: E2 [12:10:07]MH_I2C_Read... [12:10:07]Read from MH i2c: E2 03 00 [12:10:07]MH_I2C_Read... [12:10:07]Read from MH i2c: E2 03 00 3F 21 00 90 00 D4 [12:10:07]RAPDU: 90 00 [12:10:07]wFMCommunicate OK [12:10:07]wFMCommunicate request_size=255 [12:10:07]MH_SAM_APDU [12:10: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 34 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 22 04 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 D7 0B 01 00 35 04 06 00 17 [12:10:07]Write to MH i2c: E2 02 01 40 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 34 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 22 04 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 D7 0B 01 00 35 04 06 00 17 00 00 BE [12:10:07]Write i2c OK [12:10:07]MH_I2C_Read... [12:10:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:10:07]Read from MH i2c: E2 [12:10:07]MH_I2C_Read... [12:10:07]Read from MH i2c: E2 03 00 [12:10:07]MH_I2C_Read... [12:10:07]Read from MH i2c: E2 03 00 40 21 00 90 00 D5 [12:10:07]RAPDU: 90 00 [12:10:07]wFMCommunicate OK [12:10:07]wFMCommunicate request_size=10 [12:10:07]MH_SAM_APDU [12:10:07]CAPDU: 80 0D 02 02 05 8B 76 3A D5 34 [12:10:07]Write to MH i2c: E2 0D 00 41 21 80 0D 02 02 05 00 8B 76 3A D5 34 00 00 2A [12:10:07]Write i2c OK [12:10:07]MH_I2C_Read... [12:10:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:10:08]Read from MH i2c: E2 [12:10:08]MH_I2C_Read... [12:10:08]Read from MH i2c: E2 03 00 [12:10:08]MH_I2C_Read... [12:10:08]Read from MH i2c: E2 03 00 41 21 00 90 00 D6 [12:10:08]RAPDU: 90 00 [12:10:08]wFMCommunicate OK [12:10:08]wFMCommunicate request_size=4 [12:10:08]MH_SAM_APDU [12:10:08]CAPDU: 80 0D 03 02 [12:10:08]Write to MH i2c: E2 08 00 42 21 80 0D 03 02 00 00 00 00 DE [12:10:08]Write i2c OK [12:10:08]MH_I2C_Read... [12:10:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:10:08]Read from MH i2c: E2 [12:10:08]MH_I2C_Read... [12:10:08]Read from MH i2c: E2 0B 00 [12:10:08]MH_I2C_Read... [12:10:08]Read from MH i2c: E2 0B 00 42 21 00 02 F3 83 70 19 D8 16 8A 90 00 58 [12:10:08]RAPDU: 02 F3 83 70 19 D8 16 8A 90 00 [12:10:08]wFMCommunicate OK [12:10:08]SAM_PROTO_SignData done [12:10:08]FM_MakeSignedData done [12:10:08]CreateOFDProtocolMessage [12:10:08]wFMCommunicate request_size=4 [12:10:08]MH_SAM_APDU [12:10:08]CAPDU: 80 11 00 00 [12:10:08]Write to MH i2c: E2 08 00 43 21 80 11 00 00 00 00 00 00 DE [12:10:08]Write i2c OK [12:10:08]MH_I2C_Read... [12:10:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:10:08]Read from MH i2c: E2 [12:10:08]MH_I2C_Read... [12:10:08]Read from MH i2c: E2 17 00 [12:10:08]MH_I2C_Read... [12:10:08]Read from MH i2c: E2 17 00 43 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 29 [12:10:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [12:10:08]wFMCommunicate OK [12:10:08]CreateOFDProtocolMessage done [12:10:08]OFDSenderStorePacket 68567 [12:10:08]StoreOFDPacket docnum=68567 [12:10:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 84 B3 07 01 15 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 34 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 22 04 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 D7 0B 01 00 35 04 06 00 17 8B 76 3A D5 34 02 F3 83 70 19 D8 16 8A [12:10:08]CheckFolder [12:10:08]dirname=/storage/ofd_packets [12:10:08]CheckFolder done [12:10:08]ProducePacketName [12:10:08]name=ofd_packets/00068567 [12:10:08]NVStorageSaveData ofd_packets/00068567 [12:10:08]File name is /storage/ofd_packets/00068567 [12:10:08]Write 301 bytes [12:10:08]NVStorageSaveData done [12:10:08]OFDSenderStorePacket done [12:10:08]KKMCreateOFDPacket done [12:10:08]NVStorageSaveData kkm_last_timestamp [12:10:08]File name is /storage/kkm_last_timestamp [12:10:08]Write 4 bytes [12:10:08]NVStorageSaveData done [12:10:08]ExternCall_PrintAddStr [12:10:08]wPrintStart [12:10:08]Write to MH i2c: 01 00 00 44 21 65 [12:10:08]Write i2c OK [12:10:08]MH_I2C_Read... [12:10:08]Read from MH i2c: 01 [12:10:08]MH_I2C_Read... [12:10:08]Read from MH i2c: 01 07 00 [12:10:08]MH_I2C_Read... [12:10:08]Read from MH i2c: 01 07 00 44 21 00 00 00 00 00 FF 0F 7A [12:10:08]RasterBufferAndPrint [12:10:08]line Счет N : (1)706694 [12:10:08]line ИНН: 02508201610067 [12:10:08]line Контрольно-Кассовый Чек [12:10:08]line ПРОДАЖА [12:10:08]line ТРК (МРК, ГНК) : 53 [12:10:08]line Товар: 2710124130 [12:10:08]line Аи-92-К-4 [12:10:08]line 11.960 * 66.90 [12:10:08]line = 800.12 [12:10:08]line НДС 12% НСП 1% [12:10:08]line > о реализуемом товаре [12:10:08]line ОКРУГЛЕНИЕ: -0.12 [12:10:08]line ИТОГО: 800.00 [12:10:08]line Внесено: 800.00 [12:10:08]line СДАЧА: 0.00 [12:10:08]line НСП 1% : 7.08 [12:10:08]line НДС 12% : 84.97 [12:10:08]line Наличными: 800.00 [12:10:08]line Безнал.: 0.00 [12:10:08]line Место: АЗС № 62 "Партнер Нефть" [12:10:08]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [12:10:08]line СНО: Общий режим [12:10:08]line Чек 65 04.06.2024 12:10 [12:10:08]line Смена: 325 ФФД: 1.0 [12:10:08]line ЗНМ: 0300000181 [12:10:08]line РНМ: 0000000000098096 [12:10:08]line Версия ККМ: 001 [12:10:08]line ФМ: 0000000000965400 [12:10:08]line ФД: 68567 [12:10:08]line ФПД: 25887751460148 [12:10:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T121010&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68567&fm=25887751460148&tin=02508201610067®Number=0000000000098096&sum=80000 [12:10:08]OFD Sender: Processing packet 68567 [packets to send 26, broken 25] [12:10:08]ProducePacketName [12:10:08]name=ofd_packets/00068567 [12:10:08]OFD Sender: To server: pG, [12:10:08]CommunicateWithHost lk.salyk.kg:30040 [12:10:08]ConnectInit lk.salyk.kg [12:10:08]written 0, free lines is 4095 [12:10:08]Connected sock=10 [12:10:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 84 B3 07 01 15 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 34 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 22 04 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 D7 0B 01 00 35 04 06 00 17 8B 76 3A D5 34 02 F3 83 70 19 D8 16 8A [12:10:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 FF 32 47 00 12 12 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 D7 0B 01 00 F4 03 04 00 1B AB 5E 66 B6 04 01 00 00 8D 1B 2A FB 9F 47 2A 09 [12:10:08]CommunicateWithHost err = 0 [12:10:08]CheckOFDResponse [12:10:08]1017 (14) - 77093643461234 [12:10:08]1041 (16) - 0000000000965400 [12:10:08]1040 (4) - 68567 [12:10:08]1012 (4) - 04.06.2024 05:50 [12:10:08]1206 (1) - 0 [12:10:08]OFD Sender: Remove packet 68567 [12:10:08]ProducePacketName [12:10:08]name=ofd_packets/00068567 [12:10:08]NVStorageDeleteData [12:10:08]Write to MH i2c: 01 00 00 6F 21 90 [12:10:08]Write i2c OK [12:10:08]MH_I2C_Read... [12:10:08]Read from MH i2c: 01 [12:10:08]MH_I2C_Read... [12:10:08]Read from MH i2c: 01 07 00 [12:10:08]MH_I2C_Read... [12:10:08]Read from MH i2c: 01 07 00 6F 21 00 00 00 00 00 CF 0C 72 [12:10:08]RasterBufferAndPrint [12:10:08]line [12:10:08]line [12:10:08]line [12:10:08]line [12:10:08]line [12:10:08]written 0, free lines is 3286 [12:10:08]MH_Cut [12:10:08]Write to MH i2c: D1 01 00 76 21 01 69 [12:10:08]Write i2c OK [12:10:08]MH_I2C_Read... [12:10:08]Read from MH i2c: D1 [12:10:08]MH_I2C_Read... [12:10:08]Read from MH i2c: D1 01 00 [12:10:08]MH_I2C_Read... [12:10:08]Read from MH i2c: D1 01 00 76 21 00 68 [12:10:08]Write to MH i2c: 01 00 00 77 21 98 [12:10:08]Write i2c OK [12:10:08]MH_I2C_Read... [12:10:09]OFD Sender: No OFD packet to send [12:10:09]*** Cut start [12:10:09]*** Partial cut [12:10:09]*** CUTSNS_PIN = 1 [12:10:09]*** CUTSNS_PIN = 0 [12:10:10]*** Brake cut motor [12:10:10]Read from MH i2c: 01 [12:10:10]MH_I2C_Read... [12:10:10]*** Stop cut motor [12:10:10]*** Cut end [12:10:10]Read from MH i2c: 01 07 00 [12:10:10]MH_I2C_Read... [12:10:10]Read from MH i2c: 01 07 00 77 21 00 00 00 00 00 FF 0F AD [12:10:10]process_action close_receipt done [12:10:10]requested_data is exist [12:10:10]produce_requested_data [12:10:10]requested_item fm.sn is exist - process it [12:10:10]wFMCommunicate request_size=4 [12:10:10]MH_SAM_APDU [12:10:10]CAPDU: 80 11 00 00 [12:10:10]Write to MH i2c: E2 08 00 78 21 80 11 00 00 00 00 00 00 13 [12:10:10]Write i2c OK [12:10:10]MH_I2C_Read... [12:10:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:10:10]Read from MH i2c: E2 [12:10:10]MH_I2C_Read... [12:10:10]Read from MH i2c: E2 17 00 [12:10:10]MH_I2C_Read... [12:10:10]Read from MH i2c: E2 17 00 78 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 5E [12:10:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [12:10:10]wFMCommunicate OK [12:10:10]requested_item fd.num is exist - process it [12:10:10]SAM_PROTO_GetFieldsCounters [12:10:10]wFMCommunicate request_size=4 [12:10:10]MH_SAM_APDU [12:10:10]CAPDU: 80 13 00 00 [12:10:10]Write to MH i2c: E2 08 00 79 21 80 13 00 00 00 00 00 00 16 [12:10:10]Write i2c OK [12:10:10]MH_I2C_Read... [12:10:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:10:10]Read from MH i2c: E2 [12:10:10]MH_I2C_Read... [12:10:10]Read from MH i2c: E2 62 00 [12:10:10]MH_I2C_Read... [12:10:10]Read from MH i2c: E2 62 00 79 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 D7 0B 01 00 0E 04 04 00 45 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 22 [12:10:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 D7 0B 01 00 0E 04 04 00 45 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 [12:10:10]wFMCommunicate OK [12:10:10]SAM_PROTO_GetFieldsCounters done [12:10:10]requested_item shift.num is exist - process it [12:10:10]requested_item shift.opened is exist - process it [12:10:10]req_shift_opened [12:10:10]FM_GetShiftState [12:10:10]SAM_PROTO_GetShiftState [12:10:10]wFMCommunicate request_size=4 [12:10:10]MH_SAM_APDU [12:10:10]CAPDU: 80 13 01 00 [12:10:10]Write to MH i2c: E2 08 00 7A 21 80 13 01 00 00 00 00 00 18 [12:10:10]Write i2c OK [12:10:10]MH_I2C_Read... [12:10:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:10:10]Read from MH i2c: E2 [12:10:10]MH_I2C_Read... [12:10:10]Read from MH i2c: E2 0E 00 [12:10:10]MH_I2C_Read... [12:10:10]Read from MH i2c: E2 0E 00 7A 21 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 B4 [12:10:10]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [12:10:10]wFMCommunicate OK [12:10:10]SAM_PROTO_GetShiftState done [12:10:10]FM_GetShiftState done [12:10:10]req_shift_opened done [12:10:10]requested_item shift.open_date is exist - process it [12:10:10]req_shift_open_date [12:10:10]req_shift_open_date done [12:10:10]produce_requested_data done [12:10:10]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68567,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [12:10:10]process_action_free close_receipt [12:10:10]json_value_free [12:10:10]json_value_free done [12:10:10]process_json_proto returns [12:10:10]Send response to host [12:10:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68567,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [12:10:10]free response buf [12:10:10]execute_script done [12:10:10]execute_script returns [12:10:10]free content buf [12:10:10]Sock 7.Close socket [12:10:10]Sock 7.Thread stoped [12:10:14]OFD Sender: No OFD packet to send [12:10:19]OFD Sender: No OFD packet to send [12:10:24]OFD Sender: No OFD packet to send [12:10:29]OFD Sender: No OFD packet to send [12:10:34]OFD Sender: No OFD packet to send [12:10:39]OFD Sender: No OFD packet to send [12:10:44]OFD Sender: No OFD packet to send [12:10:49]OFD Sender: No OFD packet to send [12:10:54]OFD Sender: No OFD packet to send [12:10:59]OFD Sender: No OFD packet to send [12:11:04]OFD Sender: No OFD packet to send [12:11:09]OFD Sender: No OFD packet to send [12:11:14]OFD Sender: No OFD packet to send [12:11:19]OFD Sender: No OFD packet to send [12:11:24]OFD Sender: No OFD packet to send [12:11:29]OFD Sender: No OFD packet to send [12:11:34]OFD Sender: No OFD packet to send [12:11:39]OFD Sender: No OFD packet to send [12:11:44]OFD Sender: No OFD packet to send [12:11:49]OFD Sender: No OFD packet to send [12:11:54]OFD Sender: No OFD packet to send [12:11:59]OFD Sender: No OFD packet to send [12:12:04]OFD Sender: No OFD packet to send [12:12:09]OFD Sender: No OFD packet to send [12:12:14]OFD Sender: No OFD packet to send [12:12:19]OFD Sender: No OFD packet to send [12:12:23]accept exits with 9 [12:12:23]New connection [12:12:23]New thread 3067227492 created [12:12:23]Thread 3067084132 joined [12:12:23]Waiting for new connection... [12:12:23] Sock 9.Parse request [12:12:23]Sock 9.Check first char [12:12:23]Sock 9.First char is OK [12:12:23]request: POST /json_proto HTTP/1.0 [12:12:23]Method: POST [12:12:23]URL: /json_proto [12:12:23]Method is POST - this is cgi request [12:12:23]url: /json_proto [12:12:23]query_string will be loaded in cgi processing [12:12:23]execute_cgi json_proto POST (null) [12:12:23]execute_cgi path=json_proto method=POST [12:12:23]POST find Content-Length [12:12:23]Host: 172.17.36.132:8080 [12:12:23]Content-Length: 678 [12:12:23]Content-Type: application/json [12:12:23] [12:12:23]POST finish read [12:12:23]Found Content-Length = 678 [12:12:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706695", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:12:23]execute_script... [12:12: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)706695", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:12:23]POST & json_proto [12:12:23]process_json_proto [12:12:23]json parsed OK: [12:12:23]protocol is kg_v1.0 [12:12:23]action value=close_receipt [12:12:23]process_action close_receipt [12:12:23]cmd_close_receipt [12:12:23]MH_GetDate [12:12:23]Write to MH i2c: F0 00 00 7B 21 8B [12:12:23]Write i2c OK [12:12:23]MH_I2C_Read... [12:12:23]Read from MH i2c: F0 [12:12:23]MH_I2C_Read... [12:12:23]Read from MH i2c: F0 09 00 [12:12:23]MH_I2C_Read... [12:12:23]Read from MH i2c: F0 09 00 7B 21 00 AB 04 5F 66 B2 22 B0 64 F0 [12:12:23]GetLastDocTimeStamp 1717503010 [12:12:23]current date 1717503147 [12:12:23]FM_GetShiftState [12:12:23]SAM_PROTO_GetShiftState [12:12:23]wFMCommunicate request_size=4 [12:12:23]MH_SAM_APDU [12:12:23]CAPDU: 80 13 01 00 [12:12:23]Write to MH i2c: E2 08 00 7C 21 80 13 01 00 00 00 00 00 1A [12:12:23]Write i2c OK [12:12:23]MH_I2C_Read... [12:12:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:12:23]Read from MH i2c: E2 [12:12:23]MH_I2C_Read... [12:12:23]Read from MH i2c: E2 0E 00 [12:12:23]MH_I2C_Read... [12:12:23]Read from MH i2c: E2 0E 00 7C 21 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 B6 [12:12:23]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [12:12:23]wFMCommunicate OK [12:12:23]SAM_PROTO_GetShiftState done [12:12:23]FM_GetShiftState done [12:12:23]opened in 1717460590 [12:12:23]opened+sec_in_day 1717546990 [12:12:23]quantity*price = 70044 [12:12:23]sum+1 = 70045 [12:12:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 66 04.06.2024 12:12 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68568 ФПД: 12605501814925 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T121227&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68568&fm=12605501814925&tin=02508201610067®Number=0000000000098096&sum=70000 [12:12:24]StoreToDocumentArchive [12:12:24]shift 325 fd 68568 [12:12:24]save to /storage/0325/doc_00068568 [12:12:24]save last doc name /storage/0325/doc_00068568 to /storage/kkm_last_doc_name [12:12:24]save OK [12:12:24]Clear old archive folders... [12:12:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:12:24]tlvbuf is 00A32A00 [12:12:24]SAM_PROTO_ClearQueue [12:12:24]wFMCommunicate request_size=4 [12:12:24]MH_SAM_APDU [12:12:24]CAPDU: 80 09 00 00 [12:12:24]Write to MH i2c: E2 08 00 89 21 80 09 00 00 00 00 00 00 1C [12:12:24]Write i2c OK [12:12:24]MH_I2C_Read... [12:12:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:12:24]Read from MH i2c: E2 [12:12:24]MH_I2C_Read... [12:12:24]Read from MH i2c: E2 03 00 [12:12:24]MH_I2C_Read... [12:12:24]Read from MH i2c: E2 03 00 89 21 00 90 00 1E [12:12:24]RAPDU: 90 00 [12:12:24]wFMCommunicate OK [12:12:24]SAM_PROTO_ClearQueue done [12:12:24]KKMCreateOFDPacket [12:12:24]OFDProtocolAddRootSTLVToBuf [12:12:24]FM_MakeSignedData [12:12:24]FM_MakeSignedData [12:12:24]SAM_PROTO_SignData [12:12:24]wFMCommunicate request_size=4 [12:12:24]MH_SAM_APDU [12:12:24]CAPDU: 80 0D 01 02 [12:12:24]Write to MH i2c: E2 08 00 8A 21 80 0D 01 02 00 00 00 00 24 [12:12:24]Write i2c OK [12:12:24]MH_I2C_Read... [12:12:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:12:24]OFD Sender: No OFD packet to send [12:12:24]Read from MH i2c: E2 [12:12:24]MH_I2C_Read... [12:12:24]Read from MH i2c: E2 03 00 [12:12:24]MH_I2C_Read... [12:12:24]Read from MH i2c: E2 03 00 8A 21 00 90 00 1F [12:12:24]RAPDU: 90 00 [12:12:24]wFMCommunicate OK [12:12:24]wFMCommunicate request_size=255 [12:12:24]MH_SAM_APDU [12:12: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 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 AB 04 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 D8 0B 01 00 35 04 06 00 0B [12:12:24]Write to MH i2c: E2 02 01 8B 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 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 AB 04 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 D8 0B 01 00 35 04 06 00 0B 00 00 AC [12:12:24]Write i2c OK [12:12:24]MH_I2C_Read... [12:12:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:12:24]Read from MH i2c: E2 [12:12:24]MH_I2C_Read... [12:12:24]Read from MH i2c: E2 03 00 [12:12:24]MH_I2C_Read... [12:12:24]Read from MH i2c: E2 03 00 8B 21 00 90 00 20 [12:12:24]RAPDU: 90 00 [12:12:24]wFMCommunicate OK [12:12:24]wFMCommunicate request_size=10 [12:12:24]MH_SAM_APDU [12:12:24]CAPDU: 80 0D 02 02 05 76 F2 75 38 8D [12:12:24]Write to MH i2c: E2 0D 00 8C 21 80 0D 02 02 05 00 76 F2 75 38 8D 00 00 D3 [12:12:24]Write i2c OK [12:12:24]MH_I2C_Read... [12:12:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:12:24]Read from MH i2c: E2 [12:12:24]MH_I2C_Read... [12:12:24]Read from MH i2c: E2 03 00 [12:12:24]MH_I2C_Read... [12:12:24]Read from MH i2c: E2 03 00 8C 21 00 90 00 21 [12:12:24]RAPDU: 90 00 [12:12:24]wFMCommunicate OK [12:12:24]wFMCommunicate request_size=4 [12:12:24]MH_SAM_APDU [12:12:24]CAPDU: 80 0D 03 02 [12:12:24]Write to MH i2c: E2 08 00 8D 21 80 0D 03 02 00 00 00 00 29 [12:12:24]Write i2c OK [12:12:24]MH_I2C_Read... [12:12:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:12:24]Read from MH i2c: E2 [12:12:24]MH_I2C_Read... [12:12:24]Read from MH i2c: E2 0B 00 [12:12:24]MH_I2C_Read... [12:12:24]Read from MH i2c: E2 0B 00 8D 21 00 B4 41 2B 22 4D 77 DA 47 90 00 51 [12:12:24]RAPDU: B4 41 2B 22 4D 77 DA 47 90 00 [12:12:24]wFMCommunicate OK [12:12:24]SAM_PROTO_SignData done [12:12:24]FM_MakeSignedData done [12:12:24]CreateOFDProtocolMessage [12:12:24]wFMCommunicate request_size=4 [12:12:24]MH_SAM_APDU [12:12:24]CAPDU: 80 11 00 00 [12:12:24]Write to MH i2c: E2 08 00 8E 21 80 11 00 00 00 00 00 00 29 [12:12:24]Write i2c OK [12:12:24]MH_I2C_Read... [12:12:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:12:24]Read from MH i2c: E2 [12:12:24]MH_I2C_Read... [12:12:24]Read from MH i2c: E2 17 00 [12:12:24]MH_I2C_Read... [12:12:24]Read from MH i2c: E2 17 00 8E 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 74 [12:12:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [12:12:24]wFMCommunicate OK [12:12:24]CreateOFDProtocolMessage done [12:12:24]OFDSenderStorePacket 68568 [12:12:24]StoreOFDPacket docnum=68568 [12:12:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 97 E7 07 01 43 B3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 AB 04 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 D8 0B 01 00 35 04 06 00 0B 76 F2 75 38 8D B4 41 2B 22 4D 77 DA 47 [12:12:24]CheckFolder [12:12:24]dirname=/storage/ofd_packets [12:12:24]CheckFolder done [12:12:24]ProducePacketName [12:12:24]name=ofd_packets/00068568 [12:12:24]NVStorageSaveData ofd_packets/00068568 [12:12:24]File name is /storage/ofd_packets/00068568 [12:12:24]Write 301 bytes [12:12:24]NVStorageSaveData done [12:12:24]OFDSenderStorePacket done [12:12:24]KKMCreateOFDPacket done [12:12:24]NVStorageSaveData kkm_last_timestamp [12:12:24]File name is /storage/kkm_last_timestamp [12:12:24]Write 4 bytes [12:12:24]NVStorageSaveData done [12:12:24]ExternCall_PrintAddStr [12:12:24]wPrintStart [12:12:24]Write to MH i2c: 01 00 00 8F 21 B0 [12:12:24]Write i2c OK [12:12:24]MH_I2C_Read... [12:12:24]Read from MH i2c: 01 [12:12:24]MH_I2C_Read... [12:12:24]Read from MH i2c: 01 07 00 [12:12:24]MH_I2C_Read... [12:12:24]Read from MH i2c: 01 07 00 8F 21 00 00 00 00 00 FF 0F C5 [12:12:24]RasterBufferAndPrint [12:12:24]line Счет N : (1)706695 [12:12:24]line ИНН: 02508201610067 [12:12:24]line Контрольно-Кассовый Чек [12:12:24]line ПРОДАЖА [12:12:24]line ТРК (МРК, ГНК) : 32 [12:12:24]line Товар: 2710124130 [12:12:24]line Аи-92-К-4 [12:12:24]line 10.470 * 66.90 [12:12:24]line = 700.44 [12:12:24]line НДС 12% НСП 1% [12:12:24]line > о реализуемом товаре [12:12:24]line ОКРУГЛЕНИЕ: -0.44 [12:12:24]line ИТОГО: 700.00 [12:12:24]line Внесено: 700.00 [12:12:24]line СДАЧА: 0.00 [12:12:24]line НСП 1% : 6.20 [12:12:24]line НДС 12% : 74.38 [12:12:24]line Наличными: 700.00 [12:12:24]line Безнал.: 0.00 [12:12:24]line Место: АЗС № 62 "Партнер Нефть" [12:12:24]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [12:12:24]line СНО: Общий режим [12:12:24]line Чек 66 04.06.2024 12:12 [12:12:24]line Смена: 325 ФФД: 1.0 [12:12:24]line ЗНМ: 0300000181 [12:12:24]line РНМ: 0000000000098096 [12:12:24]line Версия ККМ: 001 [12:12:24]line ФМ: 0000000000965400 [12:12:24]line ФД: 68568 [12:12:24]line ФПД: 12605501814925 [12:12:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T121227&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68568&fm=12605501814925&tin=02508201610067®Number=0000000000098096&sum=70000 [12:12:25]OFD Sender: Processing packet 68568 [packets to send 26, broken 25] [12:12:25]ProducePacketName [12:12:25]name=ofd_packets/00068568 [12:12:25]OFD Sender: To server: pG, [12:12:25]CommunicateWithHost lk.salyk.kg:30040 [12:12:25]ConnectInit lk.salyk.kg [12:12:25]written 0, free lines is 4095 [12:12:25]Connected sock=10 [12:12:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 97 E7 07 01 43 B3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 AB 04 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 D8 0B 01 00 35 04 06 00 0B 76 F2 75 38 8D B4 41 2B 22 4D 77 DA 47 [12:12:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 75 E2 47 00 30 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 39 36 35 34 30 30 10 04 04 00 D8 0B 01 00 F4 03 04 00 A4 AB 5E 66 B6 04 01 00 00 7A 85 C9 49 3A 99 94 C3 [12:12:25]CommunicateWithHost err = 0 [12:12:25]CheckOFDResponse [12:12:25]1017 (14) - 77093643461234 [12:12:25]1041 (16) - 0000000000965400 [12:12:25]1040 (4) - 68568 [12:12:25]1012 (4) - 04.06.2024 05:52 [12:12:25]1206 (1) - 0 [12:12:25]OFD Sender: Remove packet 68568 [12:12:25]ProducePacketName [12:12:25]name=ofd_packets/00068568 [12:12:25]NVStorageDeleteData [12:12:25]Write to MH i2c: 01 00 00 BA 21 DB [12:12:25]Write i2c OK [12:12:25]MH_I2C_Read... [12:12:25]Read from MH i2c: 01 [12:12:25]MH_I2C_Read... [12:12:25]Read from MH i2c: 01 07 00 [12:12:25]MH_I2C_Read... [12:12:25]Read from MH i2c: 01 07 00 BA 21 00 00 00 00 00 C9 0C B7 [12:12:25]RasterBufferAndPrint [12:12:25]line [12:12:25]line [12:12:25]line [12:12:25]line [12:12:25]line [12:12:25]written 0, free lines is 3280 [12:12:25]MH_Cut [12:12:25]Write to MH i2c: D1 01 00 C1 21 01 B4 [12:12:25]Write i2c OK [12:12:25]MH_I2C_Read... [12:12:25]Read from MH i2c: D1 [12:12:25]MH_I2C_Read... [12:12:25]Read from MH i2c: D1 01 00 [12:12:25]MH_I2C_Read... [12:12:25]Read from MH i2c: D1 01 00 C1 21 00 B3 [12:12:25]Write to MH i2c: 01 00 00 C2 21 E3 [12:12:25]Write i2c OK [12:12:25]MH_I2C_Read... [12:12:25]OFD Sender: No OFD packet to send [12:12:26]*** Cut start [12:12:26]*** Partial cut [12:12:26]*** CUTSNS_PIN = 1 [12:12:26]*** CUTSNS_PIN = 0 [12:12:26]*** Brake cut motor [12:12:27]Read from MH i2c: 01 [12:12:27]MH_I2C_Read... [12:12:27]*** Stop cut motor [12:12:27]*** Cut end [12:12:27]Read from MH i2c: 01 07 00 [12:12:27]MH_I2C_Read... [12:12:27]Read from MH i2c: 01 07 00 C2 21 00 00 00 00 00 FF 0F F8 [12:12:27]process_action close_receipt done [12:12:27]requested_data is exist [12:12:27]produce_requested_data [12:12:27]requested_item fm.sn is exist - process it [12:12:27]wFMCommunicate request_size=4 [12:12:27]MH_SAM_APDU [12:12:27]CAPDU: 80 11 00 00 [12:12:27]Write to MH i2c: E2 08 00 C3 21 80 11 00 00 00 00 00 00 5E [12:12:27]Write i2c OK [12:12:27]MH_I2C_Read... [12:12:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:12:27]Read from MH i2c: E2 [12:12:27]MH_I2C_Read... [12:12:27]Read from MH i2c: E2 17 00 [12:12:27]MH_I2C_Read... [12:12:27]Read from MH i2c: E2 17 00 C3 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 A9 [12:12:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [12:12:27]wFMCommunicate OK [12:12:27]requested_item fd.num is exist - process it [12:12:27]SAM_PROTO_GetFieldsCounters [12:12:27]wFMCommunicate request_size=4 [12:12:27]MH_SAM_APDU [12:12:27]CAPDU: 80 13 00 00 [12:12:27]Write to MH i2c: E2 08 00 C4 21 80 13 00 00 00 00 00 00 61 [12:12:27]Write i2c OK [12:12:27]MH_I2C_Read... [12:12:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:12:27]Read from MH i2c: E2 [12:12:27]MH_I2C_Read... [12:12:27]Read from MH i2c: E2 62 00 [12:12:27]MH_I2C_Read... [12:12:27]Read from MH i2c: E2 62 00 C4 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 D8 0B 01 00 0E 04 04 00 45 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 71 [12:12:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 D8 0B 01 00 0E 04 04 00 45 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 [12:12:27]wFMCommunicate OK [12:12:27]SAM_PROTO_GetFieldsCounters done [12:12:27]requested_item shift.num is exist - process it [12:12:27]requested_item shift.opened is exist - process it [12:12:27]req_shift_opened [12:12:27]FM_GetShiftState [12:12:27]SAM_PROTO_GetShiftState [12:12:27]wFMCommunicate request_size=4 [12:12:27]MH_SAM_APDU [12:12:27]CAPDU: 80 13 01 00 [12:12:27]Write to MH i2c: E2 08 00 C5 21 80 13 01 00 00 00 00 00 63 [12:12:27]Write i2c OK [12:12:27]MH_I2C_Read... [12:12:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:12:27]Read from MH i2c: E2 [12:12:27]MH_I2C_Read... [12:12:27]Read from MH i2c: E2 0E 00 [12:12:27]MH_I2C_Read... [12:12:27]Read from MH i2c: E2 0E 00 C5 21 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 FF [12:12:27]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [12:12:27]wFMCommunicate OK [12:12:27]SAM_PROTO_GetShiftState done [12:12:27]FM_GetShiftState done [12:12:27]req_shift_opened done [12:12:27]requested_item shift.open_date is exist - process it [12:12:27]req_shift_open_date [12:12:27]req_shift_open_date done [12:12:27]produce_requested_data done [12:12:27]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68568,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [12:12:27]process_action_free close_receipt [12:12:27]json_value_free [12:12:27]json_value_free done [12:12:27]process_json_proto returns [12:12:27]Send response to host [12:12:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68568,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [12:12:27]free response buf [12:12:27]execute_script done [12:12:27]execute_script returns [12:12:27]free content buf [12:12:27]Sock 9.Close socket [12:12:27]Sock 9.Thread stoped [12:12:30]OFD Sender: No OFD packet to send [12:12:35]OFD Sender: No OFD packet to send [12:12:40]OFD Sender: No OFD packet to send [12:12:45]OFD Sender: No OFD packet to send [12:12:50]OFD Sender: No OFD packet to send [12:12:55]OFD Sender: No OFD packet to send [12:13:00]OFD Sender: No OFD packet to send [12:13:05]OFD Sender: No OFD packet to send [12:13:10]OFD Sender: No OFD packet to send [12:13:16]OFD Sender: No OFD packet to send [12:13:21]OFD Sender: No OFD packet to send [12:13:26]OFD Sender: No OFD packet to send [12:13:31]OFD Sender: No OFD packet to send [12:13:36]OFD Sender: No OFD packet to send [12:13:41]OFD Sender: No OFD packet to send [12:13:46]OFD Sender: No OFD packet to send [12:13:51]OFD Sender: No OFD packet to send [12:13:56]OFD Sender: No OFD packet to send [12:14:01]OFD Sender: No OFD packet to send [12:14:06]OFD Sender: No OFD packet to send [12:14:11]OFD Sender: No OFD packet to send [12:14:16]OFD Sender: No OFD packet to send [12:14:21]OFD Sender: No OFD packet to send [12:14:26]OFD Sender: No OFD packet to send [12:14:31]OFD Sender: No OFD packet to send [12:14:36]OFD Sender: No OFD packet to send [12:14:41]OFD Sender: No OFD packet to send [12:14:46]OFD Sender: No OFD packet to send [12:14:51]OFD Sender: No OFD packet to send [12:14:56]OFD Sender: No OFD packet to send [12:15:01]OFD Sender: No OFD packet to send [12:15:06]OFD Sender: No OFD packet to send [12:15:11]OFD Sender: No OFD packet to send [12:15:16]OFD Sender: No OFD packet to send [12:15:21]OFD Sender: No OFD packet to send [12:15:26]OFD Sender: No OFD packet to send [12:15:31]OFD Sender: No OFD packet to send [12:15:36]OFD Sender: No OFD packet to send [12:15:41]OFD Sender: No OFD packet to send [12:15:46]OFD Sender: No OFD packet to send [12:15:51]OFD Sender: No OFD packet to send [12:15:56]OFD Sender: No OFD packet to send [12:16:01]OFD Sender: No OFD packet to send [12:16:06]OFD Sender: No OFD packet to send [12:16:11]OFD Sender: No OFD packet to send [12:16:16]OFD Sender: No OFD packet to send [12:16:21]OFD Sender: No OFD packet to send [12:16:26]OFD Sender: No OFD packet to send [12:16:31]OFD Sender: No OFD packet to send [12:16:36]OFD Sender: No OFD packet to send [12:16:41]OFD Sender: No OFD packet to send [12:16:46]OFD Sender: No OFD packet to send [12:16:48]accept exits with 7 [12:16:48]New connection [12:16:48]New thread 3067084132 created [12:16:48]Thread 3067227492 joined [12:16:48]Waiting for new connection... [12:16:48] Sock 7.Parse request [12:16:48]Sock 7.Check first char [12:16:48]Sock 7.First char is OK [12:16:48]request: POST /json_proto HTTP/1.0 [12:16:48]Method: POST [12:16:48]URL: /json_proto [12:16:48]Method is POST - this is cgi request [12:16:48]url: /json_proto [12:16:48]query_string will be loaded in cgi processing [12:16:48]execute_cgi json_proto POST (null) [12:16:48]execute_cgi path=json_proto method=POST [12:16:48]POST find Content-Length [12:16:48]Host: 172.17.36.132:8080 [12:16:48]Content-Length: 677 [12:16:48]Content-Type: application/json [12:16:48] [12:16:48]POST finish read [12:16:48]Found Content-Length = 677 [12:16:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706696", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 3.590, "sum" : 240.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 240.00, "total" : 240.00, "payments": [ { "type": 0, "sum" : 240.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:16:48]execute_script... [12:16: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)706696", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 3.590, "sum" : 240.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 240.00, "total" : 240.00, "payments": [ { "type": 0, "sum" : 240.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:16:48]POST & json_proto [12:16:48]process_json_proto [12:16:48]json parsed OK: [12:16:48]protocol is kg_v1.0 [12:16:48]action value=close_receipt [12:16:48]process_action close_receipt [12:16:48]cmd_close_receipt [12:16:48]MH_GetDate [12:16:48]Write to MH i2c: F0 00 00 C6 21 D6 [12:16:48]Write i2c OK [12:16:48]MH_I2C_Read... [12:16:48]Read from MH i2c: F0 [12:16:48]MH_I2C_Read... [12:16:48]Read from MH i2c: F0 09 00 [12:16:48]MH_I2C_Read... [12:16:48]Read from MH i2c: F0 09 00 C6 21 00 B5 05 5F 66 B2 22 B0 64 46 [12:16:48]GetLastDocTimeStamp 1717503147 [12:16:48]current date 1717503413 [12:16:48]FM_GetShiftState [12:16:48]SAM_PROTO_GetShiftState [12:16:48]wFMCommunicate request_size=4 [12:16:48]MH_SAM_APDU [12:16:48]CAPDU: 80 13 01 00 [12:16:48]Write to MH i2c: E2 08 00 C7 21 80 13 01 00 00 00 00 00 65 [12:16:48]Write i2c OK [12:16:48]MH_I2C_Read... [12:16:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:16:48]Read from MH i2c: E2 [12:16:48]MH_I2C_Read... [12:16:48]Read from MH i2c: E2 0E 00 [12:16:48]MH_I2C_Read... [12:16:49]Read from MH i2c: E2 0E 00 C7 21 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 01 [12:16:49]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [12:16:49]wFMCommunicate OK [12:16:49]SAM_PROTO_GetShiftState done [12:16:49]FM_GetShiftState done [12:16:49]opened in 1717460590 [12:16:49]opened+sec_in_day 1717546990 [12:16:49]quantity*price = 24017 [12:16:49]sum+1 = 24018 [12:16:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.17 ИТОГО: 240.00 Внесено: 240.00 СДАЧА: 0.00 НСП 1% : 2.12 НДС 12% : 25.50 Наличными: 240.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 67 04.06.2024 12:16 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68569 ФПД: 40399999430707 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T121653&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68569&fm=40399999430707&tin=02508201610067®Number=0000000000098096&sum=24000 [12:16:50]StoreToDocumentArchive [12:16:50]shift 325 fd 68569 [12:16:50]save to /storage/0325/doc_00068569 [12:16:50]save last doc name /storage/0325/doc_00068569 to /storage/kkm_last_doc_name [12:16:50]save OK [12:16:50]Clear old archive folders... [12:16:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:16:50]tlvbuf is 009F56D0 [12:16:50]SAM_PROTO_ClearQueue [12:16:50]wFMCommunicate request_size=4 [12:16:50]MH_SAM_APDU [12:16:50]CAPDU: 80 09 00 00 [12:16:50]Write to MH i2c: E2 08 00 D4 21 80 09 00 00 00 00 00 00 67 [12:16:50]Write i2c OK [12:16:50]MH_I2C_Read... [12:16:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:16:50]Read from MH i2c: E2 [12:16:50]MH_I2C_Read... [12:16:50]Read from MH i2c: E2 03 00 [12:16:50]MH_I2C_Read... [12:16:50]Read from MH i2c: E2 03 00 D4 21 00 90 00 69 [12:16:50]RAPDU: 90 00 [12:16:50]wFMCommunicate OK [12:16:50]SAM_PROTO_ClearQueue done [12:16:50]KKMCreateOFDPacket [12:16:50]OFDProtocolAddRootSTLVToBuf [12:16:50]FM_MakeSignedData [12:16:50]FM_MakeSignedData [12:16:50]SAM_PROTO_SignData [12:16:50]wFMCommunicate request_size=4 [12:16:50]MH_SAM_APDU [12:16:50]CAPDU: 80 0D 01 02 [12:16:50]Write to MH i2c: E2 08 00 D5 21 80 0D 01 02 00 00 00 00 6F [12:16:50]Write i2c OK [12:16:50]MH_I2C_Read... [12:16:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:16:50]Read from MH i2c: E2 [12:16:50]MH_I2C_Read... [12:16:50]Read from MH i2c: E2 03 00 [12:16:50]MH_I2C_Read... [12:16:50]Read from MH i2c: E2 03 00 D5 21 00 90 00 6A [12:16:50]RAPDU: 90 00 [12:16:50]wFMCommunicate OK [12:16:50]wFMCommunicate request_size=255 [12:16:50]MH_SAM_APDU [12:16: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 34 FF 03 08 00 03 06 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D1 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 B5 05 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 D9 0B 01 00 35 04 06 00 24 [12:16:50]Write to MH i2c: E2 02 01 D6 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 34 FF 03 08 00 03 06 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D1 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 B5 05 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 D9 0B 01 00 35 04 06 00 24 00 00 13 [12:16:50]Write i2c OK [12:16:50]MH_I2C_Read... [12:16:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:16:50]Read from MH i2c: E2 [12:16:50]MH_I2C_Read... [12:16:50]Read from MH i2c: E2 03 00 [12:16:50]MH_I2C_Read... [12:16:50]Read from MH i2c: E2 03 00 D6 21 00 90 00 6B [12:16:50]RAPDU: 90 00 [12:16:50]wFMCommunicate OK [12:16:50]wFMCommunicate request_size=10 [12:16:50]MH_SAM_APDU [12:16:50]CAPDU: 80 0D 02 02 05 BE 5B 9D 70 33 [12:16:50]Write to MH i2c: E2 0D 00 D7 21 80 0D 02 02 05 00 BE 5B 9D 70 33 00 00 D5 [12:16:50]Write i2c OK [12:16:50]MH_I2C_Read... [12:16:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:16:50]Read from MH i2c: E2 [12:16:50]MH_I2C_Read... [12:16:50]Read from MH i2c: E2 03 00 [12:16:50]MH_I2C_Read... [12:16:50]Read from MH i2c: E2 03 00 D7 21 00 90 00 6C [12:16:50]RAPDU: 90 00 [12:16:50]wFMCommunicate OK [12:16:50]wFMCommunicate request_size=4 [12:16:50]MH_SAM_APDU [12:16:50]CAPDU: 80 0D 03 02 [12:16:50]Write to MH i2c: E2 08 00 D8 21 80 0D 03 02 00 00 00 00 74 [12:16:50]Write i2c OK [12:16:50]MH_I2C_Read... [12:16:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:16:50]Read from MH i2c: E2 [12:16:50]MH_I2C_Read... [12:16:50]Read from MH i2c: E2 0B 00 [12:16:50]MH_I2C_Read... [12:16:50]Read from MH i2c: E2 0B 00 D8 21 00 62 7D C7 6A EA C4 A8 83 90 00 5E [12:16:50]RAPDU: 62 7D C7 6A EA C4 A8 83 90 00 [12:16:50]wFMCommunicate OK [12:16:50]SAM_PROTO_SignData done [12:16:50]FM_MakeSignedData done [12:16:50]CreateOFDProtocolMessage [12:16:50]wFMCommunicate request_size=4 [12:16:50]MH_SAM_APDU [12:16:50]CAPDU: 80 11 00 00 [12:16:50]Write to MH i2c: E2 08 00 D9 21 80 11 00 00 00 00 00 00 74 [12:16:50]Write i2c OK [12:16:50]MH_I2C_Read... [12:16:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:16:50]Read from MH i2c: E2 [12:16:50]MH_I2C_Read... [12:16:50]Read from MH i2c: E2 17 00 [12:16:50]MH_I2C_Read... [12:16:50]Read from MH i2c: E2 17 00 D9 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 BF [12:16:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [12:16:50]wFMCommunicate OK [12:16:50]CreateOFDProtocolMessage done [12:16:50]OFDSenderStorePacket 68569 [12:16:50]StoreOFDPacket docnum=68569 [12:16:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 BC A5 07 01 F6 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 34 FF 03 08 00 03 06 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D1 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 B5 05 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 D9 0B 01 00 35 04 06 00 24 BE 5B 9D 70 33 62 7D C7 6A EA C4 A8 83 [12:16:50]CheckFolder [12:16:50]dirname=/storage/ofd_packets [12:16:50]CheckFolder done [12:16:50]ProducePacketName [12:16:50]name=ofd_packets/00068569 [12:16:50]NVStorageSaveData ofd_packets/00068569 [12:16:50]File name is /storage/ofd_packets/00068569 [12:16:50]Write 301 bytes [12:16:50]NVStorageSaveData done [12:16:50]OFDSenderStorePacket done [12:16:50]KKMCreateOFDPacket done [12:16:50]NVStorageSaveData kkm_last_timestamp [12:16:50]File name is /storage/kkm_last_timestamp [12:16:50]Write 4 bytes [12:16:50]NVStorageSaveData done [12:16:50]ExternCall_PrintAddStr [12:16:50]wPrintStart [12:16:50]Write to MH i2c: 01 00 00 DA 21 FB [12:16:50]Write i2c OK [12:16:50]MH_I2C_Read... [12:16:50]Read from MH i2c: 01 [12:16:50]MH_I2C_Read... [12:16:50]Read from MH i2c: 01 07 00 [12:16:50]MH_I2C_Read... [12:16:50]Read from MH i2c: 01 07 00 DA 21 00 00 00 00 00 FF 0F 10 [12:16:50]RasterBufferAndPrint [12:16:50]line Счет N : (1)706696 [12:16:50]line ИНН: 02508201610067 [12:16:50]line Контрольно-Кассовый Чек [12:16:50]line ПРОДАЖА [12:16:50]line ТРК (МРК, ГНК) : 53 [12:16:50]line Товар: 2710124130 [12:16:50]line Аи-92-К-4 [12:16:50]line 3.590 * 66.90 [12:16:50]line = 240.17 [12:16:50]line НДС 12% НСП 1% [12:16:50]line > о реализуемом товаре [12:16:50]line ОКРУГЛЕНИЕ: -0.17 [12:16:50]line ИТОГО: 240.00 [12:16:50]line Внесено: 240.00 [12:16:50]line СДАЧА: 0.00 [12:16:50]line НСП 1% : 2.12 [12:16:50]line НДС 12% : 25.50 [12:16:50]line Наличными: 240.00 [12:16:50]line Безнал.: 0.00 [12:16:50]line Место: АЗС № 62 "Партнер Нефть" [12:16:50]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [12:16:50]line СНО: Общий режим [12:16:50]line Чек 67 04.06.2024 12:16 [12:16:50]line Смена: 325 ФФД: 1.0 [12:16:50]line ЗНМ: 0300000181 [12:16:50]line РНМ: 0000000000098096 [12:16:50]line Версия ККМ: 001 [12:16:50]line ФМ: 0000000000965400 [12:16:50]line ФД: 68569 [12:16:50]line ФПД: 40399999430707 [12:16:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T121653&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68569&fm=40399999430707&tin=02508201610067®Number=0000000000098096&sum=24000 [12:16:50]OFD Sender: Processing packet 68569 [packets to send 26, broken 25] [12:16:50]ProducePacketName [12:16:50]name=ofd_packets/00068569 [12:16:50]OFD Sender: To server: pG, [12:16:50]CommunicateWithHost lk.salyk.kg:30040 [12:16:50]ConnectInit lk.salyk.kg [12:16:50]written 0, free lines is 4095 [12:16:51]Connected sock=10 [12:16:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 BC A5 07 01 F6 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 34 FF 03 08 00 03 06 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D1 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 B5 05 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 D9 0B 01 00 35 04 06 00 24 BE 5B 9D 70 33 62 7D C7 6A EA C4 A8 83 [12:16:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 A3 23 47 00 34 8D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 D9 0B 01 00 F4 03 04 00 AD AC 5E 66 B6 04 01 00 00 3E 0D 5F 45 B5 D9 BA 07 [12:16:51]CommunicateWithHost err = 0 [12:16:51]CheckOFDResponse [12:16:51]1017 (14) - 77093643461234 [12:16:51]1041 (16) - 0000000000965400 [12:16:51]1040 (4) - 68569 [12:16:51]1012 (4) - 04.06.2024 05:57 [12:16:51]1206 (1) - 0 [12:16:51]OFD Sender: Remove packet 68569 [12:16:51]ProducePacketName [12:16:51]name=ofd_packets/00068569 [12:16:51]NVStorageDeleteData [12:16:51]Write to MH i2c: 01 00 00 05 22 27 [12:16:51]Write i2c OK [12:16:51]MH_I2C_Read... [12:16:51]Read from MH i2c: 01 [12:16:51]MH_I2C_Read... [12:16:51]Read from MH i2c: 01 07 00 [12:16:51]MH_I2C_Read... [12:16:51]Read from MH i2c: 01 07 00 05 22 00 00 00 00 00 D0 0C 0A [12:16:51]RasterBufferAndPrint [12:16:51]line [12:16:51]line [12:16:51]line [12:16:51]line [12:16:51]line [12:16:51]written 0, free lines is 3287 [12:16:51]MH_Cut [12:16:51]Write to MH i2c: D1 01 00 0C 22 01 00 [12:16:51]Write i2c OK [12:16:51]MH_I2C_Read... [12:16:51]Read from MH i2c: D1 [12:16:51]MH_I2C_Read... [12:16:51]Read from MH i2c: D1 01 00 [12:16:51]MH_I2C_Read... [12:16:51]Read from MH i2c: D1 01 00 0C 22 00 FF [12:16:51]Write to MH i2c: 01 00 00 0D 22 2F [12:16:51]Write i2c OK [12:16:51]MH_I2C_Read... [12:16:51]OFD Sender: No OFD packet to send [12:16:52]*** Cut start [12:16:52]*** Partial cut [12:16:52]*** CUTSNS_PIN = 1 [12:16:52]*** CUTSNS_PIN = 0 [12:16:52]*** Brake cut motor [12:16:52]Read from MH i2c: 01 [12:16:52]MH_I2C_Read... [12:16:52]*** Stop cut motor [12:16:52]*** Cut end [12:16:52]Read from MH i2c: 01 07 00 [12:16:52]MH_I2C_Read... [12:16:52]Read from MH i2c: 01 07 00 0D 22 00 00 00 00 00 FF 0F 44 [12:16:52]process_action close_receipt done [12:16:52]requested_data is exist [12:16:52]produce_requested_data [12:16:52]requested_item fm.sn is exist - process it [12:16:52]wFMCommunicate request_size=4 [12:16:52]MH_SAM_APDU [12:16:52]CAPDU: 80 11 00 00 [12:16:52]Write to MH i2c: E2 08 00 0E 22 80 11 00 00 00 00 00 00 AA [12:16:52]Write i2c OK [12:16:52]MH_I2C_Read... [12:16:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:16:52]Read from MH i2c: E2 [12:16:52]MH_I2C_Read... [12:16:52]Read from MH i2c: E2 17 00 [12:16:52]MH_I2C_Read... [12:16:52]Read from MH i2c: E2 17 00 0E 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 F5 [12:16:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [12:16:52]wFMCommunicate OK [12:16:52]requested_item fd.num is exist - process it [12:16:52]SAM_PROTO_GetFieldsCounters [12:16:52]wFMCommunicate request_size=4 [12:16:52]MH_SAM_APDU [12:16:52]CAPDU: 80 13 00 00 [12:16:52]Write to MH i2c: E2 08 00 0F 22 80 13 00 00 00 00 00 00 AD [12:16:52]Write i2c OK [12:16:52]MH_I2C_Read... [12:16:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:16:53]Read from MH i2c: E2 [12:16:53]MH_I2C_Read... [12:16:53]Read from MH i2c: E2 62 00 [12:16:53]MH_I2C_Read... [12:16:53]Read from MH i2c: E2 62 00 0F 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 D9 0B 01 00 0E 04 04 00 45 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 C1 [12:16:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 D9 0B 01 00 0E 04 04 00 45 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 [12:16:53]wFMCommunicate OK [12:16:53]SAM_PROTO_GetFieldsCounters done [12:16:53]requested_item shift.num is exist - process it [12:16:53]requested_item shift.opened is exist - process it [12:16:53]req_shift_opened [12:16:53]FM_GetShiftState [12:16:53]SAM_PROTO_GetShiftState [12:16:53]wFMCommunicate request_size=4 [12:16:53]MH_SAM_APDU [12:16:53]CAPDU: 80 13 01 00 [12:16:53]Write to MH i2c: E2 08 00 10 22 80 13 01 00 00 00 00 00 AF [12:16:53]Write i2c OK [12:16:53]MH_I2C_Read... [12:16:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:16:53]Read from MH i2c: E2 [12:16:53]MH_I2C_Read... [12:16:53]Read from MH i2c: E2 0E 00 [12:16:53]MH_I2C_Read... [12:16:53]Read from MH i2c: E2 0E 00 10 22 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 4B [12:16:53]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [12:16:53]wFMCommunicate OK [12:16:53]SAM_PROTO_GetShiftState done [12:16:53]FM_GetShiftState done [12:16:53]req_shift_opened done [12:16:53]requested_item shift.open_date is exist - process it [12:16:53]req_shift_open_date [12:16:53]req_shift_open_date done [12:16:53]produce_requested_data done [12:16:53]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68569,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [12:16:53]process_action_free close_receipt [12:16:53]json_value_free [12:16:53]json_value_free done [12:16:53]process_json_proto returns [12:16:53]Send response to host [12:16:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68569,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [12:16:53]free response buf [12:16:53]execute_script done [12:16:53]execute_script returns [12:16:53]free content buf [12:16:53]Sock 7.Close socket [12:16:53]Sock 7.Thread stoped [12:16:56]OFD Sender: No OFD packet to send [12:17:01]OFD Sender: No OFD packet to send [12:17:06]OFD Sender: No OFD packet to send [12:17:11]OFD Sender: No OFD packet to send [12:17:16]OFD Sender: No OFD packet to send [12:17:21]OFD Sender: No OFD packet to send [12:17:26]OFD Sender: No OFD packet to send [12:17:31]OFD Sender: No OFD packet to send [12:17:36]OFD Sender: No OFD packet to send [12:17:41]OFD Sender: No OFD packet to send [12:17:46]OFD Sender: No OFD packet to send [12:17:51]OFD Sender: No OFD packet to send [12:17:56]OFD Sender: No OFD packet to send [12:18:01]OFD Sender: No OFD packet to send [12:18:06]OFD Sender: No OFD packet to send [12:18:11]OFD Sender: No OFD packet to send [12:18:16]OFD Sender: No OFD packet to send [12:18:21]OFD Sender: No OFD packet to send [12:18:26]OFD Sender: No OFD packet to send [12:18:31]OFD Sender: No OFD packet to send [12:18:36]OFD Sender: No OFD packet to send [12:18:41]OFD Sender: No OFD packet to send [12:18:46]OFD Sender: No OFD packet to send [12:18:51]OFD Sender: No OFD packet to send [12:18:56]OFD Sender: No OFD packet to send [12:19:01]OFD Sender: No OFD packet to send [12:19:06]OFD Sender: No OFD packet to send [12:19:11]OFD Sender: No OFD packet to send [12:19:16]OFD Sender: No OFD packet to send [12:19:21]OFD Sender: No OFD packet to send [12:19:26]OFD Sender: No OFD packet to send [12:19:31]OFD Sender: No OFD packet to send [12:19:33]accept exits with 9 [12:19:33]New connection [12:19:33]New thread 3067227492 created [12:19:33]Thread 3067084132 joined [12:19:33]Waiting for new connection... [12:19:33] Sock 9.Parse request [12:19:33]Sock 9.Check first char [12:19:33]Sock 9.First char is OK [12:19:33]request: POST /json_proto HTTP/1.0 [12:19:33]Method: POST [12:19:33]URL: /json_proto [12:19:33]Method is POST - this is cgi request [12:19:33]url: /json_proto [12:19:33]query_string will be loaded in cgi processing [12:19:33]execute_cgi json_proto POST (null) [12:19:33]execute_cgi path=json_proto method=POST [12:19:33]POST find Content-Length [12:19:33]Host: 172.17.36.132:8080 [12:19:33]Content-Length: 1202 [12:19:33]Content-Type: application/json [12:19:33] [12:19:33]POST finish read [12:19:33]Found Content-Length = 1202 [12:19:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0418\u0441\u043C\u0430\u043D\u0430\u043B\u0438\u0435\u0432 \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)706697\u000A04.06.2024 11:56\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-4\u000A 20.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 1458.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3788979\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:19:33]execute_script... [12:19:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0418\u0441\u043C\u0430\u043D\u0430\u043B\u0438\u0435\u0432 \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)706697\u000A04.06.2024 11:56\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-4\u000A 20.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 1458.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3788979\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:19:33]POST & json_proto [12:19:33]process_json_proto [12:19:33]json parsed OK: [12:19:33]protocol is kg_v1.0 [12:19:33]action value=print_text [12:19:33]process_action print_text [12:19:33]cmd_print_text [12:19:33]ExternCall_PrintAddStr [12:19:33]wPrintStart [12:19:33]Write to MH i2c: 01 00 00 11 22 33 [12:19:34]Write i2c OK [12:19:34]MH_I2C_Read... [12:19:34]Read from MH i2c: 01 [12:19:34]MH_I2C_Read... [12:19:34]Read from MH i2c: 01 07 00 [12:19:34]MH_I2C_Read... [12:19:34]Read from MH i2c: 01 07 00 11 22 00 00 00 00 00 FF 0F 48 [12:19:34]RasterBufferAndPrint [12:19:34]line *****ТОВАРНЫЙ ЧЕК***** [12:19:34]line АЗС 62 [12:19:34]line Партнер нефть [12:19:34]line 02508201610067 [12:19:34]line Кассир : Исманалиев Д. [12:19:34]line Счет N : (1)706697 [12:19:34]line 04.06.2024 11:56 [12:19:34]line ПРОДАЖА [12:19:34]line ТРК (МРК, ГНК): 11 [12:19:34]line Вид ГСМ : 2710194210 [12:19:34]line ДТ(л)-К-4 [12:19:34]line 20.000 x 72.90 [12:19:34]line ИТОГ: 1458.00 [12:19:34]line Тип оплаты: Талоны: Партнер нефть [12:19:34]line 3788979 [12:19:34]line ______________________ [12:19:34]line (подпись) [12:19:34]written 0, free lines is 4095 [12:19:34]Write to MH i2c: 01 00 00 25 22 47 [12:19:34]Write i2c OK [12:19:34]MH_I2C_Read... [12:19:34]Read from MH i2c: 01 [12:19:34]MH_I2C_Read... [12:19:34]Read from MH i2c: 01 07 00 [12:19:34]MH_I2C_Read... [12:19:34]Read from MH i2c: 01 07 00 25 22 00 00 00 00 00 12 0E 6E [12:19:34]RasterBufferAndPrint [12:19:34]line [12:19:34]line [12:19:34]line [12:19:34]line [12:19:34]line [12:19:34]written 0, free lines is 3604 [12:19:34]MH_Cut [12:19:34]Write to MH i2c: D1 01 00 2C 22 01 20 [12:19:34]Write i2c OK [12:19:34]MH_I2C_Read... [12:19:34]Read from MH i2c: D1 [12:19:34]MH_I2C_Read... [12:19:34]Read from MH i2c: D1 01 00 [12:19:34]MH_I2C_Read... [12:19:34]Read from MH i2c: D1 01 00 2C 22 00 1F [12:19:34]Write to MH i2c: 01 00 00 2D 22 4F [12:19:34]Write i2c OK [12:19:34]MH_I2C_Read... [12:19:34]*** Cut start [12:19:34]*** Partial cut [12:19:34]*** CUTSNS_PIN = 1 [12:19:34]*** CUTSNS_PIN = 0 [12:19:35]*** Brake cut motor [12:19:35]Read from MH i2c: 01 [12:19:35]MH_I2C_Read... [12:19:35]Read from MH i2c: 01 07 00 [12:19:35]MH_I2C_Read... [12:19:35]*** Stop cut motor [12:19:35]*** Cut end [12:19:35]Read from MH i2c: 01 07 00 2D 22 00 00 00 00 00 FF 0F 64 [12:19:35]process_action print_text done [12:19:35]requested_data is exist [12:19:35]produce_requested_data [12:19:35]requested_item fm.sn is exist - process it [12:19:35]wFMCommunicate request_size=4 [12:19:35]MH_SAM_APDU [12:19:35]CAPDU: 80 11 00 00 [12:19:35]Write to MH i2c: E2 08 00 2E 22 80 11 00 00 00 00 00 00 CA [12:19:35]Write i2c OK [12:19:35]MH_I2C_Read... [12:19:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:19:35]Read from MH i2c: E2 [12:19:35]MH_I2C_Read... [12:19:35]Read from MH i2c: E2 17 00 [12:19:35]MH_I2C_Read... [12:19:35]Read from MH i2c: E2 17 00 2E 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 15 [12:19:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [12:19:35]wFMCommunicate OK [12:19:35]requested_item fd.num is exist - process it [12:19:35]SAM_PROTO_GetFieldsCounters [12:19:35]wFMCommunicate request_size=4 [12:19:35]MH_SAM_APDU [12:19:35]CAPDU: 80 13 00 00 [12:19:35]Write to MH i2c: E2 08 00 2F 22 80 13 00 00 00 00 00 00 CD [12:19:35]Write i2c OK [12:19:35]MH_I2C_Read... [12:19:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:19:35]Read from MH i2c: E2 [12:19:35]MH_I2C_Read... [12:19:35]Read from MH i2c: E2 62 00 [12:19:35]MH_I2C_Read... [12:19:35]Read from MH i2c: E2 62 00 2F 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 D9 0B 01 00 0E 04 04 00 45 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 E1 [12:19:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 D9 0B 01 00 0E 04 04 00 45 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 [12:19:35]wFMCommunicate OK [12:19:35]SAM_PROTO_GetFieldsCounters done [12:19:35]requested_item shift.num is exist - process it [12:19:35]requested_item shift.opened is exist - process it [12:19:35]req_shift_opened [12:19:35]FM_GetShiftState [12:19:35]SAM_PROTO_GetShiftState [12:19:35]wFMCommunicate request_size=4 [12:19:35]MH_SAM_APDU [12:19:35]CAPDU: 80 13 01 00 [12:19:35]Write to MH i2c: E2 08 00 30 22 80 13 01 00 00 00 00 00 CF [12:19:35]Write i2c OK [12:19:35]MH_I2C_Read... [12:19:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:19:35]Read from MH i2c: E2 [12:19:35]MH_I2C_Read... [12:19:35]Read from MH i2c: E2 0E 00 [12:19:35]MH_I2C_Read... [12:19:35]Read from MH i2c: E2 0E 00 30 22 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 6B [12:19:35]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [12:19:35]wFMCommunicate OK [12:19:35]SAM_PROTO_GetShiftState done [12:19:35]FM_GetShiftState done [12:19:35]req_shift_opened done [12:19:35]requested_item shift.open_date is exist - process it [12:19:35]req_shift_open_date [12:19:35]req_shift_open_date done [12:19:35]produce_requested_data done [12:19:35]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68569,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [12:19:35]process_action_free print_text [12:19:35]json_value_free [12:19:35]json_value_free done [12:19:35]process_json_proto returns [12:19:35]Send response to host [12:19:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68569,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [12:19:35]free response buf [12:19:35]execute_script done [12:19:35]execute_script returns [12:19:35]free content buf [12:19:35]Sock 9.Close socket [12:19:35]Sock 9.Thread stoped [12:19:36]OFD Sender: No OFD packet to send [12:19:41]OFD Sender: No OFD packet to send [12:19:46]OFD Sender: No OFD packet to send [12:19:51]OFD Sender: No OFD packet to send [12:19:56]OFD Sender: No OFD packet to send [12:20:01]OFD Sender: No OFD packet to send [12:20:06]OFD Sender: No OFD packet to send [12:20:11]OFD Sender: No OFD packet to send [12:20:16]OFD Sender: No OFD packet to send [12:20:21]OFD Sender: No OFD packet to send [12:20:26]OFD Sender: No OFD packet to send [12:20:31]OFD Sender: No OFD packet to send [12:20:36]OFD Sender: No OFD packet to send [12:20:41]OFD Sender: No OFD packet to send [12:20:46]OFD Sender: No OFD packet to send [12:20:51]OFD Sender: No OFD packet to send [12:20:56]OFD Sender: No OFD packet to send [12:21:01]OFD Sender: No OFD packet to send [12:21:06]OFD Sender: No OFD packet to send [12:21:12]OFD Sender: No OFD packet to send [12:21:17]OFD Sender: No OFD packet to send [12:21:22]OFD Sender: No OFD packet to send [12:21:27]OFD Sender: No OFD packet to send [12:21:30]accept exits with 7 [12:21:30]New connection [12:21:30]New thread 3067084132 created [12:21:30]Thread 3067227492 joined [12:21:30]Waiting for new connection... [12:21:30] Sock 7.Parse request [12:21:30]Sock 7.Check first char [12:21:30]Sock 7.First char is OK [12:21:30]request: POST /json_proto HTTP/1.0 [12:21:30]Method: POST [12:21:30]URL: /json_proto [12:21:30]Method is POST - this is cgi request [12:21:30]url: /json_proto [12:21:30]query_string will be loaded in cgi processing [12:21:30]execute_cgi json_proto POST (null) [12:21:30]execute_cgi path=json_proto method=POST [12:21:30]POST find Content-Length [12:21:30]Host: 172.17.36.132:8080 [12:21:30]Content-Length: 1207 [12:21:30]Content-Type: application/json [12:21:30] [12:21:30]POST finish read [12:21:30]Found Content-Length = 1207 [12:21:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0418\u0441\u043C\u0430\u043D\u0430\u043B\u0438\u0435\u0432 \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)706698\u000A04.06.2024 11:58\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 63\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-4\u000A 30.000 x 66.90\u000A\u0418\u0422\u041E\u0413: 2007.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\u000A24097\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:21:30]execute_script... [12:21:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0418\u0441\u043C\u0430\u043D\u0430\u043B\u0438\u0435\u0432 \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)706698\u000A04.06.2024 11:58\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 63\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-4\u000A 30.000 x 66.90\u000A\u0418\u0422\u041E\u0413: 2007.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\u000A24097\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:21:30]POST & json_proto [12:21:30]process_json_proto [12:21:30]json parsed OK: [12:21:30]protocol is kg_v1.0 [12:21:30]action value=print_text [12:21:30]process_action print_text [12:21:30]cmd_print_text [12:21:30]ExternCall_PrintAddStr [12:21:30]wPrintStart [12:21:30]Write to MH i2c: 01 00 00 31 22 53 [12:21:30]Write i2c OK [12:21:30]MH_I2C_Read... [12:21:30]Read from MH i2c: 01 [12:21:30]MH_I2C_Read... [12:21:30]Read from MH i2c: 01 07 00 [12:21:30]MH_I2C_Read... [12:21:30]Read from MH i2c: 01 07 00 31 22 00 00 00 00 00 FF 0F 68 [12:21:30]RasterBufferAndPrint [12:21:30]line *****ТОВАРНЫЙ ЧЕК***** [12:21:30]line АЗС 62 [12:21:30]line Партнер нефть [12:21:30]line 02508201610067 [12:21:30]line Кассир : Исманалиев Д. [12:21:30]line Счет N : (1)706698 [12:21:30]line 04.06.2024 11:58 [12:21:30]line ПРОДАЖА [12:21:30]line ТРК (МРК, ГНК): 63 [12:21:30]line Вид ГСМ : 2710124130 [12:21:30]line Аи-92-К-4 [12:21:30]line 30.000 x 66.90 [12:21:30]line ИТОГ: 2007.00 [12:21:30]line Тип оплаты: Талоны: Топливная Карта [12:21:30]line 24097 [12:21:30]line ______________________ [12:21:30]line (подпись) [12:21:30]written 0, free lines is 4095 [12:21:30]Write to MH i2c: 01 00 00 45 22 67 [12:21:30]Write i2c OK [12:21:30]MH_I2C_Read... [12:21:30]Read from MH i2c: 01 [12:21:30]MH_I2C_Read... [12:21:30]Read from MH i2c: 01 07 00 [12:21:30]MH_I2C_Read... [12:21:30]Read from MH i2c: 01 07 00 45 22 00 00 00 00 00 12 0E 8E [12:21:30]RasterBufferAndPrint [12:21:30]line [12:21:30]line [12:21:30]line [12:21:30]line [12:21:30]line [12:21:30]written 0, free lines is 3604 [12:21:30]MH_Cut [12:21:30]Write to MH i2c: D1 01 00 4C 22 01 40 [12:21:30]Write i2c OK [12:21:30]MH_I2C_Read... [12:21:30]Read from MH i2c: D1 [12:21:30]MH_I2C_Read... [12:21:30]Read from MH i2c: D1 01 00 [12:21:30]MH_I2C_Read... [12:21:30]Read from MH i2c: D1 01 00 4C 22 00 3F [12:21:30]Write to MH i2c: 01 00 00 4D 22 6F [12:21:30]Write i2c OK [12:21:30]MH_I2C_Read... [12:21:30]*** Cut start [12:21:30]*** Partial cut [12:21:30]*** CUTSNS_PIN = 1 [12:21:30]*** CUTSNS_PIN = 0 [12:21:31]*** Brake cut motor [12:21:31]Read from MH i2c: 01 [12:21:31]MH_I2C_Read... [12:21:31]*** Stop cut motor [12:21:31]*** Cut end [12:21:31]Read from MH i2c: 01 07 00 [12:21:31]MH_I2C_Read... [12:21:31]Read from MH i2c: 01 07 00 4D 22 00 00 00 00 00 FF 0F 84 [12:21:31]process_action print_text done [12:21:31]requested_data is exist [12:21:31]produce_requested_data [12:21:31]requested_item fm.sn is exist - process it [12:21:31]wFMCommunicate request_size=4 [12:21:31]MH_SAM_APDU [12:21:31]CAPDU: 80 11 00 00 [12:21:31]Write to MH i2c: E2 08 00 4E 22 80 11 00 00 00 00 00 00 EA [12:21:31]Write i2c OK [12:21:31]MH_I2C_Read... [12:21:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:21:31]Read from MH i2c: E2 [12:21:31]MH_I2C_Read... [12:21:31]Read from MH i2c: E2 17 00 [12:21:31]MH_I2C_Read... [12:21:31]Read from MH i2c: E2 17 00 4E 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 35 [12:21:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [12:21:31]wFMCommunicate OK [12:21:31]requested_item fd.num is exist - process it [12:21:31]SAM_PROTO_GetFieldsCounters [12:21:31]wFMCommunicate request_size=4 [12:21:31]MH_SAM_APDU [12:21:31]CAPDU: 80 13 00 00 [12:21:31]Write to MH i2c: E2 08 00 4F 22 80 13 00 00 00 00 00 00 ED [12:21:31]Write i2c OK [12:21:31]MH_I2C_Read... [12:21:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:21:31]Read from MH i2c: E2 [12:21:31]MH_I2C_Read... [12:21:31]Read from MH i2c: E2 62 00 [12:21:31]MH_I2C_Read... [12:21:31]Read from MH i2c: E2 62 00 4F 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 D9 0B 01 00 0E 04 04 00 45 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 01 [12:21:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 D9 0B 01 00 0E 04 04 00 45 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 [12:21:31]wFMCommunicate OK [12:21:31]SAM_PROTO_GetFieldsCounters done [12:21:31]requested_item shift.num is exist - process it [12:21:31]requested_item shift.opened is exist - process it [12:21:31]req_shift_opened [12:21:31]FM_GetShiftState [12:21:31]SAM_PROTO_GetShiftState [12:21:31]wFMCommunicate request_size=4 [12:21:31]MH_SAM_APDU [12:21:31]CAPDU: 80 13 01 00 [12:21:31]Write to MH i2c: E2 08 00 50 22 80 13 01 00 00 00 00 00 EF [12:21:31]Write i2c OK [12:21:31]MH_I2C_Read... [12:21:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:21:31]Read from MH i2c: E2 [12:21:31]MH_I2C_Read... [12:21:31]Read from MH i2c: E2 0E 00 [12:21:31]MH_I2C_Read... [12:21:31]Read from MH i2c: E2 0E 00 50 22 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 8B [12:21:31]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [12:21:31]wFMCommunicate OK [12:21:31]SAM_PROTO_GetShiftState done [12:21:31]FM_GetShiftState done [12:21:31]req_shift_opened done [12:21:31]requested_item shift.open_date is exist - process it [12:21:31]req_shift_open_date [12:21:31]req_shift_open_date done [12:21:31]produce_requested_data done [12:21:31]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68569,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [12:21:31]process_action_free print_text [12:21:31]json_value_free [12:21:31]json_value_free done [12:21:31]process_json_proto returns [12:21:31]Send response to host [12:21:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68569,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [12:21:31]free response buf [12:21:31]execute_script done [12:21:31]execute_script returns [12:21:31]free content buf [12:21:31]Sock 7.Close socket [12:21:31]Sock 7.Thread stoped [12:21:32]OFD Sender: No OFD packet to send [12:21:37]OFD Sender: No OFD packet to send [12:21:42]OFD Sender: No OFD packet to send [12:21:47]OFD Sender: No OFD packet to send [12:21:52]OFD Sender: No OFD packet to send [12:21:57]OFD Sender: No OFD packet to send [12:22:02]OFD Sender: No OFD packet to send [12:22:07]OFD Sender: No OFD packet to send [12:22:12]OFD Sender: No OFD packet to send [12:22:17]OFD Sender: No OFD packet to send [12:22:22]OFD Sender: No OFD packet to send [12:22:27]OFD Sender: No OFD packet to send [12:22:32]OFD Sender: No OFD packet to send [12:22:37]OFD Sender: No OFD packet to send [12:22:42]OFD Sender: No OFD packet to send [12:22:47]OFD Sender: No OFD packet to send [12:22:52]OFD Sender: No OFD packet to send [12:22:57]OFD Sender: No OFD packet to send [12:23:02]OFD Sender: No OFD packet to send [12:23:07]OFD Sender: No OFD packet to send [12:23:12]OFD Sender: No OFD packet to send [12:23:17]OFD Sender: No OFD packet to send [12:23:22]OFD Sender: No OFD packet to send [12:23:27]OFD Sender: No OFD packet to send [12:23:32]OFD Sender: No OFD packet to send [12:23:37]OFD Sender: No OFD packet to send [12:23:42]OFD Sender: No OFD packet to send [12:23:47]OFD Sender: No OFD packet to send [12:23:52]OFD Sender: No OFD packet to send [12:23:57]OFD Sender: No OFD packet to send [12:24:02]OFD Sender: No OFD packet to send [12:24:07]OFD Sender: No OFD packet to send [12:24:12]OFD Sender: No OFD packet to send [12:24:17]OFD Sender: No OFD packet to send [12:24:22]OFD Sender: No OFD packet to send [12:24:27]OFD Sender: No OFD packet to send [12:24:32]OFD Sender: No OFD packet to send [12:24:37]OFD Sender: No OFD packet to send [12:24:42]OFD Sender: No OFD packet to send [12:24:47]OFD Sender: No OFD packet to send [12:24:52]OFD Sender: No OFD packet to send [12:24:57]OFD Sender: No OFD packet to send [12:25:02]OFD Sender: No OFD packet to send [12:25:07]OFD Sender: No OFD packet to send [12:25:12]OFD Sender: No OFD packet to send [12:25:17]OFD Sender: No OFD packet to send [12:25:22]OFD Sender: No OFD packet to send [12:25:27]OFD Sender: No OFD packet to send [12:25:32]OFD Sender: No OFD packet to send [12:25:37]OFD Sender: No OFD packet to send [12:25:42]OFD Sender: No OFD packet to send [12:25:47]OFD Sender: No OFD packet to send [12:25:52]OFD Sender: No OFD packet to send [12:25:57]OFD Sender: No OFD packet to send [12:26:02]OFD Sender: No OFD packet to send [12:26:07]OFD Sender: No OFD packet to send [12:26:12]OFD Sender: No OFD packet to send [12:26:17]OFD Sender: No OFD packet to send [12:26:22]OFD Sender: No OFD packet to send [12:26:27]OFD Sender: No OFD packet to send [12:26:32]OFD Sender: No OFD packet to send [12:26:37]OFD Sender: No OFD packet to send [12:26:42]OFD Sender: No OFD packet to send [12:26:47]OFD Sender: No OFD packet to send [12:26:52]OFD Sender: No OFD packet to send [12:26:57]OFD Sender: No OFD packet to send [12:27:02]OFD Sender: No OFD packet to send [12:27:07]OFD Sender: No OFD packet to send [12:27:12]OFD Sender: No OFD packet to send [12:27:17]OFD Sender: No OFD packet to send [12:27:22]OFD Sender: No OFD packet to send [12:27:27]OFD Sender: No OFD packet to send [12:27:32]OFD Sender: No OFD packet to send [12:27:37]OFD Sender: No OFD packet to send [12:27:42]OFD Sender: No OFD packet to send [12:27:47]OFD Sender: No OFD packet to send [12:27:52]OFD Sender: No OFD packet to send [12:27:57]OFD Sender: No OFD packet to send [12:27:57]accept exits with 9 [12:27:57]New connection [12:27:57]New thread 3067227492 created [12:27:57]Thread 3067084132 joined [12:27:57]Waiting for new connection... [12:27:57] Sock 9.Parse request [12:27:57]Sock 9.Check first char [12:27:57]Sock 9.First char is OK [12:27:57]request: POST /json_proto HTTP/1.0 [12:27:57]Method: POST [12:27:57]URL: /json_proto [12:27:57]Method is POST - this is cgi request [12:27:57]url: /json_proto [12:27:57]query_string will be loaded in cgi processing [12:27:57]execute_cgi json_proto POST (null) [12:27:57]execute_cgi path=json_proto method=POST [12:27:57]POST find Content-Length [12:27:57]Host: 172.17.36.132:8080 [12:27:57]Content-Length: 678 [12:27:57]Content-Type: application/json [12:27:57] [12:27:57]POST finish read [12:27:57]Found Content-Length = 678 [12:27:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706699", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:27:57]execute_script... [12:27: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)706699", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:27:57]POST & json_proto [12:27:57]process_json_proto [12:27:57]json parsed OK: [12:27:57]protocol is kg_v1.0 [12:27:57]action value=close_receipt [12:27:57]process_action close_receipt [12:27:57]cmd_close_receipt [12:27:57]MH_GetDate [12:27:57]Write to MH i2c: F0 00 00 51 22 62 [12:27:57]Write i2c OK [12:27:57]MH_I2C_Read... [12:27:57]Read from MH i2c: F0 [12:27:57]MH_I2C_Read... [12:27:57]Read from MH i2c: F0 09 00 [12:27:57]MH_I2C_Read... [12:27:57]Read from MH i2c: F0 09 00 51 22 00 52 08 5F 66 B2 22 B0 64 72 [12:27:57]GetLastDocTimeStamp 1717503413 [12:27:57]current date 1717504082 [12:27:57]FM_GetShiftState [12:27:57]SAM_PROTO_GetShiftState [12:27:57]wFMCommunicate request_size=4 [12:27:57]MH_SAM_APDU [12:27:57]CAPDU: 80 13 01 00 [12:27:57]Write to MH i2c: E2 08 00 52 22 80 13 01 00 00 00 00 00 F1 [12:27:57]Write i2c OK [12:27:57]MH_I2C_Read... [12:27:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:27:57]Read from MH i2c: E2 [12:27:57]MH_I2C_Read... [12:27:57]Read from MH i2c: E2 0E 00 [12:27:57]MH_I2C_Read... [12:27:57]Read from MH i2c: E2 0E 00 52 22 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 8D [12:27:57]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [12:27:57]wFMCommunicate OK [12:27:57]SAM_PROTO_GetShiftState done [12:27:57]FM_GetShiftState done [12:27:57]opened in 1717460590 [12:27:57]opened+sec_in_day 1717546990 [12:27:57]quantity*price = 80012 [12:27:57]sum+1 = 80013 [12:27:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 68 04.06.2024 12:28 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68570 ФПД: 265950722799084 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T122802&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68570&fm=265950722799084&tin=02508201610067®Number=0000000000098096&sum=80000 [12:27:58]StoreToDocumentArchive [12:27:58]shift 325 fd 68570 [12:27:58]save to /storage/0325/doc_00068570 [12:27:58]save last doc name /storage/0325/doc_00068570 to /storage/kkm_last_doc_name [12:27:58]save OK [12:27:58]Clear old archive folders... [12:27:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:27:58]tlvbuf is 00A03E20 [12:27:58]SAM_PROTO_ClearQueue [12:27:58]wFMCommunicate request_size=4 [12:27:58]MH_SAM_APDU [12:27:58]CAPDU: 80 09 00 00 [12:27:58]Write to MH i2c: E2 08 00 5F 22 80 09 00 00 00 00 00 00 F3 [12:27:58]Write i2c OK [12:27:58]MH_I2C_Read... [12:27:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:27:58]Read from MH i2c: E2 [12:27:58]MH_I2C_Read... [12:27:58]Read from MH i2c: E2 03 00 [12:27:58]MH_I2C_Read... [12:27:58]Read from MH i2c: E2 03 00 5F 22 00 90 00 F5 [12:27:58]RAPDU: 90 00 [12:27:58]wFMCommunicate OK [12:27:58]SAM_PROTO_ClearQueue done [12:27:58]KKMCreateOFDPacket [12:27:58]OFDProtocolAddRootSTLVToBuf [12:27:58]FM_MakeSignedData [12:27:58]FM_MakeSignedData [12:27:58]SAM_PROTO_SignData [12:27:58]wFMCommunicate request_size=4 [12:27:58]MH_SAM_APDU [12:27:58]CAPDU: 80 0D 01 02 [12:27:58]Write to MH i2c: E2 08 00 60 22 80 0D 01 02 00 00 00 00 FB [12:27:58]Write i2c OK [12:27:58]MH_I2C_Read... [12:27:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:27:59]Read from MH i2c: E2 [12:27:59]MH_I2C_Read... [12:27:59]Read from MH i2c: E2 03 00 [12:27:59]MH_I2C_Read... [12:27:59]Read from MH i2c: E2 03 00 60 22 00 90 00 F6 [12:27:59]RAPDU: 90 00 [12:27:59]wFMCommunicate OK [12:27:59]wFMCommunicate request_size=255 [12:27:59]MH_SAM_APDU [12:27:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 52 08 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 DA 0B 01 00 35 04 06 00 F1 [12:27:59]Write to MH i2c: E2 02 01 61 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 34 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 52 08 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 DA 0B 01 00 35 04 06 00 F1 00 00 F4 [12:27:59]Write i2c OK [12:27:59]MH_I2C_Read... [12:27:59]Read from MH i2c: E2 [12:27:59]MH_I2C_Read... [12:27:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:27:59]Read from MH i2c: E2 03 00 [12:27:59]MH_I2C_Read... [12:27:59]Read from MH i2c: E2 03 00 61 22 00 90 00 F7 [12:27:59]RAPDU: 90 00 [12:27:59]wFMCommunicate OK [12:27:59]wFMCommunicate request_size=10 [12:27:59]MH_SAM_APDU [12:27:59]CAPDU: 80 0D 02 02 05 E1 7A 5C 35 EC [12:27:59]Write to MH i2c: E2 0D 00 62 22 80 0D 02 02 05 00 E1 7A 5C 35 EC 00 00 E0 [12:27:59]Write i2c OK [12:27:59]MH_I2C_Read... [12:27:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:27:59]Read from MH i2c: E2 [12:27:59]MH_I2C_Read... [12:27:59]Read from MH i2c: E2 03 00 [12:27:59]MH_I2C_Read... [12:27:59]Read from MH i2c: E2 03 00 62 22 00 90 00 F8 [12:27:59]RAPDU: 90 00 [12:27:59]wFMCommunicate OK [12:27:59]wFMCommunicate request_size=4 [12:27:59]MH_SAM_APDU [12:27:59]CAPDU: 80 0D 03 02 [12:27:59]Write to MH i2c: E2 08 00 63 22 80 0D 03 02 00 00 00 00 00 [12:27:59]Write i2c OK [12:27:59]MH_I2C_Read... [12:27:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:27:59]Read from MH i2c: E2 [12:27:59]MH_I2C_Read... [12:27:59]Read from MH i2c: E2 0B 00 [12:27:59]MH_I2C_Read... [12:27:59]Read from MH i2c: E2 0B 00 63 22 00 F5 06 C4 53 3B 12 A1 7B 90 00 7C [12:27:59]RAPDU: F5 06 C4 53 3B 12 A1 7B 90 00 [12:27:59]wFMCommunicate OK [12:27:59]SAM_PROTO_SignData done [12:27:59]FM_MakeSignedData done [12:27:59]CreateOFDProtocolMessage [12:27:59]wFMCommunicate request_size=4 [12:27:59]MH_SAM_APDU [12:27:59]CAPDU: 80 11 00 00 [12:27:59]Write to MH i2c: E2 08 00 64 22 80 11 00 00 00 00 00 00 00 [12:27:59]Write i2c OK [12:27:59]MH_I2C_Read... [12:27:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:27:59]Read from MH i2c: E2 [12:27:59]MH_I2C_Read... [12:27:59]Read from MH i2c: E2 17 00 [12:27:59]MH_I2C_Read... [12:27:59]Read from MH i2c: E2 17 00 64 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 4B [12:27:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [12:27:59]wFMCommunicate OK [12:27:59]CreateOFDProtocolMessage done [12:27:59]OFDSenderStorePacket 68570 [12:27:59]StoreOFDPacket docnum=68570 [12:27:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 AE E8 07 01 32 0A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 52 08 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 DA 0B 01 00 35 04 06 00 F1 E1 7A 5C 35 EC F5 06 C4 53 3B 12 A1 7B [12:27:59]CheckFolder [12:27:59]dirname=/storage/ofd_packets [12:27:59]CheckFolder done [12:27:59]ProducePacketName [12:27:59]name=ofd_packets/00068570 [12:27:59]NVStorageSaveData ofd_packets/00068570 [12:27:59]File name is /storage/ofd_packets/00068570 [12:27:59]Write 301 bytes [12:27:59]NVStorageSaveData done [12:27:59]OFDSenderStorePacket done [12:27:59]KKMCreateOFDPacket done [12:27:59]NVStorageSaveData kkm_last_timestamp [12:27:59]File name is /storage/kkm_last_timestamp [12:27:59]Write 4 bytes [12:27:59]NVStorageSaveData done [12:27:59]ExternCall_PrintAddStr [12:27:59]wPrintStart [12:27:59]Write to MH i2c: 01 00 00 65 22 87 [12:27:59]Write i2c OK [12:27:59]MH_I2C_Read... [12:27:59]Read from MH i2c: 01 [12:27:59]MH_I2C_Read... [12:27:59]Read from MH i2c: 01 07 00 [12:27:59]MH_I2C_Read... [12:27:59]Read from MH i2c: 01 07 00 65 22 00 00 00 00 00 FF 0F 9C [12:27:59]RasterBufferAndPrint [12:27:59]line Счет N : (1)706699 [12:27:59]line ИНН: 02508201610067 [12:27:59]line Контрольно-Кассовый Чек [12:27:59]line ПРОДАЖА [12:27:59]line ТРК (МРК, ГНК) : 63 [12:27:59]line Товар: 2710124130 [12:27:59]line Аи-92-К-4 [12:27:59]line 11.960 * 66.90 [12:27:59]line = 800.12 [12:27:59]line НДС 12% НСП 1% [12:27:59]line > о реализуемом товаре [12:27:59]line ОКРУГЛЕНИЕ: -0.12 [12:27:59]line ИТОГО: 800.00 [12:27:59]line Внесено: 800.00 [12:27:59]line СДАЧА: 0.00 [12:27:59]line НСП 1% : 7.08 [12:27:59]line НДС 12% : 84.97 [12:27:59]line Наличными: 800.00 [12:27:59]line Безнал.: 0.00 [12:27:59]line Место: АЗС № 62 "Партнер Нефть" [12:27:59]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [12:27:59]line СНО: Общий режим [12:27:59]line Чек 68 04.06.2024 12:28 [12:27:59]line Смена: 325 ФФД: 1.0 [12:27:59]line ЗНМ: 0300000181 [12:27:59]line РНМ: 0000000000098096 [12:27:59]line Версия ККМ: 001 [12:27:59]line ФМ: 0000000000965400 [12:27:59]line ФД: 68570 [12:27:59]line ФПД: 265950722799084 [12:27:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T122802&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68570&fm=265950722799084&tin=02508201610067®Number=0000000000098096&sum=80000 [12:27:59]OFD Sender: Processing packet 68570 [packets to send 26, broken 25] [12:27:59]ProducePacketName [12:27:59]name=ofd_packets/00068570 [12:27:59]OFD Sender: To server: pG, [12:27:59]CommunicateWithHost lk.salyk.kg:30040 [12:27:59]ConnectInit lk.salyk.kg [12:27:59]written 0, free lines is 4095 [12:27:59]Connected sock=10 [12:27:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 AE E8 07 01 32 0A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 52 08 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 DA 0B 01 00 35 04 06 00 F1 E1 7A 5C 35 EC F5 06 C4 53 3B 12 A1 7B [12:28:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 3C D3 47 00 20 EB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 DA 0B 01 00 F4 03 04 00 4A AF 5E 66 B6 04 01 00 00 74 97 51 66 40 EC C7 D2 [12:28:00]CommunicateWithHost err = 0 [12:28:00]CheckOFDResponse [12:28:00]1017 (14) - 77093643461234 [12:28:00]1041 (16) - 0000000000965400 [12:28:00]1040 (4) - 68570 [12:28:00]1012 (4) - 04.06.2024 06:08 [12:28:00]1206 (1) - 0 [12:28:00]OFD Sender: Remove packet 68570 [12:28:00]ProducePacketName [12:28:00]name=ofd_packets/00068570 [12:28:00]NVStorageDeleteData [12:28:00]Write to MH i2c: 01 00 00 90 22 B2 [12:28:00]Write i2c OK [12:28:00]MH_I2C_Read... [12:28:00]Read from MH i2c: 01 [12:28:00]MH_I2C_Read... [12:28:00]Read from MH i2c: 01 07 00 [12:28:00]MH_I2C_Read... [12:28:00]Read from MH i2c: 01 07 00 90 22 00 00 00 00 00 CF 0C 94 [12:28:00]RasterBufferAndPrint [12:28:00]line [12:28:00]line [12:28:00]line [12:28:00]line [12:28:00]line [12:28:00]written 0, free lines is 3287 [12:28:00]MH_Cut [12:28:00]Write to MH i2c: D1 01 00 97 22 01 8B [12:28:00]Write i2c OK [12:28:00]MH_I2C_Read... [12:28:00]Read from MH i2c: D1 [12:28:00]MH_I2C_Read... [12:28:00]Read from MH i2c: D1 01 00 [12:28:00]MH_I2C_Read... [12:28:00]Read from MH i2c: D1 01 00 97 22 00 8A [12:28:00]Write to MH i2c: 01 00 00 98 22 BA [12:28:00]Write i2c OK [12:28:00]MH_I2C_Read... [12:28:00]OFD Sender: No OFD packet to send [12:28:01]*** Cut start [12:28:01]*** Partial cut [12:28:01]*** CUTSNS_PIN = 1 [12:28:01]*** CUTSNS_PIN = 0 [12:28:01]*** Brake cut motor [12:28:01]Read from MH i2c: 01 [12:28:01]MH_I2C_Read... [12:28:01]*** Stop cut motor [12:28:01]*** Cut end [12:28:01]Read from MH i2c: 01 07 00 [12:28:01]MH_I2C_Read... [12:28:01]Read from MH i2c: 01 07 00 98 22 00 00 00 00 00 FF 0F CF [12:28:01]process_action close_receipt done [12:28:01]requested_data is exist [12:28:01]produce_requested_data [12:28:01]requested_item fm.sn is exist - process it [12:28:01]wFMCommunicate request_size=4 [12:28:01]MH_SAM_APDU [12:28:01]CAPDU: 80 11 00 00 [12:28:01]Write to MH i2c: E2 08 00 99 22 80 11 00 00 00 00 00 00 35 [12:28:01]Write i2c OK [12:28:01]MH_I2C_Read... [12:28:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:28:01]Read from MH i2c: E2 [12:28:01]MH_I2C_Read... [12:28:01]Read from MH i2c: E2 17 00 [12:28:01]MH_I2C_Read... [12:28:01]Read from MH i2c: E2 17 00 99 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 80 [12:28:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [12:28:01]wFMCommunicate OK [12:28:01]requested_item fd.num is exist - process it [12:28:01]SAM_PROTO_GetFieldsCounters [12:28:01]wFMCommunicate request_size=4 [12:28:01]MH_SAM_APDU [12:28:01]CAPDU: 80 13 00 00 [12:28:01]Write to MH i2c: E2 08 00 9A 22 80 13 00 00 00 00 00 00 38 [12:28:01]Write i2c OK [12:28:01]MH_I2C_Read... [12:28:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:28:01]Read from MH i2c: E2 [12:28:01]MH_I2C_Read... [12:28:01]Read from MH i2c: E2 62 00 [12:28:01]MH_I2C_Read... [12:28:01]Read from MH i2c: E2 62 00 9A 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 DA 0B 01 00 0E 04 04 00 45 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 50 [12:28:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 DA 0B 01 00 0E 04 04 00 45 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 [12:28:01]wFMCommunicate OK [12:28:01]SAM_PROTO_GetFieldsCounters done [12:28:01]requested_item shift.num is exist - process it [12:28:01]requested_item shift.opened is exist - process it [12:28:01]req_shift_opened [12:28:01]FM_GetShiftState [12:28:01]SAM_PROTO_GetShiftState [12:28:01]wFMCommunicate request_size=4 [12:28:01]MH_SAM_APDU [12:28:01]CAPDU: 80 13 01 00 [12:28:01]Write to MH i2c: E2 08 00 9B 22 80 13 01 00 00 00 00 00 3A [12:28:01]Write i2c OK [12:28:01]MH_I2C_Read... [12:28:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:28:01]Read from MH i2c: E2 [12:28:01]MH_I2C_Read... [12:28:01]Read from MH i2c: E2 0E 00 [12:28:01]MH_I2C_Read... [12:28:01]Read from MH i2c: E2 0E 00 9B 22 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 D6 [12:28:01]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [12:28:01]wFMCommunicate OK [12:28:01]SAM_PROTO_GetShiftState done [12:28:01]FM_GetShiftState done [12:28:01]req_shift_opened done [12:28:01]requested_item shift.open_date is exist - process it [12:28:01]req_shift_open_date [12:28:01]req_shift_open_date done [12:28:01]produce_requested_data done [12:28:01]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68570,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [12:28:01]process_action_free close_receipt [12:28:01]json_value_free [12:28:01]json_value_free done [12:28:01]process_json_proto returns [12:28:01]Send response to host [12:28:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68570,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [12:28:01]free response buf [12:28:01]execute_script done [12:28:01]execute_script returns [12:28:01]free content buf [12:28:01]Sock 9.Close socket [12:28:01]Sock 9.Thread stoped [12:28:05]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:28:56]accept exits with 7 [12:28:56]New connection [12:28:56]New thread 3067084132 created [12:28:56]Thread 3067227492 joined [12:28:56]Waiting for new connection... [12:28:56] Sock 7.Parse request [12:28:56]Sock 7.Check first char [12:28:56]Sock 7.First char is OK [12:28:56]request: POST /json_proto HTTP/1.0 [12:28:56]Method: POST [12:28:56]URL: /json_proto [12:28:56]Method is POST - this is cgi request [12:28:56]url: /json_proto [12:28:56]query_string will be loaded in cgi processing [12:28:56]execute_cgi json_proto POST (null) [12:28:56]execute_cgi path=json_proto method=POST [12:28:56]POST find Content-Length [12:28:56]Host: 172.17.36.132:8080 [12:28:56]Content-Length: 677 [12:28:56]Content-Type: application/json [12:28:56] [12:28:56]POST finish read [12:28:56]Found Content-Length = 677 [12:28:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706700", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:28:56]execute_script... [12:28: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)706700", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:28:56]POST & json_proto [12:28:56]process_json_proto [12:28:56]json parsed OK: [12:28:56]protocol is kg_v1.0 [12:28:56]action value=close_receipt [12:28:56]process_action close_receipt [12:28:56]cmd_close_receipt [12:28:56]MH_GetDate [12:28:56]Write to MH i2c: F0 00 00 9C 22 AD [12:28:56]Write i2c OK [12:28:56]MH_I2C_Read... [12:28:56]Read from MH i2c: F0 [12:28:56]MH_I2C_Read... [12:28:56]Read from MH i2c: F0 09 00 [12:28:56]MH_I2C_Read... [12:28:56]Read from MH i2c: F0 09 00 9C 22 00 8D 08 5F 66 B2 22 B0 64 F8 [12:28:56]GetLastDocTimeStamp 1717504082 [12:28:56]current date 1717504141 [12:28:56]FM_GetShiftState [12:28:56]SAM_PROTO_GetShiftState [12:28:56]wFMCommunicate request_size=4 [12:28:56]MH_SAM_APDU [12:28:56]CAPDU: 80 13 01 00 [12:28:56]Write to MH i2c: E2 08 00 9D 22 80 13 01 00 00 00 00 00 3C [12:28:56]Write i2c OK [12:28:56]MH_I2C_Read... [12:28:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:28:56]Read from MH i2c: E2 [12:28:56]MH_I2C_Read... [12:28:56]Read from MH i2c: E2 0E 00 [12:28:56]MH_I2C_Read... [12:28:56]Read from MH i2c: E2 0E 00 9D 22 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 D8 [12:28:56]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [12:28:56]wFMCommunicate OK [12:28:56]SAM_PROTO_GetShiftState done [12:28:56]FM_GetShiftState done [12:28:56]opened in 1717460590 [12:28:56]opened+sec_in_day 1717546990 [12:28:56]quantity*price = 30038 [12:28:56]sum+1 = 30039 [12:28:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 69 04.06.2024 12:29 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68571 ФПД: 113186498191595 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T122901&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68571&fm=113186498191595&tin=02508201610067®Number=0000000000098096&sum=30000 [12:28:57]StoreToDocumentArchive [12:28:57]shift 325 fd 68571 [12:28:57]save to /storage/0325/doc_00068571 [12:28:57]save last doc name /storage/0325/doc_00068571 to /storage/kkm_last_doc_name [12:28:57]save OK [12:28:57]Clear old archive folders... [12:28:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:28:57]tlvbuf is B6F04820 [12:28:57]SAM_PROTO_ClearQueue [12:28:57]wFMCommunicate request_size=4 [12:28:57]MH_SAM_APDU [12:28:57]CAPDU: 80 09 00 00 [12:28:57]Write to MH i2c: E2 08 00 AA 22 80 09 00 00 00 00 00 00 3E [12:28:57]Write i2c OK [12:28:57]MH_I2C_Read... [12:28:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:28:57]Read from MH i2c: E2 [12:28:57]MH_I2C_Read... [12:28:57]Read from MH i2c: E2 03 00 [12:28:57]MH_I2C_Read... [12:28:57]Read from MH i2c: E2 03 00 AA 22 00 90 00 40 [12:28:57]RAPDU: 90 00 [12:28:57]wFMCommunicate OK [12:28:57]SAM_PROTO_ClearQueue done [12:28:57]KKMCreateOFDPacket [12:28:57]OFDProtocolAddRootSTLVToBuf [12:28:57]FM_MakeSignedData [12:28:57]FM_MakeSignedData [12:28:57]SAM_PROTO_SignData [12:28:57]wFMCommunicate request_size=4 [12:28:57]MH_SAM_APDU [12:28:57]CAPDU: 80 0D 01 02 [12:28:57]Write to MH i2c: E2 08 00 AB 22 80 0D 01 02 00 00 00 00 46 [12:28:57]Write i2c OK [12:28:57]MH_I2C_Read... [12:28:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:28:58]Read from MH i2c: E2 [12:28:58]MH_I2C_Read... [12:28:58]Read from MH i2c: E2 03 00 [12:28:58]MH_I2C_Read... [12:28:58]Read from MH i2c: E2 03 00 AB 22 00 90 00 41 [12:28:58]RAPDU: 90 00 [12:28:58]wFMCommunicate OK [12:28:58]wFMCommunicate request_size=255 [12:28:58]MH_SAM_APDU [12:28: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 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 8D 08 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 DB 0B 01 00 35 04 06 00 66 [12:28:58]Write to MH i2c: E2 02 01 AC 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 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 8D 08 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 DB 0B 01 00 35 04 06 00 66 00 00 F9 [12:28:58]Write i2c OK [12:28:58]MH_I2C_Read... [12:28:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:28:58]Read from MH i2c: E2 [12:28:58]MH_I2C_Read... [12:28:58]Read from MH i2c: E2 03 00 [12:28:58]MH_I2C_Read... [12:28:58]Read from MH i2c: E2 03 00 AC 22 00 90 00 42 [12:28:58]RAPDU: 90 00 [12:28:58]wFMCommunicate OK [12:28:58]wFMCommunicate request_size=10 [12:28:58]MH_SAM_APDU [12:28:58]CAPDU: 80 0D 02 02 05 F1 49 04 A0 EB [12:28:58]Write to MH i2c: E2 0D 00 AD 22 80 0D 02 02 05 00 F1 49 04 A0 EB 00 00 1C [12:28:58]Write i2c OK [12:28:58]MH_I2C_Read... [12:28:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:28:58]Read from MH i2c: E2 [12:28:58]MH_I2C_Read... [12:28:58]Read from MH i2c: E2 03 00 [12:28:58]MH_I2C_Read... [12:28:58]Read from MH i2c: E2 03 00 AD 22 00 90 00 43 [12:28:58]RAPDU: 90 00 [12:28:58]wFMCommunicate OK [12:28:58]wFMCommunicate request_size=4 [12:28:58]MH_SAM_APDU [12:28:58]CAPDU: 80 0D 03 02 [12:28:58]Write to MH i2c: E2 08 00 AE 22 80 0D 03 02 00 00 00 00 4B [12:28:58]Write i2c OK [12:28:58]MH_I2C_Read... [12:28:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:28:58]Read from MH i2c: E2 [12:28:58]MH_I2C_Read... [12:28:58]Read from MH i2c: E2 0B 00 [12:28:58]MH_I2C_Read... [12:28:58]Read from MH i2c: E2 0B 00 AE 22 00 0E 22 57 33 2D 5C 3C AA 90 00 75 [12:28:58]RAPDU: 0E 22 57 33 2D 5C 3C AA 90 00 [12:28:58]wFMCommunicate OK [12:28:58]SAM_PROTO_SignData done [12:28:58]FM_MakeSignedData done [12:28:58]CreateOFDProtocolMessage [12:28:58]wFMCommunicate request_size=4 [12:28:58]MH_SAM_APDU [12:28:58]CAPDU: 80 11 00 00 [12:28:58]Write to MH i2c: E2 08 00 AF 22 80 11 00 00 00 00 00 00 4B [12:28:58]Write i2c OK [12:28:58]MH_I2C_Read... [12:28:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:28:58]Read from MH i2c: E2 [12:28:58]MH_I2C_Read... [12:28:58]Read from MH i2c: E2 17 00 [12:28:58]MH_I2C_Read... [12:28:58]Read from MH i2c: E2 17 00 AF 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 96 [12:28:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [12:28:58]wFMCommunicate OK [12:28:58]CreateOFDProtocolMessage done [12:28:58]OFDSenderStorePacket 68571 [12:28:58]StoreOFDPacket docnum=68571 [12:28:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 F0 73 07 01 05 43 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 8D 08 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 DB 0B 01 00 35 04 06 00 66 F1 49 04 A0 EB 0E 22 57 33 2D 5C 3C AA [12:28:58]CheckFolder [12:28:58]dirname=/storage/ofd_packets [12:28:58]CheckFolder done [12:28:58]ProducePacketName [12:28:58]name=ofd_packets/00068571 [12:28:58]NVStorageSaveData ofd_packets/00068571 [12:28:58]File name is /storage/ofd_packets/00068571 [12:28:58]Write 301 bytes [12:28:58]NVStorageSaveData done [12:28:58]OFDSenderStorePacket done [12:28:58]KKMCreateOFDPacket done [12:28:58]NVStorageSaveData kkm_last_timestamp [12:28:58]File name is /storage/kkm_last_timestamp [12:28:58]Write 4 bytes [12:28:58]NVStorageSaveData done [12:28:58]ExternCall_PrintAddStr [12:28:58]wPrintStart [12:28:58]Write to MH i2c: 01 00 00 B0 22 D2 [12:28:58]Write i2c OK [12:28:58]MH_I2C_Read... [12:28:58]Read from MH i2c: 01 [12:28:58]MH_I2C_Read... [12:28:58]Read from MH i2c: 01 07 00 [12:28:58]MH_I2C_Read... [12:28:58]Read from MH i2c: 01 07 00 B0 22 00 00 00 00 00 FF 0F E7 [12:28:58]RasterBufferAndPrint [12:28:58]line Счет N : (1)706700 [12:28:58]line ИНН: 02508201610067 [12:28:58]line Контрольно-Кассовый Чек [12:28:58]line ПРОДАЖА [12:28:58]line ТРК (МРК, ГНК) : 42 [12:28:58]line Товар: 2710124130 [12:28:58]line Аи-92-К-4 [12:28:58]line 4.490 * 66.90 [12:28:58]line = 300.38 [12:28:58]line НДС 12% НСП 1% [12:28:58]line > о реализуемом товаре [12:28:58]line ОКРУГЛЕНИЕ: -0.38 [12:28:58]line ИТОГО: 300.00 [12:28:58]line Внесено: 300.00 [12:28:58]line СДАЧА: 0.00 [12:28:58]line НСП 1% : 2.66 [12:28:58]line НДС 12% : 31.90 [12:28:58]line Наличными: 300.00 [12:28:58]line Безнал.: 0.00 [12:28:58]line Место: АЗС № 62 "Партнер Нефть" [12:28:58]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [12:28:58]line СНО: Общий режим [12:28:58]line Чек 69 04.06.2024 12:29 [12:28:58]line Смена: 325 ФФД: 1.0 [12:28:58]line ЗНМ: 0300000181 [12:28:58]line РНМ: 0000000000098096 [12:28:58]line Версия ККМ: 001 [12:28:58]line ФМ: 0000000000965400 [12:28:58]line ФД: 68571 [12:28:58]line ФПД: 113186498191595 [12:28:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T122901&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68571&fm=113186498191595&tin=02508201610067®Number=0000000000098096&sum=30000 [12:28:58]OFD Sender: Processing packet 68571 [packets to send 26, broken 25] [12:28:58]ProducePacketName [12:28:58]name=ofd_packets/00068571 [12:28:58]OFD Sender: To server: pG, [12:28:58]CommunicateWithHost lk.salyk.kg:30040 [12:28:58]ConnectInit lk.salyk.kg [12:28:58]written 0, free lines is 4095 [12:28:58]Connected sock=10 [12:28:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 F0 73 07 01 05 43 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 8D 08 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 DB 0B 01 00 35 04 06 00 66 F1 49 04 A0 EB 0E 22 57 33 2D 5C 3C AA [12:28:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 D1 5D 47 00 F9 41 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 DB 0B 01 00 F4 03 04 00 85 AF 5E 66 B6 04 01 00 00 86 71 54 E0 C7 1C BA 7C [12:28:59]CommunicateWithHost err = 0 [12:28:59]CheckOFDResponse [12:28:59]1017 (14) - 77093643461234 [12:28:59]1041 (16) - 0000000000965400 [12:28:59]1040 (4) - 68571 [12:28:59]1012 (4) - 04.06.2024 06:09 [12:28:59]1206 (1) - 0 [12:28:59]OFD Sender: Remove packet 68571 [12:28:59]ProducePacketName [12:28:59]name=ofd_packets/00068571 [12:28:59]NVStorageDeleteData [12:28:59]Write to MH i2c: 01 00 00 DB 22 FD [12:28:59]Write i2c OK [12:28:59]MH_I2C_Read... [12:28:59]Read from MH i2c: 01 [12:28:59]MH_I2C_Read... [12:28:59]Read from MH i2c: 01 07 00 [12:28:59]MH_I2C_Read... [12:28:59]Read from MH i2c: 01 07 00 DB 22 00 00 00 00 00 E1 0C F1 [12:28:59]RasterBufferAndPrint [12:28:59]line [12:28:59]line [12:28:59]line [12:28:59]line [12:28:59]line [12:28:59]written 0, free lines is 3306 [12:28:59]MH_Cut [12:28:59]Write to MH i2c: D1 01 00 E2 22 01 D6 [12:28:59]Write i2c OK [12:28:59]MH_I2C_Read... [12:28:59]Read from MH i2c: D1 [12:28:59]MH_I2C_Read... [12:28:59]Read from MH i2c: D1 01 00 [12:28:59]MH_I2C_Read... [12:28:59]Read from MH i2c: D1 01 00 E2 22 00 D5 [12:28:59]Write to MH i2c: 01 00 00 E3 22 05 [12:28:59]Write i2c OK [12:28:59]MH_I2C_Read... [12:28:59]OFD Sender: No OFD packet to send [12:29:00]*** Cut start [12:29:00]*** Partial cut [12:29:00]*** CUTSNS_PIN = 1 [12:29:00]*** CUTSNS_PIN = 0 [12:29:00]*** Brake cut motor [12:29:00]Read from MH i2c: 01 [12:29:00]MH_I2C_Read... [12:29:00]*** Stop cut motor [12:29:00]*** Cut end [12:29:00]Read from MH i2c: 01 07 00 [12:29:00]MH_I2C_Read... [12:29:00]Read from MH i2c: 01 07 00 E3 22 00 00 00 00 00 FF 0F 1A [12:29:00]process_action close_receipt done [12:29:00]requested_data is exist [12:29:00]produce_requested_data [12:29:00]requested_item fm.sn is exist - process it [12:29:00]wFMCommunicate request_size=4 [12:29:00]MH_SAM_APDU [12:29:00]CAPDU: 80 11 00 00 [12:29:00]Write to MH i2c: E2 08 00 E4 22 80 11 00 00 00 00 00 00 80 [12:29:00]Write i2c OK [12:29:00]MH_I2C_Read... [12:29:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:29:00]Read from MH i2c: E2 [12:29:00]MH_I2C_Read... [12:29:00]Read from MH i2c: E2 17 00 [12:29:00]MH_I2C_Read... [12:29:00]Read from MH i2c: E2 17 00 E4 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 CB [12:29:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [12:29:00]wFMCommunicate OK [12:29:00]requested_item fd.num is exist - process it [12:29:00]SAM_PROTO_GetFieldsCounters [12:29:00]wFMCommunicate request_size=4 [12:29:00]MH_SAM_APDU [12:29:00]CAPDU: 80 13 00 00 [12:29:00]Write to MH i2c: E2 08 00 E5 22 80 13 00 00 00 00 00 00 83 [12:29:00]Write i2c OK [12:29:00]MH_I2C_Read... [12:29:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:29:00]Read from MH i2c: E2 [12:29:00]MH_I2C_Read... [12:29:00]Read from MH i2c: E2 62 00 [12:29:00]MH_I2C_Read... [12:29:00]Read from MH i2c: E2 62 00 E5 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 DB 0B 01 00 0E 04 04 00 45 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 9F [12:29:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 DB 0B 01 00 0E 04 04 00 45 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 [12:29:00]wFMCommunicate OK [12:29:00]SAM_PROTO_GetFieldsCounters done [12:29:00]requested_item shift.num is exist - process it [12:29:00]requested_item shift.opened is exist - process it [12:29:00]req_shift_opened [12:29:00]FM_GetShiftState [12:29:00]SAM_PROTO_GetShiftState [12:29:00]wFMCommunicate request_size=4 [12:29:00]MH_SAM_APDU [12:29:00]CAPDU: 80 13 01 00 [12:29:00]Write to MH i2c: E2 08 00 E6 22 80 13 01 00 00 00 00 00 85 [12:29:00]Write i2c OK [12:29:00]MH_I2C_Read... [12:29:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:29:00]Read from MH i2c: E2 [12:29:00]MH_I2C_Read... [12:29:00]Read from MH i2c: E2 0E 00 [12:29:00]MH_I2C_Read... [12:29:00]Read from MH i2c: E2 0E 00 E6 22 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 21 [12:29:00]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [12:29:00]wFMCommunicate OK [12:29:00]SAM_PROTO_GetShiftState done [12:29:00]FM_GetShiftState done [12:29:00]req_shift_opened done [12:29:00]requested_item shift.open_date is exist - process it [12:29:00]req_shift_open_date [12:29:00]req_shift_open_date done [12:29:00]produce_requested_data done [12:29:00]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68571,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [12:29:00]process_action_free close_receipt [12:29:00]json_value_free [12:29:00]json_value_free done [12:29:00]process_json_proto returns [12:29:00]Send response to host [12:29:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68571,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [12:29:00]free response buf [12:29:00]execute_script done [12:29:00]execute_script returns [12:29:00]free content buf [12:29:00]Sock 7.Close socket [12:29:00]Sock 7.Thread stoped [12:29:04]OFD Sender: No OFD packet to send [12:29:09]OFD Sender: No OFD packet to send [12:29:14]OFD Sender: No OFD packet to send [12:29:19]OFD Sender: No OFD packet to send [12:29:24]OFD Sender: No OFD packet to send [12:29:29]OFD Sender: No OFD packet to send [12:29:34]OFD Sender: No OFD packet to send [12:29:39]OFD Sender: No OFD packet to send [12:29:44]OFD Sender: No OFD packet to send [12:29:49]OFD Sender: No OFD packet to send [12:29:54]OFD Sender: No OFD packet to send [12:29:59]OFD Sender: No OFD packet to send [12:30:04]OFD Sender: No OFD packet to send [12:30:09]OFD Sender: No OFD packet to send [12:30:14]OFD Sender: No OFD packet to send [12:30:19]OFD Sender: No OFD packet to send [12:30:24]OFD Sender: No OFD packet to send [12:30:29]OFD Sender: No OFD packet to send [12:30:34]OFD Sender: No OFD packet to send [12:30:39]OFD Sender: No OFD packet to send [12:30:44]OFD Sender: No OFD packet to send [12:30:49]OFD Sender: No OFD packet to send [12:30:54]OFD Sender: No OFD packet to send [12:30:59]OFD Sender: No OFD packet to send [12:31:04]OFD Sender: No OFD packet to send [12:31:09]OFD Sender: No OFD packet to send [12:31:14]OFD Sender: No OFD packet to send [12:31:19]OFD Sender: No OFD packet to send [12:31:24]OFD Sender: No OFD packet to send [12:31:29]OFD Sender: No OFD packet to send [12:31:34]OFD Sender: No OFD packet to send [12:31:39]OFD Sender: No OFD packet to send [12:31:44]OFD Sender: No OFD packet to send [12:31:49]OFD Sender: No OFD packet to send [12:31:54]OFD Sender: No OFD packet to send [12:31:59]OFD Sender: No OFD packet to send [12:32:04]OFD Sender: No OFD packet to send [12:32:09]OFD Sender: No OFD packet to send [12:32:14]OFD Sender: No OFD packet to send [12:32:19]OFD Sender: No OFD packet to send [12:32:24]OFD Sender: No OFD packet to send [12:32:29]OFD Sender: No OFD packet to send [12:32:34]OFD Sender: No OFD packet to send [12:32:39]OFD Sender: No OFD packet to send [12:32:44]OFD Sender: No OFD packet to send [12:32:49]OFD Sender: No OFD packet to send [12:32:54]OFD Sender: No OFD packet to send [12:32:59]OFD Sender: No OFD packet to send [12:33:04]OFD Sender: No OFD packet to send [12:33:09]OFD Sender: No OFD packet to send [12:33:14]OFD Sender: No OFD packet to send [12:33:19]OFD Sender: No OFD packet to send [12:33:24]OFD Sender: No OFD packet to send [12:33:29]OFD Sender: No OFD packet to send [12:33:34]OFD Sender: No OFD packet to send [12:33:39]OFD Sender: No OFD packet to send [12:33:44]OFD Sender: No OFD packet to send [12:33:45]accept exits with 9 [12:33:45]New connection [12:33:45]New thread 3067227492 created [12:33:45]Thread 3067084132 joined [12:33:45]Waiting for new connection... [12:33:45] Sock 9.Parse request [12:33:45]Sock 9.Check first char [12:33:45]Sock 9.First char is OK [12:33:45]request: POST /json_proto HTTP/1.0 [12:33:45]Method: POST [12:33:45]URL: /json_proto [12:33:45]Method is POST - this is cgi request [12:33:45]url: /json_proto [12:33:45]query_string will be loaded in cgi processing [12:33:45]execute_cgi json_proto POST (null) [12:33:45]execute_cgi path=json_proto method=POST [12:33:45]POST find Content-Length [12:33:45]Host: 172.17.36.132:8080 [12:33:45]Content-Length: 670 [12:33:45]Content-Type: application/json [12:33:45] [12:33:45]POST finish read [12:33:45]Found Content-Length = 670 [12:33:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706701", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.90, "quantity" : 2.950, "sum" : 200.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:33:45]execute_script... [12:33: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)706701", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.90, "quantity" : 2.950, "sum" : 200.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:33:45]POST & json_proto [12:33:45]process_json_proto [12:33:45]json parsed OK: [12:33:45]protocol is kg_v1.0 [12:33:45]action value=close_receipt [12:33:45]process_action close_receipt [12:33:45]cmd_close_receipt [12:33:45]MH_GetDate [12:33:45]Write to MH i2c: F0 00 00 E7 22 F8 [12:33:45]Write i2c OK [12:33:45]MH_I2C_Read... [12:33:45]Read from MH i2c: F0 [12:33:45]MH_I2C_Read... [12:33:45]Read from MH i2c: F0 09 00 [12:33:45]MH_I2C_Read... [12:33:45]Read from MH i2c: F0 09 00 E7 22 00 AD 09 5F 66 B2 22 B0 64 64 [12:33:45]GetLastDocTimeStamp 1717504141 [12:33:45]current date 1717504429 [12:33:45]FM_GetShiftState [12:33:45]SAM_PROTO_GetShiftState [12:33:45]wFMCommunicate request_size=4 [12:33:45]MH_SAM_APDU [12:33:45]CAPDU: 80 13 01 00 [12:33:45]Write to MH i2c: E2 08 00 E8 22 80 13 01 00 00 00 00 00 87 [12:33:45]Write i2c OK [12:33:45]MH_I2C_Read... [12:33:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:33:45]Read from MH i2c: E2 [12:33:45]MH_I2C_Read... [12:33:45]Read from MH i2c: E2 0E 00 [12:33:45]MH_I2C_Read... [12:33:45]Read from MH i2c: E2 0E 00 E8 22 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 23 [12:33:45]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [12:33:45]wFMCommunicate OK [12:33:45]SAM_PROTO_GetShiftState done [12:33:45]FM_GetShiftState done [12:33:45]opened in 1717460590 [12:33:45]opened+sec_in_day 1717546990 [12:33:45]quantity*price = 20030 [12:33:45]sum+1 = 20032 [12:33:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.27 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 70 04.06.2024 12:33 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68572 ФПД: 214108943286050 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T123349&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68572&fm=214108943286050&tin=02508201610067®Number=0000000000098096&sum=20000 [12:33:46]StoreToDocumentArchive [12:33:46]shift 325 fd 68572 [12:33:46]save to /storage/0325/doc_00068572 [12:33:46]save last doc name /storage/0325/doc_00068572 to /storage/kkm_last_doc_name [12:33:46]save OK [12:33:46]Clear old archive folders... [12:33:46]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:33:46]tlvbuf is 00A53410 [12:33:46]SAM_PROTO_ClearQueue [12:33:46]wFMCommunicate request_size=4 [12:33:46]MH_SAM_APDU [12:33:46]CAPDU: 80 09 00 00 [12:33:46]Write to MH i2c: E2 08 00 F5 22 80 09 00 00 00 00 00 00 89 [12:33:46]Write i2c OK [12:33:46]MH_I2C_Read... [12:33:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:33:46]Read from MH i2c: E2 [12:33:46]MH_I2C_Read... [12:33:46]Read from MH i2c: E2 03 00 [12:33:46]MH_I2C_Read... [12:33:46]Read from MH i2c: E2 03 00 F5 22 00 90 00 8B [12:33:46]RAPDU: 90 00 [12:33:46]wFMCommunicate OK [12:33:46]SAM_PROTO_ClearQueue done [12:33:46]KKMCreateOFDPacket [12:33:46]OFDProtocolAddRootSTLVToBuf [12:33:46]FM_MakeSignedData [12:33:46]FM_MakeSignedData [12:33:46]SAM_PROTO_SignData [12:33:46]wFMCommunicate request_size=4 [12:33:46]MH_SAM_APDU [12:33:46]CAPDU: 80 0D 01 02 [12:33:46]Write to MH i2c: E2 08 00 F6 22 80 0D 01 02 00 00 00 00 91 [12:33:46]Write i2c OK [12:33:46]MH_I2C_Read... [12:33:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:33:46]Read from MH i2c: E2 [12:33:46]MH_I2C_Read... [12:33:46]Read from MH i2c: E2 03 00 [12:33:46]MH_I2C_Read... [12:33:46]Read from MH i2c: E2 03 00 F6 22 00 90 00 8C [12:33:46]RAPDU: 90 00 [12:33:46]wFMCommunicate OK [12:33:46]wFMCommunicate request_size=255 [12:33:46]MH_SAM_APDU [12:33:46]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 3F 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 46 00 00 00 F4 03 04 00 AD 09 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 DC 0B 01 00 35 04 06 00 [12:33:46]Write to MH i2c: E2 02 01 F7 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 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 3F 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 46 00 00 00 F4 03 04 00 AD 09 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 DC 0B 01 00 35 04 06 00 00 00 55 [12:33:46]Write i2c OK [12:33:46]MH_I2C_Read... [12:33:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:33:46]Read from MH i2c: E2 [12:33:46]MH_I2C_Read... [12:33:46]Read from MH i2c: E2 03 00 [12:33:46]MH_I2C_Read... [12:33:46]Read from MH i2c: E2 03 00 F7 22 00 90 00 8D [12:33:46]RAPDU: 90 00 [12:33:46]wFMCommunicate OK [12:33:46]wFMCommunicate request_size=11 [12:33:46]MH_SAM_APDU [12:33:46]CAPDU: 80 0D 02 02 06 C2 BB 1F 81 FF 22 [12:33:46]Write to MH i2c: E2 0E 00 F8 22 80 0D 02 02 06 00 C2 BB 1F 81 FF 22 00 00 DE [12:33:46]Write i2c OK [12:33:46]MH_I2C_Read... [12:33:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:33:46]Read from MH i2c: E2 [12:33:46]MH_I2C_Read... [12:33:46]Read from MH i2c: E2 03 00 [12:33:46]MH_I2C_Read... [12:33:46]Read from MH i2c: E2 03 00 F8 22 00 90 00 8E [12:33:46]RAPDU: 90 00 [12:33:46]wFMCommunicate OK [12:33:46]wFMCommunicate request_size=4 [12:33:46]MH_SAM_APDU [12:33:46]CAPDU: 80 0D 03 02 [12:33:46]Write to MH i2c: E2 08 00 F9 22 80 0D 03 02 00 00 00 00 96 [12:33:46]Write i2c OK [12:33:46]MH_I2C_Read... [12:33:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:33:46]Read from MH i2c: E2 [12:33:46]MH_I2C_Read... [12:33:46]Read from MH i2c: E2 0B 00 [12:33:46]MH_I2C_Read... [12:33:46]Read from MH i2c: E2 0B 00 F9 22 00 56 24 22 5F F8 52 0A 49 90 00 2F [12:33:46]RAPDU: 56 24 22 5F F8 52 0A 49 90 00 [12:33:46]wFMCommunicate OK [12:33:46]SAM_PROTO_SignData done [12:33:46]FM_MakeSignedData done [12:33:46]CreateOFDProtocolMessage [12:33:46]wFMCommunicate request_size=4 [12:33:46]MH_SAM_APDU [12:33:46]CAPDU: 80 11 00 00 [12:33:46]Write to MH i2c: E2 08 00 FA 22 80 11 00 00 00 00 00 00 96 [12:33:46]Write i2c OK [12:33:46]MH_I2C_Read... [12:33:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:33:46]Read from MH i2c: E2 [12:33:46]MH_I2C_Read... [12:33:46]Read from MH i2c: E2 17 00 [12:33:46]MH_I2C_Read... [12:33:46]Read from MH i2c: E2 17 00 FA 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 E1 [12:33:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [12:33:46]wFMCommunicate OK [12:33:46]CreateOFDProtocolMessage done [12:33:46]OFDSenderStorePacket 68572 [12:33:46]StoreOFDPacket docnum=68572 [12:33:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 D5 45 08 01 7F 4A 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 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 3F 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 46 00 00 00 F4 03 04 00 AD 09 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 DC 0B 01 00 35 04 06 00 C2 BB 1F 81 FF 22 56 24 22 5F F8 52 0A 49 [12:33:46]CheckFolder [12:33:46]dirname=/storage/ofd_packets [12:33:46]CheckFolder done [12:33:46]ProducePacketName [12:33:46]name=ofd_packets/00068572 [12:33:46]NVStorageSaveData ofd_packets/00068572 [12:33:46]File name is /storage/ofd_packets/00068572 [12:33:46]Write 302 bytes [12:33:46]NVStorageSaveData done [12:33:46]OFDSenderStorePacket done [12:33:46]KKMCreateOFDPacket done [12:33:46]NVStorageSaveData kkm_last_timestamp [12:33:46]File name is /storage/kkm_last_timestamp [12:33:46]Write 4 bytes [12:33:46]NVStorageSaveData done [12:33:46]OFD Sender: Processing packet 68572 [packets to send 26, broken 25] [12:33:46]ProducePacketName [12:33:46]name=ofd_packets/00068572 [12:33:46]OFD Sender: To server: pG, [12:33:46]CommunicateWithHost lk.salyk.kg:30040 [12:33:46]ConnectInit lk.salyk.kg [12:33:46]ExternCall_PrintAddStr [12:33:46]wPrintStart [12:33:46]Write to MH i2c: 01 00 00 FB 22 1D [12:33:46]Write i2c OK [12:33:46]MH_I2C_Read... [12:33:46]Read from MH i2c: 01 [12:33:46]MH_I2C_Read... [12:33:46]Read from MH i2c: 01 07 00 [12:33:46]MH_I2C_Read... [12:33:46]Read from MH i2c: 01 07 00 FB 22 00 00 00 00 00 FF 0F 32 [12:33:46]RasterBufferAndPrint [12:33:46]line Счет N : (1)706701 [12:33:46]line ИНН: 02508201610067 [12:33:46]line Контрольно-Кассовый Чек [12:33:46]line ПРОДАЖА [12:33:46]line ТРК (МРК, ГНК) : 52 [12:33:46]line Товар: 2710124130 [12:33:46]line Super-92-К-5 [12:33:46]line 2.950 * 67.90 [12:33:46]line = 200.31 [12:33:46]line НДС 12% НСП 1% [12:33:46]line > о реализуемом товаре [12:33:46]line ОКРУГЛЕНИЕ: -0.31 [12:33:46]line ИТОГО: 200.00 [12:33:46]line Внесено: 200.00 [12:33:46]line СДАЧА: 0.00 [12:33:46]line НСП 1% : 1.77 [12:33:46]line НДС 12% : 21.27 [12:33:46]line Наличными: 200.00 [12:33:46]line Безнал.: 0.00 [12:33:46]line Место: АЗС № 62 "Партнер Нефть" [12:33:46]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [12:33:46]line СНО: Общий режим [12:33:46]line Чек 70 04.06.2024 12:33 [12:33:46]line Смена: 325 ФФД: 1.0 [12:33:46]line ЗНМ: 0300000181 [12:33:47]line РНМ: 0000000000098096 [12:33:47]line Версия ККМ: 001 [12:33:47]line ФМ: 0000000000965400 [12:33:47]line ФД: 68572 [12:33:47]line ФПД: 214108943286050 [12:33:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T123349&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68572&fm=214108943286050&tin=02508201610067®Number=0000000000098096&sum=20000 [12:33:47]Connected sock=11 [12:33:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 D5 45 08 01 7F 4A 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 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 3F 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 46 00 00 00 F4 03 04 00 AD 09 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 DC 0B 01 00 35 04 06 00 C2 BB 1F 81 FF 22 56 24 22 5F F8 52 0A 49 [12:33:47]written 0, free lines is 4095 [12:33:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 E1 F1 47 00 B1 4A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 DC 0B 01 00 F4 03 04 00 A6 B0 5E 66 B6 04 01 00 00 5C 1F B8 82 E0 34 8C B9 [12:33:47]CommunicateWithHost err = 0 [12:33:47]CheckOFDResponse [12:33:47]1017 (14) - 77093643461234 [12:33:47]1041 (16) - 0000000000965400 [12:33:47]1040 (4) - 68572 [12:33:47]1012 (4) - 04.06.2024 06:13 [12:33:47]1206 (1) - 0 [12:33:47]OFD Sender: Remove packet 68572 [12:33:47]ProducePacketName [12:33:47]name=ofd_packets/00068572 [12:33:47]NVStorageDeleteData [12:33:47]Write to MH i2c: 01 00 00 26 23 49 [12:33:47]Write i2c OK [12:33:47]MH_I2C_Read... [12:33:47]Read from MH i2c: 01 [12:33:47]MH_I2C_Read... [12:33:47]Read from MH i2c: 01 07 00 [12:33:47]MH_I2C_Read... [12:33:47]Read from MH i2c: 01 07 00 26 23 00 00 00 00 00 D7 0C 33 [12:33:47]RasterBufferAndPrint [12:33:47]line [12:33:47]line [12:33:47]line [12:33:47]line [12:33:47]line [12:33:47]written 0, free lines is 3294 [12:33:47]MH_Cut [12:33:47]Write to MH i2c: D1 01 00 2D 23 01 22 [12:33:47]Write i2c OK [12:33:47]MH_I2C_Read... [12:33:47]Read from MH i2c: D1 [12:33:47]MH_I2C_Read... [12:33:47]Read from MH i2c: D1 01 00 [12:33:47]MH_I2C_Read... [12:33:47]Read from MH i2c: D1 01 00 2D 23 00 21 [12:33:47]Write to MH i2c: 01 00 00 2E 23 51 [12:33:47]Write i2c OK [12:33:47]MH_I2C_Read... [12:33:47]OFD Sender: No OFD packet to send [12:33:48]*** Cut start [12:33:48]*** Partial cut [12:33:48]*** CUTSNS_PIN = 1 [12:33:48]*** CUTSNS_PIN = 0 [12:33:48]*** Brake cut motor [12:33:49]Read from MH i2c: 01 [12:33:49]MH_I2C_Read... [12:33:49]*** Stop cut motor [12:33:49]*** Cut end [12:33:49]Read from MH i2c: 01 07 00 [12:33:49]MH_I2C_Read... [12:33:49]Read from MH i2c: 01 07 00 2E 23 00 00 00 00 00 FF 0F 66 [12:33:49]process_action close_receipt done [12:33:49]requested_data is exist [12:33:49]produce_requested_data [12:33:49]requested_item fm.sn is exist - process it [12:33:49]wFMCommunicate request_size=4 [12:33:49]MH_SAM_APDU [12:33:49]CAPDU: 80 11 00 00 [12:33:49]Write to MH i2c: E2 08 00 2F 23 80 11 00 00 00 00 00 00 CC [12:33:49]Write i2c OK [12:33:49]MH_I2C_Read... [12:33:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:33:49]Read from MH i2c: E2 [12:33:49]MH_I2C_Read... [12:33:49]Read from MH i2c: E2 17 00 [12:33:49]MH_I2C_Read... [12:33:49]Read from MH i2c: E2 17 00 2F 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 17 [12:33:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [12:33:49]wFMCommunicate OK [12:33:49]requested_item fd.num is exist - process it [12:33:49]SAM_PROTO_GetFieldsCounters [12:33:49]wFMCommunicate request_size=4 [12:33:49]MH_SAM_APDU [12:33:49]CAPDU: 80 13 00 00 [12:33:49]Write to MH i2c: E2 08 00 30 23 80 13 00 00 00 00 00 00 CF [12:33:49]Write i2c OK [12:33:49]MH_I2C_Read... [12:33:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:33:49]Read from MH i2c: E2 [12:33:49]MH_I2C_Read... [12:33:49]Read from MH i2c: E2 62 00 [12:33:49]MH_I2C_Read... [12:33:49]Read from MH i2c: E2 62 00 30 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 DC 0B 01 00 0E 04 04 00 45 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 EF [12:33:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 DC 0B 01 00 0E 04 04 00 45 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 [12:33:49]wFMCommunicate OK [12:33:49]SAM_PROTO_GetFieldsCounters done [12:33:49]requested_item shift.num is exist - process it [12:33:49]requested_item shift.opened is exist - process it [12:33:49]req_shift_opened [12:33:49]FM_GetShiftState [12:33:49]SAM_PROTO_GetShiftState [12:33:49]wFMCommunicate request_size=4 [12:33:49]MH_SAM_APDU [12:33:49]CAPDU: 80 13 01 00 [12:33:49]Write to MH i2c: E2 08 00 31 23 80 13 01 00 00 00 00 00 D1 [12:33:49]Write i2c OK [12:33:49]MH_I2C_Read... [12:33:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:33:49]Read from MH i2c: E2 [12:33:49]MH_I2C_Read... [12:33:49]Read from MH i2c: E2 0E 00 [12:33:49]MH_I2C_Read... [12:33:49]Read from MH i2c: E2 0E 00 31 23 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 6D [12:33:49]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [12:33:49]wFMCommunicate OK [12:33:49]SAM_PROTO_GetShiftState done [12:33:49]FM_GetShiftState done [12:33:49]req_shift_opened done [12:33:49]requested_item shift.open_date is exist - process it [12:33:49]req_shift_open_date [12:33:49]req_shift_open_date done [12:33:49]produce_requested_data done [12:33:49]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68572,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [12:33:49]process_action_free close_receipt [12:33:49]json_value_free [12:33:49]json_value_free done [12:33:49]process_json_proto returns [12:33:49]Send response to host [12:33:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68572,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [12:33:49]free response buf [12:33:49]execute_script done [12:33:49]execute_script returns [12:33:49]free content buf [12:33:49]Sock 9.Close socket [12:33:49]Sock 9.Thread stoped [12:33:52]OFD Sender: No OFD packet to send [12:33:57]OFD Sender: No OFD packet to send [12:34:02]OFD Sender: No OFD packet to send [12:34:08]OFD Sender: No OFD packet to send [12:34:10]accept exits with 7 [12:34:10]New connection [12:34:10]New thread 3067084132 created [12:34:10]Thread 3067227492 joined [12:34:10]Waiting for new connection... [12:34:10] Sock 7.Parse request [12:34:10]Sock 7.Check first char [12:34:10]Sock 7.First char is OK [12:34:10]request: POST /json_proto HTTP/1.0 [12:34:10]Method: POST [12:34:10]URL: /json_proto [12:34:10]Method is POST - this is cgi request [12:34:10]url: /json_proto [12:34:10]query_string will be loaded in cgi processing [12:34:10]execute_cgi json_proto POST (null) [12:34:10]execute_cgi path=json_proto method=POST [12:34:10]POST find Content-Length [12:34:10]Host: 172.17.36.132:8080 [12:34:10]Content-Length: 840 [12:34:10]Content-Type: application/json [12:34:10] [12:34:10]POST finish read [12:34:10]Found Content-Length = 840 [12:34:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706702", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:34:10]execute_script... [12:34:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706702", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:34:10]POST & json_proto [12:34:10]process_json_proto [12:34:10]json parsed OK: [12:34:10]protocol is kg_v1.0 [12:34:10]action value=close_receipt [12:34:10]process_action close_receipt [12:34:10]cmd_close_receipt [12:34:10]MH_GetDate [12:34:10]Write to MH i2c: F0 00 00 32 23 44 [12:34:10]Write i2c OK [12:34:10]MH_I2C_Read... [12:34:10]Read from MH i2c: F0 [12:34:10]MH_I2C_Read... [12:34:10]Read from MH i2c: F0 09 00 [12:34:10]MH_I2C_Read... [12:34:10]Read from MH i2c: F0 09 00 32 23 00 C7 09 5F 66 B2 22 B0 64 CA [12:34:10]GetLastDocTimeStamp 1717504429 [12:34:10]current date 1717504455 [12:34:10]FM_GetShiftState [12:34:10]SAM_PROTO_GetShiftState [12:34:10]wFMCommunicate request_size=4 [12:34:10]MH_SAM_APDU [12:34:10]CAPDU: 80 13 01 00 [12:34:10]Write to MH i2c: E2 08 00 33 23 80 13 01 00 00 00 00 00 D3 [12:34:10]Write i2c OK [12:34:10]MH_I2C_Read... [12:34:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:34:10]Read from MH i2c: E2 [12:34:10]MH_I2C_Read... [12:34:10]Read from MH i2c: E2 0E 00 [12:34:10]MH_I2C_Read... [12:34:10]Read from MH i2c: E2 0E 00 33 23 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 6F [12:34:10]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [12:34:10]wFMCommunicate OK [12:34:10]SAM_PROTO_GetShiftState done [12:34:10]FM_GetShiftState done [12:34:10]opened in 1717460590 [12:34:10]opened+sec_in_day 1717546990 [12:34:10]quantity*price = 50041 [12:34:10]sum+1 = 50042 [12:34:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 71 04.06.2024 12:34 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000965400 ФД: 68573 ФПД: 131650805328207 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T123415&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68573&fm=131650805328207&tin=02508201610067®Number=0000000000098096&sum=50041 [12:34:11]StoreToDocumentArchive [12:34:11]shift 325 fd 68573 [12:34:11]save to /storage/0325/doc_00068573 [12:34:11]save last doc name /storage/0325/doc_00068573 to /storage/kkm_last_doc_name [12:34:11]save OK [12:34:11]Clear old archive folders... [12:34:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:34:11]tlvbuf is 00A422D0 [12:34:11]SAM_PROTO_ClearQueue [12:34:11]wFMCommunicate request_size=4 [12:34:11]MH_SAM_APDU [12:34:11]CAPDU: 80 09 00 00 [12:34:11]Write to MH i2c: E2 08 00 40 23 80 09 00 00 00 00 00 00 D5 [12:34:11]Write i2c OK [12:34:11]MH_I2C_Read... [12:34:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:34:11]Read from MH i2c: E2 [12:34:11]MH_I2C_Read... [12:34:11]Read from MH i2c: E2 03 00 [12:34:11]MH_I2C_Read... [12:34:11]Read from MH i2c: E2 03 00 40 23 00 90 00 D7 [12:34:11]RAPDU: 90 00 [12:34:11]wFMCommunicate OK [12:34:11]SAM_PROTO_ClearQueue done [12:34:11]KKMCreateOFDPacket [12:34:11]OFDProtocolAddRootSTLVToBuf [12:34:11]FM_MakeSignedData [12:34:11]FM_MakeSignedData [12:34:11]SAM_PROTO_SignData [12:34:11]wFMCommunicate request_size=4 [12:34:11]MH_SAM_APDU [12:34:11]CAPDU: 80 0D 01 02 [12:34:11]Write to MH i2c: E2 08 00 41 23 80 0D 01 02 00 00 00 00 DD [12:34:11]Write i2c OK [12:34:11]MH_I2C_Read... [12:34:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:34:11]Read from MH i2c: E2 [12:34:11]MH_I2C_Read... [12:34:11]Read from MH i2c: E2 03 00 [12:34:11]MH_I2C_Read... [12:34:11]Read from MH i2c: E2 03 00 41 23 00 90 00 D8 [12:34:11]RAPDU: 90 00 [12:34:11]wFMCommunicate OK [12:34:11]wFMCommunicate request_size=255 [12:34:11]MH_SAM_APDU [12:34: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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 C7 09 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 DD 0B 01 00 35 04 06 00 77 [12:34:11]Write to MH i2c: E2 02 01 42 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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 C7 09 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 DD 0B 01 00 35 04 06 00 77 00 00 3E [12:34:11]Write i2c OK [12:34:11]MH_I2C_Read... [12:34:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:34:12]Read from MH i2c: E2 [12:34:12]MH_I2C_Read... [12:34:12]Read from MH i2c: E2 03 00 [12:34:12]MH_I2C_Read... [12:34:12]Read from MH i2c: E2 03 00 42 23 00 90 00 D9 [12:34:12]RAPDU: 90 00 [12:34:12]wFMCommunicate OK [12:34:12]wFMCommunicate request_size=10 [12:34:12]MH_SAM_APDU [12:34:12]CAPDU: 80 0D 02 02 05 BC 57 7C 69 4F [12:34:12]Write to MH i2c: E2 0D 00 43 23 80 0D 02 02 05 00 BC 57 7C 69 4F 00 00 31 [12:34:12]Write i2c OK [12:34:12]MH_I2C_Read... [12:34:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:34:12]Read from MH i2c: E2 [12:34:12]MH_I2C_Read... [12:34:12]Read from MH i2c: E2 03 00 [12:34:12]MH_I2C_Read... [12:34:12]Read from MH i2c: E2 03 00 43 23 00 90 00 DA [12:34:12]RAPDU: 90 00 [12:34:12]wFMCommunicate OK [12:34:12]wFMCommunicate request_size=4 [12:34:12]MH_SAM_APDU [12:34:12]CAPDU: 80 0D 03 02 [12:34:12]Write to MH i2c: E2 08 00 44 23 80 0D 03 02 00 00 00 00 E2 [12:34:12]Write i2c OK [12:34:12]MH_I2C_Read... [12:34:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:34:12]Read from MH i2c: E2 [12:34:12]MH_I2C_Read... [12:34:12]Read from MH i2c: E2 0B 00 [12:34:12]MH_I2C_Read... [12:34:12]Read from MH i2c: E2 0B 00 44 23 00 1A C6 F6 7B 08 3B 9F E8 90 00 FE [12:34:12]RAPDU: 1A C6 F6 7B 08 3B 9F E8 90 00 [12:34:12]wFMCommunicate OK [12:34:12]SAM_PROTO_SignData done [12:34:12]FM_MakeSignedData done [12:34:12]CreateOFDProtocolMessage [12:34:12]wFMCommunicate request_size=4 [12:34:12]MH_SAM_APDU [12:34:12]CAPDU: 80 11 00 00 [12:34:12]Write to MH i2c: E2 08 00 45 23 80 11 00 00 00 00 00 00 E2 [12:34:12]Write i2c OK [12:34:12]MH_I2C_Read... [12:34:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:34:12]Read from MH i2c: E2 [12:34:12]MH_I2C_Read... [12:34:12]Read from MH i2c: E2 17 00 [12:34:12]MH_I2C_Read... [12:34:12]Read from MH i2c: E2 17 00 45 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 2D [12:34:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [12:34:12]wFMCommunicate OK [12:34:12]CreateOFDProtocolMessage done [12:34:12]OFDSenderStorePacket 68573 [12:34:12]StoreOFDPacket docnum=68573 [12:34:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 25 A6 07 01 A8 F7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 C7 09 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 DD 0B 01 00 35 04 06 00 77 BC 57 7C 69 4F 1A C6 F6 7B 08 3B 9F E8 [12:34:12]CheckFolder [12:34:12]dirname=/storage/ofd_packets [12:34:12]CheckFolder done [12:34:12]ProducePacketName [12:34:12]name=ofd_packets/00068573 [12:34:12]NVStorageSaveData ofd_packets/00068573 [12:34:12]File name is /storage/ofd_packets/00068573 [12:34:12]Write 301 bytes [12:34:12]NVStorageSaveData done [12:34:12]OFDSenderStorePacket done [12:34:12]KKMCreateOFDPacket done [12:34:12]NVStorageSaveData kkm_last_timestamp [12:34:12]File name is /storage/kkm_last_timestamp [12:34:12]Write 4 bytes [12:34:12]NVStorageSaveData done [12:34:12]ExternCall_PrintAddStr [12:34:12]wPrintStart [12:34:12]Write to MH i2c: 01 00 00 46 23 69 [12:34:12]Write i2c OK [12:34:12]MH_I2C_Read... [12:34:12]Read from MH i2c: 01 [12:34:12]MH_I2C_Read... [12:34:12]Read from MH i2c: 01 07 00 [12:34:12]MH_I2C_Read... [12:34:12]Read from MH i2c: 01 07 00 46 23 00 00 00 00 00 FF 0F 7E [12:34:12]RasterBufferAndPrint [12:34:12]line Счет N : (1)706702 [12:34:12]line ИНН: 02508201610067 [12:34:12]line Контрольно-Кассовый Чек [12:34:12]line ПРОДАЖА [12:34:12]line ТРК (МРК, ГНК) : 42 [12:34:12]line Товар: 2710124130 [12:34:12]line Аи-92-К-4 [12:34:12]line 7.480 * 66.90 [12:34:12]line = 500.41 [12:34:12]line НДС 12% НСП 1% [12:34:12]line > о реализуемом товаре [12:34:12]line ИТОГО: 500.41 [12:34:12]line НСП 1% : 4.43 [12:34:12]line НДС 12% : 53.14 [12:34:12]line Наличными: 0.00 [12:34:12]line Безнал.: 500.41 [12:34:12]line Место: АЗС № 62 "Партнер Нефть" [12:34:12]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [12:34:12]line СНО: Общий режим [12:34:12]line Чек 71 04.06.2024 12:34 [12:34:12]line Смена: 325 ФФД: 1.0 [12:34:12]line ЗНМ: 0300000181 [12:34:12]line РНМ: 0000000000098096 [12:34:12]line Версия ККМ: 001 [12:34:12]line Платежная система: АКБ Кыргызстан [12:34:12]line ФМ: 0000000000965400 [12:34:12]line ФД: 68573 [12:34:12]line ФПД: 131650805328207 [12:34:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T123415&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68573&fm=131650805328207&tin=02508201610067®Number=0000000000098096&sum=50041 [12:34:12]OFD Sender: Processing packet 68573 [packets to send 26, broken 25] [12:34:12]ProducePacketName [12:34:12]name=ofd_packets/00068573 [12:34:12]OFD Sender: To server: pG, [12:34:12]CommunicateWithHost lk.salyk.kg:30040 [12:34:12]ConnectInit lk.salyk.kg [12:34:12]written 0, free lines is 4095 [12:34:12]Connected sock=10 [12:34:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 25 A6 07 01 A8 F7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 C7 09 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 DD 0B 01 00 35 04 06 00 77 BC 57 7C 69 4F 1A C6 F6 7B 08 3B 9F E8 [12:34:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 E3 4D 47 00 02 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 39 36 35 34 30 30 10 04 04 00 DD 0B 01 00 F4 03 04 00 BF B0 5E 66 B6 04 01 00 00 3A 54 69 5B E5 CF 31 E5 [12:34:12]CommunicateWithHost err = 0 [12:34:12]CheckOFDResponse [12:34:12]1017 (14) - 77093643461234 [12:34:12]1041 (16) - 0000000000965400 [12:34:12]1040 (4) - 68573 [12:34:12]1012 (4) - 04.06.2024 06:14 [12:34:12]1206 (1) - 0 [12:34:12]OFD Sender: Remove packet 68573 [12:34:12]ProducePacketName [12:34:12]name=ofd_packets/00068573 [12:34:12]NVStorageDeleteData [12:34:13]Write to MH i2c: 01 00 00 70 23 93 [12:34:13]Write i2c OK [12:34:13]MH_I2C_Read... [12:34:13]Read from MH i2c: 01 [12:34:13]MH_I2C_Read... [12:34:13]Read from MH i2c: 01 07 00 [12:34:13]MH_I2C_Read... [12:34:13]Read from MH i2c: 01 07 00 70 23 00 00 00 00 00 E1 0C 87 [12:34:13]RasterBufferAndPrint [12:34:13]line [12:34:13]line [12:34:13]line [12:34:13]line [12:34:13]line [12:34:13]written 0, free lines is 3303 [12:34:13]MH_Cut [12:34:13]Write to MH i2c: D1 01 00 77 23 01 6C [12:34:13]Write i2c OK [12:34:13]MH_I2C_Read... [12:34:13]Read from MH i2c: D1 [12:34:13]MH_I2C_Read... [12:34:13]Read from MH i2c: D1 01 00 [12:34:13]MH_I2C_Read... [12:34:13]Read from MH i2c: D1 01 00 77 23 00 6B [12:34:13]Write to MH i2c: 01 00 00 78 23 9B [12:34:13]Write i2c OK [12:34:13]MH_I2C_Read... [12:34:13]OFD Sender: No OFD packet to send [12:34:13]*** Cut start [12:34:13]*** Partial cut [12:34:13]*** CUTSNS_PIN = 1 [12:34:13]*** CUTSNS_PIN = 0 [12:34:14]*** Brake cut motor [12:34:14]Read from MH i2c: 01 [12:34:14]MH_I2C_Read... [12:34:14]*** Stop cut motor [12:34:14]*** Cut end [12:34:14]Read from MH i2c: 01 07 00 [12:34:14]MH_I2C_Read... [12:34:14]Read from MH i2c: 01 07 00 78 23 00 00 00 00 00 FF 0F B0 [12:34:14]process_action close_receipt done [12:34:14]requested_data is exist [12:34:14]produce_requested_data [12:34:14]requested_item fm.sn is exist - process it [12:34:14]wFMCommunicate request_size=4 [12:34:14]MH_SAM_APDU [12:34:14]CAPDU: 80 11 00 00 [12:34:14]Write to MH i2c: E2 08 00 79 23 80 11 00 00 00 00 00 00 16 [12:34:14]Write i2c OK [12:34:14]MH_I2C_Read... [12:34:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:34:14]Read from MH i2c: E2 [12:34:14]MH_I2C_Read... [12:34:14]Read from MH i2c: E2 17 00 [12:34:14]MH_I2C_Read... [12:34:14]Read from MH i2c: E2 17 00 79 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 61 [12:34:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [12:34:14]wFMCommunicate OK [12:34:14]requested_item fd.num is exist - process it [12:34:14]SAM_PROTO_GetFieldsCounters [12:34:14]wFMCommunicate request_size=4 [12:34:14]MH_SAM_APDU [12:34:14]CAPDU: 80 13 00 00 [12:34:14]Write to MH i2c: E2 08 00 7A 23 80 13 00 00 00 00 00 00 19 [12:34:14]Write i2c OK [12:34:14]MH_I2C_Read... [12:34:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:34:14]Read from MH i2c: E2 [12:34:14]MH_I2C_Read... [12:34:14]Read from MH i2c: E2 62 00 [12:34:14]MH_I2C_Read... [12:34:14]Read from MH i2c: E2 62 00 7A 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 DD 0B 01 00 0E 04 04 00 45 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 3D [12:34:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 DD 0B 01 00 0E 04 04 00 45 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 [12:34:14]wFMCommunicate OK [12:34:14]SAM_PROTO_GetFieldsCounters done [12:34:14]requested_item shift.num is exist - process it [12:34:14]requested_item shift.opened is exist - process it [12:34:14]req_shift_opened [12:34:14]FM_GetShiftState [12:34:14]SAM_PROTO_GetShiftState [12:34:14]wFMCommunicate request_size=4 [12:34:14]MH_SAM_APDU [12:34:14]CAPDU: 80 13 01 00 [12:34:14]Write to MH i2c: E2 08 00 7B 23 80 13 01 00 00 00 00 00 1B [12:34:14]Write i2c OK [12:34:14]MH_I2C_Read... [12:34:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:34:14]Read from MH i2c: E2 [12:34:14]MH_I2C_Read... [12:34:14]Read from MH i2c: E2 0E 00 [12:34:14]MH_I2C_Read... [12:34:14]Read from MH i2c: E2 0E 00 7B 23 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 B7 [12:34:14]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [12:34:14]wFMCommunicate OK [12:34:14]SAM_PROTO_GetShiftState done [12:34:14]FM_GetShiftState done [12:34:14]req_shift_opened done [12:34:14]requested_item shift.open_date is exist - process it [12:34:14]req_shift_open_date [12:34:14]req_shift_open_date done [12:34:14]produce_requested_data done [12:34:14]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68573,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [12:34:14]process_action_free close_receipt [12:34:14]json_value_free [12:34:14]json_value_free done [12:34:14]process_json_proto returns [12:34:14]Send response to host [12:34:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68573,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [12:34:14]free response buf [12:34:14]execute_script done [12:34:14]execute_script returns [12:34:14]free content buf [12:34:14]Sock 7.Close socket [12:34:14]Sock 7.Thread stoped [12:34:18]OFD Sender: No OFD packet to send [12:34:23]OFD Sender: No OFD packet to send [12:34:28]OFD Sender: No OFD packet to send [12:34:33]OFD Sender: No OFD packet to send [12:34:38]OFD Sender: No OFD packet to send [12:34:43]OFD Sender: No OFD packet to send [12:34:48]OFD Sender: No OFD packet to send [12:34:53]OFD Sender: No OFD packet to send [12:34:58]OFD Sender: No OFD packet to send [12:35:03]OFD Sender: No OFD packet to send [12:35:08]OFD Sender: No OFD packet to send [12:35:13]OFD Sender: No OFD packet to send [12:35:18]OFD Sender: No OFD packet to send [12:35:23]OFD Sender: No OFD packet to send [12:35:28]OFD Sender: No OFD packet to send [12:35:33]OFD Sender: No OFD packet to send [12:35:38]OFD Sender: No OFD packet to send [12:35:43]OFD Sender: No OFD packet to send [12:35:48]OFD Sender: No OFD packet to send [12:35:53]OFD Sender: No OFD packet to send [12:35:58]OFD Sender: No OFD packet to send [12:36:03]OFD Sender: No OFD packet to send [12:36:08]OFD Sender: No OFD packet to send [12:36:13]OFD Sender: No OFD packet to send [12:36:18]OFD Sender: No OFD packet to send [12:36:23]OFD Sender: No OFD packet to send [12:36:28]OFD Sender: No OFD packet to send [12:36:33]OFD Sender: No OFD packet to send [12:36:38]OFD Sender: No OFD packet to send [12:36:43]OFD Sender: No OFD packet to send [12:36:48]OFD Sender: No OFD packet to send [12:36:53]OFD Sender: No OFD packet to send [12:36:58]OFD Sender: No OFD packet to send [12:37:03]OFD Sender: No OFD packet to send [12:37:08]OFD Sender: No OFD packet to send [12:37:13]OFD Sender: No OFD packet to send [12:37:18]OFD Sender: No OFD packet to send [12:37:23]OFD Sender: No OFD packet to send [12:37:28]OFD Sender: No OFD packet to send [12:37:33]OFD Sender: No OFD packet to send [12:37:38]OFD Sender: No OFD packet to send [12:37:43]OFD Sender: No OFD packet to send [12:37:48]OFD Sender: No OFD packet to send [12:37:53]OFD Sender: No OFD packet to send [12:37:58]OFD Sender: No OFD packet to send [12:38:03]OFD Sender: No OFD packet to send [12:38:08]OFD Sender: No OFD packet to send [12:38:13]OFD Sender: No OFD packet to send [12:38:18]OFD Sender: No OFD packet to send [12:38:23]OFD Sender: No OFD packet to send [12:38:28]OFD Sender: No OFD packet to send [12:38:33]OFD Sender: No OFD packet to send [12:38:38]OFD Sender: No OFD packet to send [12:38:43]OFD Sender: No OFD packet to send [12:38:48]OFD Sender: No OFD packet to send [12:38:53]OFD Sender: No OFD packet to send [12:38:58]OFD Sender: No OFD packet to send [12:39:03]OFD Sender: No OFD packet to send [12:39:08]OFD Sender: No OFD packet to send [12:39:13]OFD Sender: No OFD packet to send [12:39:18]OFD Sender: No OFD packet to send [12:39:23]OFD Sender: No OFD packet to send [12:39:28]OFD Sender: No OFD packet to send [12:39:33]OFD Sender: No OFD packet to send [12:39:38]OFD Sender: No OFD packet to send [12:39:43]OFD Sender: No OFD packet to send [12:39:48]OFD Sender: No OFD packet to send [12:39:53]OFD Sender: No OFD packet to send [12:39:58]OFD Sender: No OFD packet to send [12:40:03]OFD Sender: No OFD packet to send [12:40:08]OFD Sender: No OFD packet to send [12:40:13]OFD Sender: No OFD packet to send [12:40:18]OFD Sender: No OFD packet to send [12:40:23]OFD Sender: No OFD packet to send [12:40:28]OFD Sender: No OFD packet to send [12:40:33]OFD Sender: No OFD packet to send [12:40:38]OFD Sender: No OFD packet to send [12:40:43]OFD Sender: No OFD packet to send [12:40:48]OFD Sender: No OFD packet to send [12:40:53]OFD Sender: No OFD packet to send [12:40:58]OFD Sender: No OFD packet to send [12:41:03]OFD Sender: No OFD packet to send [12:41:08]OFD Sender: No OFD packet to send [12:41:13]OFD Sender: No OFD packet to send [12:41:18]OFD Sender: No OFD packet to send [12:41:23]OFD Sender: No OFD packet to send [12:41:28]OFD Sender: No OFD packet to send [12:41:33]OFD Sender: No OFD packet to send [12:41:38]OFD Sender: No OFD packet to send [12:41:43]OFD Sender: No OFD packet to send [12:41:48]OFD Sender: No OFD packet to send [12:41:53]OFD Sender: No OFD packet to send [12:41:58]OFD Sender: No OFD packet to send [12:42:03]OFD Sender: No OFD packet to send [12:42:08]OFD Sender: No OFD packet to send [12:42:13]OFD Sender: No OFD packet to send [12:42:18]OFD Sender: No OFD packet to send [12:42:23]OFD Sender: No OFD packet to send [12:42:28]OFD Sender: No OFD packet to send [12:42:33]OFD Sender: No OFD packet to send [12:42:38]OFD Sender: No OFD packet to send [12:42:43]OFD Sender: No OFD packet to send [12:42:48]OFD Sender: No OFD packet to send [12:42:53]OFD Sender: No OFD packet to send [12:42:58]OFD Sender: No OFD packet to send [12:43:03]OFD Sender: No OFD packet to send [12:43:08]OFD Sender: No OFD packet to send [12:43:13]OFD Sender: No OFD packet to send [12:43:18]OFD Sender: No OFD packet to send [12:43:23]OFD Sender: No OFD packet to send [12:43:28]OFD Sender: No OFD packet to send [12:43:33]OFD Sender: No OFD packet to send [12:43:38]OFD Sender: No OFD packet to send [12:43:43]OFD Sender: No OFD packet to send [12:43:48]accept exits with 9 [12:43:48]New connection [12:43:48]New thread 3067227492 created [12:43:48]Thread 3067084132 joined [12:43:48]Waiting for new connection... [12:43:48] Sock 9.Parse request [12:43:48]Sock 9.Check first char [12:43:48]Sock 9.First char is OK [12:43:48]request: POST /json_proto HTTP/1.0 [12:43:48]Method: POST [12:43:48]URL: /json_proto [12:43:48]Method is POST - this is cgi request [12:43:48]url: /json_proto [12:43:48]query_string will be loaded in cgi processing [12:43:48]execute_cgi json_proto POST (null) [12:43:48]execute_cgi path=json_proto method=POST [12:43:48]POST find Content-Length [12:43:48]Host: 172.17.36.132:8080 [12:43:48]Content-Length: 682 [12:43:48]Content-Type: application/json [12:43:48] [12:43:48]POST finish read [12:43:48]Found Content-Length = 682 [12:43:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706703", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 13.540, "sum" : 1000.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:43:48]execute_script... [12:43: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)706703", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 13.540, "sum" : 1000.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:43:48]POST & json_proto [12:43:48]process_json_proto [12:43:48]json parsed OK: [12:43:48]protocol is kg_v1.0 [12:43:48]action value=close_receipt [12:43:48]process_action close_receipt [12:43:48]cmd_close_receipt [12:43:48]MH_GetDate [12:43:48]Write to MH i2c: F0 00 00 7C 23 8E [12:43:48]Write i2c OK [12:43:48]MH_I2C_Read... [12:43:48]Read from MH i2c: F0 [12:43:48]MH_I2C_Read... [12:43:48]Read from MH i2c: F0 09 00 [12:43:48]MH_I2C_Read... [12:43:48]Read from MH i2c: F0 09 00 7C 23 00 08 0C 5F 66 B2 22 B0 64 58 [12:43:48]GetLastDocTimeStamp 1717504455 [12:43:48]current date 1717505032 [12:43:48]FM_GetShiftState [12:43:48]SAM_PROTO_GetShiftState [12:43:48]wFMCommunicate request_size=4 [12:43:48]MH_SAM_APDU [12:43:48]CAPDU: 80 13 01 00 [12:43:48]Write to MH i2c: E2 08 00 7D 23 80 13 01 00 00 00 00 00 1D [12:43:48]Write i2c OK [12:43:48]MH_I2C_Read... [12:43:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:43:48]Read from MH i2c: E2 [12:43:48]MH_I2C_Read... [12:43:48]Read from MH i2c: E2 0E 00 [12:43:48]MH_I2C_Read... [12:43:48]Read from MH i2c: E2 0E 00 7D 23 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 B9 [12:43:48]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [12:43:48]wFMCommunicate OK [12:43:48]SAM_PROTO_GetShiftState done [12:43:48]FM_GetShiftState done [12:43:48]opened in 1717460590 [12:43:48]opened+sec_in_day 1717546990 [12:43:48]quantity*price = 100060 [12:43:48]sum+1 = 100062 [12:43:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 72 04.06.2024 12:43 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68574 ФПД: 182308977890873 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T124352&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68574&fm=182308977890873&tin=02508201610067®Number=0000000000098096&sum=100000 [12:43:49]StoreToDocumentArchive [12:43:49]shift 325 fd 68574 [12:43:49]save to /storage/0325/doc_00068574 [12:43:49]save last doc name /storage/0325/doc_00068574 to /storage/kkm_last_doc_name [12:43:49]save OK [12:43:49]Clear old archive folders... [12:43:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:43:49]tlvbuf is B6F048B0 [12:43:49]SAM_PROTO_ClearQueue [12:43:49]wFMCommunicate request_size=4 [12:43:49]MH_SAM_APDU [12:43:49]CAPDU: 80 09 00 00 [12:43:49]Write to MH i2c: E2 08 00 8A 23 80 09 00 00 00 00 00 00 1F [12:43:49]Write i2c OK [12:43:49]MH_I2C_Read... [12:43:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:43:49]Read from MH i2c: E2 [12:43:49]MH_I2C_Read... [12:43:49]Read from MH i2c: E2 03 00 [12:43:49]MH_I2C_Read... [12:43:49]Read from MH i2c: E2 03 00 8A 23 00 90 00 21 [12:43:49]RAPDU: 90 00 [12:43:49]wFMCommunicate OK [12:43:49]SAM_PROTO_ClearQueue done [12:43:49]KKMCreateOFDPacket [12:43:49]OFDProtocolAddRootSTLVToBuf [12:43:49]FM_MakeSignedData [12:43:49]FM_MakeSignedData [12:43:49]SAM_PROTO_SignData [12:43:49]wFMCommunicate request_size=4 [12:43:49]MH_SAM_APDU [12:43:49]CAPDU: 80 0D 01 02 [12:43:49]Write to MH i2c: E2 08 00 8B 23 80 0D 01 02 00 00 00 00 27 [12:43:49]Write i2c OK [12:43:49]MH_I2C_Read... [12:43:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:43:49]Read from MH i2c: E2 [12:43:49]MH_I2C_Read... [12:43:49]Read from MH i2c: E2 03 00 [12:43:49]MH_I2C_Read... [12:43:49]Read from MH i2c: E2 03 00 8B 23 00 90 00 22 [12:43:49]RAPDU: 90 00 [12:43:49]wFMCommunicate OK [12:43:49]wFMCommunicate request_size=255 [12:43:49]MH_SAM_APDU [12:43:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 08 0C 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 DE 0B 01 00 35 04 06 00 A5 [12:43:49]Write to MH i2c: E2 02 01 8C 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 08 0C 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 DE 0B 01 00 35 04 06 00 A5 00 00 11 [12:43:49]Write i2c OK [12:43:49]MH_I2C_Read... [12:43:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:43:49]Read from MH i2c: E2 [12:43:49]MH_I2C_Read... [12:43:49]Read from MH i2c: E2 03 00 [12:43:49]MH_I2C_Read... [12:43:49]Read from MH i2c: E2 03 00 8C 23 00 90 00 23 [12:43:49]RAPDU: 90 00 [12:43:49]wFMCommunicate OK [12:43:49]wFMCommunicate request_size=10 [12:43:49]MH_SAM_APDU [12:43:49]CAPDU: 80 0D 02 02 05 CF 1D DD D6 39 [12:43:49]Write to MH i2c: E2 0D 00 8D 23 80 0D 02 02 05 00 CF 1D DD D6 39 00 00 0C [12:43:49]Write i2c OK [12:43:49]MH_I2C_Read... [12:43:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:43:49]Read from MH i2c: E2 [12:43:49]MH_I2C_Read... [12:43:49]Read from MH i2c: E2 03 00 [12:43:49]MH_I2C_Read... [12:43:49]Read from MH i2c: E2 03 00 8D 23 00 90 00 24 [12:43:49]RAPDU: 90 00 [12:43:49]wFMCommunicate OK [12:43:49]wFMCommunicate request_size=4 [12:43:49]MH_SAM_APDU [12:43:49]CAPDU: 80 0D 03 02 [12:43:49]Write to MH i2c: E2 08 00 8E 23 80 0D 03 02 00 00 00 00 2C [12:43:49]Write i2c OK [12:43:49]MH_I2C_Read... [12:43:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:43:49]Read from MH i2c: E2 [12:43:49]MH_I2C_Read... [12:43:49]Read from MH i2c: E2 0B 00 [12:43:49]MH_I2C_Read... [12:43:49]Read from MH i2c: E2 0B 00 8E 23 00 B3 D9 C7 FF EF 1F 78 DC 90 00 E1 [12:43:49]RAPDU: B3 D9 C7 FF EF 1F 78 DC 90 00 [12:43:49]wFMCommunicate OK [12:43:49]SAM_PROTO_SignData done [12:43:49]FM_MakeSignedData done [12:43:49]CreateOFDProtocolMessage [12:43:49]wFMCommunicate request_size=4 [12:43:49]MH_SAM_APDU [12:43:49]CAPDU: 80 11 00 00 [12:43:49]Write to MH i2c: E2 08 00 8F 23 80 11 00 00 00 00 00 00 2C [12:43:49]Write i2c OK [12:43:49]MH_I2C_Read... [12:43:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:43:49]Read from MH i2c: E2 [12:43:49]MH_I2C_Read... [12:43:49]Read from MH i2c: E2 17 00 [12:43:49]MH_I2C_Read... [12:43:49]Read from MH i2c: E2 17 00 8F 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 77 [12:43:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [12:43:49]wFMCommunicate OK [12:43:49]CreateOFDProtocolMessage done [12:43:49]OFDSenderStorePacket 68574 [12:43:49]StoreOFDPacket docnum=68574 [12:43:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 94 1E 07 01 0E 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 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 08 0C 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 DE 0B 01 00 35 04 06 00 A5 CF 1D DD D6 39 B3 D9 C7 FF EF 1F 78 DC [12:43:49]CheckFolder [12:43:49]dirname=/storage/ofd_packets [12:43:49]CheckFolder done [12:43:49]ProducePacketName [12:43:49]name=ofd_packets/00068574 [12:43:49]NVStorageSaveData ofd_packets/00068574 [12:43:49]File name is /storage/ofd_packets/00068574 [12:43:49]Write 301 bytes [12:43:49]NVStorageSaveData done [12:43:49]OFDSenderStorePacket done [12:43:49]KKMCreateOFDPacket done [12:43:49]NVStorageSaveData kkm_last_timestamp [12:43:49]File name is /storage/kkm_last_timestamp [12:43:49]Write 4 bytes [12:43:49]NVStorageSaveData done [12:43:49]ExternCall_PrintAddStr [12:43:49]wPrintStart [12:43:49]Write to MH i2c: 01 00 00 90 23 B3 [12:43:49]Write i2c OK [12:43:49]MH_I2C_Read... [12:43:49]Read from MH i2c: 01 [12:43:49]MH_I2C_Read... [12:43:49]Read from MH i2c: 01 07 00 [12:43:49]MH_I2C_Read... [12:43:49]Read from MH i2c: 01 07 00 90 23 00 00 00 00 00 FF 0F C8 [12:43:49]RasterBufferAndPrint [12:43:49]line Счет N : (1)706703 [12:43:49]line ИНН: 02508201610067 [12:43:49]line Контрольно-Кассовый Чек [12:43:49]line ПРОДАЖА [12:43:49]line ТРК (МРК, ГНК) : 33 [12:43:49]line Товар: 2710124500 [12:43:49]line Аи-95-К-5 [12:43:49]line 13.540 * 73.90 [12:43:49]line = 1000.61 [12:43:49]line НДС 12% НСП 1% [12:43:49]line > о реализуемом товаре [12:43:49]line ОКРУГЛЕНИЕ: -0.61 [12:43:49]line ИТОГО: 1000.00 [12:43:49]line Внесено: 1000.00 [12:43:49]line СДАЧА: 0.00 [12:43:49]line НСП 1% : 8.85 [12:43:49]line НДС 12% : 106.26 [12:43:49]line Наличными: 1000.00 [12:43:49]line Безнал.: 0.00 [12:43:49]line Место: АЗС № 62 "Партнер Нефть" [12:43:49]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [12:43:49]line СНО: Общий режим [12:43:49]line Чек 72 04.06.2024 12:43 [12:43:49]line Смена: 325 ФФД: 1.0 [12:43:49]line ЗНМ: 0300000181 [12:43:49]line РНМ: 0000000000098096 [12:43:49]line Версия ККМ: 001 [12:43:49]line ФМ: 0000000000965400 [12:43:49]line ФД: 68574 [12:43:49]line ФПД: 182308977890873 [12:43:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T124352&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68574&fm=182308977890873&tin=02508201610067®Number=0000000000098096&sum=100000 [12:43:50]OFD Sender: Processing packet 68574 [packets to send 26, broken 25] [12:43:50]ProducePacketName [12:43:50]name=ofd_packets/00068574 [12:43:50]OFD Sender: To server: pG, [12:43:50]CommunicateWithHost lk.salyk.kg:30040 [12:43:50]ConnectInit lk.salyk.kg [12:43:50]written 0, free lines is 4095 [12:43:50]Connected sock=10 [12:43:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 94 1E 07 01 0E 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 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 08 0C 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 DE 0B 01 00 35 04 06 00 A5 CF 1D DD D6 39 B3 D9 C7 FF EF 1F 78 DC [12:43:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 71 BA 47 00 19 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 39 36 35 34 30 30 10 04 04 00 DE 0B 01 00 F4 03 04 00 01 B3 5E 66 B6 04 01 00 00 89 72 E0 CE 3D DF BF 42 [12:43:50]CommunicateWithHost err = 0 [12:43:50]CheckOFDResponse [12:43:50]1017 (14) - 77093643461234 [12:43:50]1041 (16) - 0000000000965400 [12:43:50]1040 (4) - 68574 [12:43:50]1012 (4) - 04.06.2024 06:24 [12:43:50]1206 (1) - 0 [12:43:50]OFD Sender: Remove packet 68574 [12:43:50]ProducePacketName [12:43:50]name=ofd_packets/00068574 [12:43:50]NVStorageDeleteData [12:43:50]Write to MH i2c: 01 00 00 BB 23 DE [12:43:50]Write i2c OK [12:43:50]MH_I2C_Read... [12:43:50]Read from MH i2c: 01 [12:43:50]MH_I2C_Read... [12:43:50]Read from MH i2c: 01 07 00 [12:43:50]MH_I2C_Read... [12:43:50]Read from MH i2c: 01 07 00 BB 23 00 00 00 00 00 D4 0C C5 [12:43:50]RasterBufferAndPrint [12:43:50]line [12:43:50]line [12:43:50]line [12:43:50]line [12:43:50]line [12:43:50]written 0, free lines is 3292 [12:43:50]MH_Cut [12:43:50]Write to MH i2c: D1 01 00 C2 23 01 B7 [12:43:50]Write i2c OK [12:43:50]MH_I2C_Read... [12:43:50]Read from MH i2c: D1 [12:43:50]MH_I2C_Read... [12:43:50]Read from MH i2c: D1 01 00 [12:43:50]MH_I2C_Read... [12:43:50]Read from MH i2c: D1 01 00 C2 23 00 B6 [12:43:50]Write to MH i2c: 01 00 00 C3 23 E6 [12:43:50]Write i2c OK [12:43:50]MH_I2C_Read... [12:43:50]OFD Sender: No OFD packet to send [12:43:51]*** Cut start [12:43:51]*** Partial cut [12:43:51]*** CUTSNS_PIN = 1 [12:43:51]*** CUTSNS_PIN = 0 [12:43:51]*** Brake cut motor [12:43:52]Read from MH i2c: 01 [12:43:52]MH_I2C_Read... [12:43:52]*** Stop cut motor [12:43:52]*** Cut end [12:43:52]Read from MH i2c: 01 07 00 [12:43:52]MH_I2C_Read... [12:43:52]Read from MH i2c: 01 07 00 C3 23 00 00 00 00 00 FF 0F FB [12:43:52]process_action close_receipt done [12:43:52]requested_data is exist [12:43:52]produce_requested_data [12:43:52]requested_item fm.sn is exist - process it [12:43:52]wFMCommunicate request_size=4 [12:43:52]MH_SAM_APDU [12:43:52]CAPDU: 80 11 00 00 [12:43:52]Write to MH i2c: E2 08 00 C4 23 80 11 00 00 00 00 00 00 61 [12:43:52]Write i2c OK [12:43:52]MH_I2C_Read... [12:43:52]Read from MH i2c: E2 [12:43:52]MH_I2C_Read... [12:43:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:43:52]Read from MH i2c: E2 17 00 [12:43:52]MH_I2C_Read... [12:43:52]Read from MH i2c: E2 17 00 C4 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 AC [12:43:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [12:43:52]wFMCommunicate OK [12:43:52]requested_item fd.num is exist - process it [12:43:52]SAM_PROTO_GetFieldsCounters [12:43:52]wFMCommunicate request_size=4 [12:43:52]MH_SAM_APDU [12:43:52]CAPDU: 80 13 00 00 [12:43:52]Write to MH i2c: E2 08 00 C5 23 80 13 00 00 00 00 00 00 64 [12:43:52]Write i2c OK [12:43:52]MH_I2C_Read... [12:43:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:43:52]Read from MH i2c: E2 [12:43:52]MH_I2C_Read... [12:43:52]Read from MH i2c: E2 62 00 [12:43:52]MH_I2C_Read... [12:43:52]Read from MH i2c: E2 62 00 C5 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 DE 0B 01 00 0E 04 04 00 45 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 8C [12:43:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 DE 0B 01 00 0E 04 04 00 45 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 [12:43:52]wFMCommunicate OK [12:43:52]SAM_PROTO_GetFieldsCounters done [12:43:52]requested_item shift.num is exist - process it [12:43:52]requested_item shift.opened is exist - process it [12:43:52]req_shift_opened [12:43:52]FM_GetShiftState [12:43:52]SAM_PROTO_GetShiftState [12:43:52]wFMCommunicate request_size=4 [12:43:52]MH_SAM_APDU [12:43:52]CAPDU: 80 13 01 00 [12:43:52]Write to MH i2c: E2 08 00 C6 23 80 13 01 00 00 00 00 00 66 [12:43:52]Write i2c OK [12:43:52]MH_I2C_Read... [12:43:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:43:52]Read from MH i2c: E2 [12:43:52]MH_I2C_Read... [12:43:52]Read from MH i2c: E2 0E 00 [12:43:52]MH_I2C_Read... [12:43:52]Read from MH i2c: E2 0E 00 C6 23 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 02 [12:43:52]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [12:43:52]wFMCommunicate OK [12:43:52]SAM_PROTO_GetShiftState done [12:43:52]FM_GetShiftState done [12:43:52]req_shift_opened done [12:43:52]requested_item shift.open_date is exist - process it [12:43:52]req_shift_open_date [12:43:52]req_shift_open_date done [12:43:52]produce_requested_data done [12:43:52]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68574,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [12:43:52]process_action_free close_receipt [12:43:52]json_value_free [12:43:52]json_value_free done [12:43:52]process_json_proto returns [12:43:52]Send response to host [12:43:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68574,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [12:43:52]free response buf [12:43:52]execute_script done [12:43:52]execute_script returns [12:43:52]free content buf [12:43:52]Sock 9.Close socket [12:43:52]Sock 9.Thread stoped [12:43:55]OFD Sender: No OFD packet to send [12:44:00]OFD Sender: No OFD packet to send [12:44:05]OFD Sender: No OFD packet to send [12:44:10]OFD Sender: No OFD packet to send [12:44:15]OFD Sender: No OFD packet to send [12:44:20]OFD Sender: No OFD packet to send [12:44:25]OFD Sender: No OFD packet to send [12:44:30]OFD Sender: No OFD packet to send [12:44:35]OFD Sender: No OFD packet to send [12:44:40]OFD Sender: No OFD packet to send [12:44:45]OFD Sender: No OFD packet to send [12:44:50]OFD Sender: No OFD packet to send [12:44:55]OFD Sender: No OFD packet to send [12:45:00]OFD Sender: No OFD packet to send [12:45:05]OFD Sender: No OFD packet to send [12:45:10]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 7 [12:48:00]New connection [12:48:00]New thread 3067084132 created [12:48:00]Thread 3067227492 joined [12:48:00]Waiting for new connection... [12:48:00] Sock 7.Parse request [12:48:00]Sock 7.Check first char [12:48:00]Sock 7.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.36.132:8080 [12:48:00]Content-Length: 843 [12:48:00]Content-Type: application/json [12:48:00] [12:48:00]POST finish read [12:48:00]Found Content-Length = 843 [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)706704", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 16.450, "sum" : 1100.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1100.51 } ] } , "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)706704", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 16.450, "sum" : 1100.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1100.51 } ] } , "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 C7 23 D9 [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 C7 23 00 05 0D 5F 66 B2 22 B0 64 A1 [12:48:00]GetLastDocTimeStamp 1717505032 [12:48:00]current date 1717505285 [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 C8 23 80 13 01 00 00 00 00 00 68 [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 C8 23 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 04 [12:48:00]RAPDU: 09 00 01 6E 5E 5E 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 1717460590 [12:48:00]opened+sec_in_day 1717546990 [12:48:00]quantity*price = 110050 [12:48:00]sum+1 = 110052 [12:48:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1100.51 НСП 1% : 9.74 НДС 12% : 116.87 Наличными: 0.00 Безнал.: 1100.51 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 73 04.06.2024 12:48 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000965400 ФД: 68575 ФПД: 240470343234864 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T124805&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68575&fm=240470343234864&tin=02508201610067®Number=0000000000098096&sum=110051 [12:48:02]StoreToDocumentArchive [12:48:02]shift 325 fd 68575 [12:48:02]save to /storage/0325/doc_00068575 [12:48:02]save last doc name /storage/0325/doc_00068575 to /storage/kkm_last_doc_name [12:48:02]save OK [12:48:02]Clear old archive folders... [12:48:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:48:02]tlvbuf is 00A805E0 [12:48:02]SAM_PROTO_ClearQueue [12:48:02]wFMCommunicate request_size=4 [12:48:02]MH_SAM_APDU [12:48:02]CAPDU: 80 09 00 00 [12:48:02]Write to MH i2c: E2 08 00 D5 23 80 09 00 00 00 00 00 00 6A [12:48:02]Write i2c OK [12:48:02]MH_I2C_Read... [12:48:02]*** iso7816_exchange 80 09 00 00... 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 D5 23 00 90 00 6C [12:48:02]RAPDU: 90 00 [12:48:02]wFMCommunicate OK [12:48:02]SAM_PROTO_ClearQueue done [12:48:02]KKMCreateOFDPacket [12:48:02]OFDProtocolAddRootSTLVToBuf [12:48:02]FM_MakeSignedData [12:48:02]FM_MakeSignedData [12:48:02]SAM_PROTO_SignData [12:48:02]wFMCommunicate request_size=4 [12:48:02]MH_SAM_APDU [12:48:02]CAPDU: 80 0D 01 02 [12:48:02]Write to MH i2c: E2 08 00 D6 23 80 0D 01 02 00 00 00 00 72 [12:48:02]Write i2c OK [12:48:02]MH_I2C_Read... [12:48:02]*** iso7816_exchange 80 0D 01 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 D6 23 00 90 00 6D [12:48:02]RAPDU: 90 00 [12:48:02]wFMCommunicate OK [12:48:02]wFMCommunicate request_size=255 [12:48:02]MH_SAM_APDU [12:48: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 34 FF 03 08 00 03 42 40 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E3 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E3 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 2D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E3 AD 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 05 0D 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 DF 0B 01 00 35 04 06 00 DA [12:48:02]Write to MH i2c: E2 02 01 D7 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 34 FF 03 08 00 03 42 40 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E3 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E3 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 2D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E3 AD 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 05 0D 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 DF 0B 01 00 35 04 06 00 DA 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 D7 23 00 90 00 6E [12:48:02]RAPDU: 90 00 [12:48:02]wFMCommunicate OK [12:48:02]wFMCommunicate request_size=10 [12:48:02]MH_SAM_APDU [12:48:02]CAPDU: 80 0D 02 02 05 B4 DD 63 35 30 [12:48:02]Write to MH i2c: E2 0D 00 D8 23 80 0D 02 02 05 00 B4 DD 63 35 30 00 00 D8 [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 D8 23 00 90 00 6F [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 D9 23 80 0D 03 02 00 00 00 00 77 [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 D9 23 00 54 88 29 B6 93 13 E4 88 90 00 45 [12:48:02]RAPDU: 54 88 29 B6 93 13 E4 88 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 DA 23 80 11 00 00 00 00 00 00 77 [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 DA 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 C2 [12:48:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [12:48:02]wFMCommunicate OK [12:48:02]CreateOFDProtocolMessage done [12:48:02]OFDSenderStorePacket 68575 [12:48:02]StoreOFDPacket docnum=68575 [12:48:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 7C B1 07 01 58 CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 42 40 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E3 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E3 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 2D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E3 AD 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 05 0D 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 DF 0B 01 00 35 04 06 00 DA B4 DD 63 35 30 54 88 29 B6 93 13 E4 88 [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/00068575 [12:48:02]NVStorageSaveData ofd_packets/00068575 [12:48:02]File name is /storage/ofd_packets/00068575 [12:48:02]Write 301 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 DB 23 FE [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 DB 23 00 00 00 00 00 FF 0F 13 [12:48:02]RasterBufferAndPrint [12:48:02]line Счет N : (1)706704 [12:48:02]line ИНН: 02508201610067 [12:48:02]line Контрольно-Кассовый Чек [12:48:02]line ПРОДАЖА [12:48:02]line ТРК (МРК, ГНК) : 42 [12:48:02]line Товар: 2710124130 [12:48:02]line Аи-92-К-4 [12:48:02]line 16.450 * 66.90 [12:48:02]line = 1100.51 [12:48:02]line НДС 12% НСП 1% [12:48:02]line > о реализуемом товаре [12:48:02]line ИТОГО: 1100.51 [12:48:02]line НСП 1% : 9.74 [12:48:02]line НДС 12% : 116.87 [12:48:02]line Наличными: 0.00 [12:48:02]line Безнал.: 1100.51 [12:48:02]line Место: АЗС № 62 "Партнер Нефть" [12:48:02]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [12:48:02]line СНО: Общий режим [12:48:02]line Чек 73 04.06.2024 12:48 [12:48:02]line Смена: 325 ФФД: 1.0 [12:48:02]line ЗНМ: 0300000181 [12:48:02]line РНМ: 0000000000098096 [12:48:02]line Версия ККМ: 001 [12:48:02]line Платежная система: АКБ Кыргызстан [12:48:02]line ФМ: 0000000000965400 [12:48:02]line ФД: 68575 [12:48:02]line ФПД: 240470343234864 [12:48:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T124805&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68575&fm=240470343234864&tin=02508201610067®Number=0000000000098096&sum=110051 [12:48:02]OFD Sender: Processing packet 68575 [packets to send 26, broken 25] [12:48:02]ProducePacketName [12:48:02]name=ofd_packets/00068575 [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:03]Connected sock=10 [12:48:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 7C B1 07 01 58 CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 42 40 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E3 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E3 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 2D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E3 AD 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 05 0D 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 DF 0B 01 00 35 04 06 00 DA B4 DD 63 35 30 54 88 29 B6 93 13 E4 88 [12:48:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 16 B4 47 00 33 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 39 36 35 34 30 30 10 04 04 00 DF 0B 01 00 F4 03 04 00 FD B3 5E 66 B6 04 01 00 00 E7 93 46 BF 2B B1 C3 93 [12:48:03]CommunicateWithHost err = 0 [12:48:03]CheckOFDResponse [12:48:03]1017 (14) - 77093643461234 [12:48:03]1041 (16) - 0000000000965400 [12:48:03]1040 (4) - 68575 [12:48:03]1012 (4) - 04.06.2024 06:28 [12:48:03]1206 (1) - 0 [12:48:03]OFD Sender: Remove packet 68575 [12:48:03]ProducePacketName [12:48:03]name=ofd_packets/00068575 [12:48:03]NVStorageDeleteData [12:48:03]Write to MH i2c: 01 00 00 05 24 29 [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 05 24 00 00 00 00 00 F6 0C 32 [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 3326 [12:48:03]MH_Cut [12:48:03]Write to MH i2c: D1 01 00 0C 24 01 02 [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 0C 24 00 01 [12:48:03]Write to MH i2c: 01 00 00 0D 24 31 [12:48:03]Write i2c OK [12:48:03]MH_I2C_Read... [12:48:03]OFD Sender: No OFD packet to send [12:48:04]*** Cut start [12:48:04]*** Partial cut [12:48:04]*** CUTSNS_PIN = 1 [12:48:04]*** 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 0D 24 00 00 00 00 00 FF 0F 46 [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 0E 24 80 11 00 00 00 00 00 00 AC [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 0E 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 F7 [12:48:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 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 0F 24 80 13 00 00 00 00 00 00 AF [12:48:04]Write i2c OK [12:48:04]MH_I2C_Read... [12:48:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:48:05]Read from MH i2c: E2 [12:48:05]MH_I2C_Read... [12:48:05]Read from MH i2c: E2 62 00 [12:48:05]MH_I2C_Read... [12:48:05]Read from MH i2c: E2 62 00 0F 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 DF 0B 01 00 0E 04 04 00 45 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 DB [12:48:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 DF 0B 01 00 0E 04 04 00 45 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 [12:48:05]wFMCommunicate OK [12:48:05]SAM_PROTO_GetFieldsCounters done [12:48:05]requested_item shift.num is exist - process it [12:48:05]requested_item shift.opened is exist - process it [12:48:05]req_shift_opened [12:48:05]FM_GetShiftState [12:48:05]SAM_PROTO_GetShiftState [12:48:05]wFMCommunicate request_size=4 [12:48:05]MH_SAM_APDU [12:48:05]CAPDU: 80 13 01 00 [12:48:05]Write to MH i2c: E2 08 00 10 24 80 13 01 00 00 00 00 00 B1 [12:48:05]Write i2c OK [12:48:05]MH_I2C_Read... [12:48:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:48:05]Read from MH i2c: E2 [12:48:05]MH_I2C_Read... [12:48:05]Read from MH i2c: E2 0E 00 [12:48:05]MH_I2C_Read... [12:48:05]Read from MH i2c: E2 0E 00 10 24 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 4D [12:48:05]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [12:48:05]wFMCommunicate OK [12:48:05]SAM_PROTO_GetShiftState done [12:48:05]FM_GetShiftState done [12:48:05]req_shift_opened done [12:48:05]requested_item shift.open_date is exist - process it [12:48:05]req_shift_open_date [12:48:05]req_shift_open_date done [12:48:05]produce_requested_data done [12:48:05]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68575,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [12:48:05]process_action_free close_receipt [12:48:05]json_value_free [12:48:05]json_value_free done [12:48:05]process_json_proto returns [12:48:05]Send response to host [12:48:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68575,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [12:48:05]free response buf [12:48:05]execute_script done [12:48:05]execute_script returns [12:48:05]free content buf [12:48:05]Sock 7.Close socket [12:48:05]Sock 7.Thread stoped [12:48:08]OFD Sender: No OFD packet to send [12:48:13]OFD Sender: No OFD packet to send [12:48:18]OFD Sender: No OFD packet to send [12:48:23]OFD Sender: No OFD packet to send [12:48:28]OFD Sender: No OFD packet to send [12:48:33]OFD Sender: No OFD packet to send [12:48:38]OFD Sender: No OFD packet to send [12:48:43]OFD Sender: No OFD packet to send [12:48:48]OFD Sender: No OFD packet to send [12:48:53]OFD Sender: No OFD packet to send [12:48:58]OFD Sender: No OFD packet to send [12:49:03]OFD Sender: No OFD packet to send [12:49:05]accept exits with 9 [12:49:05]New connection [12:49:05]New thread 3067227492 created [12:49:05]Thread 3067084132 joined [12:49:05]Waiting for new connection... [12:49:05] Sock 9.Parse request [12:49:05]Sock 9.Check first char [12:49:05]Sock 9.First char is OK [12:49:05]request: POST /json_proto HTTP/1.0 [12:49:05]Method: POST [12:49:05]URL: /json_proto [12:49:05]Method is POST - this is cgi request [12:49:05]url: /json_proto [12:49:05]query_string will be loaded in cgi processing [12:49:05]execute_cgi json_proto POST (null) [12:49:05]execute_cgi path=json_proto method=POST [12:49:05]POST find Content-Length [12:49:05]Host: 172.17.36.132:8080 [12:49:05]Content-Length: 793 [12:49:05]Content-Type: application/json [12:49:05] [12:49:05]POST finish read [12:49:05]Found Content-Length = 793 [12:49:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706705", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 30.000, "sum" : 2007.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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2007.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:49:05]execute_script... [12:49: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)706705", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 30.000, "sum" : 2007.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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2007.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:49:05]POST & json_proto [12:49:05]process_json_proto [12:49:05]json parsed OK: [12:49:05]protocol is kg_v1.0 [12:49:05]action value=close_receipt [12:49:05]process_action close_receipt [12:49:05]cmd_close_receipt [12:49:05]MH_GetDate [12:49:05]Write to MH i2c: F0 00 00 11 24 24 [12:49:05]Write i2c OK [12:49:05]MH_I2C_Read... [12:49:05]Read from MH i2c: F0 [12:49:05]MH_I2C_Read... [12:49:05]Read from MH i2c: F0 09 00 [12:49:05]MH_I2C_Read... [12:49:05]Read from MH i2c: F0 09 00 11 24 00 45 0D 5F 66 B2 22 B0 64 2C [12:49:05]GetLastDocTimeStamp 1717505285 [12:49:05]current date 1717505349 [12:49:05]FM_GetShiftState [12:49:05]SAM_PROTO_GetShiftState [12:49:05]wFMCommunicate request_size=4 [12:49:05]MH_SAM_APDU [12:49:05]CAPDU: 80 13 01 00 [12:49:05]Write to MH i2c: E2 08 00 12 24 80 13 01 00 00 00 00 00 B3 [12:49:05]Write i2c OK [12:49:05]MH_I2C_Read... [12:49:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:49:05]Read from MH i2c: E2 [12:49:05]MH_I2C_Read... [12:49:05]Read from MH i2c: E2 0E 00 [12:49:05]MH_I2C_Read... [12:49:05]Read from MH i2c: E2 0E 00 12 24 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 4F [12:49:05]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [12:49:05]wFMCommunicate OK [12:49:05]SAM_PROTO_GetShiftState done [12:49:05]FM_GetShiftState done [12:49:05]opened in 1717460590 [12:49:05]opened+sec_in_day 1717546990 [12:49:05]quantity*price = 200700 [12:49:05]sum+1 = 200701 [12:49:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2007.00 НСП 1% : 17.76 НДС 12% : 213.13 Наличными: 0.00 Безнал.: 2007.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 74 04.06.2024 12:49 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000965400 ФД: 68576 ФПД: 124421742380931 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T124909&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68576&fm=124421742380931&tin=02508201610067®Number=0000000000098096&sum=200700 [12:49:06]StoreToDocumentArchive [12:49:06]shift 325 fd 68576 [12:49:06]save to /storage/0325/doc_00068576 [12:49:06]save last doc name /storage/0325/doc_00068576 to /storage/kkm_last_doc_name [12:49:06]save OK [12:49:06]Clear old archive folders... [12:49:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:49:06]tlvbuf is 00A80380 [12:49:06]SAM_PROTO_ClearQueue [12:49:06]wFMCommunicate request_size=4 [12:49:06]MH_SAM_APDU [12:49:06]CAPDU: 80 09 00 00 [12:49:06]Write to MH i2c: E2 08 00 1F 24 80 09 00 00 00 00 00 00 B5 [12:49:06]Write i2c OK [12:49:06]MH_I2C_Read... [12:49:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:49:06]Read from MH i2c: E2 [12:49:06]MH_I2C_Read... [12:49:06]Read from MH i2c: E2 03 00 [12:49:06]MH_I2C_Read... [12:49:06]Read from MH i2c: E2 03 00 1F 24 00 90 00 B7 [12:49:06]RAPDU: 90 00 [12:49:06]wFMCommunicate OK [12:49:06]SAM_PROTO_ClearQueue done [12:49:06]KKMCreateOFDPacket [12:49:06]OFDProtocolAddRootSTLVToBuf [12:49:06]FM_MakeSignedData [12:49:06]FM_MakeSignedData [12:49:06]SAM_PROTO_SignData [12:49:06]wFMCommunicate request_size=4 [12:49:06]MH_SAM_APDU [12:49:06]CAPDU: 80 0D 01 02 [12:49:06]Write to MH i2c: E2 08 00 20 24 80 0D 01 02 00 00 00 00 BD [12:49:06]Write i2c OK [12:49:06]MH_I2C_Read... [12:49:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:49:06]Read from MH i2c: E2 [12:49:06]MH_I2C_Read... [12:49:06]Read from MH i2c: E2 03 00 [12:49:06]MH_I2C_Read... [12:49:06]Read from MH i2c: E2 03 00 20 24 00 90 00 B8 [12:49:06]RAPDU: 90 00 [12:49:06]wFMCommunicate OK [12:49:06]wFMCommunicate request_size=255 [12:49:06]MH_SAM_APDU [12:49:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FC 0F 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 0F 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 53 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 0F 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 45 0D 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 E0 0B 01 00 35 04 06 00 71 [12:49:06]Write to MH i2c: E2 02 01 21 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 34 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FC 0F 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 0F 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 53 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 0F 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 45 0D 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 E0 0B 01 00 35 04 06 00 71 00 00 5E [12:49:06]Write i2c OK [12:49:06]MH_I2C_Read... [12:49:06]Read from MH i2c: E2 [12:49:06]MH_I2C_Read... [12:49:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:49:06]Read from MH i2c: E2 03 00 [12:49:06]MH_I2C_Read... [12:49:06]Read from MH i2c: E2 03 00 21 24 00 90 00 B9 [12:49:06]RAPDU: 90 00 [12:49:06]wFMCommunicate OK [12:49:06]wFMCommunicate request_size=10 [12:49:06]MH_SAM_APDU [12:49:06]CAPDU: 80 0D 02 02 05 29 31 C1 C7 83 [12:49:06]Write to MH i2c: E2 0D 00 22 24 80 0D 02 02 05 00 29 31 C1 C7 83 00 00 2F [12:49:06]Write i2c OK [12:49:06]MH_I2C_Read... [12:49:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:49:07]Read from MH i2c: E2 [12:49:07]MH_I2C_Read... [12:49:07]Read from MH i2c: E2 03 00 [12:49:07]MH_I2C_Read... [12:49:07]Read from MH i2c: E2 03 00 22 24 00 90 00 BA [12:49:07]RAPDU: 90 00 [12:49:07]wFMCommunicate OK [12:49:07]wFMCommunicate request_size=4 [12:49:07]MH_SAM_APDU [12:49:07]CAPDU: 80 0D 03 02 [12:49:07]Write to MH i2c: E2 08 00 23 24 80 0D 03 02 00 00 00 00 C2 [12:49:07]Write i2c OK [12:49:07]MH_I2C_Read... [12:49:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:49:07]Read from MH i2c: E2 [12:49:07]MH_I2C_Read... [12:49:07]Read from MH i2c: E2 0B 00 [12:49:07]MH_I2C_Read... [12:49:07]Read from MH i2c: E2 0B 00 23 24 00 C1 AA 54 BF D3 58 03 CC 90 00 3B [12:49:07]RAPDU: C1 AA 54 BF D3 58 03 CC 90 00 [12:49:07]wFMCommunicate OK [12:49:07]SAM_PROTO_SignData done [12:49:07]FM_MakeSignedData done [12:49:07]CreateOFDProtocolMessage [12:49:07]wFMCommunicate request_size=4 [12:49:07]MH_SAM_APDU [12:49:07]CAPDU: 80 11 00 00 [12:49:07]Write to MH i2c: E2 08 00 24 24 80 11 00 00 00 00 00 00 C2 [12:49:07]Write i2c OK [12:49:07]MH_I2C_Read... [12:49:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:49:07]Read from MH i2c: E2 [12:49:07]MH_I2C_Read... [12:49:07]Read from MH i2c: E2 17 00 [12:49:07]MH_I2C_Read... [12:49:07]Read from MH i2c: E2 17 00 24 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 0D [12:49:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [12:49:07]wFMCommunicate OK [12:49:07]CreateOFDProtocolMessage done [12:49:07]OFDSenderStorePacket 68576 [12:49:07]StoreOFDPacket docnum=68576 [12:49:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 BB BA 07 01 A0 64 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FC 0F 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 0F 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 53 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 0F 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 45 0D 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 E0 0B 01 00 35 04 06 00 71 29 31 C1 C7 83 C1 AA 54 BF D3 58 03 CC [12:49:07]CheckFolder [12:49:07]dirname=/storage/ofd_packets [12:49:07]CheckFolder done [12:49:07]ProducePacketName [12:49:07]name=ofd_packets/00068576 [12:49:07]NVStorageSaveData ofd_packets/00068576 [12:49:07]File name is /storage/ofd_packets/00068576 [12:49:07]Write 301 bytes [12:49:07]NVStorageSaveData done [12:49:07]OFDSenderStorePacket done [12:49:07]KKMCreateOFDPacket done [12:49:07]NVStorageSaveData kkm_last_timestamp [12:49:07]File name is /storage/kkm_last_timestamp [12:49:07]Write 4 bytes [12:49:07]NVStorageSaveData done [12:49:07]ExternCall_PrintAddStr [12:49:07]wPrintStart [12:49:07]Write to MH i2c: 01 00 00 25 24 49 [12:49:07]Write i2c OK [12:49:07]MH_I2C_Read... [12:49:07]Read from MH i2c: 01 [12:49:07]MH_I2C_Read... [12:49:07]Read from MH i2c: 01 07 00 [12:49:07]MH_I2C_Read... [12:49:07]Read from MH i2c: 01 07 00 25 24 00 00 00 00 00 FF 0F 5E [12:49:07]RasterBufferAndPrint [12:49:07]line Счет N : (1)706705 [12:49:07]line ИНН: 02508201610067 [12:49:07]line Контрольно-Кассовый Чек [12:49:07]line ПРОДАЖА [12:49:07]line ТРК (МРК, ГНК) : 53 [12:49:07]line Товар: 2710124130 [12:49:07]line Аи-92-К-4 [12:49:07]line 30.000 * 66.90 [12:49:07]line = 2007.00 [12:49:07]line НДС 12% НСП 1% [12:49:07]line > о реализуемом товаре [12:49:07]line ИТОГО: 2007.00 [12:49:07]line НСП 1% : 17.76 [12:49:07]line НДС 12% : 213.13 [12:49:07]line Наличными: 0.00 [12:49:07]line Безнал.: 2007.00 [12:49:07]line Место: АЗС № 62 "Партнер Нефть" [12:49:07]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [12:49:07]line СНО: Общий режим [12:49:07]line Чек 74 04.06.2024 12:49 [12:49:07]line Смена: 325 ФФД: 1.0 [12:49:07]line ЗНМ: 0300000181 [12:49:07]line РНМ: 0000000000098096 [12:49:07]line Версия ККМ: 001 [12:49:07]line Платежная система: KICB Банк [12:49:07]line ФМ: 0000000000965400 [12:49:07]line ФД: 68576 [12:49:07]line ФПД: 124421742380931 [12:49:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T124909&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68576&fm=124421742380931&tin=02508201610067®Number=0000000000098096&sum=200700 [12:49:07]OFD Sender: Processing packet 68576 [packets to send 26, broken 25] [12:49:07]ProducePacketName [12:49:07]name=ofd_packets/00068576 [12:49:07]OFD Sender: To server: pG, [12:49:07]CommunicateWithHost lk.salyk.kg:30040 [12:49:07]ConnectInit lk.salyk.kg [12:49:07]written 0, free lines is 4095 [12:49:07]Connected sock=10 [12:49:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 BB BA 07 01 A0 64 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FC 0F 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 0F 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 53 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 0F 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 45 0D 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 E0 0B 01 00 35 04 06 00 71 29 31 C1 C7 83 C1 AA 54 BF D3 58 03 CC [12:49:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 A6 A4 47 00 05 10 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 E0 0B 01 00 F4 03 04 00 3E B4 5E 66 B6 04 01 00 00 AE 1C 98 F3 6D E6 BF 2A [12:49:07]CommunicateWithHost err = 0 [12:49:07]CheckOFDResponse [12:49:07]1017 (14) - 77093643461234 [12:49:07]1041 (16) - 0000000000965400 [12:49:07]1040 (4) - 68576 [12:49:07]1012 (4) - 04.06.2024 06:29 [12:49:07]1206 (1) - 0 [12:49:07]OFD Sender: Remove packet 68576 [12:49:07]ProducePacketName [12:49:07]name=ofd_packets/00068576 [12:49:07]NVStorageDeleteData [12:49:07]Write to MH i2c: 01 00 00 4F 24 73 [12:49:07]Write i2c OK [12:49:07]MH_I2C_Read... [12:49:07]Read from MH i2c: 01 [12:49:07]MH_I2C_Read... [12:49:07]Read from MH i2c: 01 07 00 [12:49:07]MH_I2C_Read... [12:49:07]Read from MH i2c: 01 07 00 4F 24 00 00 00 00 00 E9 0C 6F [12:49:07]RasterBufferAndPrint [12:49:07]line [12:49:07]line [12:49:07]line [12:49:07]line [12:49:07]line [12:49:07]written 0, free lines is 3309 [12:49:07]MH_Cut [12:49:07]Write to MH i2c: D1 01 00 56 24 01 4C [12:49:07]Write i2c OK [12:49:07]MH_I2C_Read... [12:49:07]Read from MH i2c: D1 [12:49:07]MH_I2C_Read... [12:49:07]Read from MH i2c: D1 01 00 [12:49:07]MH_I2C_Read... [12:49:07]Read from MH i2c: D1 01 00 56 24 00 4B [12:49:07]Write to MH i2c: 01 00 00 57 24 7B [12:49:07]Write i2c OK [12:49:07]MH_I2C_Read... [12:49:08]OFD Sender: No OFD packet to send [12:49:08]*** Cut start [12:49:08]*** Partial cut [12:49:08]*** CUTSNS_PIN = 1 [12:49:08]*** CUTSNS_PIN = 0 [12:49:08]*** Brake cut motor [12:49:09]Read from MH i2c: 01 [12:49:09]MH_I2C_Read... [12:49:09]*** Stop cut motor [12:49:09]*** Cut end [12:49:09]Read from MH i2c: 01 07 00 [12:49:09]MH_I2C_Read... [12:49:09]Read from MH i2c: 01 07 00 57 24 00 00 00 00 00 FF 0F 90 [12:49:09]process_action close_receipt done [12:49:09]requested_data is exist [12:49:09]produce_requested_data [12:49:09]requested_item fm.sn is exist - process it [12:49:09]wFMCommunicate request_size=4 [12:49:09]MH_SAM_APDU [12:49:09]CAPDU: 80 11 00 00 [12:49:09]Write to MH i2c: E2 08 00 58 24 80 11 00 00 00 00 00 00 F6 [12:49:09]Write i2c OK [12:49:09]MH_I2C_Read... [12:49:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:49:09]Read from MH i2c: E2 [12:49:09]MH_I2C_Read... [12:49:09]Read from MH i2c: E2 17 00 [12:49:09]MH_I2C_Read... [12:49:09]Read from MH i2c: E2 17 00 58 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 41 [12:49:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [12:49:09]wFMCommunicate OK [12:49:09]requested_item fd.num is exist - process it [12:49:09]SAM_PROTO_GetFieldsCounters [12:49:09]wFMCommunicate request_size=4 [12:49:09]MH_SAM_APDU [12:49:09]CAPDU: 80 13 00 00 [12:49:09]Write to MH i2c: E2 08 00 59 24 80 13 00 00 00 00 00 00 F9 [12:49:09]Write i2c OK [12:49:09]MH_I2C_Read... [12:49:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:49:09]Read from MH i2c: E2 [12:49:09]MH_I2C_Read... [12:49:09]Read from MH i2c: E2 62 00 [12:49:09]MH_I2C_Read... [12:49:09]Read from MH i2c: E2 62 00 59 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 E0 0B 01 00 0E 04 04 00 45 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 29 [12:49:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 E0 0B 01 00 0E 04 04 00 45 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 [12:49:09]wFMCommunicate OK [12:49:09]SAM_PROTO_GetFieldsCounters done [12:49:09]requested_item shift.num is exist - process it [12:49:09]requested_item shift.opened is exist - process it [12:49:09]req_shift_opened [12:49:09]FM_GetShiftState [12:49:09]SAM_PROTO_GetShiftState [12:49:09]wFMCommunicate request_size=4 [12:49:09]MH_SAM_APDU [12:49:09]CAPDU: 80 13 01 00 [12:49:09]Write to MH i2c: E2 08 00 5A 24 80 13 01 00 00 00 00 00 FB [12:49:09]Write i2c OK [12:49:09]MH_I2C_Read... [12:49:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:49:09]Read from MH i2c: E2 [12:49:09]MH_I2C_Read... [12:49:09]Read from MH i2c: E2 0E 00 [12:49:09]MH_I2C_Read... [12:49:09]Read from MH i2c: E2 0E 00 5A 24 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 97 [12:49:09]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [12:49:09]wFMCommunicate OK [12:49:09]SAM_PROTO_GetShiftState done [12:49:09]FM_GetShiftState done [12:49:09]req_shift_opened done [12:49:09]requested_item shift.open_date is exist - process it [12:49:09]req_shift_open_date [12:49:09]req_shift_open_date done [12:49:09]produce_requested_data done [12:49:09]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68576,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [12:49:09]process_action_free close_receipt [12:49:09]json_value_free [12:49:09]json_value_free done [12:49:09]process_json_proto returns [12:49:09]Send response to host [12:49:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68576,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [12:49:09]free response buf [12:49:09]execute_script done [12:49:09]execute_script returns [12:49:09]free content buf [12:49:09]Sock 9.Close socket [12:49:09]Sock 9.Thread stoped [12:49:13]OFD Sender: No OFD packet to send [12:49:18]OFD Sender: No OFD packet to send [12:49:23]OFD Sender: No OFD packet to send [12:49:28]OFD Sender: No OFD packet to send [12:49:33]OFD Sender: No OFD packet to send [12:49:38]OFD Sender: No OFD packet to send [12:49:43]OFD Sender: No OFD packet to send [12:49:48]OFD Sender: No OFD packet to send [12:49:53]OFD Sender: No OFD packet to send [12:49:58]OFD Sender: No OFD packet to send [12:50:03]OFD Sender: No OFD packet to send [12:50:08]OFD Sender: No OFD packet to send [12:50:13]OFD Sender: No OFD packet to send [12:50:18]OFD Sender: No OFD packet to send [12:50:23]OFD Sender: No OFD packet to send [12:50:28]OFD Sender: No OFD packet to send [12:50:33]OFD Sender: No OFD packet to send [12:50:38]OFD Sender: No OFD packet to send [12:50:43]OFD Sender: No OFD packet to send [12:50:48]OFD Sender: No OFD packet to send [12:50:53]OFD Sender: No OFD packet to send [12:50:58]OFD Sender: No OFD packet to send [12:51:03]OFD Sender: No OFD packet to send [12:51:08]OFD Sender: No OFD packet to send [12:51:13]OFD Sender: No OFD packet to send [12:51:18]OFD Sender: No OFD packet to send [12:51:23]OFD Sender: No OFD packet to send [12:51:28]OFD Sender: No OFD packet to send [12:51:33]OFD Sender: No OFD packet to send [12:51:33]accept exits with 7 [12:51:33]New connection [12:51:33]New thread 3067084132 created [12:51:33]Thread 3067227492 joined [12:51:33]Waiting for new connection... [12:51:33] Sock 7.Parse request [12:51:33]Sock 7.Check first char [12:51:33]Sock 7.First char is OK [12:51:33]request: POST /json_proto HTTP/1.0 [12:51:33]Method: POST [12:51:33]URL: /json_proto [12:51:33]Method is POST - this is cgi request [12:51:33]url: /json_proto [12:51:33]query_string will be loaded in cgi processing [12:51:33]execute_cgi json_proto POST (null) [12:51:33]execute_cgi path=json_proto method=POST [12:51:33]POST find Content-Length [12:51:33]Host: 172.17.36.132:8080 [12:51:33]Content-Length: 843 [12:51:33]Content-Type: application/json [12:51:33] [12:51:33]POST finish read [12:51:33]Found Content-Length = 843 [12:51:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706706", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:51:33]execute_script... [12:51: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)706706", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:51:33]POST & json_proto [12:51:33]process_json_proto [12:51:33]json parsed OK: [12:51:33]protocol is kg_v1.0 [12:51:33]action value=close_receipt [12:51:33]process_action close_receipt [12:51:33]cmd_close_receipt [12:51:33]MH_GetDate [12:51:33]Write to MH i2c: F0 00 00 5B 24 6E [12:51:33]Write i2c OK [12:51:33]MH_I2C_Read... [12:51:33]Read from MH i2c: F0 [12:51:33]MH_I2C_Read... [12:51:33]Read from MH i2c: F0 09 00 [12:51:33]MH_I2C_Read... [12:51:33]Read from MH i2c: F0 09 00 5B 24 00 DA 0D 5F 66 B2 22 B0 64 0B [12:51:33]GetLastDocTimeStamp 1717505349 [12:51:33]current date 1717505498 [12:51:33]FM_GetShiftState [12:51:33]SAM_PROTO_GetShiftState [12:51:33]wFMCommunicate request_size=4 [12:51:33]MH_SAM_APDU [12:51:33]CAPDU: 80 13 01 00 [12:51:33]Write to MH i2c: E2 08 00 5C 24 80 13 01 00 00 00 00 00 FD [12:51:33]Write i2c OK [12:51:33]MH_I2C_Read... [12:51:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:51:33]Read from MH i2c: E2 [12:51:33]MH_I2C_Read... [12:51:33]Read from MH i2c: E2 0E 00 [12:51:33]MH_I2C_Read... [12:51:33]Read from MH i2c: E2 0E 00 5C 24 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 99 [12:51:33]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [12:51:33]wFMCommunicate OK [12:51:33]SAM_PROTO_GetShiftState done [12:51:33]FM_GetShiftState done [12:51:33]opened in 1717460590 [12:51:33]opened+sec_in_day 1717546990 [12:51:33]quantity*price = 100015 [12:51:33]sum+1 = 100017 [12:51:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 75 04.06.2024 12:51 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000965400 ФД: 68577 ФПД: 176035580878922 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T125138&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68577&fm=176035580878922&tin=02508201610067®Number=0000000000098096&sum=100016 [12:51:34]StoreToDocumentArchive [12:51:34]shift 325 fd 68577 [12:51:34]save to /storage/0325/doc_00068577 [12:51:34]save last doc name /storage/0325/doc_00068577 to /storage/kkm_last_doc_name [12:51:34]save OK [12:51:34]Clear old archive folders... [12:51:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:51:34]tlvbuf is B6F04840 [12:51:34]SAM_PROTO_ClearQueue [12:51:34]wFMCommunicate request_size=4 [12:51:34]MH_SAM_APDU [12:51:34]CAPDU: 80 09 00 00 [12:51:34]Write to MH i2c: E2 08 00 69 24 80 09 00 00 00 00 00 00 FF [12:51:34]Write i2c OK [12:51:34]MH_I2C_Read... [12:51:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:51:34]Read from MH i2c: E2 [12:51:34]MH_I2C_Read... [12:51:34]Read from MH i2c: E2 03 00 [12:51:34]MH_I2C_Read... [12:51:34]Read from MH i2c: E2 03 00 69 24 00 90 00 01 [12:51:34]RAPDU: 90 00 [12:51:34]wFMCommunicate OK [12:51:34]SAM_PROTO_ClearQueue done [12:51:34]KKMCreateOFDPacket [12:51:34]OFDProtocolAddRootSTLVToBuf [12:51:34]FM_MakeSignedData [12:51:34]FM_MakeSignedData [12:51:34]SAM_PROTO_SignData [12:51:34]wFMCommunicate request_size=4 [12:51:34]MH_SAM_APDU [12:51:34]CAPDU: 80 0D 01 02 [12:51:34]Write to MH i2c: E2 08 00 6A 24 80 0D 01 02 00 00 00 00 07 [12:51:34]Write i2c OK [12:51:34]MH_I2C_Read... [12:51:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:51:34]Read from MH i2c: E2 [12:51:34]MH_I2C_Read... [12:51:34]Read from MH i2c: E2 03 00 [12:51:34]MH_I2C_Read... [12:51:34]Read from MH i2c: E2 03 00 6A 24 00 90 00 02 [12:51:34]RAPDU: 90 00 [12:51:34]wFMCommunicate OK [12:51:34]wFMCommunicate request_size=255 [12:51:34]MH_SAM_APDU [12:51:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 DA 0D 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 E1 0B 01 00 35 04 06 00 A0 [12:51:34]Write to MH i2c: E2 02 01 6B 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 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 DA 0D 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 E1 0B 01 00 35 04 06 00 A0 00 00 78 [12:51:34]Write i2c OK [12:51:34]MH_I2C_Read... [12:51:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:51:35]Read from MH i2c: E2 [12:51:35]MH_I2C_Read... [12:51:35]Read from MH i2c: E2 03 00 [12:51:35]MH_I2C_Read... [12:51:35]Read from MH i2c: E2 03 00 6B 24 00 90 00 03 [12:51:35]RAPDU: 90 00 [12:51:35]wFMCommunicate OK [12:51:35]wFMCommunicate request_size=10 [12:51:35]MH_SAM_APDU [12:51:35]CAPDU: 80 0D 02 02 05 1A 7A 44 20 4A [12:51:35]Write to MH i2c: E2 0D 00 6C 24 80 0D 02 02 05 00 1A 7A 44 20 4A 00 00 56 [12:51:35]Write i2c OK [12:51:35]MH_I2C_Read... [12:51:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:51:35]Read from MH i2c: E2 [12:51:35]MH_I2C_Read... [12:51:35]Read from MH i2c: E2 03 00 [12:51:35]MH_I2C_Read... [12:51:35]Read from MH i2c: E2 03 00 6C 24 00 90 00 04 [12:51:35]RAPDU: 90 00 [12:51:35]wFMCommunicate OK [12:51:35]wFMCommunicate request_size=4 [12:51:35]MH_SAM_APDU [12:51:35]CAPDU: 80 0D 03 02 [12:51:35]Write to MH i2c: E2 08 00 6D 24 80 0D 03 02 00 00 00 00 0C [12:51:35]Write i2c OK [12:51:35]MH_I2C_Read... [12:51:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:51:35]Read from MH i2c: E2 [12:51:35]MH_I2C_Read... [12:51:35]Read from MH i2c: E2 0B 00 [12:51:35]MH_I2C_Read... [12:51:35]Read from MH i2c: E2 0B 00 6D 24 00 DB 6D 06 7D 73 26 02 70 90 00 E3 [12:51:35]RAPDU: DB 6D 06 7D 73 26 02 70 90 00 [12:51:35]wFMCommunicate OK [12:51:35]SAM_PROTO_SignData done [12:51:35]FM_MakeSignedData done [12:51:35]CreateOFDProtocolMessage [12:51:35]wFMCommunicate request_size=4 [12:51:35]MH_SAM_APDU [12:51:35]CAPDU: 80 11 00 00 [12:51:35]Write to MH i2c: E2 08 00 6E 24 80 11 00 00 00 00 00 00 0C [12:51:35]Write i2c OK [12:51:35]MH_I2C_Read... [12:51:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:51:35]Read from MH i2c: E2 [12:51:35]MH_I2C_Read... [12:51:35]Read from MH i2c: E2 17 00 [12:51:35]MH_I2C_Read... [12:51:35]Read from MH i2c: E2 17 00 6E 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 57 [12:51:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [12:51:35]wFMCommunicate OK [12:51:35]CreateOFDProtocolMessage done [12:51:35]OFDSenderStorePacket 68577 [12:51:35]StoreOFDPacket docnum=68577 [12:51:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 72 C8 07 01 80 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 DA 0D 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 E1 0B 01 00 35 04 06 00 A0 1A 7A 44 20 4A DB 6D 06 7D 73 26 02 70 [12:51:35]CheckFolder [12:51:35]dirname=/storage/ofd_packets [12:51:35]CheckFolder done [12:51:35]ProducePacketName [12:51:35]name=ofd_packets/00068577 [12:51:35]NVStorageSaveData ofd_packets/00068577 [12:51:35]File name is /storage/ofd_packets/00068577 [12:51:35]Write 301 bytes [12:51:35]NVStorageSaveData done [12:51:35]OFDSenderStorePacket done [12:51:35]KKMCreateOFDPacket done [12:51:35]NVStorageSaveData kkm_last_timestamp [12:51:35]File name is /storage/kkm_last_timestamp [12:51:35]Write 4 bytes [12:51:35]NVStorageSaveData done [12:51:35]ExternCall_PrintAddStr [12:51:35]wPrintStart [12:51:35]Write to MH i2c: 01 00 00 6F 24 93 [12:51:35]Write i2c OK [12:51:35]MH_I2C_Read... [12:51:35]Read from MH i2c: 01 [12:51:35]MH_I2C_Read... [12:51:35]Read from MH i2c: 01 07 00 [12:51:35]MH_I2C_Read... [12:51:35]Read from MH i2c: 01 07 00 6F 24 00 00 00 00 00 FF 0F A8 [12:51:35]RasterBufferAndPrint [12:51:35]line Счет N : (1)706706 [12:51:35]line ИНН: 02508201610067 [12:51:35]line Контрольно-Кассовый Чек [12:51:35]line ПРОДАЖА [12:51:35]line ТРК (МРК, ГНК) : 32 [12:51:35]line Товар: 2710124130 [12:51:35]line Аи-92-К-4 [12:51:35]line 14.950 * 66.90 [12:51:35]line = 1000.16 [12:51:35]line НДС 12% НСП 1% [12:51:35]line > о реализуемом товаре [12:51:35]line ИТОГО: 1000.16 [12:51:35]line НСП 1% : 8.85 [12:51:35]line НДС 12% : 106.21 [12:51:35]line Наличными: 0.00 [12:51:35]line Безнал.: 1000.16 [12:51:35]line Место: АЗС № 62 "Партнер Нефть" [12:51:35]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [12:51:35]line СНО: Общий режим [12:51:35]line Чек 75 04.06.2024 12:51 [12:51:35]line Смена: 325 ФФД: 1.0 [12:51:35]line ЗНМ: 0300000181 [12:51:35]line РНМ: 0000000000098096 [12:51:35]line Версия ККМ: 001 [12:51:35]line Платежная система: АКБ Кыргызстан [12:51:35]line ФМ: 0000000000965400 [12:51:35]line ФД: 68577 [12:51:35]line ФПД: 176035580878922 [12:51:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T125138&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68577&fm=176035580878922&tin=02508201610067®Number=0000000000098096&sum=100016 [12:51:35]OFD Sender: Processing packet 68577 [packets to send 26, broken 25] [12:51:35]ProducePacketName [12:51:35]name=ofd_packets/00068577 [12:51:35]OFD Sender: To server: pG, [12:51:35]CommunicateWithHost lk.salyk.kg:30040 [12:51:35]ConnectInit lk.salyk.kg [12:51:35]written 0, free lines is 4095 [12:51:35]Connected sock=10 [12:51:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 72 C8 07 01 80 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 DA 0D 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 E1 0B 01 00 35 04 06 00 A0 1A 7A 44 20 4A DB 6D 06 7D 73 26 02 70 [12:51:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 C5 EA 47 00 13 2A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 E1 0B 01 00 F4 03 04 00 D2 B4 5E 66 B6 04 01 00 00 95 A6 60 82 D3 78 EF 77 [12:51:35]CommunicateWithHost err = 0 [12:51:35]CheckOFDResponse [12:51:35]1017 (14) - 77093643461234 [12:51:35]1041 (16) - 0000000000965400 [12:51:35]1040 (4) - 68577 [12:51:35]1012 (4) - 04.06.2024 06:31 [12:51:35]1206 (1) - 0 [12:51:35]OFD Sender: Remove packet 68577 [12:51:35]ProducePacketName [12:51:35]name=ofd_packets/00068577 [12:51:35]NVStorageDeleteData [12:51:36]Write to MH i2c: 01 00 00 99 24 BD [12:51:36]Write i2c OK [12:51:36]MH_I2C_Read... [12:51:36]Read from MH i2c: 01 [12:51:36]MH_I2C_Read... [12:51:36]Read from MH i2c: 01 07 00 [12:51:36]MH_I2C_Read... [12:51:36]Read from MH i2c: 01 07 00 99 24 00 00 00 00 00 E8 0C B8 [12:51:36]RasterBufferAndPrint [12:51:36]line [12:51:36]line [12:51:36]line [12:51:36]line [12:51:36]line [12:51:36]written 0, free lines is 3311 [12:51:36]MH_Cut [12:51:36]Write to MH i2c: D1 01 00 A0 24 01 96 [12:51:36]Write i2c OK [12:51:36]MH_I2C_Read... [12:51:36]Read from MH i2c: D1 [12:51:36]MH_I2C_Read... [12:51:36]Read from MH i2c: D1 01 00 [12:51:36]MH_I2C_Read... [12:51:36]Read from MH i2c: D1 01 00 A0 24 00 95 [12:51:36]Write to MH i2c: 01 00 00 A1 24 C5 [12:51:36]Write i2c OK [12:51:36]MH_I2C_Read... [12:51:36]OFD Sender: No OFD packet to send [12:51:36]*** Cut start [12:51:36]*** Partial cut [12:51:36]*** CUTSNS_PIN = 1 [12:51:36]*** CUTSNS_PIN = 0 [12:51:37]*** Brake cut motor [12:51:37]Read from MH i2c: 01 [12:51:37]MH_I2C_Read... [12:51:37]*** Stop cut motor [12:51:37]*** Cut end [12:51:37]Read from MH i2c: 01 07 00 [12:51:37]MH_I2C_Read... [12:51:37]Read from MH i2c: 01 07 00 A1 24 00 00 00 00 00 FF 0F DA [12:51:37]process_action close_receipt done [12:51:37]requested_data is exist [12:51:37]produce_requested_data [12:51:37]requested_item fm.sn is exist - process it [12:51:37]wFMCommunicate request_size=4 [12:51:37]MH_SAM_APDU [12:51:37]CAPDU: 80 11 00 00 [12:51:37]Write to MH i2c: E2 08 00 A2 24 80 11 00 00 00 00 00 00 40 [12:51:37]Write i2c OK [12:51:37]MH_I2C_Read... [12:51:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:51:37]Read from MH i2c: E2 [12:51:37]MH_I2C_Read... [12:51:37]Read from MH i2c: E2 17 00 [12:51:37]MH_I2C_Read... [12:51:37]Read from MH i2c: E2 17 00 A2 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 8B [12:51:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [12:51:37]wFMCommunicate OK [12:51:37]requested_item fd.num is exist - process it [12:51:37]SAM_PROTO_GetFieldsCounters [12:51:37]wFMCommunicate request_size=4 [12:51:37]MH_SAM_APDU [12:51:37]CAPDU: 80 13 00 00 [12:51:37]Write to MH i2c: E2 08 00 A3 24 80 13 00 00 00 00 00 00 43 [12:51:37]Write i2c OK [12:51:37]MH_I2C_Read... [12:51:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:51:37]Read from MH i2c: E2 [12:51:37]MH_I2C_Read... [12:51:37]Read from MH i2c: E2 62 00 [12:51:37]MH_I2C_Read... [12:51:37]Read from MH i2c: E2 62 00 A3 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 E1 0B 01 00 0E 04 04 00 45 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 77 [12:51:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 E1 0B 01 00 0E 04 04 00 45 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 [12:51:37]wFMCommunicate OK [12:51:37]SAM_PROTO_GetFieldsCounters done [12:51:37]requested_item shift.num is exist - process it [12:51:37]requested_item shift.opened is exist - process it [12:51:37]req_shift_opened [12:51:37]FM_GetShiftState [12:51:37]SAM_PROTO_GetShiftState [12:51:37]wFMCommunicate request_size=4 [12:51:37]MH_SAM_APDU [12:51:37]CAPDU: 80 13 01 00 [12:51:37]Write to MH i2c: E2 08 00 A4 24 80 13 01 00 00 00 00 00 45 [12:51:37]Write i2c OK [12:51:37]MH_I2C_Read... [12:51:37]Read from MH i2c: E2 [12:51:37]MH_I2C_Read... [12:51:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:51:37]Read from MH i2c: E2 0E 00 [12:51:37]MH_I2C_Read... [12:51:37]Read from MH i2c: E2 0E 00 A4 24 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 E1 [12:51:37]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [12:51:37]wFMCommunicate OK [12:51:37]SAM_PROTO_GetShiftState done [12:51:37]FM_GetShiftState done [12:51:37]req_shift_opened done [12:51:37]requested_item shift.open_date is exist - process it [12:51:37]req_shift_open_date [12:51:37]req_shift_open_date done [12:51:37]produce_requested_data done [12:51:37]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68577,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [12:51:37]process_action_free close_receipt [12:51:37]json_value_free [12:51:37]json_value_free done [12:51:37]process_json_proto returns [12:51:37]Send response to host [12:51:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68577,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [12:51:37]free response buf [12:51:37]execute_script done [12:51:37]execute_script returns [12:51:37]free content buf [12:51:37]Sock 7.Close socket [12:51:37]Sock 7.Thread stoped [12:51:41]OFD Sender: No OFD packet to send [12:51:46]OFD Sender: No OFD packet to send [12:51:51]OFD Sender: No OFD packet to send [12:51:56]OFD Sender: No OFD packet to send [12:52:01]OFD Sender: No OFD packet to send [12:52:06]OFD Sender: No OFD packet to send [12:52:11]OFD Sender: No OFD packet to send [12:52:16]OFD Sender: No OFD packet to send [12:52:21]OFD Sender: No OFD packet to send [12:52:26]OFD Sender: No OFD packet to send [12:52:31]OFD Sender: No OFD packet to send [12:52:36]OFD Sender: No OFD packet to send [12:52:41]OFD Sender: No OFD packet to send [12:52:46]OFD Sender: No OFD packet to send [12:52:51]OFD Sender: No OFD packet to send [12:52:56]OFD Sender: No OFD packet to send [12:53:01]OFD Sender: No OFD packet to send [12:53:06]OFD Sender: No OFD packet to send [12:53:11]OFD Sender: No OFD packet to send [12:53:16]OFD Sender: No OFD packet to send [12:53:21]OFD Sender: No OFD packet to send [12:53:26]OFD Sender: No OFD packet to send [12:53:31]OFD Sender: No OFD packet to send [12:53:36]OFD Sender: No OFD packet to send [12:53:41]OFD Sender: No OFD packet to send [12:53:46]OFD Sender: No OFD packet to send [12:53:51]OFD Sender: No OFD packet to send [12:53:56]OFD Sender: No OFD packet to send [12:54:01]OFD Sender: No OFD packet to send [12:54:06]OFD Sender: No OFD packet to send [12:54:11]OFD Sender: No OFD packet to send [12:54:16]OFD Sender: No OFD packet to send [12:54:17]accept exits with 9 [12:54:17]New connection [12:54:17]New thread 3067227492 created [12:54:17]Thread 3067084132 joined [12:54:17]Waiting for new connection... [12:54:17] Sock 9.Parse request [12:54:17]Sock 9.Check first char [12:54:17]Sock 9.First char is OK [12:54:17]request: POST /json_proto HTTP/1.0 [12:54:17]Method: POST [12:54:17]URL: /json_proto [12:54:17]Method is POST - this is cgi request [12:54:17]url: /json_proto [12:54:17]query_string will be loaded in cgi processing [12:54:17]execute_cgi json_proto POST (null) [12:54:17]execute_cgi path=json_proto method=POST [12:54:17]POST find Content-Length [12:54:17]Host: 172.17.36.132:8080 [12:54:17]Content-Length: 1218 [12:54:17]Content-Type: application/json [12:54:17] [12:54:17]POST finish read [12:54:17]Found Content-Length = 1218 [12:54:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0418\u0441\u043C\u0430\u043D\u0430\u043B\u0438\u0435\u0432 \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)706707\u000A04.06.2024 12:31\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(\u043B)-\u041A-4\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\u000A3341172/3341173/3341174\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:54:17]execute_script... [12:54:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0418\u0441\u043C\u0430\u043D\u0430\u043B\u0438\u0435\u0432 \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)706707\u000A04.06.2024 12:31\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(\u043B)-\u041A-4\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\u000A3341172/3341173/3341174\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:54:17]POST & json_proto [12:54:17]process_json_proto [12:54:17]json parsed OK: [12:54:17]protocol is kg_v1.0 [12:54:17]action value=print_text [12:54:17]process_action print_text [12:54:17]cmd_print_text [12:54:17]ExternCall_PrintAddStr [12:54:17]wPrintStart [12:54:17]Write to MH i2c: 01 00 00 A5 24 C9 [12:54:17]Write i2c OK [12:54:17]MH_I2C_Read... [12:54:17]Read from MH i2c: 01 [12:54:17]MH_I2C_Read... [12:54:17]Read from MH i2c: 01 07 00 [12:54:17]MH_I2C_Read... [12:54:17]Read from MH i2c: 01 07 00 A5 24 00 00 00 00 00 FF 0F DE [12:54:17]RasterBufferAndPrint [12:54:17]line *****ТОВАРНЫЙ ЧЕК***** [12:54:17]line АЗС 62 [12:54:17]line Партнер нефть [12:54:17]line 02508201610067 [12:54:17]line Кассир : Исманалиев Д. [12:54:17]line Счет N : (1)706707 [12:54:17]line 04.06.2024 12:31 [12:54:17]line ПРОДАЖА [12:54:17]line ТРК (МРК, ГНК): 51 [12:54:17]line Вид ГСМ : 2710194210 [12:54:17]line ДТ(л)-К-4 [12:54:17]line 30.000 x 72.90 [12:54:17]line ИТОГ: 2187.00 [12:54:17]line Тип оплаты: Талоны: Партнер нефть [12:54:17]line 3341172/3341173/3341174 [12:54:17]line ______________________ [12:54:17]line (подпись) [12:54:17]written 0, free lines is 4095 [12:54:18]Write to MH i2c: 01 00 00 B9 24 DD [12:54:18]Write i2c OK [12:54:18]MH_I2C_Read... [12:54:18]Read from MH i2c: 01 [12:54:18]MH_I2C_Read... [12:54:18]Read from MH i2c: 01 07 00 [12:54:18]MH_I2C_Read... [12:54:18]Read from MH i2c: 01 07 00 B9 24 00 00 00 00 00 18 0E 0A [12:54:18]RasterBufferAndPrint [12:54:18]line [12:54:18]line [12:54:18]line [12:54:18]line [12:54:18]line [12:54:18]written 0, free lines is 3610 [12:54:18]MH_Cut [12:54:18]Write to MH i2c: D1 01 00 C0 24 01 B6 [12:54:18]Write i2c OK [12:54:18]MH_I2C_Read... [12:54:18]Read from MH i2c: D1 [12:54:18]MH_I2C_Read... [12:54:18]Read from MH i2c: D1 01 00 [12:54:18]MH_I2C_Read... [12:54:18]Read from MH i2c: D1 01 00 C0 24 00 B5 [12:54:18]Write to MH i2c: 01 00 00 C1 24 E5 [12:54:18]Write i2c OK [12:54:18]MH_I2C_Read... [12:54:18]*** Cut start [12:54:18]*** Partial cut [12:54:18]*** CUTSNS_PIN = 1 [12:54:18]*** CUTSNS_PIN = 0 [12:54:18]*** Brake cut motor [12:54:19]Read from MH i2c: 01 [12:54:19]MH_I2C_Read... [12:54:19]*** Stop cut motor [12:54:19]*** Cut end [12:54:19]Read from MH i2c: 01 07 00 [12:54:19]MH_I2C_Read... [12:54:19]Read from MH i2c: 01 07 00 C1 24 00 00 00 00 00 FF 0F FA [12:54:19]process_action print_text done [12:54:19]requested_data is exist [12:54:19]produce_requested_data [12:54:19]requested_item fm.sn is exist - process it [12:54:19]wFMCommunicate request_size=4 [12:54:19]MH_SAM_APDU [12:54:19]CAPDU: 80 11 00 00 [12:54:19]Write to MH i2c: E2 08 00 C2 24 80 11 00 00 00 00 00 00 60 [12:54:19]Write i2c OK [12:54:19]MH_I2C_Read... [12:54:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:54:19]Read from MH i2c: E2 [12:54:19]MH_I2C_Read... [12:54:19]Read from MH i2c: E2 17 00 [12:54:19]MH_I2C_Read... [12:54:19]Read from MH i2c: E2 17 00 C2 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 AB [12:54:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [12:54:19]wFMCommunicate OK [12:54:19]requested_item fd.num is exist - process it [12:54:19]SAM_PROTO_GetFieldsCounters [12:54:19]wFMCommunicate request_size=4 [12:54:19]MH_SAM_APDU [12:54:19]CAPDU: 80 13 00 00 [12:54:19]Write to MH i2c: E2 08 00 C3 24 80 13 00 00 00 00 00 00 63 [12:54:19]Write i2c OK [12:54:19]MH_I2C_Read... [12:54:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:54:19]Read from MH i2c: E2 [12:54:19]MH_I2C_Read... [12:54:19]Read from MH i2c: E2 62 00 [12:54:19]MH_I2C_Read... [12:54:19]Read from MH i2c: E2 62 00 C3 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 E1 0B 01 00 0E 04 04 00 45 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 97 [12:54:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 E1 0B 01 00 0E 04 04 00 45 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 [12:54:19]wFMCommunicate OK [12:54:19]SAM_PROTO_GetFieldsCounters done [12:54:19]requested_item shift.num is exist - process it [12:54:19]requested_item shift.opened is exist - process it [12:54:19]req_shift_opened [12:54:19]FM_GetShiftState [12:54:19]SAM_PROTO_GetShiftState [12:54:19]wFMCommunicate request_size=4 [12:54:19]MH_SAM_APDU [12:54:19]CAPDU: 80 13 01 00 [12:54:19]Write to MH i2c: E2 08 00 C4 24 80 13 01 00 00 00 00 00 65 [12:54:19]Write i2c OK [12:54:19]MH_I2C_Read... [12:54:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:54:19]Read from MH i2c: E2 [12:54:19]MH_I2C_Read... [12:54:19]Read from MH i2c: E2 0E 00 [12:54:19]MH_I2C_Read... [12:54:19]Read from MH i2c: E2 0E 00 C4 24 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 01 [12:54:19]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [12:54:19]wFMCommunicate OK [12:54:19]SAM_PROTO_GetShiftState done [12:54:19]FM_GetShiftState done [12:54:19]req_shift_opened done [12:54:19]requested_item shift.open_date is exist - process it [12:54:19]req_shift_open_date [12:54:19]req_shift_open_date done [12:54:19]produce_requested_data done [12:54:19]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68577,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [12:54:19]process_action_free print_text [12:54:19]json_value_free [12:54:19]json_value_free done [12:54:19]process_json_proto returns [12:54:19]Send response to host [12:54:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68577,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [12:54:19]free response buf [12:54:19]execute_script done [12:54:19]execute_script returns [12:54:19]free content buf [12:54:19]Sock 9.Close socket [12:54:19]Sock 9.Thread stoped [12:54:19]accept exits with 7 [12:54:19]New connection [12:54:19]New thread 3067084132 created [12:54:19]Thread 3067227492 joined [12:54:19]Waiting for new connection... [12:54:19] Sock 7.Parse request [12:54:19]Sock 7.Check first char [12:54:19]Sock 7.First char is OK [12:54:19]request: POST /json_proto HTTP/1.0 [12:54:19]Method: POST [12:54:19]URL: /json_proto [12:54:19]Method is POST - this is cgi request [12:54:19]url: /json_proto [12:54:19]query_string will be loaded in cgi processing [12:54:19]execute_cgi json_proto POST (null) [12:54:19]execute_cgi path=json_proto method=POST [12:54:19]POST find Content-Length [12:54:19]Host: 172.17.36.132:8080 [12:54:19]Content-Length: 677 [12:54:19]Content-Type: application/json [12:54:19] [12:54:19]POST finish read [12:54:19]Found Content-Length = 677 [12:54:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706708", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:54:19]execute_script... [12:54: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)706708", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:54:19]POST & json_proto [12:54:19]process_json_proto [12:54:19]json parsed OK: [12:54:19]protocol is kg_v1.0 [12:54:19]action value=close_receipt [12:54:19]process_action close_receipt [12:54:19]cmd_close_receipt [12:54:19]MH_GetDate [12:54:19]Write to MH i2c: F0 00 00 C5 24 D8 [12:54:19]Write i2c OK [12:54:19]MH_I2C_Read... [12:54:19]Read from MH i2c: F0 [12:54:19]MH_I2C_Read... [12:54:19]Read from MH i2c: F0 09 00 [12:54:19]MH_I2C_Read... [12:54:19]Read from MH i2c: F0 09 00 C5 24 00 80 0E 5F 66 B2 22 B0 64 1C [12:54:19]GetLastDocTimeStamp 1717505498 [12:54:19]current date 1717505664 [12:54:19]FM_GetShiftState [12:54:19]SAM_PROTO_GetShiftState [12:54:19]wFMCommunicate request_size=4 [12:54:19]MH_SAM_APDU [12:54:19]CAPDU: 80 13 01 00 [12:54:19]Write to MH i2c: E2 08 00 C6 24 80 13 01 00 00 00 00 00 67 [12:54:19]Write i2c OK [12:54:19]MH_I2C_Read... [12:54:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:54:19]Read from MH i2c: E2 [12:54:19]MH_I2C_Read... [12:54:19]Read from MH i2c: E2 0E 00 [12:54:19]MH_I2C_Read... [12:54:19]Read from MH i2c: E2 0E 00 C6 24 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 03 [12:54:19]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [12:54:19]wFMCommunicate OK [12:54:19]SAM_PROTO_GetShiftState done [12:54:19]FM_GetShiftState done [12:54:19]opened in 1717460590 [12:54:19]opened+sec_in_day 1717546990 [12:54:19]quantity*price = 50041 [12:54:19]sum+1 = 50042 [12:54:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 76 04.06.2024 12:54 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68578 ФПД: 210951751881911 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T125424&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68578&fm=210951751881911&tin=02508201610067®Number=0000000000098096&sum=50000 [12:54:21]StoreToDocumentArchive [12:54:21]shift 325 fd 68578 [12:54:21]save to /storage/0325/doc_00068578 [12:54:21]save last doc name /storage/0325/doc_00068578 to /storage/kkm_last_doc_name [12:54:21]save OK [12:54:21]Clear old archive folders... [12:54:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:54:21]tlvbuf is 009E4F60 [12:54:21]SAM_PROTO_ClearQueue [12:54:21]wFMCommunicate request_size=4 [12:54:21]MH_SAM_APDU [12:54:21]CAPDU: 80 09 00 00 [12:54:21]Write to MH i2c: E2 08 00 D3 24 80 09 00 00 00 00 00 00 69 [12:54:21]Write i2c OK [12:54:21]MH_I2C_Read... [12:54:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:54:21]Read from MH i2c: E2 [12:54:21]MH_I2C_Read... [12:54:21]Read from MH i2c: E2 03 00 [12:54:21]MH_I2C_Read... [12:54:21]Read from MH i2c: E2 03 00 D3 24 00 90 00 6B [12:54:21]RAPDU: 90 00 [12:54:21]wFMCommunicate OK [12:54:21]SAM_PROTO_ClearQueue done [12:54:21]KKMCreateOFDPacket [12:54:21]OFDProtocolAddRootSTLVToBuf [12:54:21]FM_MakeSignedData [12:54:21]FM_MakeSignedData [12:54:21]SAM_PROTO_SignData [12:54:21]wFMCommunicate request_size=4 [12:54:21]MH_SAM_APDU [12:54:21]CAPDU: 80 0D 01 02 [12:54:21]Write to MH i2c: E2 08 00 D4 24 80 0D 01 02 00 00 00 00 71 [12:54:21]Write i2c OK [12:54:21]MH_I2C_Read... [12:54:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:54:21]Read from MH i2c: E2 [12:54:21]MH_I2C_Read... [12:54:21]Read from MH i2c: E2 03 00 [12:54:21]MH_I2C_Read... [12:54:21]Read from MH i2c: E2 03 00 D4 24 00 90 00 6C [12:54:21]RAPDU: 90 00 [12:54:21]wFMCommunicate OK [12:54:21]wFMCommunicate request_size=255 [12:54:21]MH_SAM_APDU [12:54: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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 80 0E 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 E2 0B 01 00 35 04 06 00 BF [12:54:21]Write to MH i2c: E2 02 01 D5 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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 80 0E 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 E2 0B 01 00 35 04 06 00 BF 00 00 90 [12:54:21]Write i2c OK [12:54:21]MH_I2C_Read... [12:54:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:54:21]Read from MH i2c: E2 [12:54:21]MH_I2C_Read... [12:54:21]Read from MH i2c: E2 03 00 [12:54:21]MH_I2C_Read... [12:54:21]Read from MH i2c: E2 03 00 D5 24 00 90 00 6D [12:54:21]RAPDU: 90 00 [12:54:21]wFMCommunicate OK [12:54:21]wFMCommunicate request_size=10 [12:54:21]MH_SAM_APDU [12:54:21]CAPDU: 80 0D 02 02 05 DC 08 3C 54 B7 [12:54:21]Write to MH i2c: E2 0D 00 D6 24 80 0D 02 02 05 00 DC 08 3C 54 B7 00 00 A9 [12:54:21]OFD Sender: No OFD packet to send [12:54:21]Write i2c OK [12:54:21]MH_I2C_Read... [12:54:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:54:21]Read from MH i2c: E2 [12:54:21]MH_I2C_Read... [12:54:21]Read from MH i2c: E2 03 00 [12:54:21]MH_I2C_Read... [12:54:21]Read from MH i2c: E2 03 00 D6 24 00 90 00 6E [12:54:21]RAPDU: 90 00 [12:54:21]wFMCommunicate OK [12:54:21]wFMCommunicate request_size=4 [12:54:21]MH_SAM_APDU [12:54:21]CAPDU: 80 0D 03 02 [12:54:21]Write to MH i2c: E2 08 00 D7 24 80 0D 03 02 00 00 00 00 76 [12:54:21]Write i2c OK [12:54:21]MH_I2C_Read... [12:54:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:54:21]Read from MH i2c: E2 [12:54:21]MH_I2C_Read... [12:54:21]Read from MH i2c: E2 0B 00 [12:54:21]MH_I2C_Read... [12:54:21]Read from MH i2c: E2 0B 00 D7 24 00 7B 8F B6 5B 2B C9 0B 26 90 00 B7 [12:54:21]RAPDU: 7B 8F B6 5B 2B C9 0B 26 90 00 [12:54:21]wFMCommunicate OK [12:54:21]SAM_PROTO_SignData done [12:54:21]FM_MakeSignedData done [12:54:21]CreateOFDProtocolMessage [12:54:21]wFMCommunicate request_size=4 [12:54:21]MH_SAM_APDU [12:54:21]CAPDU: 80 11 00 00 [12:54:21]Write to MH i2c: E2 08 00 D8 24 80 11 00 00 00 00 00 00 76 [12:54:21]Write i2c OK [12:54:21]MH_I2C_Read... [12:54:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:54:21]Read from MH i2c: E2 [12:54:21]MH_I2C_Read... [12:54:21]Read from MH i2c: E2 17 00 [12:54:21]MH_I2C_Read... [12:54:21]Read from MH i2c: E2 17 00 D8 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 C1 [12:54:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [12:54:21]wFMCommunicate OK [12:54:21]CreateOFDProtocolMessage done [12:54:21]OFDSenderStorePacket 68578 [12:54:21]StoreOFDPacket docnum=68578 [12:54:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 B8 19 07 01 B8 03 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 80 0E 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 E2 0B 01 00 35 04 06 00 BF DC 08 3C 54 B7 7B 8F B6 5B 2B C9 0B 26 [12:54:21]CheckFolder [12:54:21]dirname=/storage/ofd_packets [12:54:21]CheckFolder done [12:54:21]ProducePacketName [12:54:21]name=ofd_packets/00068578 [12:54:21]NVStorageSaveData ofd_packets/00068578 [12:54:21]File name is /storage/ofd_packets/00068578 [12:54:21]Write 301 bytes [12:54:21]NVStorageSaveData done [12:54:21]OFDSenderStorePacket done [12:54:21]KKMCreateOFDPacket done [12:54:21]NVStorageSaveData kkm_last_timestamp [12:54:21]File name is /storage/kkm_last_timestamp [12:54:21]Write 4 bytes [12:54:21]NVStorageSaveData done [12:54:21]ExternCall_PrintAddStr [12:54:21]wPrintStart [12:54:21]Write to MH i2c: 01 00 00 D9 24 FD [12:54:21]Write i2c OK [12:54:21]MH_I2C_Read... [12:54:21]Read from MH i2c: 01 [12:54:21]MH_I2C_Read... [12:54:21]Read from MH i2c: 01 07 00 [12:54:21]MH_I2C_Read... [12:54:21]Read from MH i2c: 01 07 00 D9 24 00 00 00 00 00 FF 0F 12 [12:54:21]RasterBufferAndPrint [12:54:21]line Счет N : (1)706708 [12:54:21]line ИНН: 02508201610067 [12:54:21]line Контрольно-Кассовый Чек [12:54:21]line ПРОДАЖА [12:54:21]line ТРК (МРК, ГНК) : 42 [12:54:21]line Товар: 2710124130 [12:54:21]line Аи-92-К-4 [12:54:21]line 7.480 * 66.90 [12:54:21]line = 500.41 [12:54:21]line НДС 12% НСП 1% [12:54:21]line > о реализуемом товаре [12:54:21]line ОКРУГЛЕНИЕ: -0.41 [12:54:21]line ИТОГО: 500.00 [12:54:21]line Внесено: 500.00 [12:54:21]line СДАЧА: 0.00 [12:54:21]line НСП 1% : 4.43 [12:54:21]line НДС 12% : 53.14 [12:54:21]line Наличными: 500.00 [12:54:21]line Безнал.: 0.00 [12:54:22]line Место: АЗС № 62 "Партнер Нефть" [12:54:22]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [12:54:22]line СНО: Общий режим [12:54:22]line Чек 76 04.06.2024 12:54 [12:54:22]line Смена: 325 ФФД: 1.0 [12:54:22]line ЗНМ: 0300000181 [12:54:22]line РНМ: 0000000000098096 [12:54:22]line Версия ККМ: 001 [12:54:22]line ФМ: 0000000000965400 [12:54:22]line ФД: 68578 [12:54:22]line ФПД: 210951751881911 [12:54:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T125424&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68578&fm=210951751881911&tin=02508201610067®Number=0000000000098096&sum=50000 [12:54:22]OFD Sender: Processing packet 68578 [packets to send 26, broken 25] [12:54:22]ProducePacketName [12:54:22]name=ofd_packets/00068578 [12:54:22]OFD Sender: To server: pG, [12:54:22]CommunicateWithHost lk.salyk.kg:30040 [12:54:22]ConnectInit lk.salyk.kg [12:54:22]written 0, free lines is 4095 [12:54:22]Connected sock=11 [12:54:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 B8 19 07 01 B8 03 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 80 0E 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 E2 0B 01 00 35 04 06 00 BF DC 08 3C 54 B7 7B 8F B6 5B 2B C9 0B 26 [12:54:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 AE DD 47 00 C3 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 39 36 35 34 30 30 10 04 04 00 E2 0B 01 00 F4 03 04 00 79 B5 5E 66 B6 04 01 00 00 BF 25 15 5F B7 72 6E EB [12:54:22]CommunicateWithHost err = 0 [12:54:22]CheckOFDResponse [12:54:22]1017 (14) - 77093643461234 [12:54:22]1041 (16) - 0000000000965400 [12:54:22]1040 (4) - 68578 [12:54:22]1012 (4) - 04.06.2024 06:34 [12:54:22]1206 (1) - 0 [12:54:22]OFD Sender: Remove packet 68578 [12:54:22]ProducePacketName [12:54:22]name=ofd_packets/00068578 [12:54:22]NVStorageDeleteData [12:54:22]Write to MH i2c: 01 00 00 04 25 29 [12:54:22]Write i2c OK [12:54:22]MH_I2C_Read... [12:54:22]Read from MH i2c: 01 [12:54:22]MH_I2C_Read... [12:54:22]Read from MH i2c: 01 07 00 [12:54:22]MH_I2C_Read... [12:54:22]Read from MH i2c: 01 07 00 04 25 00 00 00 00 00 FF 0C 3B [12:54:22]RasterBufferAndPrint [12:54:22]line [12:54:22]line [12:54:22]line [12:54:22]line [12:54:22]line [12:54:22]written 0, free lines is 3335 [12:54:22]MH_Cut [12:54:22]Write to MH i2c: D1 01 00 0B 25 01 02 [12:54:22]Write i2c OK [12:54:22]MH_I2C_Read... [12:54:22]Read from MH i2c: D1 [12:54:22]MH_I2C_Read... [12:54:22]Read from MH i2c: D1 01 00 [12:54:22]MH_I2C_Read... [12:54:22]Read from MH i2c: D1 01 00 0B 25 00 01 [12:54:22]Write to MH i2c: 01 00 00 0C 25 31 [12:54:22]Write i2c OK [12:54:22]MH_I2C_Read... [12:54:22]OFD Sender: No OFD packet to send [12:54:23]*** Cut start [12:54:23]*** Partial cut [12:54:23]*** CUTSNS_PIN = 1 [12:54:23]*** CUTSNS_PIN = 0 [12:54:23]*** Brake cut motor [12:54:23]Read from MH i2c: 01 [12:54:23]MH_I2C_Read... [12:54:23]*** Stop cut motor [12:54:23]*** Cut end [12:54:23]Read from MH i2c: 01 07 00 [12:54:23]MH_I2C_Read... [12:54:23]Read from MH i2c: 01 07 00 0C 25 00 00 00 00 00 FF 0F 46 [12:54:23]process_action close_receipt done [12:54:23]requested_data is exist [12:54:23]produce_requested_data [12:54:23]requested_item fm.sn is exist - process it [12:54:23]wFMCommunicate request_size=4 [12:54:23]MH_SAM_APDU [12:54:23]CAPDU: 80 11 00 00 [12:54:23]Write to MH i2c: E2 08 00 0D 25 80 11 00 00 00 00 00 00 AC [12:54:23]Write i2c OK [12:54:23]MH_I2C_Read... [12:54:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:54:24]Read from MH i2c: E2 [12:54:24]MH_I2C_Read... [12:54:24]Read from MH i2c: E2 17 00 [12:54:24]MH_I2C_Read... [12:54:24]Read from MH i2c: E2 17 00 0D 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 F7 [12:54:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [12:54:24]wFMCommunicate OK [12:54:24]requested_item fd.num is exist - process it [12:54:24]SAM_PROTO_GetFieldsCounters [12:54:24]wFMCommunicate request_size=4 [12:54:24]MH_SAM_APDU [12:54:24]CAPDU: 80 13 00 00 [12:54:24]Write to MH i2c: E2 08 00 0E 25 80 13 00 00 00 00 00 00 AF [12:54:24]Write i2c OK [12:54:24]MH_I2C_Read... [12:54:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:54:24]Read from MH i2c: E2 [12:54:24]MH_I2C_Read... [12:54:24]Read from MH i2c: E2 62 00 [12:54:24]MH_I2C_Read... [12:54:24]Read from MH i2c: E2 62 00 0E 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 E2 0B 01 00 0E 04 04 00 45 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 E7 [12:54:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 E2 0B 01 00 0E 04 04 00 45 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 [12:54:24]wFMCommunicate OK [12:54:24]SAM_PROTO_GetFieldsCounters done [12:54:24]requested_item shift.num is exist - process it [12:54:24]requested_item shift.opened is exist - process it [12:54:24]req_shift_opened [12:54:24]FM_GetShiftState [12:54:24]SAM_PROTO_GetShiftState [12:54:24]wFMCommunicate request_size=4 [12:54:24]MH_SAM_APDU [12:54:24]CAPDU: 80 13 01 00 [12:54:24]Write to MH i2c: E2 08 00 0F 25 80 13 01 00 00 00 00 00 B1 [12:54:24]Write i2c OK [12:54:24]MH_I2C_Read... [12:54:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:54:24]Read from MH i2c: E2 [12:54:24]MH_I2C_Read... [12:54:24]Read from MH i2c: E2 0E 00 [12:54:24]MH_I2C_Read... [12:54:24]Read from MH i2c: E2 0E 00 0F 25 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 4D [12:54:24]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [12:54:24]wFMCommunicate OK [12:54:24]SAM_PROTO_GetShiftState done [12:54:24]FM_GetShiftState done [12:54:24]req_shift_opened done [12:54:24]requested_item shift.open_date is exist - process it [12:54:24]req_shift_open_date [12:54:24]req_shift_open_date done [12:54:24]produce_requested_data done [12:54:24]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68578,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [12:54:24]process_action_free close_receipt [12:54:24]json_value_free [12:54:24]json_value_free done [12:54:24]process_json_proto returns [12:54:24]Send response to host [12:54:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68578,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [12:54:24]free response buf [12:54:24]execute_script done [12:54:24]execute_script returns [12:54:24]free content buf [12:54:24]Sock 7.Close socket [12:54:24]Sock 7.Thread stoped [12:54:27]OFD Sender: No OFD packet to send [12:54:32]OFD Sender: No OFD packet to send [12:54:37]OFD Sender: No OFD packet to send [12:54:42]OFD Sender: No OFD packet to send [12:54:47]OFD Sender: No OFD packet to send [12:54:52]OFD Sender: No OFD packet to send [12:54:57]OFD Sender: No OFD packet to send [12:55:02]OFD Sender: No OFD packet to send [12:55:07]OFD Sender: No OFD packet to send [12:55:12]OFD Sender: No OFD packet to send [12:55:17]OFD Sender: No OFD packet to send [12:55:22]OFD Sender: No OFD packet to send [12:55:27]OFD Sender: No OFD packet to send [12:55:32]OFD Sender: No OFD packet to send [12:55:37]OFD Sender: No OFD packet to send [12:55:42]OFD Sender: No OFD packet to send [12:55:47]OFD Sender: No OFD packet to send [12:55:52]OFD Sender: No OFD packet to send [12:55:57]OFD Sender: No OFD packet to send [12:56:02]OFD Sender: No OFD packet to send [12:56:07]OFD Sender: No OFD packet to send [12:56:12]OFD Sender: No OFD packet to send [12:56:17]OFD Sender: No OFD packet to send [12:56:22]OFD Sender: No OFD packet to send [12:56:27]OFD Sender: No OFD packet to send [12:56:33]OFD Sender: No OFD packet to send [12:56:38]OFD Sender: No OFD packet to send [12:56:43]OFD Sender: No OFD packet to send [12:56:48]OFD Sender: No OFD packet to send [12:56:53]OFD Sender: No OFD packet to send [12:56:58]OFD Sender: No OFD packet to send [12:57:03]OFD Sender: No OFD packet to send [12:57:08]OFD Sender: No OFD packet to send [12:57:13]OFD Sender: No OFD packet to send [12:57:18]OFD Sender: No OFD packet to send [12:57:23]OFD Sender: No OFD packet to send [12:57:28]OFD Sender: No OFD packet to send [12:57:33]OFD Sender: No OFD packet to send [12:57:38]OFD Sender: No OFD packet to send [12:57:43]OFD Sender: No OFD packet to send [12:57:48]OFD Sender: No OFD packet to send [12:57:53]OFD Sender: No OFD packet to send [12:57:58]OFD Sender: No OFD packet to send [12:58:03]OFD Sender: No OFD packet to send [12:58:08]OFD Sender: No OFD packet to send [12:58:13]OFD Sender: No OFD packet to send [12:58:18]OFD Sender: No OFD packet to send [12:58:23]OFD Sender: No OFD packet to send [12:58:28]OFD Sender: No OFD packet to send [12:58:33]OFD Sender: No OFD packet to send [12:58:38]OFD Sender: No OFD packet to send [12:58:43]OFD Sender: No OFD packet to send [12:58:44]accept exits with 9 [12:58:44]New connection [12:58:44]New thread 3067227492 created [12:58:44]Thread 3067084132 joined [12:58:44]Waiting for new connection... [12:58:44] Sock 9.Parse request [12:58:44]Sock 9.Check first char [12:58:44]Sock 9.First char is OK [12:58:44]request: POST /json_proto HTTP/1.0 [12:58:44]Method: POST [12:58:44]URL: /json_proto [12:58:44]Method is POST - this is cgi request [12:58:44]url: /json_proto [12:58:44]query_string will be loaded in cgi processing [12:58:44]execute_cgi json_proto POST (null) [12:58:44]execute_cgi path=json_proto method=POST [12:58:44]POST find Content-Length [12:58:44]Host: 172.17.36.132:8080 [12:58:44]Content-Length: 677 [12:58:44]Content-Type: application/json [12:58:44] [12:58:44]POST finish read [12:58:44]Found Content-Length = 677 [12:58:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706710", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:58:44]execute_script... [12:58: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)706710", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:58:44]POST & json_proto [12:58:44]process_json_proto [12:58:44]json parsed OK: [12:58:44]protocol is kg_v1.0 [12:58:44]action value=close_receipt [12:58:44]process_action close_receipt [12:58:44]cmd_close_receipt [12:58:44]MH_GetDate [12:58:44]Write to MH i2c: F0 00 00 10 25 24 [12:58:44]Write i2c OK [12:58:44]MH_I2C_Read... [12:58:44]Read from MH i2c: F0 [12:58:44]MH_I2C_Read... [12:58:44]Read from MH i2c: F0 09 00 [12:58:44]MH_I2C_Read... [12:58:44]Read from MH i2c: F0 09 00 10 25 00 89 0F 5F 66 B2 22 B0 64 72 [12:58:44]GetLastDocTimeStamp 1717505664 [12:58:44]current date 1717505929 [12:58:44]FM_GetShiftState [12:58:44]SAM_PROTO_GetShiftState [12:58:44]wFMCommunicate request_size=4 [12:58:44]MH_SAM_APDU [12:58:44]CAPDU: 80 13 01 00 [12:58:44]Write to MH i2c: E2 08 00 11 25 80 13 01 00 00 00 00 00 B3 [12:58:44]Write i2c OK [12:58:44]MH_I2C_Read... [12:58:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:58:44]Read from MH i2c: E2 [12:58:44]MH_I2C_Read... [12:58:44]Read from MH i2c: E2 0E 00 [12:58:44]MH_I2C_Read... [12:58:44]Read from MH i2c: E2 0E 00 11 25 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 4F [12:58:44]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [12:58:44]wFMCommunicate OK [12:58:44]SAM_PROTO_GetShiftState done [12:58:44]FM_GetShiftState done [12:58:44]opened in 1717460590 [12:58:44]opened+sec_in_day 1717546990 [12:58:44]quantity*price = 40006 [12:58:44]sum+1 = 40007 [12:58:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 77 04.06.2024 12:58 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68579 ФПД: 44757575670699 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T125849&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68579&fm=44757575670699&tin=02508201610067®Number=0000000000098096&sum=40000 [12:58:45]StoreToDocumentArchive [12:58:45]shift 325 fd 68579 [12:58:45]save to /storage/0325/doc_00068579 [12:58:45]save last doc name /storage/0325/doc_00068579 to /storage/kkm_last_doc_name [12:58:45]save OK [12:58:45]Clear old archive folders... [12:58:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:58:45]tlvbuf is 009F2AC0 [12:58:45]SAM_PROTO_ClearQueue [12:58:45]wFMCommunicate request_size=4 [12:58:45]MH_SAM_APDU [12:58:45]CAPDU: 80 09 00 00 [12:58:45]Write to MH i2c: E2 08 00 1E 25 80 09 00 00 00 00 00 00 B5 [12:58:45]Write i2c OK [12:58:45]MH_I2C_Read... [12:58:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:58:45]Read from MH i2c: E2 [12:58:45]MH_I2C_Read... [12:58:45]Read from MH i2c: E2 03 00 [12:58:45]MH_I2C_Read... [12:58:45]Read from MH i2c: E2 03 00 1E 25 00 90 00 B7 [12:58:45]RAPDU: 90 00 [12:58:45]wFMCommunicate OK [12:58:45]SAM_PROTO_ClearQueue done [12:58:45]KKMCreateOFDPacket [12:58:45]OFDProtocolAddRootSTLVToBuf [12:58:45]FM_MakeSignedData [12:58:45]FM_MakeSignedData [12:58:45]SAM_PROTO_SignData [12:58:45]wFMCommunicate request_size=4 [12:58:45]MH_SAM_APDU [12:58:45]CAPDU: 80 0D 01 02 [12:58:45]Write to MH i2c: E2 08 00 1F 25 80 0D 01 02 00 00 00 00 BD [12:58:45]Write i2c OK [12:58:45]MH_I2C_Read... [12:58:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:58:45]Read from MH i2c: E2 [12:58:45]MH_I2C_Read... [12:58:45]Read from MH i2c: E2 03 00 [12:58:45]MH_I2C_Read... [12:58:45]Read from MH i2c: E2 03 00 1F 25 00 90 00 B8 [12:58:45]RAPDU: 90 00 [12:58:45]wFMCommunicate OK [12:58:45]wFMCommunicate request_size=255 [12:58:45]MH_SAM_APDU [12:58: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 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 89 0F 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 E3 0B 01 00 35 04 06 00 28 [12:58:45]Write to MH i2c: E2 02 01 20 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 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 89 0F 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 E3 0B 01 00 35 04 06 00 28 00 00 20 [12:58:45]Write i2c OK [12:58:45]MH_I2C_Read... [12:58:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:58:46]Read from MH i2c: E2 [12:58:46]MH_I2C_Read... [12:58:46]Read from MH i2c: E2 03 00 [12:58:46]MH_I2C_Read... [12:58:46]Read from MH i2c: E2 03 00 20 25 00 90 00 B9 [12:58:46]RAPDU: 90 00 [12:58:46]wFMCommunicate OK [12:58:46]wFMCommunicate request_size=10 [12:58:46]MH_SAM_APDU [12:58:46]CAPDU: 80 0D 02 02 05 B4 EF 66 1B AB [12:58:46]Write to MH i2c: E2 0D 00 21 25 80 0D 02 02 05 00 B4 EF 66 1B AB 00 00 99 [12:58:46]Write i2c OK [12:58:46]MH_I2C_Read... [12:58:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:58:46]Read from MH i2c: E2 [12:58:46]MH_I2C_Read... [12:58:46]Read from MH i2c: E2 03 00 [12:58:46]MH_I2C_Read... [12:58:46]Read from MH i2c: E2 03 00 21 25 00 90 00 BA [12:58:46]RAPDU: 90 00 [12:58:46]wFMCommunicate OK [12:58:46]wFMCommunicate request_size=4 [12:58:46]MH_SAM_APDU [12:58:46]CAPDU: 80 0D 03 02 [12:58:46]Write to MH i2c: E2 08 00 22 25 80 0D 03 02 00 00 00 00 C2 [12:58:46]Write i2c OK [12:58:46]MH_I2C_Read... [12:58:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:58:46]Read from MH i2c: E2 [12:58:46]MH_I2C_Read... [12:58:46]Read from MH i2c: E2 0B 00 [12:58:46]MH_I2C_Read... [12:58:46]Read from MH i2c: E2 0B 00 22 25 00 B1 E6 6E 8E BE 20 4F 36 90 00 B9 [12:58:46]RAPDU: B1 E6 6E 8E BE 20 4F 36 90 00 [12:58:46]wFMCommunicate OK [12:58:46]SAM_PROTO_SignData done [12:58:46]FM_MakeSignedData done [12:58:46]CreateOFDProtocolMessage [12:58:46]wFMCommunicate request_size=4 [12:58:46]MH_SAM_APDU [12:58:46]CAPDU: 80 11 00 00 [12:58:46]Write to MH i2c: E2 08 00 23 25 80 11 00 00 00 00 00 00 C2 [12:58:46]Write i2c OK [12:58:46]MH_I2C_Read... [12:58:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:58:46]Read from MH i2c: E2 [12:58:46]MH_I2C_Read... [12:58:46]Read from MH i2c: E2 17 00 [12:58:46]MH_I2C_Read... [12:58:46]Read from MH i2c: E2 17 00 23 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 0D [12:58:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [12:58:46]wFMCommunicate OK [12:58:46]CreateOFDProtocolMessage done [12:58:46]OFDSenderStorePacket 68579 [12:58:46]StoreOFDPacket docnum=68579 [12:58:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 CC 7F 07 01 EE FB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 89 0F 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 E3 0B 01 00 35 04 06 00 28 B4 EF 66 1B AB B1 E6 6E 8E BE 20 4F 36 [12:58:46]CheckFolder [12:58:46]dirname=/storage/ofd_packets [12:58:46]CheckFolder done [12:58:46]ProducePacketName [12:58:46]name=ofd_packets/00068579 [12:58:46]NVStorageSaveData ofd_packets/00068579 [12:58:46]File name is /storage/ofd_packets/00068579 [12:58:46]Write 301 bytes [12:58:46]NVStorageSaveData done [12:58:46]OFDSenderStorePacket done [12:58:46]KKMCreateOFDPacket done [12:58:46]NVStorageSaveData kkm_last_timestamp [12:58:46]File name is /storage/kkm_last_timestamp [12:58:46]Write 4 bytes [12:58:46]NVStorageSaveData done [12:58:46]ExternCall_PrintAddStr [12:58:46]wPrintStart [12:58:46]Write to MH i2c: 01 00 00 24 25 49 [12:58:46]Write i2c OK [12:58:46]MH_I2C_Read... [12:58:46]Read from MH i2c: 01 [12:58:46]MH_I2C_Read... [12:58:46]Read from MH i2c: 01 07 00 [12:58:46]MH_I2C_Read... [12:58:46]Read from MH i2c: 01 07 00 24 25 00 00 00 00 00 FF 0F 5E [12:58:46]RasterBufferAndPrint [12:58:46]line Счет N : (1)706710 [12:58:46]line ИНН: 02508201610067 [12:58:46]line Контрольно-Кассовый Чек [12:58:46]line ПРОДАЖА [12:58:46]line ТРК (МРК, ГНК) : 42 [12:58:46]line Товар: 2710124130 [12:58:46]line Аи-92-К-4 [12:58:46]line 5.980 * 66.90 [12:58:46]line = 400.06 [12:58:46]line НДС 12% НСП 1% [12:58:46]line > о реализуемом товаре [12:58:46]line ОКРУГЛЕНИЕ: -0.06 [12:58:46]line ИТОГО: 400.00 [12:58:46]line Внесено: 400.00 [12:58:46]line СДАЧА: 0.00 [12:58:46]line НСП 1% : 3.54 [12:58:46]line НДС 12% : 42.48 [12:58:46]line Наличными: 400.00 [12:58:46]line Безнал.: 0.00 [12:58:46]line Место: АЗС № 62 "Партнер Нефть" [12:58:46]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [12:58:46]line СНО: Общий режим [12:58:46]line Чек 77 04.06.2024 12:58 [12:58:46]line Смена: 325 ФФД: 1.0 [12:58:46]line ЗНМ: 0300000181 [12:58:46]line РНМ: 0000000000098096 [12:58:46]line Версия ККМ: 001 [12:58:46]line ФМ: 0000000000965400 [12:58:46]line ФД: 68579 [12:58:46]line ФПД: 44757575670699 [12:58:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T125849&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68579&fm=44757575670699&tin=02508201610067®Number=0000000000098096&sum=40000 [12:58:46]OFD Sender: Processing packet 68579 [packets to send 26, broken 25] [12:58:46]ProducePacketName [12:58:46]name=ofd_packets/00068579 [12:58:46]OFD Sender: To server: pG, [12:58:46]CommunicateWithHost lk.salyk.kg:30040 [12:58:46]ConnectInit lk.salyk.kg [12:58:46]written 0, free lines is 4095 [12:58:46]Connected sock=7 [12:58:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 CC 7F 07 01 EE FB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 89 0F 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 E3 0B 01 00 35 04 06 00 28 B4 EF 66 1B AB B1 E6 6E 8E BE 20 4F 36 [12:58:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 0F AD 47 00 FF 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 39 36 35 34 30 30 10 04 04 00 E3 0B 01 00 F4 03 04 00 81 B6 5E 66 B6 04 01 00 00 D4 25 72 93 4B 2C 47 0C [12:58:46]CommunicateWithHost err = 0 [12:58:46]CheckOFDResponse [12:58:46]1017 (14) - 77093643461234 [12:58:46]1041 (16) - 0000000000965400 [12:58:46]1040 (4) - 68579 [12:58:46]1012 (4) - 04.06.2024 06:38 [12:58:46]1206 (1) - 0 [12:58:46]OFD Sender: Remove packet 68579 [12:58:46]ProducePacketName [12:58:46]name=ofd_packets/00068579 [12:58:46]NVStorageDeleteData [12:58:47]Write to MH i2c: 01 00 00 4F 25 74 [12:58:47]Write i2c OK [12:58:47]MH_I2C_Read... [12:58:47]Read from MH i2c: 01 [12:58:47]MH_I2C_Read... [12:58:47]Read from MH i2c: 01 07 00 [12:58:47]MH_I2C_Read... [12:58:47]Read from MH i2c: 01 07 00 4F 25 00 00 00 00 00 CF 0C 56 [12:58:47]RasterBufferAndPrint [12:58:47]line [12:58:47]line [12:58:47]line [12:58:47]line [12:58:47]line [12:58:47]written 0, free lines is 3287 [12:58:47]MH_Cut [12:58:47]Write to MH i2c: D1 01 00 56 25 01 4D [12:58:47]Write i2c OK [12:58:47]MH_I2C_Read... [12:58:47]Read from MH i2c: D1 [12:58:47]MH_I2C_Read... [12:58:47]Read from MH i2c: D1 01 00 [12:58:47]MH_I2C_Read... [12:58:47]Read from MH i2c: D1 01 00 56 25 00 4C [12:58:47]Write to MH i2c: 01 00 00 57 25 7C [12:58:47]Write i2c OK [12:58:47]MH_I2C_Read... [12:58:47]OFD Sender: No OFD packet to send [12:58:47]*** Cut start [12:58:47]*** Partial cut [12:58:47]*** CUTSNS_PIN = 1 [12:58:47]*** CUTSNS_PIN = 0 [12:58:48]*** Brake cut motor [12:58:48]Read from MH i2c: 01 [12:58:48]MH_I2C_Read... [12:58:48]*** Stop cut motor [12:58:48]*** Cut end [12:58:48]Read from MH i2c: 01 07 00 [12:58:48]MH_I2C_Read... [12:58:48]Read from MH i2c: 01 07 00 57 25 00 00 00 00 00 FF 0F 91 [12:58:48]process_action close_receipt done [12:58:48]requested_data is exist [12:58:48]produce_requested_data [12:58:48]requested_item fm.sn is exist - process it [12:58:48]wFMCommunicate request_size=4 [12:58:48]MH_SAM_APDU [12:58:48]CAPDU: 80 11 00 00 [12:58:48]Write to MH i2c: E2 08 00 58 25 80 11 00 00 00 00 00 00 F7 [12:58:48]Write i2c OK [12:58:48]MH_I2C_Read... [12:58:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:58:48]Read from MH i2c: E2 [12:58:48]MH_I2C_Read... [12:58:48]Read from MH i2c: E2 17 00 [12:58:48]MH_I2C_Read... [12:58:48]Read from MH i2c: E2 17 00 58 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 42 [12:58:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [12:58:48]wFMCommunicate OK [12:58:48]requested_item fd.num is exist - process it [12:58:48]SAM_PROTO_GetFieldsCounters [12:58:48]wFMCommunicate request_size=4 [12:58:48]MH_SAM_APDU [12:58:48]CAPDU: 80 13 00 00 [12:58:48]Write to MH i2c: E2 08 00 59 25 80 13 00 00 00 00 00 00 FA [12:58:48]Write i2c OK [12:58:48]MH_I2C_Read... [12:58:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:58:48]Read from MH i2c: E2 [12:58:48]MH_I2C_Read... [12:58:48]Read from MH i2c: E2 62 00 [12:58:48]MH_I2C_Read... [12:58:48]Read from MH i2c: E2 62 00 59 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 E3 0B 01 00 0E 04 04 00 45 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 36 [12:58:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 E3 0B 01 00 0E 04 04 00 45 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 [12:58:48]wFMCommunicate OK [12:58:48]SAM_PROTO_GetFieldsCounters done [12:58:48]requested_item shift.num is exist - process it [12:58:48]requested_item shift.opened is exist - process it [12:58:48]req_shift_opened [12:58:48]FM_GetShiftState [12:58:48]SAM_PROTO_GetShiftState [12:58:48]wFMCommunicate request_size=4 [12:58:48]MH_SAM_APDU [12:58:48]CAPDU: 80 13 01 00 [12:58:48]Write to MH i2c: E2 08 00 5A 25 80 13 01 00 00 00 00 00 FC [12:58:48]Write i2c OK [12:58:48]MH_I2C_Read... [12:58:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:58:48]Read from MH i2c: E2 [12:58:48]MH_I2C_Read... [12:58:48]Read from MH i2c: E2 0E 00 [12:58:48]MH_I2C_Read... [12:58:48]Read from MH i2c: E2 0E 00 5A 25 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 98 [12:58:48]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [12:58:48]wFMCommunicate OK [12:58:48]SAM_PROTO_GetShiftState done [12:58:48]FM_GetShiftState done [12:58:48]req_shift_opened done [12:58:48]requested_item shift.open_date is exist - process it [12:58:48]req_shift_open_date [12:58:48]req_shift_open_date done [12:58:48]produce_requested_data done [12:58:48]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68579,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [12:58:48]process_action_free close_receipt [12:58:48]json_value_free [12:58:48]json_value_free done [12:58:48]process_json_proto returns [12:58:48]Send response to host [12:58:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68579,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [12:58:48]free response buf [12:58:48]execute_script done [12:58:48]execute_script returns [12:58:48]free content buf [12:58:48]Sock 9.Close socket [12:58:48]Sock 9.Thread stoped [12:58:49]accept exits with 10 [12:58:49]New connection [12:58:49]New thread 3067084132 created [12:58:49]Thread 3067227492 joined [12:58:49]Waiting for new connection... [12:58:49] Sock 10.Parse request [12:58:49]Sock 10.Check first char [12:58:49]Sock 10.First char is OK [12:58:49]request: POST /json_proto HTTP/1.0 [12:58:49]Method: POST [12:58:49]URL: /json_proto [12:58:49]Method is POST - this is cgi request [12:58:49]url: /json_proto [12:58:49]query_string will be loaded in cgi processing [12:58:49]execute_cgi json_proto POST (null) [12:58:49]execute_cgi path=json_proto method=POST [12:58:49]POST find Content-Length [12:58:49]Host: 172.17.36.132:8080 [12:58:49]Content-Length: 687 [12:58:49]Content-Type: application/json [12:58:49] [12:58:49]POST finish read [12:58:49]Found Content-Length = 687 [12:58:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706709", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 45.270, "sum" : 3300.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3300.00, "total" : 3300.00, "payments": [ { "type": 0, "sum" : 3300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:58:49]execute_script... [12:58: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)706709", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 45.270, "sum" : 3300.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3300.00, "total" : 3300.00, "payments": [ { "type": 0, "sum" : 3300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:58:49]POST & json_proto [12:58:49]process_json_proto [12:58:49]json parsed OK: [12:58:49]protocol is kg_v1.0 [12:58:49]action value=close_receipt [12:58:49]process_action close_receipt [12:58:49]cmd_close_receipt [12:58:49]MH_GetDate [12:58:49]Write to MH i2c: F0 00 00 5B 25 6F [12:58:49]Write i2c OK [12:58:49]MH_I2C_Read... [12:58:49]Read from MH i2c: F0 [12:58:49]MH_I2C_Read... [12:58:49]Read from MH i2c: F0 09 00 [12:58:49]MH_I2C_Read... [12:58:49]Read from MH i2c: F0 09 00 5B 25 00 8E 0F 5F 66 B2 22 B0 64 C2 [12:58:49]GetLastDocTimeStamp 1717505929 [12:58:49]current date 1717505934 [12:58:49]FM_GetShiftState [12:58:49]SAM_PROTO_GetShiftState [12:58:49]wFMCommunicate request_size=4 [12:58:49]MH_SAM_APDU [12:58:49]CAPDU: 80 13 01 00 [12:58:49]Write to MH i2c: E2 08 00 5C 25 80 13 01 00 00 00 00 00 FE [12:58:49]Write i2c OK [12:58:49]MH_I2C_Read... [12:58:50]Read from MH i2c: E2 [12:58:50]MH_I2C_Read... [12:58:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:58:50]Read from MH i2c: E2 0E 00 [12:58:50]MH_I2C_Read... [12:58:50]Read from MH i2c: E2 0E 00 5C 25 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 9A [12:58:50]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [12:58:50]wFMCommunicate OK [12:58:50]SAM_PROTO_GetShiftState done [12:58:50]FM_GetShiftState done [12:58:50]opened in 1717460590 [12:58:50]opened+sec_in_day 1717546990 [12:58:50]quantity*price = 330018 [12:58:50]sum+1 = 330019 [12:58:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 3300.00 Внесено: 3300.00 СДАЧА: 0.00 НСП 1% : 29.20 НДС 12% : 350.46 Наличными: 3300.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 78 04.06.2024 12:58 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68580 ФПД: 209370747018618 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T125854&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68580&fm=209370747018618&tin=02508201610067®Number=0000000000098096&sum=330000 [12:58:51]StoreToDocumentArchive [12:58:51]shift 325 fd 68580 [12:58:51]save to /storage/0325/doc_00068580 [12:58:51]save last doc name /storage/0325/doc_00068580 to /storage/kkm_last_doc_name [12:58:51]save OK [12:58:51]Clear old archive folders... [12:58:51]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:58:51]tlvbuf is 00AAF630 [12:58:51]SAM_PROTO_ClearQueue [12:58:51]wFMCommunicate request_size=4 [12:58:51]MH_SAM_APDU [12:58:51]CAPDU: 80 09 00 00 [12:58:51]Write to MH i2c: E2 08 00 69 25 80 09 00 00 00 00 00 00 00 [12:58:51]Write i2c OK [12:58:51]MH_I2C_Read... [12:58:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:58:51]Read from MH i2c: E2 [12:58:51]MH_I2C_Read... [12:58:51]Read from MH i2c: E2 03 00 [12:58:51]MH_I2C_Read... [12:58:51]Read from MH i2c: E2 03 00 69 25 00 90 00 02 [12:58:51]RAPDU: 90 00 [12:58:51]wFMCommunicate OK [12:58:51]SAM_PROTO_ClearQueue done [12:58:51]KKMCreateOFDPacket [12:58:51]OFDProtocolAddRootSTLVToBuf [12:58:51]FM_MakeSignedData [12:58:51]FM_MakeSignedData [12:58:51]SAM_PROTO_SignData [12:58:51]wFMCommunicate request_size=4 [12:58:51]MH_SAM_APDU [12:58:51]CAPDU: 80 0D 01 02 [12:58:51]Write to MH i2c: E2 08 00 6A 25 80 0D 01 02 00 00 00 00 08 [12:58:51]Write i2c OK [12:58:51]MH_I2C_Read... [12:58:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:58:51]Read from MH i2c: E2 [12:58:51]MH_I2C_Read... [12:58:51]Read from MH i2c: E2 03 00 [12:58:51]MH_I2C_Read... [12:58:51]Read from MH i2c: E2 03 00 6A 25 00 90 00 03 [12:58:51]RAPDU: 90 00 [12:58:51]wFMCommunicate OK [12:58:51]wFMCommunicate request_size=255 [12:58:51]MH_SAM_APDU [12:58:51]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 D6 B0 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 22 09 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 09 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 68 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 88 00 00 00 00 07 04 06 00 10 09 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 8E 0F 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 E4 0B 01 00 35 04 06 00 [12:58:51]Write to MH i2c: E2 02 01 6B 25 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 D6 B0 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 22 09 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 09 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 68 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 88 00 00 00 00 07 04 06 00 10 09 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 8E 0F 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 E4 0B 01 00 35 04 06 00 00 00 9A [12:58:51]Write i2c OK [12:58:51]MH_I2C_Read... [12:58:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:58:51]Read from MH i2c: E2 [12:58:51]MH_I2C_Read... [12:58:51]Read from MH i2c: E2 03 00 [12:58:51]MH_I2C_Read... [12:58:51]Read from MH i2c: E2 03 00 6B 25 00 90 00 04 [12:58:51]RAPDU: 90 00 [12:58:51]wFMCommunicate OK [12:58:51]wFMCommunicate request_size=11 [12:58:51]MH_SAM_APDU [12:58:51]CAPDU: 80 0D 02 02 06 BE 6B ED 00 9D 7A [12:58:51]Write to MH i2c: E2 0E 00 6C 25 80 0D 02 02 06 00 BE 6B ED 00 9D 7A 00 00 44 [12:58:51]Write i2c OK [12:58:51]MH_I2C_Read... [12:58:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:58:51]Read from MH i2c: E2 [12:58:51]MH_I2C_Read... [12:58:51]Read from MH i2c: E2 03 00 [12:58:51]MH_I2C_Read... [12:58:51]Read from MH i2c: E2 03 00 6C 25 00 90 00 05 [12:58:51]RAPDU: 90 00 [12:58:51]wFMCommunicate OK [12:58:51]wFMCommunicate request_size=4 [12:58:51]MH_SAM_APDU [12:58:51]CAPDU: 80 0D 03 02 [12:58:51]Write to MH i2c: E2 08 00 6D 25 80 0D 03 02 00 00 00 00 0D [12:58:51]Write i2c OK [12:58:51]MH_I2C_Read... [12:58:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:58:51]Read from MH i2c: E2 [12:58:51]MH_I2C_Read... [12:58:51]Read from MH i2c: E2 0B 00 [12:58:51]MH_I2C_Read... [12:58:51]Read from MH i2c: E2 0B 00 6D 25 00 80 B6 4D C4 B8 9B B1 E4 90 00 3D [12:58:51]RAPDU: 80 B6 4D C4 B8 9B B1 E4 90 00 [12:58:51]wFMCommunicate OK [12:58:51]SAM_PROTO_SignData done [12:58:51]FM_MakeSignedData done [12:58:51]CreateOFDProtocolMessage [12:58:51]wFMCommunicate request_size=4 [12:58:51]MH_SAM_APDU [12:58:51]CAPDU: 80 11 00 00 [12:58:51]Write to MH i2c: E2 08 00 6E 25 80 11 00 00 00 00 00 00 0D [12:58:51]Write i2c OK [12:58:51]MH_I2C_Read... [12:58:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:58:51]Read from MH i2c: E2 [12:58:51]MH_I2C_Read... [12:58:51]Read from MH i2c: E2 17 00 [12:58:51]MH_I2C_Read... [12:58:51]Read from MH i2c: E2 17 00 6E 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 58 [12:58:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [12:58:51]wFMCommunicate OK [12:58:51]CreateOFDProtocolMessage done [12:58:51]OFDSenderStorePacket 68580 [12:58:51]StoreOFDPacket docnum=68580 [12:58:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 B0 B5 08 01 DC 2C 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 D6 B0 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 22 09 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 09 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 68 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 88 00 00 00 00 07 04 06 00 10 09 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 8E 0F 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 E4 0B 01 00 35 04 06 00 BE 6B ED 00 9D 7A 80 B6 4D C4 B8 9B B1 E4 [12:58:51]CheckFolder [12:58:51]dirname=/storage/ofd_packets [12:58:51]CheckFolder done [12:58:51]ProducePacketName [12:58:51]name=ofd_packets/00068580 [12:58:51]NVStorageSaveData ofd_packets/00068580 [12:58:51]File name is /storage/ofd_packets/00068580 [12:58:51]Write 302 bytes [12:58:51]NVStorageSaveData done [12:58:51]OFDSenderStorePacket done [12:58:51]KKMCreateOFDPacket done [12:58:51]NVStorageSaveData kkm_last_timestamp [12:58:51]File name is /storage/kkm_last_timestamp [12:58:51]Write 4 bytes [12:58:51]NVStorageSaveData done [12:58:51]ExternCall_PrintAddStr [12:58:51]wPrintStart [12:58:51]Write to MH i2c: 01 00 00 6F 25 94 [12:58:51]Write i2c OK [12:58:51]MH_I2C_Read... [12:58:51]Read from MH i2c: 01 [12:58:51]MH_I2C_Read... [12:58:51]Read from MH i2c: 01 07 00 [12:58:51]MH_I2C_Read... [12:58:51]Read from MH i2c: 01 07 00 6F 25 00 00 00 00 00 FF 0F A9 [12:58:51]RasterBufferAndPrint [12:58:51]line Счет N : (1)706709 [12:58:51]line ИНН: 02508201610067 [12:58:51]line Контрольно-Кассовый Чек [12:58:51]line ПРОДАЖА [12:58:51]line ТРК (МРК, ГНК) : 21 [12:58:51]line Товар: 2710194210 [12:58:51]line ДТ(л)-К-4 [12:58:51]line 45.270 * 72.90 [12:58:51]line = 3300.18 [12:58:51]line НДС 12% НСП 1% [12:58:51]line > о реализуемом товаре [12:58:51]line ОКРУГЛЕНИЕ: -0.18 [12:58:51]line ИТОГО: 3300.00 [12:58:51]line Внесено: 3300.00 [12:58:51]line СДАЧА: 0.00 [12:58:51]line НСП 1% : 29.20 [12:58:51]line НДС 12% : 350.46 [12:58:51]line Наличными: 3300.00 [12:58:51]line Безнал.: 0.00 [12:58:51]line Место: АЗС № 62 "Партнер Нефть" [12:58:51]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [12:58:51]line СНО: Общий режим [12:58:51]line Чек 78 04.06.2024 12:58 [12:58:51]line Смена: 325 ФФД: 1.0 [12:58:51]line ЗНМ: 0300000181 [12:58:51]line РНМ: 0000000000098096 [12:58:51]line Версия ККМ: 001 [12:58:51]line ФМ: 0000000000965400 [12:58:51]line ФД: 68580 [12:58:51]line ФПД: 209370747018618 [12:58:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T125854&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68580&fm=209370747018618&tin=02508201610067®Number=0000000000098096&sum=330000 [12:58:51]written 0, free lines is 4095 [12:58:51]OFD Sender: Processing packet 68580 [packets to send 26, broken 25] [12:58:51]ProducePacketName [12:58:51]name=ofd_packets/00068580 [12:58:51]OFD Sender: To server: pG, [12:58:51]CommunicateWithHost lk.salyk.kg:30040 [12:58:51]ConnectInit lk.salyk.kg [12:58:51]Connected sock=9 [12:58:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 B0 B5 08 01 DC 2C 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 D6 B0 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 22 09 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 09 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 68 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 88 00 00 00 00 07 04 06 00 10 09 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 8E 0F 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 E4 0B 01 00 35 04 06 00 BE 6B ED 00 9D 7A 80 B6 4D C4 B8 9B B1 E4 [12:58:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 18 BF 47 00 83 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 39 36 35 34 30 30 10 04 04 00 E4 0B 01 00 F4 03 04 00 86 B6 5E 66 B6 04 01 00 00 96 C3 79 E5 83 3D DC AD [12:58:52]CommunicateWithHost err = 0 [12:58:52]CheckOFDResponse [12:58:52]1017 (14) - 77093643461234 [12:58:52]1041 (16) - 0000000000965400 [12:58:52]1040 (4) - 68580 [12:58:52]1012 (4) - 04.06.2024 06:39 [12:58:52]1206 (1) - 0 [12:58:52]OFD Sender: Remove packet 68580 [12:58:52]ProducePacketName [12:58:52]name=ofd_packets/00068580 [12:58:52]NVStorageDeleteData [12:58:52]Write to MH i2c: 01 00 00 9A 25 BF [12:58:52]Write i2c OK [12:58:52]MH_I2C_Read... [12:58:52]Read from MH i2c: 01 [12:58:52]MH_I2C_Read... [12:58:52]Read from MH i2c: 01 07 00 [12:58:52]MH_I2C_Read... [12:58:52]Read from MH i2c: 01 07 00 9A 25 00 00 00 00 00 F0 0C C2 [12:58:52]RasterBufferAndPrint [12:58:52]line [12:58:52]line [12:58:52]line [12:58:52]line [12:58:52]line [12:58:52]written 0, free lines is 3328 [12:58:52]MH_Cut [12:58:52]Write to MH i2c: D1 01 00 A1 25 01 98 [12:58:52]Write i2c OK [12:58:52]MH_I2C_Read... [12:58:52]Read from MH i2c: D1 [12:58:52]MH_I2C_Read... [12:58:52]Read from MH i2c: D1 01 00 [12:58:52]MH_I2C_Read... [12:58:52]Read from MH i2c: D1 01 00 A1 25 00 97 [12:58:52]Write to MH i2c: 01 00 00 A2 25 C7 [12:58:52]Write i2c OK [12:58:52]MH_I2C_Read... [12:58:52]OFD Sender: No OFD packet to send [12:58:53]*** Cut start [12:58:53]*** Partial cut [12:58:53]*** CUTSNS_PIN = 1 [12:58:53]*** CUTSNS_PIN = 0 [12:58:53]*** Brake cut motor [12:58:53]Read from MH i2c: 01 [12:58:53]MH_I2C_Read... [12:58:53]*** Stop cut motor [12:58:53]*** Cut end [12:58:53]Read from MH i2c: 01 07 00 [12:58:53]MH_I2C_Read... [12:58:53]Read from MH i2c: 01 07 00 A2 25 00 00 00 00 00 FF 0F DC [12:58:53]process_action close_receipt done [12:58:53]requested_data is exist [12:58:53]produce_requested_data [12:58:53]requested_item fm.sn is exist - process it [12:58:53]wFMCommunicate request_size=4 [12:58:53]MH_SAM_APDU [12:58:53]CAPDU: 80 11 00 00 [12:58:53]Write to MH i2c: E2 08 00 A3 25 80 11 00 00 00 00 00 00 42 [12:58:53]Write i2c OK [12:58:53]MH_I2C_Read... [12:58:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:58:53]Read from MH i2c: E2 [12:58:53]MH_I2C_Read... [12:58:53]Read from MH i2c: E2 17 00 [12:58:53]MH_I2C_Read... [12:58:53]Read from MH i2c: E2 17 00 A3 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 8D [12:58:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [12:58:53]wFMCommunicate OK [12:58:53]requested_item fd.num is exist - process it [12:58:53]SAM_PROTO_GetFieldsCounters [12:58:53]wFMCommunicate request_size=4 [12:58:53]MH_SAM_APDU [12:58:53]CAPDU: 80 13 00 00 [12:58:53]Write to MH i2c: E2 08 00 A4 25 80 13 00 00 00 00 00 00 45 [12:58:53]Write i2c OK [12:58:53]MH_I2C_Read... [12:58:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:58:53]Read from MH i2c: E2 [12:58:53]MH_I2C_Read... [12:58:53]Read from MH i2c: E2 62 00 [12:58:53]MH_I2C_Read... [12:58:53]Read from MH i2c: E2 62 00 A4 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 E4 0B 01 00 0E 04 04 00 45 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 85 [12:58:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 E4 0B 01 00 0E 04 04 00 45 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:58:53]wFMCommunicate OK [12:58:53]SAM_PROTO_GetFieldsCounters done [12:58:53]requested_item shift.num is exist - process it [12:58:53]requested_item shift.opened is exist - process it [12:58:53]req_shift_opened [12:58:53]FM_GetShiftState [12:58:53]SAM_PROTO_GetShiftState [12:58:53]wFMCommunicate request_size=4 [12:58:53]MH_SAM_APDU [12:58:53]CAPDU: 80 13 01 00 [12:58:53]Write to MH i2c: E2 08 00 A5 25 80 13 01 00 00 00 00 00 47 [12:58:53]Write i2c OK [12:58:53]MH_I2C_Read... [12:58:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:58:54]Read from MH i2c: E2 [12:58:54]MH_I2C_Read... [12:58:54]Read from MH i2c: E2 0E 00 [12:58:54]MH_I2C_Read... [12:58:54]Read from MH i2c: E2 0E 00 A5 25 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 E3 [12:58:54]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [12:58:54]wFMCommunicate OK [12:58:54]SAM_PROTO_GetShiftState done [12:58:54]FM_GetShiftState done [12:58:54]req_shift_opened done [12:58:54]requested_item shift.open_date is exist - process it [12:58:54]req_shift_open_date [12:58:54]req_shift_open_date done [12:58:54]produce_requested_data done [12:58:54]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68580,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [12:58:54]process_action_free close_receipt [12:58:54]json_value_free [12:58:54]json_value_free done [12:58:54]process_json_proto returns [12:58:54]Send response to host [12:58:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68580,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [12:58:54]free response buf [12:58:54]execute_script done [12:58:54]execute_script returns [12:58:54]free content buf [12:58:54]Sock 10.Close socket [12:58:54]Sock 10.Thread stoped [12:58:57]OFD Sender: No OFD packet to send [12:59:02]OFD Sender: No OFD packet to send [12:59:07]OFD Sender: No OFD packet to send [12:59:12]OFD Sender: No OFD packet to send [12:59:17]OFD Sender: No OFD packet to send [12:59:22]OFD Sender: No OFD packet to send [12:59:27]OFD Sender: No OFD packet to send [12:59:32]OFD Sender: No OFD packet to send [12:59:37]OFD Sender: No OFD packet to send [12:59:41]accept exits with 7 [12:59:41]New connection [12:59:41]New thread 3067227492 created [12:59:41]Thread 3067084132 joined [12:59:41]Waiting for new connection... [12:59:41] Sock 7.Parse request [12:59:41]Sock 7.Check first char [12:59:41]Sock 7.First char is OK [12:59:41]request: POST /json_proto HTTP/1.0 [12:59:41]Method: POST [12:59:41]URL: /json_proto [12:59:41]Method is POST - this is cgi request [12:59:41]url: /json_proto [12:59:41]query_string will be loaded in cgi processing [12:59:41]execute_cgi json_proto POST (null) [12:59:41]execute_cgi path=json_proto method=POST [12:59:41]POST find Content-Length [12:59:41]Host: 172.17.36.132:8080 [12:59:41]Content-Length: 677 [12:59:41]Content-Type: application/json [12:59:41] [12:59:41]POST finish read [12:59:41]Found Content-Length = 677 [12:59:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706711", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:59:41]execute_script... [12:59:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706711", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:59:41]POST & json_proto [12:59:41]process_json_proto [12:59:41]json parsed OK: [12:59:41]protocol is kg_v1.0 [12:59:41]action value=close_receipt [12:59:41]process_action close_receipt [12:59:41]cmd_close_receipt [12:59:41]MH_GetDate [12:59:41]Write to MH i2c: F0 00 00 A6 25 BA [12:59:41]Write i2c OK [12:59:41]MH_I2C_Read... [12:59:41]Read from MH i2c: F0 [12:59:41]MH_I2C_Read... [12:59:41]Read from MH i2c: F0 09 00 [12:59:41]MH_I2C_Read... [12:59:41]Read from MH i2c: F0 09 00 A6 25 00 C2 0F 5F 66 B2 22 B0 64 41 [12:59:41]GetLastDocTimeStamp 1717505934 [12:59:41]current date 1717505986 [12:59:41]FM_GetShiftState [12:59:41]SAM_PROTO_GetShiftState [12:59:41]wFMCommunicate request_size=4 [12:59:41]MH_SAM_APDU [12:59:41]CAPDU: 80 13 01 00 [12:59:41]Write to MH i2c: E2 08 00 A7 25 80 13 01 00 00 00 00 00 49 [12:59:41]Write i2c OK [12:59:41]MH_I2C_Read... [12:59:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:59:41]Read from MH i2c: E2 [12:59:41]MH_I2C_Read... [12:59:41]Read from MH i2c: E2 0E 00 [12:59:41]MH_I2C_Read... [12:59:41]Read from MH i2c: E2 0E 00 A7 25 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 E5 [12:59:41]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [12:59:41]wFMCommunicate OK [12:59:41]SAM_PROTO_GetShiftState done [12:59:41]FM_GetShiftState done [12:59:41]opened in 1717460590 [12:59:41]opened+sec_in_day 1717546990 [12:59:41]quantity*price = 20003 [12:59:41]sum+1 = 20004 [12:59:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 79 04.06.2024 12:59 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68581 ФПД: 221213561317830 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T125946&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68581&fm=221213561317830&tin=02508201610067®Number=0000000000098096&sum=20000 [12:59:42]StoreToDocumentArchive [12:59:42]shift 325 fd 68581 [12:59:42]save to /storage/0325/doc_00068581 [12:59:42]save last doc name /storage/0325/doc_00068581 to /storage/kkm_last_doc_name [12:59:42]save OK [12:59:42]Clear old archive folders... [12:59:42]OFD Sender: No OFD packet to send [12:59:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:59:42]tlvbuf is 009F5810 [12:59:42]SAM_PROTO_ClearQueue [12:59:42]wFMCommunicate request_size=4 [12:59:42]MH_SAM_APDU [12:59:42]CAPDU: 80 09 00 00 [12:59:42]Write to MH i2c: E2 08 00 B4 25 80 09 00 00 00 00 00 00 4B [12:59:42]Write i2c OK [12:59:42]MH_I2C_Read... [12:59:42]Read from MH i2c: E2 [12:59:42]MH_I2C_Read... [12:59:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:59:42]Read from MH i2c: E2 03 00 [12:59:42]MH_I2C_Read... [12:59:42]Read from MH i2c: E2 03 00 B4 25 00 90 00 4D [12:59:42]RAPDU: 90 00 [12:59:42]wFMCommunicate OK [12:59:42]SAM_PROTO_ClearQueue done [12:59:42]KKMCreateOFDPacket [12:59:42]OFDProtocolAddRootSTLVToBuf [12:59:42]FM_MakeSignedData [12:59:42]FM_MakeSignedData [12:59:42]SAM_PROTO_SignData [12:59:42]wFMCommunicate request_size=4 [12:59:42]MH_SAM_APDU [12:59:42]CAPDU: 80 0D 01 02 [12:59:42]Write to MH i2c: E2 08 00 B5 25 80 0D 01 02 00 00 00 00 53 [12:59:42]Write i2c OK [12:59:42]MH_I2C_Read... [12:59:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:59:42]Read from MH i2c: E2 [12:59:42]MH_I2C_Read... [12:59:42]Read from MH i2c: E2 03 00 [12:59:42]MH_I2C_Read... [12:59:42]Read from MH i2c: E2 03 00 B5 25 00 90 00 4E [12:59:42]RAPDU: 90 00 [12:59:42]wFMCommunicate OK [12:59:42]wFMCommunicate request_size=255 [12:59:42]MH_SAM_APDU [12:59:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 C2 0F 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 E5 0B 01 00 35 04 06 00 C9 [12:59:42]Write to MH i2c: E2 02 01 B6 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 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 C2 0F 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 E5 0B 01 00 35 04 06 00 C9 00 00 87 [12:59:42]Write i2c OK [12:59:42]MH_I2C_Read... [12:59:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:59:43]Read from MH i2c: E2 [12:59:43]MH_I2C_Read... [12:59:43]Read from MH i2c: E2 03 00 [12:59:43]MH_I2C_Read... [12:59:43]Read from MH i2c: E2 03 00 B6 25 00 90 00 4F [12:59:43]RAPDU: 90 00 [12:59:43]wFMCommunicate OK [12:59:43]wFMCommunicate request_size=10 [12:59:43]MH_SAM_APDU [12:59:43]CAPDU: 80 0D 02 02 05 31 4B BD E9 C6 [12:59:43]Write to MH i2c: E2 0D 00 B7 25 80 0D 02 02 05 00 31 4B BD E9 C6 00 00 48 [12:59:43]Write i2c OK [12:59:43]MH_I2C_Read... [12:59:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:59:43]Read from MH i2c: E2 [12:59:43]MH_I2C_Read... [12:59:43]Read from MH i2c: E2 03 00 [12:59:43]MH_I2C_Read... [12:59:43]Read from MH i2c: E2 03 00 B7 25 00 90 00 50 [12:59:43]RAPDU: 90 00 [12:59:43]wFMCommunicate OK [12:59:43]wFMCommunicate request_size=4 [12:59:43]MH_SAM_APDU [12:59:43]CAPDU: 80 0D 03 02 [12:59:43]Write to MH i2c: E2 08 00 B8 25 80 0D 03 02 00 00 00 00 58 [12:59:43]Write i2c OK [12:59:43]MH_I2C_Read... [12:59:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:59:43]Read from MH i2c: E2 [12:59:43]MH_I2C_Read... [12:59:43]Read from MH i2c: E2 0B 00 [12:59:43]MH_I2C_Read... [12:59:43]Read from MH i2c: E2 0B 00 B8 25 00 6D 7C DD 1B E8 72 9A 21 90 00 4F [12:59:43]RAPDU: 6D 7C DD 1B E8 72 9A 21 90 00 [12:59:43]wFMCommunicate OK [12:59:43]SAM_PROTO_SignData done [12:59:43]FM_MakeSignedData done [12:59:43]CreateOFDProtocolMessage [12:59:43]wFMCommunicate request_size=4 [12:59:43]MH_SAM_APDU [12:59:43]CAPDU: 80 11 00 00 [12:59:43]Write to MH i2c: E2 08 00 B9 25 80 11 00 00 00 00 00 00 58 [12:59:43]Write i2c OK [12:59:43]MH_I2C_Read... [12:59:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:59:43]Read from MH i2c: E2 [12:59:43]MH_I2C_Read... [12:59:43]Read from MH i2c: E2 17 00 [12:59:43]MH_I2C_Read... [12:59:43]Read from MH i2c: E2 17 00 B9 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 A3 [12:59:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [12:59:43]wFMCommunicate OK [12:59:43]CreateOFDProtocolMessage done [12:59:43]OFDSenderStorePacket 68581 [12:59:43]StoreOFDPacket docnum=68581 [12:59:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 BA 81 07 01 07 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 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 C2 0F 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 E5 0B 01 00 35 04 06 00 C9 31 4B BD E9 C6 6D 7C DD 1B E8 72 9A 21 [12:59:43]CheckFolder [12:59:43]dirname=/storage/ofd_packets [12:59:43]CheckFolder done [12:59:43]ProducePacketName [12:59:43]name=ofd_packets/00068581 [12:59:43]NVStorageSaveData ofd_packets/00068581 [12:59:43]File name is /storage/ofd_packets/00068581 [12:59:43]Write 301 bytes [12:59:43]NVStorageSaveData done [12:59:43]OFDSenderStorePacket done [12:59:43]KKMCreateOFDPacket done [12:59:43]NVStorageSaveData kkm_last_timestamp [12:59:43]File name is /storage/kkm_last_timestamp [12:59:43]Write 4 bytes [12:59:43]NVStorageSaveData done [12:59:43]ExternCall_PrintAddStr [12:59:43]wPrintStart [12:59:43]Write to MH i2c: 01 00 00 BA 25 DF [12:59:43]Write i2c OK [12:59:43]MH_I2C_Read... [12:59:43]Read from MH i2c: 01 [12:59:43]MH_I2C_Read... [12:59:43]Read from MH i2c: 01 07 00 [12:59:43]MH_I2C_Read... [12:59:43]Read from MH i2c: 01 07 00 BA 25 00 00 00 00 00 FF 0F F4 [12:59:43]RasterBufferAndPrint [12:59:43]line Счет N : (1)706711 [12:59:43]line ИНН: 02508201610067 [12:59:43]line Контрольно-Кассовый Чек [12:59:43]line ПРОДАЖА [12:59:43]line ТРК (МРК, ГНК) : 42 [12:59:43]line Товар: 2710124130 [12:59:43]line Аи-92-К-4 [12:59:43]line 2.990 * 66.90 [12:59:43]line = 200.03 [12:59:43]line НДС 12% НСП 1% [12:59:43]line > о реализуемом товаре [12:59:43]line ОКРУГЛЕНИЕ: -0.03 [12:59:43]line ИТОГО: 200.00 [12:59:43]line Внесено: 200.00 [12:59:43]line СДАЧА: 0.00 [12:59:43]line НСП 1% : 1.77 [12:59:43]line НДС 12% : 21.24 [12:59:43]line Наличными: 200.00 [12:59:43]line Безнал.: 0.00 [12:59:43]line Место: АЗС № 62 "Партнер Нефть" [12:59:43]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [12:59:43]line СНО: Общий режим [12:59:43]line Чек 79 04.06.2024 12:59 [12:59:43]line Смена: 325 ФФД: 1.0 [12:59:43]line ЗНМ: 0300000181 [12:59:43]line РНМ: 0000000000098096 [12:59:43]line Версия ККМ: 001 [12:59:43]line ФМ: 0000000000965400 [12:59:43]line ФД: 68581 [12:59:43]line ФПД: 221213561317830 [12:59:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T125946&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68581&fm=221213561317830&tin=02508201610067®Number=0000000000098096&sum=20000 [12:59:43]OFD Sender: Processing packet 68581 [packets to send 26, broken 25] [12:59:43]ProducePacketName [12:59:43]name=ofd_packets/00068581 [12:59:43]OFD Sender: To server: pG, [12:59:43]CommunicateWithHost lk.salyk.kg:30040 [12:59:43]ConnectInit lk.salyk.kg [12:59:43]written 0, free lines is 4095 [12:59:43]Connected sock=10 [12:59:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 BA 81 07 01 07 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 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 C2 0F 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 E5 0B 01 00 35 04 06 00 C9 31 4B BD E9 C6 6D 7C DD 1B E8 72 9A 21 [12:59:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 B8 10 47 00 E1 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 39 36 35 34 30 30 10 04 04 00 E5 0B 01 00 F4 03 04 00 BA B6 5E 66 B6 04 01 00 00 20 E4 FD 5D 98 86 F0 AB [12:59:43]CommunicateWithHost err = 0 [12:59:43]CheckOFDResponse [12:59:43]1017 (14) - 77093643461234 [12:59:43]1041 (16) - 0000000000965400 [12:59:43]1040 (4) - 68581 [12:59:43]1012 (4) - 04.06.2024 06:39 [12:59:43]1206 (1) - 0 [12:59:43]OFD Sender: Remove packet 68581 [12:59:43]ProducePacketName [12:59:43]name=ofd_packets/00068581 [12:59:43]NVStorageDeleteData [12:59:44]Write to MH i2c: 01 00 00 E5 25 0A [12:59:44]Write i2c OK [12:59:44]MH_I2C_Read... [12:59:44]Read from MH i2c: 01 [12:59:44]MH_I2C_Read... [12:59:44]Read from MH i2c: 01 07 00 [12:59:44]MH_I2C_Read... [12:59:44]Read from MH i2c: 01 07 00 E5 25 00 00 00 00 00 D9 0C F6 [12:59:44]RasterBufferAndPrint [12:59:44]line [12:59:44]line [12:59:44]line [12:59:44]line [12:59:44]line [12:59:44]written 0, free lines is 3296 [12:59:44]MH_Cut [12:59:44]Write to MH i2c: D1 01 00 EC 25 01 E3 [12:59:44]Write i2c OK [12:59:44]MH_I2C_Read... [12:59:44]Read from MH i2c: D1 [12:59:44]MH_I2C_Read... [12:59:44]Read from MH i2c: D1 01 00 [12:59:44]MH_I2C_Read... [12:59:44]Read from MH i2c: D1 01 00 EC 25 00 E2 [12:59:44]Write to MH i2c: 01 00 00 ED 25 12 [12:59:44]Write i2c OK [12:59:44]MH_I2C_Read... [12:59:44]OFD Sender: No OFD packet to send [12:59:44]*** Cut start [12:59:44]*** Partial cut [12:59:44]*** CUTSNS_PIN = 1 [12:59:44]*** CUTSNS_PIN = 0 [12:59:45]*** Brake cut motor [12:59:45]Read from MH i2c: 01 [12:59:45]MH_I2C_Read... [12:59:45]*** Stop cut motor [12:59:45]*** Cut end [12:59:45]Read from MH i2c: 01 07 00 [12:59:45]MH_I2C_Read... [12:59:45]Read from MH i2c: 01 07 00 ED 25 00 00 00 00 00 FF 0F 27 [12:59:45]process_action close_receipt done [12:59:45]requested_data is exist [12:59:45]produce_requested_data [12:59:45]requested_item fm.sn is exist - process it [12:59:45]wFMCommunicate request_size=4 [12:59:45]MH_SAM_APDU [12:59:45]CAPDU: 80 11 00 00 [12:59:45]Write to MH i2c: E2 08 00 EE 25 80 11 00 00 00 00 00 00 8D [12:59:45]Write i2c OK [12:59:45]MH_I2C_Read... [12:59:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:59:45]Read from MH i2c: E2 [12:59:45]MH_I2C_Read... [12:59:45]Read from MH i2c: E2 17 00 [12:59:45]MH_I2C_Read... [12:59:45]Read from MH i2c: E2 17 00 EE 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 D8 [12:59:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [12:59:45]wFMCommunicate OK [12:59:45]requested_item fd.num is exist - process it [12:59:45]SAM_PROTO_GetFieldsCounters [12:59:45]wFMCommunicate request_size=4 [12:59:45]MH_SAM_APDU [12:59:45]CAPDU: 80 13 00 00 [12:59:45]Write to MH i2c: E2 08 00 EF 25 80 13 00 00 00 00 00 00 90 [12:59:45]Write i2c OK [12:59:45]MH_I2C_Read... [12:59:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:59:45]Read from MH i2c: E2 [12:59:45]MH_I2C_Read... [12:59:45]Read from MH i2c: E2 62 00 [12:59:45]MH_I2C_Read... [12:59:45]Read from MH i2c: E2 62 00 EF 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 E5 0B 01 00 0E 04 04 00 45 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 D4 [12:59:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 E5 0B 01 00 0E 04 04 00 45 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:59:45]wFMCommunicate OK [12:59:45]SAM_PROTO_GetFieldsCounters done [12:59:45]requested_item shift.num is exist - process it [12:59:45]requested_item shift.opened is exist - process it [12:59:45]req_shift_opened [12:59:45]FM_GetShiftState [12:59:45]SAM_PROTO_GetShiftState [12:59:45]wFMCommunicate request_size=4 [12:59:45]MH_SAM_APDU [12:59:45]CAPDU: 80 13 01 00 [12:59:45]Write to MH i2c: E2 08 00 F0 25 80 13 01 00 00 00 00 00 92 [12:59:45]Write i2c OK [12:59:45]MH_I2C_Read... [12:59:45]Read from MH i2c: E2 [12:59:45]MH_I2C_Read... [12:59:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:59:45]Read from MH i2c: E2 0E 00 [12:59:45]MH_I2C_Read... [12:59:45]Read from MH i2c: E2 0E 00 F0 25 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 2E [12:59:45]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [12:59:45]wFMCommunicate OK [12:59:45]SAM_PROTO_GetShiftState done [12:59:45]FM_GetShiftState done [12:59:45]req_shift_opened done [12:59:45]requested_item shift.open_date is exist - process it [12:59:45]req_shift_open_date [12:59:45]req_shift_open_date done [12:59:45]produce_requested_data done [12:59:45]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68581,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [12:59:45]process_action_free close_receipt [12:59:45]json_value_free [12:59:45]json_value_free done [12:59:45]process_json_proto returns [12:59:45]Send response to host [12:59:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68581,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [12:59:45]free response buf [12:59:45]execute_script done [12:59:45]execute_script returns [12:59:45]free content buf [12:59:45]Sock 7.Close socket [12:59:45]Sock 7.Thread stoped [12:59:49]OFD Sender: No OFD packet to send [12:59:54]OFD Sender: No OFD packet to send [12:59:59]OFD Sender: No OFD packet to send [13:00:04]OFD Sender: No OFD packet to send [13:00:09]OFD Sender: No OFD packet to send [13:00:14]OFD Sender: No OFD packet to send [13:00:19]OFD Sender: No OFD packet to send [13:00:24]OFD Sender: No OFD packet to send [13:00:29]OFD Sender: No OFD packet to send [13:00:34]OFD Sender: No OFD packet to send [13:00:39]OFD Sender: No OFD packet to send [13:00:44]OFD Sender: No OFD packet to send [13:00:49]OFD Sender: No OFD packet to send [13:00:54]OFD Sender: No OFD packet to send [13:00:59]OFD Sender: No OFD packet to send [13:01:01]accept exits with 9 [13:01:01]New connection [13:01:01]New thread 3067084132 created [13:01:01]Thread 3067227492 joined [13:01:01]Waiting for new connection... [13:01:01] Sock 9.Parse request [13:01:01]Sock 9.Check first char [13:01:01]Sock 9.First char is OK [13:01:01]request: POST /json_proto HTTP/1.0 [13:01:01]Method: POST [13:01:01]URL: /json_proto [13:01:01]Method is POST - this is cgi request [13:01:01]url: /json_proto [13:01:01]query_string will be loaded in cgi processing [13:01:01]execute_cgi json_proto POST (null) [13:01:01]execute_cgi path=json_proto method=POST [13:01:01]POST find Content-Length [13:01:01]Host: 172.17.36.132:8080 [13:01:01]Content-Length: 677 [13:01:01]Content-Type: application/json [13:01:01] [13:01:01]POST finish read [13:01:01]Found Content-Length = 677 [13:01:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706712", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:01:01]execute_script... [13:01: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)706712", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:01:01]POST & json_proto [13:01:01]process_json_proto [13:01:01]json parsed OK: [13:01:01]protocol is kg_v1.0 [13:01:01]action value=close_receipt [13:01:01]process_action close_receipt [13:01:01]cmd_close_receipt [13:01:01]MH_GetDate [13:01:01]Write to MH i2c: F0 00 00 F1 25 05 [13:01:01]Write i2c OK [13:01:01]MH_I2C_Read... [13:01:01]Read from MH i2c: F0 [13:01:01]MH_I2C_Read... [13:01:01]Read from MH i2c: F0 09 00 [13:01:01]MH_I2C_Read... [13:01:01]Read from MH i2c: F0 09 00 F1 25 00 11 10 5F 66 B2 22 B0 64 DC [13:01:01]GetLastDocTimeStamp 1717505986 [13:01:01]current date 1717506065 [13:01:01]FM_GetShiftState [13:01:01]SAM_PROTO_GetShiftState [13:01:01]wFMCommunicate request_size=4 [13:01:01]MH_SAM_APDU [13:01:01]CAPDU: 80 13 01 00 [13:01:01]Write to MH i2c: E2 08 00 F2 25 80 13 01 00 00 00 00 00 94 [13:01:01]Write i2c OK [13:01:01]MH_I2C_Read... [13:01:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:01:01]Read from MH i2c: E2 [13:01:01]MH_I2C_Read... [13:01:01]Read from MH i2c: E2 0E 00 [13:01:01]MH_I2C_Read... [13:01:01]Read from MH i2c: E2 0E 00 F2 25 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 30 [13:01:01]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [13:01:01]wFMCommunicate OK [13:01:01]SAM_PROTO_GetShiftState done [13:01:01]FM_GetShiftState done [13:01:01]opened in 1717460590 [13:01:01]opened+sec_in_day 1717546990 [13:01:01]quantity*price = 50041 [13:01:01]sum+1 = 50042 [13:01:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 80 04.06.2024 13:01 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68582 ФПД: 265779877464445 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T130105&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68582&fm=265779877464445&tin=02508201610067®Number=0000000000098096&sum=50000 [13:01:02]StoreToDocumentArchive [13:01:02]shift 325 fd 68582 [13:01:02]save to /storage/0325/doc_00068582 [13:01:02]save last doc name /storage/0325/doc_00068582 to /storage/kkm_last_doc_name [13:01:02]save OK [13:01:02]Clear old archive folders... [13:01:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:01:02]tlvbuf is 00A80820 [13:01:02]SAM_PROTO_ClearQueue [13:01:02]wFMCommunicate request_size=4 [13:01:02]MH_SAM_APDU [13:01:02]CAPDU: 80 09 00 00 [13:01:02]Write to MH i2c: E2 08 00 FF 25 80 09 00 00 00 00 00 00 96 [13:01:02]Write i2c OK [13:01:02]MH_I2C_Read... [13:01:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:01:02]Read from MH i2c: E2 [13:01:02]MH_I2C_Read... [13:01:02]Read from MH i2c: E2 03 00 [13:01:02]MH_I2C_Read... [13:01:02]Read from MH i2c: E2 03 00 FF 25 00 90 00 98 [13:01:02]RAPDU: 90 00 [13:01:02]wFMCommunicate OK [13:01:02]SAM_PROTO_ClearQueue done [13:01:02]KKMCreateOFDPacket [13:01:02]OFDProtocolAddRootSTLVToBuf [13:01:02]FM_MakeSignedData [13:01:02]FM_MakeSignedData [13:01:02]SAM_PROTO_SignData [13:01:02]wFMCommunicate request_size=4 [13:01:02]MH_SAM_APDU [13:01:02]CAPDU: 80 0D 01 02 [13:01:02]Write to MH i2c: E2 08 00 00 26 80 0D 01 02 00 00 00 00 9F [13:01:02]Write i2c OK [13:01:02]MH_I2C_Read... [13:01:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:01:02]Read from MH i2c: E2 [13:01:02]MH_I2C_Read... [13:01:02]Read from MH i2c: E2 03 00 [13:01:02]MH_I2C_Read... [13:01:02]Read from MH i2c: E2 03 00 00 26 00 90 00 9A [13:01:02]RAPDU: 90 00 [13:01:02]wFMCommunicate OK [13:01:02]wFMCommunicate request_size=255 [13:01:02]MH_SAM_APDU [13:01: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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 11 10 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 E6 0B 01 00 35 04 06 00 F1 [13:01:02]Write to MH i2c: E2 02 01 01 26 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 11 10 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 E6 0B 01 00 35 04 06 00 F1 00 00 8B [13:01:02]Write i2c OK [13:01:02]MH_I2C_Read... [13:01:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:01:02]Read from MH i2c: E2 [13:01:02]MH_I2C_Read... [13:01:02]Read from MH i2c: E2 03 00 [13:01:02]MH_I2C_Read... [13:01:02]Read from MH i2c: E2 03 00 01 26 00 90 00 9B [13:01:02]RAPDU: 90 00 [13:01:02]wFMCommunicate OK [13:01:02]wFMCommunicate request_size=10 [13:01:02]MH_SAM_APDU [13:01:02]CAPDU: 80 0D 02 02 05 B9 B3 2F 49 7D [13:01:02]Write to MH i2c: E2 0D 00 02 26 80 0D 02 02 05 00 B9 B3 2F 49 7D 00 00 0D [13:01:02]Write i2c OK [13:01:02]MH_I2C_Read... [13:01:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:01:02]Read from MH i2c: E2 [13:01:02]MH_I2C_Read... [13:01:02]Read from MH i2c: E2 03 00 [13:01:02]MH_I2C_Read... [13:01:02]Read from MH i2c: E2 03 00 02 26 00 90 00 9C [13:01:02]RAPDU: 90 00 [13:01:02]wFMCommunicate OK [13:01:02]wFMCommunicate request_size=4 [13:01:02]MH_SAM_APDU [13:01:02]CAPDU: 80 0D 03 02 [13:01:02]Write to MH i2c: E2 08 00 03 26 80 0D 03 02 00 00 00 00 A4 [13:01:02]Write i2c OK [13:01:02]MH_I2C_Read... [13:01:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:01:02]Read from MH i2c: E2 [13:01:02]MH_I2C_Read... [13:01:02]Read from MH i2c: E2 0B 00 [13:01:02]MH_I2C_Read... [13:01:02]Read from MH i2c: E2 0B 00 03 26 00 18 15 3C 9B 7E 18 3E 5E 90 00 DB [13:01:02]RAPDU: 18 15 3C 9B 7E 18 3E 5E 90 00 [13:01:02]wFMCommunicate OK [13:01:02]SAM_PROTO_SignData done [13:01:02]FM_MakeSignedData done [13:01:02]CreateOFDProtocolMessage [13:01:02]wFMCommunicate request_size=4 [13:01:02]MH_SAM_APDU [13:01:02]CAPDU: 80 11 00 00 [13:01:02]Write to MH i2c: E2 08 00 04 26 80 11 00 00 00 00 00 00 A4 [13:01:02]Write i2c OK [13:01:02]MH_I2C_Read... [13:01:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:01:02]Read from MH i2c: E2 [13:01:02]MH_I2C_Read... [13:01:02]Read from MH i2c: E2 17 00 [13:01:02]MH_I2C_Read... [13:01:02]Read from MH i2c: E2 17 00 04 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 EF [13:01:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [13:01:02]wFMCommunicate OK [13:01:02]CreateOFDProtocolMessage done [13:01:02]OFDSenderStorePacket 68582 [13:01:02]StoreOFDPacket docnum=68582 [13:01:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 39 4C 07 01 15 44 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 11 10 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 E6 0B 01 00 35 04 06 00 F1 B9 B3 2F 49 7D 18 15 3C 9B 7E 18 3E 5E [13:01:02]CheckFolder [13:01:02]dirname=/storage/ofd_packets [13:01:02]CheckFolder done [13:01:02]ProducePacketName [13:01:02]name=ofd_packets/00068582 [13:01:02]NVStorageSaveData ofd_packets/00068582 [13:01:02]File name is /storage/ofd_packets/00068582 [13:01:02]Write 301 bytes [13:01:02]NVStorageSaveData done [13:01:02]OFDSenderStorePacket done [13:01:02]KKMCreateOFDPacket done [13:01:02]NVStorageSaveData kkm_last_timestamp [13:01:02]File name is /storage/kkm_last_timestamp [13:01:02]Write 4 bytes [13:01:02]NVStorageSaveData done [13:01:02]ExternCall_PrintAddStr [13:01:02]wPrintStart [13:01:02]Write to MH i2c: 01 00 00 05 26 2B [13:01:02]Write i2c OK [13:01:02]MH_I2C_Read... [13:01:02]Read from MH i2c: 01 [13:01:02]MH_I2C_Read... [13:01:02]Read from MH i2c: 01 07 00 [13:01:02]MH_I2C_Read... [13:01:02]Read from MH i2c: 01 07 00 05 26 00 00 00 00 00 FF 0F 40 [13:01:02]RasterBufferAndPrint [13:01:02]line Счет N : (1)706712 [13:01:02]line ИНН: 02508201610067 [13:01:02]line Контрольно-Кассовый Чек [13:01:02]line ПРОДАЖА [13:01:02]line ТРК (МРК, ГНК) : 63 [13:01:02]line Товар: 2710124130 [13:01:02]line Аи-92-К-4 [13:01:02]line 7.480 * 66.90 [13:01:02]line = 500.41 [13:01:02]line НДС 12% НСП 1% [13:01:02]line > о реализуемом товаре [13:01:02]line ОКРУГЛЕНИЕ: -0.41 [13:01:02]line ИТОГО: 500.00 [13:01:02]line Внесено: 500.00 [13:01:02]line СДАЧА: 0.00 [13:01:02]line НСП 1% : 4.43 [13:01:02]line НДС 12% : 53.14 [13:01:02]line Наличными: 500.00 [13:01:02]line Безнал.: 0.00 [13:01:02]line Место: АЗС № 62 "Партнер Нефть" [13:01:02]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [13:01:02]line СНО: Общий режим [13:01:02]line Чек 80 04.06.2024 13:01 [13:01:02]line Смена: 325 ФФД: 1.0 [13:01:02]line ЗНМ: 0300000181 [13:01:02]line РНМ: 0000000000098096 [13:01:02]line Версия ККМ: 001 [13:01:02]line ФМ: 0000000000965400 [13:01:02]line ФД: 68582 [13:01:02]line ФПД: 265779877464445 [13:01:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T130105&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68582&fm=265779877464445&tin=02508201610067®Number=0000000000098096&sum=50000 [13:01:03]OFD Sender: Processing packet 68582 [packets to send 26, broken 25] [13:01:03]ProducePacketName [13:01:03]name=ofd_packets/00068582 [13:01:03]OFD Sender: To server: pG, [13:01:03]CommunicateWithHost lk.salyk.kg:30040 [13:01:03]ConnectInit lk.salyk.kg [13:01:03]written 0, free lines is 4095 [13:01:03]Connected sock=7 [13:01:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 39 4C 07 01 15 44 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 11 10 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 E6 0B 01 00 35 04 06 00 F1 B9 B3 2F 49 7D 18 15 3C 9B 7E 18 3E 5E [13:01:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 36 46 47 00 E1 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 39 36 35 34 30 30 10 04 04 00 E6 0B 01 00 F4 03 04 00 0A B7 5E 66 B6 04 01 00 00 49 4A CC 71 75 BF F8 CA [13:01:03]CommunicateWithHost err = 0 [13:01:03]CheckOFDResponse [13:01:03]1017 (14) - 77093643461234 [13:01:03]1041 (16) - 0000000000965400 [13:01:03]1040 (4) - 68582 [13:01:03]1012 (4) - 04.06.2024 06:41 [13:01:03]1206 (1) - 0 [13:01:03]OFD Sender: Remove packet 68582 [13:01:03]ProducePacketName [13:01:03]name=ofd_packets/00068582 [13:01:03]NVStorageDeleteData [13:01:03]Write to MH i2c: 01 00 00 30 26 56 [13:01:03]Write i2c OK [13:01:03]MH_I2C_Read... [13:01:03]Read from MH i2c: 01 [13:01:03]MH_I2C_Read... [13:01:03]Read from MH i2c: 01 07 00 [13:01:03]MH_I2C_Read... [13:01:03]Read from MH i2c: 01 07 00 30 26 00 00 00 00 00 D4 0C 3D [13:01:03]RasterBufferAndPrint [13:01:03]line [13:01:03]line [13:01:03]line [13:01:03]line [13:01:03]line [13:01:03]written 0, free lines is 3292 [13:01:03]MH_Cut [13:01:03]Write to MH i2c: D1 01 00 37 26 01 2F [13:01:03]Write i2c OK [13:01:03]MH_I2C_Read... [13:01:03]Read from MH i2c: D1 [13:01:03]MH_I2C_Read... [13:01:03]Read from MH i2c: D1 01 00 [13:01:03]MH_I2C_Read... [13:01:03]Read from MH i2c: D1 01 00 37 26 00 2E [13:01:03]Write to MH i2c: 01 00 00 38 26 5E [13:01:03]Write i2c OK [13:01:03]MH_I2C_Read... [13:01:03]OFD Sender: No OFD packet to send [13:01:04]*** Cut start [13:01:04]*** Partial cut [13:01:04]*** CUTSNS_PIN = 1 [13:01:04]*** CUTSNS_PIN = 0 [13:01:04]*** Brake cut motor [13:01:04]Read from MH i2c: 01 [13:01:04]MH_I2C_Read... [13:01:04]*** Stop cut motor [13:01:04]*** Cut end [13:01:04]Read from MH i2c: 01 07 00 [13:01:04]MH_I2C_Read... [13:01:04]Read from MH i2c: 01 07 00 38 26 00 00 00 00 00 FF 0F 73 [13:01:04]process_action close_receipt done [13:01:04]requested_data is exist [13:01:04]produce_requested_data [13:01:04]requested_item fm.sn is exist - process it [13:01:04]wFMCommunicate request_size=4 [13:01:04]MH_SAM_APDU [13:01:04]CAPDU: 80 11 00 00 [13:01:04]Write to MH i2c: E2 08 00 39 26 80 11 00 00 00 00 00 00 D9 [13:01:04]Write i2c OK [13:01:04]MH_I2C_Read... [13:01:04]Read from MH i2c: E2 [13:01:04]MH_I2C_Read... [13:01:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:01:04]Read from MH i2c: E2 17 00 [13:01:04]MH_I2C_Read... [13:01:04]Read from MH i2c: E2 17 00 39 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 24 [13:01:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [13:01:04]wFMCommunicate OK [13:01:04]requested_item fd.num is exist - process it [13:01:04]SAM_PROTO_GetFieldsCounters [13:01:04]wFMCommunicate request_size=4 [13:01:04]MH_SAM_APDU [13:01:04]CAPDU: 80 13 00 00 [13:01:04]Write to MH i2c: E2 08 00 3A 26 80 13 00 00 00 00 00 00 DC [13:01:04]Write i2c OK [13:01:04]MH_I2C_Read... [13:01:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:01:05]Read from MH i2c: E2 [13:01:05]MH_I2C_Read... [13:01:05]Read from MH i2c: E2 62 00 [13:01:05]MH_I2C_Read... [13:01:05]Read from MH i2c: E2 62 00 3A 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 E6 0B 01 00 0E 04 04 00 45 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 24 [13:01:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 E6 0B 01 00 0E 04 04 00 45 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 [13:01:05]wFMCommunicate OK [13:01:05]SAM_PROTO_GetFieldsCounters done [13:01:05]requested_item shift.num is exist - process it [13:01:05]requested_item shift.opened is exist - process it [13:01:05]req_shift_opened [13:01:05]FM_GetShiftState [13:01:05]SAM_PROTO_GetShiftState [13:01:05]wFMCommunicate request_size=4 [13:01:05]MH_SAM_APDU [13:01:05]CAPDU: 80 13 01 00 [13:01:05]Write to MH i2c: E2 08 00 3B 26 80 13 01 00 00 00 00 00 DE [13:01:05]Write i2c OK [13:01:05]MH_I2C_Read... [13:01:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:01:05]Read from MH i2c: E2 [13:01:05]MH_I2C_Read... [13:01:05]Read from MH i2c: E2 0E 00 [13:01:05]MH_I2C_Read... [13:01:05]Read from MH i2c: E2 0E 00 3B 26 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 7A [13:01:05]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [13:01:05]wFMCommunicate OK [13:01:05]SAM_PROTO_GetShiftState done [13:01:05]FM_GetShiftState done [13:01:05]req_shift_opened done [13:01:05]requested_item shift.open_date is exist - process it [13:01:05]req_shift_open_date [13:01:05]req_shift_open_date done [13:01:05]produce_requested_data done [13:01:05]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68582,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [13:01:05]process_action_free close_receipt [13:01:05]json_value_free [13:01:05]json_value_free done [13:01:05]process_json_proto returns [13:01:05]Send response to host [13:01:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68582,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [13:01:05]free response buf [13:01:05]execute_script done [13:01:05]execute_script returns [13:01:05]free content buf [13:01:05]Sock 9.Close socket [13:01:05]Sock 9.Thread stoped [13:01:08]OFD Sender: No OFD packet to send [13:01:13]OFD Sender: No OFD packet to send [13:01:18]OFD Sender: No OFD packet to send [13:01:23]OFD Sender: No OFD packet to send [13:01:28]OFD Sender: No OFD packet to send [13:01:33]OFD Sender: No OFD packet to send [13:01:38]OFD Sender: No OFD packet to send [13:01:43]OFD Sender: No OFD packet to send [13:01:48]OFD Sender: No OFD packet to send [13:01:53]OFD Sender: No OFD packet to send [13:01:58]OFD Sender: No OFD packet to send [13:02:03]OFD Sender: No OFD packet to send [13:02:08]OFD Sender: No OFD packet to send [13:02:13]OFD Sender: No OFD packet to send [13:02:18]OFD Sender: No OFD packet to send [13:02:23]OFD Sender: No OFD packet to send [13:02:28]OFD Sender: No OFD packet to send [13:02:33]OFD Sender: No OFD packet to send [13:02:38]OFD Sender: No OFD packet to send [13:02:43]OFD Sender: No OFD packet to send [13:02:48]OFD Sender: No OFD packet to send [13:02:53]OFD Sender: No OFD packet to send [13:02:58]OFD Sender: No OFD packet to send [13:03:03]OFD Sender: No OFD packet to send [13:03:08]OFD Sender: No OFD packet to send [13:03:13]OFD Sender: No OFD packet to send [13:03:18]OFD Sender: No OFD packet to send [13:03:23]OFD Sender: No OFD packet to send [13:03:28]OFD Sender: No OFD packet to send [13:03:33]OFD Sender: No OFD packet to send [13:03:38]OFD Sender: No OFD packet to send [13:03:43]OFD Sender: No OFD packet to send [13:03:48]OFD Sender: No OFD packet to send [13:03:53]OFD Sender: No OFD packet to send [13:03:58]OFD Sender: No OFD packet to send [13:04:03]OFD Sender: No OFD packet to send [13:04:09]OFD Sender: No OFD packet to send [13:04:14]OFD Sender: No OFD packet to send [13:04:19]OFD Sender: No OFD packet to send [13:04:24]OFD Sender: No OFD packet to send [13:04:29]OFD Sender: No OFD packet to send [13:04:34]OFD Sender: No OFD packet to send [13:04:39]OFD Sender: No OFD packet to send [13:04:44]OFD Sender: No OFD packet to send [13:04:49]OFD Sender: No OFD packet to send [13:04:54]OFD Sender: No OFD packet to send [13:04:59]OFD Sender: No OFD packet to send [13:05:04]OFD Sender: No OFD packet to send [13:05:07]accept exits with 10 [13:05:07]New connection [13:05:07]New thread 3067227492 created [13:05:07]Thread 3067084132 joined [13:05:07]Waiting for new connection... [13:05:07] Sock 10.Parse request [13:05:07]Sock 10.Check first char [13:05:07]Sock 10.First char is OK [13:05:07]request: POST /json_proto HTTP/1.0 [13:05:07]Method: POST [13:05:07]URL: /json_proto [13:05:07]Method is POST - this is cgi request [13:05:07]url: /json_proto [13:05:07]query_string will be loaded in cgi processing [13:05:07]execute_cgi json_proto POST (null) [13:05:07]execute_cgi path=json_proto method=POST [13:05:07]POST find Content-Length [13:05:07]Host: 172.17.36.132:8080 [13:05:07]Content-Length: 677 [13:05:07]Content-Type: application/json [13:05:07] [13:05:07]POST finish read [13:05:07]Found Content-Length = 677 [13:05:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706713", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:05:07]execute_script... [13:05: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)706713", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:05:07]POST & json_proto [13:05:07]process_json_proto [13:05:07]json parsed OK: [13:05:07]protocol is kg_v1.0 [13:05:07]action value=close_receipt [13:05:07]process_action close_receipt [13:05:07]cmd_close_receipt [13:05:07]MH_GetDate [13:05:07]Write to MH i2c: F0 00 00 3C 26 51 [13:05:07]Write i2c OK [13:05:07]MH_I2C_Read... [13:05:07]Read from MH i2c: F0 [13:05:07]MH_I2C_Read... [13:05:07]Read from MH i2c: F0 09 00 [13:05:07]MH_I2C_Read... [13:05:07]Read from MH i2c: F0 09 00 3C 26 00 08 11 5F 66 B2 22 B0 64 20 [13:05:07]GetLastDocTimeStamp 1717506065 [13:05:07]current date 1717506312 [13:05:07]FM_GetShiftState [13:05:07]SAM_PROTO_GetShiftState [13:05:07]wFMCommunicate request_size=4 [13:05:07]MH_SAM_APDU [13:05:07]CAPDU: 80 13 01 00 [13:05:07]Write to MH i2c: E2 08 00 3D 26 80 13 01 00 00 00 00 00 E0 [13:05:07]Write i2c OK [13:05:07]MH_I2C_Read... [13:05:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:05:07]Read from MH i2c: E2 [13:05:07]MH_I2C_Read... [13:05:07]Read from MH i2c: E2 0E 00 [13:05:07]MH_I2C_Read... [13:05:07]Read from MH i2c: E2 0E 00 3D 26 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 7C [13:05:07]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [13:05:07]wFMCommunicate OK [13:05:07]SAM_PROTO_GetShiftState done [13:05:07]FM_GetShiftState done [13:05:07]opened in 1717460590 [13:05:07]opened+sec_in_day 1717546990 [13:05:07]quantity*price = 50041 [13:05:07]sum+1 = 50042 [13:05:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 81 04.06.2024 13:05 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68583 ФПД: 147634514620725 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T130512&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68583&fm=147634514620725&tin=02508201610067®Number=0000000000098096&sum=50000 [13:05:08]StoreToDocumentArchive [13:05:08]shift 325 fd 68583 [13:05:08]save to /storage/0325/doc_00068583 [13:05:08]save last doc name /storage/0325/doc_00068583 to /storage/kkm_last_doc_name [13:05:08]save OK [13:05:08]Clear old archive folders... [13:05:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:05:08]tlvbuf is B6DEB820 [13:05:08]SAM_PROTO_ClearQueue [13:05:08]wFMCommunicate request_size=4 [13:05:08]MH_SAM_APDU [13:05:08]CAPDU: 80 09 00 00 [13:05:08]Write to MH i2c: E2 08 00 4A 26 80 09 00 00 00 00 00 00 E2 [13:05:08]Write i2c OK [13:05:08]MH_I2C_Read... [13:05:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:05:08]Read from MH i2c: E2 [13:05:08]MH_I2C_Read... [13:05:08]Read from MH i2c: E2 03 00 [13:05:08]MH_I2C_Read... [13:05:08]Read from MH i2c: E2 03 00 4A 26 00 90 00 E4 [13:05:08]RAPDU: 90 00 [13:05:08]wFMCommunicate OK [13:05:08]SAM_PROTO_ClearQueue done [13:05:08]KKMCreateOFDPacket [13:05:08]OFDProtocolAddRootSTLVToBuf [13:05:08]FM_MakeSignedData [13:05:08]FM_MakeSignedData [13:05:08]SAM_PROTO_SignData [13:05:08]wFMCommunicate request_size=4 [13:05:08]MH_SAM_APDU [13:05:08]CAPDU: 80 0D 01 02 [13:05:08]Write to MH i2c: E2 08 00 4B 26 80 0D 01 02 00 00 00 00 EA [13:05:08]Write i2c OK [13:05:08]MH_I2C_Read... [13:05:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:05:08]Read from MH i2c: E2 [13:05:08]MH_I2C_Read... [13:05:08]Read from MH i2c: E2 03 00 [13:05:08]MH_I2C_Read... [13:05:08]Read from MH i2c: E2 03 00 4B 26 00 90 00 E5 [13:05:08]RAPDU: 90 00 [13:05:08]wFMCommunicate OK [13:05:08]wFMCommunicate request_size=255 [13:05:08]MH_SAM_APDU [13:05: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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 08 11 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 E7 0B 01 00 35 04 06 00 86 [13:05:08]Write to MH i2c: E2 02 01 4C 26 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 08 11 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 E7 0B 01 00 35 04 06 00 86 00 00 65 [13:05:08]Write i2c OK [13:05:08]MH_I2C_Read... [13:05:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:05:09]Read from MH i2c: E2 [13:05:09]MH_I2C_Read... [13:05:09]Read from MH i2c: E2 03 00 [13:05:09]MH_I2C_Read... [13:05:09]Read from MH i2c: E2 03 00 4C 26 00 90 00 E6 [13:05:09]RAPDU: 90 00 [13:05:09]wFMCommunicate OK [13:05:09]wFMCommunicate request_size=10 [13:05:09]MH_SAM_APDU [13:05:09]CAPDU: 80 0D 02 02 05 45 D6 CC F1 35 [13:05:09]Write to MH i2c: E2 0D 00 4D 26 80 0D 02 02 05 00 45 D6 CC F1 35 00 00 04 [13:05:09]Write i2c OK [13:05:09]MH_I2C_Read... [13:05:09]OFD Sender: No OFD packet to send [13:05:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:05:09]Read from MH i2c: E2 [13:05:09]MH_I2C_Read... [13:05:09]Read from MH i2c: E2 03 00 [13:05:09]MH_I2C_Read... [13:05:09]Read from MH i2c: E2 03 00 4D 26 00 90 00 E7 [13:05:09]RAPDU: 90 00 [13:05:09]wFMCommunicate OK [13:05:09]wFMCommunicate request_size=4 [13:05:09]MH_SAM_APDU [13:05:09]CAPDU: 80 0D 03 02 [13:05:09]Write to MH i2c: E2 08 00 4E 26 80 0D 03 02 00 00 00 00 EF [13:05:09]Write i2c OK [13:05:09]MH_I2C_Read... [13:05:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:05:09]Read from MH i2c: E2 [13:05:09]MH_I2C_Read... [13:05:09]Read from MH i2c: E2 0B 00 [13:05:09]MH_I2C_Read... [13:05:09]Read from MH i2c: E2 0B 00 4E 26 00 36 0E 0F AE 29 21 41 0D 90 00 89 [13:05:09]RAPDU: 36 0E 0F AE 29 21 41 0D 90 00 [13:05:09]wFMCommunicate OK [13:05:09]SAM_PROTO_SignData done [13:05:09]FM_MakeSignedData done [13:05:09]CreateOFDProtocolMessage [13:05:09]wFMCommunicate request_size=4 [13:05:09]MH_SAM_APDU [13:05:09]CAPDU: 80 11 00 00 [13:05:09]Write to MH i2c: E2 08 00 4F 26 80 11 00 00 00 00 00 00 EF [13:05:09]Write i2c OK [13:05:09]MH_I2C_Read... [13:05:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:05:09]Read from MH i2c: E2 [13:05:09]MH_I2C_Read... [13:05:09]Read from MH i2c: E2 17 00 [13:05:09]MH_I2C_Read... [13:05:09]Read from MH i2c: E2 17 00 4F 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 3A [13:05:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [13:05:09]wFMCommunicate OK [13:05:09]CreateOFDProtocolMessage done [13:05:09]OFDSenderStorePacket 68583 [13:05:09]StoreOFDPacket docnum=68583 [13:05:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 E6 A3 07 01 23 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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 08 11 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 E7 0B 01 00 35 04 06 00 86 45 D6 CC F1 35 36 0E 0F AE 29 21 41 0D [13:05:09]CheckFolder [13:05:09]dirname=/storage/ofd_packets [13:05:09]CheckFolder done [13:05:09]ProducePacketName [13:05:09]name=ofd_packets/00068583 [13:05:09]NVStorageSaveData ofd_packets/00068583 [13:05:09]File name is /storage/ofd_packets/00068583 [13:05:09]Write 301 bytes [13:05:09]NVStorageSaveData done [13:05:09]OFDSenderStorePacket done [13:05:09]KKMCreateOFDPacket done [13:05:09]NVStorageSaveData kkm_last_timestamp [13:05:09]File name is /storage/kkm_last_timestamp [13:05:09]Write 4 bytes [13:05:09]NVStorageSaveData done [13:05:09]ExternCall_PrintAddStr [13:05:09]wPrintStart [13:05:09]Write to MH i2c: 01 00 00 50 26 76 [13:05:09]Write i2c OK [13:05:09]MH_I2C_Read... [13:05:09]Read from MH i2c: 01 [13:05:09]MH_I2C_Read... [13:05:09]Read from MH i2c: 01 07 00 [13:05:09]MH_I2C_Read... [13:05:09]Read from MH i2c: 01 07 00 50 26 00 00 00 00 00 FF 0F 8B [13:05:09]RasterBufferAndPrint [13:05:09]line Счет N : (1)706713 [13:05:09]line ИНН: 02508201610067 [13:05:09]line Контрольно-Кассовый Чек [13:05:09]line ПРОДАЖА [13:05:09]line ТРК (МРК, ГНК) : 53 [13:05:09]line Товар: 2710124130 [13:05:09]line Аи-92-К-4 [13:05:09]line 7.480 * 66.90 [13:05:09]line = 500.41 [13:05:09]line НДС 12% НСП 1% [13:05:09]line > о реализуемом товаре [13:05:09]line ОКРУГЛЕНИЕ: -0.41 [13:05:09]line ИТОГО: 500.00 [13:05:09]line Внесено: 500.00 [13:05:09]line СДАЧА: 0.00 [13:05:09]line НСП 1% : 4.43 [13:05:09]line НДС 12% : 53.14 [13:05:09]line Наличными: 500.00 [13:05:09]line Безнал.: 0.00 [13:05:09]line Место: АЗС № 62 "Партнер Нефть" [13:05:09]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [13:05:09]line СНО: Общий режим [13:05:09]line Чек 81 04.06.2024 13:05 [13:05:09]line Смена: 325 ФФД: 1.0 [13:05:09]line ЗНМ: 0300000181 [13:05:09]line РНМ: 0000000000098096 [13:05:09]line Версия ККМ: 001 [13:05:09]line ФМ: 0000000000965400 [13:05:09]line ФД: 68583 [13:05:09]line ФПД: 147634514620725 [13:05:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T130512&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68583&fm=147634514620725&tin=02508201610067®Number=0000000000098096&sum=50000 [13:05:09]OFD Sender: Processing packet 68583 [packets to send 26, broken 25] [13:05:09]ProducePacketName [13:05:09]name=ofd_packets/00068583 [13:05:09]OFD Sender: To server: pG, [13:05:09]CommunicateWithHost lk.salyk.kg:30040 [13:05:09]ConnectInit lk.salyk.kg [13:05:09]written 0, free lines is 4095 [13:05:09]Connected sock=9 [13:05:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 E6 A3 07 01 23 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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 08 11 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 E7 0B 01 00 35 04 06 00 86 45 D6 CC F1 35 36 0E 0F AE 29 21 41 0D [13:05:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 1D 4F 47 00 90 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 39 36 35 34 30 30 10 04 04 00 E7 0B 01 00 F4 03 04 00 00 B8 5E 66 B6 04 01 00 00 2D 18 87 9B F6 BA 14 9E [13:05:09]CommunicateWithHost err = 0 [13:05:09]CheckOFDResponse [13:05:09]1017 (14) - 77093643461234 [13:05:09]1041 (16) - 0000000000965400 [13:05:09]1040 (4) - 68583 [13:05:09]1012 (4) - 04.06.2024 06:45 [13:05:09]1206 (1) - 0 [13:05:09]OFD Sender: Remove packet 68583 [13:05:09]ProducePacketName [13:05:09]name=ofd_packets/00068583 [13:05:09]NVStorageDeleteData [13:05:10]Write to MH i2c: 01 00 00 7B 26 A1 [13:05:10]Write i2c OK [13:05:10]MH_I2C_Read... [13:05:10]Read from MH i2c: 01 [13:05:10]MH_I2C_Read... [13:05:10]Read from MH i2c: 01 07 00 [13:05:10]MH_I2C_Read... [13:05:10]Read from MH i2c: 01 07 00 7B 26 00 00 00 00 00 D8 0C 8C [13:05:10]RasterBufferAndPrint [13:05:10]line [13:05:10]line [13:05:10]line [13:05:10]line [13:05:10]line [13:05:10]written 0, free lines is 3295 [13:05:10]MH_Cut [13:05:10]Write to MH i2c: D1 01 00 82 26 01 7A [13:05:10]Write i2c OK [13:05:10]MH_I2C_Read... [13:05:10]Read from MH i2c: D1 [13:05:10]MH_I2C_Read... [13:05:10]Read from MH i2c: D1 01 00 [13:05:10]MH_I2C_Read... [13:05:10]Read from MH i2c: D1 01 00 82 26 00 79 [13:05:10]Write to MH i2c: 01 00 00 83 26 A9 [13:05:10]Write i2c OK [13:05:10]MH_I2C_Read... [13:05:10]OFD Sender: No OFD packet to send [13:05:10]*** Cut start [13:05:10]*** Partial cut [13:05:10]*** CUTSNS_PIN = 1 [13:05:10]*** CUTSNS_PIN = 0 [13:05:11]*** Brake cut motor [13:05:11]Read from MH i2c: 01 [13:05:11]MH_I2C_Read... [13:05:11]*** Stop cut motor [13:05:11]*** Cut end [13:05:11]Read from MH i2c: 01 07 00 [13:05:11]MH_I2C_Read... [13:05:11]Read from MH i2c: 01 07 00 83 26 00 00 00 00 00 FF 0F BE [13:05:11]process_action close_receipt done [13:05:11]requested_data is exist [13:05:11]produce_requested_data [13:05:11]requested_item fm.sn is exist - process it [13:05:11]wFMCommunicate request_size=4 [13:05:11]MH_SAM_APDU [13:05:11]CAPDU: 80 11 00 00 [13:05:11]Write to MH i2c: E2 08 00 84 26 80 11 00 00 00 00 00 00 24 [13:05:11]Write i2c OK [13:05:11]MH_I2C_Read... [13:05:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:05:11]Read from MH i2c: E2 [13:05:11]MH_I2C_Read... [13:05:11]Read from MH i2c: E2 17 00 [13:05:11]MH_I2C_Read... [13:05:11]Read from MH i2c: E2 17 00 84 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 6F [13:05:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [13:05:11]wFMCommunicate OK [13:05:11]requested_item fd.num is exist - process it [13:05:11]SAM_PROTO_GetFieldsCounters [13:05:11]wFMCommunicate request_size=4 [13:05:11]MH_SAM_APDU [13:05:11]CAPDU: 80 13 00 00 [13:05:11]Write to MH i2c: E2 08 00 85 26 80 13 00 00 00 00 00 00 27 [13:05:11]Write i2c OK [13:05:11]MH_I2C_Read... [13:05:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:05:11]Read from MH i2c: E2 [13:05:11]MH_I2C_Read... [13:05:11]Read from MH i2c: E2 62 00 [13:05:11]MH_I2C_Read... [13:05:11]Read from MH i2c: E2 62 00 85 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 E7 0B 01 00 0E 04 04 00 45 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 73 [13:05:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 E7 0B 01 00 0E 04 04 00 45 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 [13:05:11]wFMCommunicate OK [13:05:11]SAM_PROTO_GetFieldsCounters done [13:05:11]requested_item shift.num is exist - process it [13:05:11]requested_item shift.opened is exist - process it [13:05:11]req_shift_opened [13:05:11]FM_GetShiftState [13:05:11]SAM_PROTO_GetShiftState [13:05:11]wFMCommunicate request_size=4 [13:05:11]MH_SAM_APDU [13:05:11]CAPDU: 80 13 01 00 [13:05:11]Write to MH i2c: E2 08 00 86 26 80 13 01 00 00 00 00 00 29 [13:05:11]Write i2c OK [13:05:11]MH_I2C_Read... [13:05:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:05:11]Read from MH i2c: E2 [13:05:11]MH_I2C_Read... [13:05:11]Read from MH i2c: E2 0E 00 [13:05:11]MH_I2C_Read... [13:05:11]Read from MH i2c: E2 0E 00 86 26 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 C5 [13:05:11]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [13:05:11]wFMCommunicate OK [13:05:11]SAM_PROTO_GetShiftState done [13:05:11]FM_GetShiftState done [13:05:11]req_shift_opened done [13:05:11]requested_item shift.open_date is exist - process it [13:05:11]req_shift_open_date [13:05:11]req_shift_open_date done [13:05:11]produce_requested_data done [13:05:11]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68583,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [13:05:11]process_action_free close_receipt [13:05:11]json_value_free [13:05:11]json_value_free done [13:05:11]process_json_proto returns [13:05:11]Send response to host [13:05:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68583,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [13:05:11]free response buf [13:05:11]execute_script done [13:05:11]execute_script returns [13:05:11]free content buf [13:05:11]Sock 10.Close socket [13:05:11]Sock 10.Thread stoped [13:05:15]OFD Sender: No OFD packet to send [13:05:20]OFD Sender: No OFD packet to send [13:05:23]accept exits with 7 [13:05:23]New connection [13:05:23]New thread 3067084132 created [13:05:23]Thread 3067227492 joined [13:05:23]Waiting for new connection... [13:05:23] Sock 7.Parse request [13:05:23]Sock 7.Check first char [13:05:23]Sock 7.First char is OK [13:05:23]request: POST /json_proto HTTP/1.0 [13:05:23]Method: POST [13:05:23]URL: /json_proto [13:05:23]Method is POST - this is cgi request [13:05:23]url: /json_proto [13:05:23]query_string will be loaded in cgi processing [13:05:23]execute_cgi json_proto POST (null) [13:05:23]execute_cgi path=json_proto method=POST [13:05:23]POST find Content-Length [13:05:23]Host: 172.17.36.132:8080 [13:05:23]Content-Length: 677 [13:05:23]Content-Type: application/json [13:05:23] [13:05:23]POST finish read [13:05:23]Found Content-Length = 677 [13:05:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706714", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:05:23]execute_script... [13:05: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)706714", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:05:23]POST & json_proto [13:05:23]process_json_proto [13:05:23]json parsed OK: [13:05:23]protocol is kg_v1.0 [13:05:23]action value=close_receipt [13:05:23]process_action close_receipt [13:05:23]cmd_close_receipt [13:05:23]MH_GetDate [13:05:23]Write to MH i2c: F0 00 00 87 26 9C [13:05:23]Write i2c OK [13:05:23]MH_I2C_Read... [13:05:23]Read from MH i2c: F0 [13:05:23]MH_I2C_Read... [13:05:23]Read from MH i2c: F0 09 00 [13:05:23]MH_I2C_Read... [13:05:23]Read from MH i2c: F0 09 00 87 26 00 18 11 5F 66 B2 22 B0 64 7B [13:05:23]GetLastDocTimeStamp 1717506312 [13:05:23]current date 1717506328 [13:05:23]FM_GetShiftState [13:05:23]SAM_PROTO_GetShiftState [13:05:23]wFMCommunicate request_size=4 [13:05:23]MH_SAM_APDU [13:05:23]CAPDU: 80 13 01 00 [13:05:23]Write to MH i2c: E2 08 00 88 26 80 13 01 00 00 00 00 00 2B [13:05:23]Write i2c OK [13:05:23]MH_I2C_Read... [13:05:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:05:23]Read from MH i2c: E2 [13:05:23]MH_I2C_Read... [13:05:23]Read from MH i2c: E2 0E 00 [13:05:23]MH_I2C_Read... [13:05:23]Read from MH i2c: E2 0E 00 88 26 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 C7 [13:05:23]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [13:05:23]wFMCommunicate OK [13:05:23]SAM_PROTO_GetShiftState done [13:05:23]FM_GetShiftState done [13:05:23]opened in 1717460590 [13:05:23]opened+sec_in_day 1717546990 [13:05:23]quantity*price = 50041 [13:05:23]sum+1 = 50042 [13:05:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 82 04.06.2024 13:05 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68584 ФПД: 169880466041701 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T130528&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68584&fm=169880466041701&tin=02508201610067®Number=0000000000098096&sum=50000 [13:05:24]StoreToDocumentArchive [13:05:24]shift 325 fd 68584 [13:05:24]save to /storage/0325/doc_00068584 [13:05:24]save last doc name /storage/0325/doc_00068584 to /storage/kkm_last_doc_name [13:05:24]save OK [13:05:24]Clear old archive folders... [13:05:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:05:24]tlvbuf is 00A77580 [13:05:24]SAM_PROTO_ClearQueue [13:05:24]wFMCommunicate request_size=4 [13:05:24]MH_SAM_APDU [13:05:24]CAPDU: 80 09 00 00 [13:05:24]Write to MH i2c: E2 08 00 95 26 80 09 00 00 00 00 00 00 2D [13:05:24]Write i2c OK [13:05:24]MH_I2C_Read... [13:05:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:05:24]Read from MH i2c: E2 [13:05:24]MH_I2C_Read... [13:05:24]Read from MH i2c: E2 03 00 [13:05:24]MH_I2C_Read... [13:05:24]Read from MH i2c: E2 03 00 95 26 00 90 00 2F [13:05:24]RAPDU: 90 00 [13:05:24]wFMCommunicate OK [13:05:24]SAM_PROTO_ClearQueue done [13:05:24]KKMCreateOFDPacket [13:05:24]OFDProtocolAddRootSTLVToBuf [13:05:24]FM_MakeSignedData [13:05:24]FM_MakeSignedData [13:05:24]SAM_PROTO_SignData [13:05:24]wFMCommunicate request_size=4 [13:05:24]MH_SAM_APDU [13:05:24]CAPDU: 80 0D 01 02 [13:05:24]Write to MH i2c: E2 08 00 96 26 80 0D 01 02 00 00 00 00 35 [13:05:24]Write i2c OK [13:05:24]MH_I2C_Read... [13:05:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:05:24]Read from MH i2c: E2 [13:05:24]MH_I2C_Read... [13:05:24]Read from MH i2c: E2 03 00 [13:05:24]MH_I2C_Read... [13:05:24]Read from MH i2c: E2 03 00 96 26 00 90 00 30 [13:05:24]RAPDU: 90 00 [13:05:24]wFMCommunicate OK [13:05:24]wFMCommunicate request_size=255 [13:05:24]MH_SAM_APDU [13:05: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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 18 11 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 E8 0B 01 00 35 04 06 00 9A [13:05:24]Write to MH i2c: E2 02 01 97 26 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 18 11 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 E8 0B 01 00 35 04 06 00 9A 00 00 D6 [13:05:24]Write i2c OK [13:05:24]MH_I2C_Read... [13:05:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:05:25]Read from MH i2c: E2 [13:05:25]MH_I2C_Read... [13:05:25]Read from MH i2c: E2 03 00 [13:05:25]MH_I2C_Read... [13:05:25]Read from MH i2c: E2 03 00 97 26 00 90 00 31 [13:05:25]RAPDU: 90 00 [13:05:25]wFMCommunicate OK [13:05:25]wFMCommunicate request_size=10 [13:05:25]MH_SAM_APDU [13:05:25]CAPDU: 80 0D 02 02 05 81 60 D5 2B 65 [13:05:25]Write to MH i2c: E2 0D 00 98 26 80 0D 02 02 05 00 81 60 D5 2B 65 00 00 88 [13:05:25]Write i2c OK [13:05:25]MH_I2C_Read... [13:05:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:05:25]Read from MH i2c: E2 [13:05:25]MH_I2C_Read... [13:05:25]Read from MH i2c: E2 03 00 [13:05:25]MH_I2C_Read... [13:05:25]Read from MH i2c: E2 03 00 98 26 00 90 00 32 [13:05:25]RAPDU: 90 00 [13:05:25]wFMCommunicate OK [13:05:25]wFMCommunicate request_size=4 [13:05:25]MH_SAM_APDU [13:05:25]CAPDU: 80 0D 03 02 [13:05:25]Write to MH i2c: E2 08 00 99 26 80 0D 03 02 00 00 00 00 3A [13:05:25]Write i2c OK [13:05:25]MH_I2C_Read... [13:05:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:05:25]Read from MH i2c: E2 [13:05:25]MH_I2C_Read... [13:05:25]Read from MH i2c: E2 0B 00 [13:05:25]MH_I2C_Read... [13:05:25]Read from MH i2c: E2 0B 00 99 26 00 31 C2 EF 16 C3 1D 7E DF 90 00 70 [13:05:25]RAPDU: 31 C2 EF 16 C3 1D 7E DF 90 00 [13:05:25]wFMCommunicate OK [13:05:25]SAM_PROTO_SignData done [13:05:25]FM_MakeSignedData done [13:05:25]CreateOFDProtocolMessage [13:05:25]wFMCommunicate request_size=4 [13:05:25]MH_SAM_APDU [13:05:25]CAPDU: 80 11 00 00 [13:05:25]Write to MH i2c: E2 08 00 9A 26 80 11 00 00 00 00 00 00 3A [13:05:25]Write i2c OK [13:05:25]MH_I2C_Read... [13:05:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:05:25]Read from MH i2c: E2 [13:05:25]MH_I2C_Read... [13:05:25]Read from MH i2c: E2 17 00 [13:05:25]MH_I2C_Read... [13:05:25]Read from MH i2c: E2 17 00 9A 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 85 [13:05:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [13:05:25]wFMCommunicate OK [13:05:25]CreateOFDProtocolMessage done [13:05:25]OFDSenderStorePacket 68584 [13:05:25]StoreOFDPacket docnum=68584 [13:05:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 58 E4 07 01 0A 46 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 18 11 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 E8 0B 01 00 35 04 06 00 9A 81 60 D5 2B 65 31 C2 EF 16 C3 1D 7E DF [13:05:25]CheckFolder [13:05:25]dirname=/storage/ofd_packets [13:05:25]CheckFolder done [13:05:25]ProducePacketName [13:05:25]name=ofd_packets/00068584 [13:05:25]NVStorageSaveData ofd_packets/00068584 [13:05:25]File name is /storage/ofd_packets/00068584 [13:05:25]Write 301 bytes [13:05:25]NVStorageSaveData done [13:05:25]OFDSenderStorePacket done [13:05:25]KKMCreateOFDPacket done [13:05:25]NVStorageSaveData kkm_last_timestamp [13:05:25]File name is /storage/kkm_last_timestamp [13:05:25]Write 4 bytes [13:05:25]NVStorageSaveData done [13:05:25]ExternCall_PrintAddStr [13:05:25]wPrintStart [13:05:25]Write to MH i2c: 01 00 00 9B 26 C1 [13:05:25]Write i2c OK [13:05:25]MH_I2C_Read... [13:05:25]Read from MH i2c: 01 [13:05:25]MH_I2C_Read... [13:05:25]Read from MH i2c: 01 07 00 [13:05:25]MH_I2C_Read... [13:05:25]Read from MH i2c: 01 07 00 9B 26 00 00 00 00 00 FF 0F D6 [13:05:25]RasterBufferAndPrint [13:05:25]line Счет N : (1)706714 [13:05:25]line ИНН: 02508201610067 [13:05:25]line Контрольно-Кассовый Чек [13:05:25]line ПРОДАЖА [13:05:25]line ТРК (МРК, ГНК) : 32 [13:05:25]line Товар: 2710124130 [13:05:25]line Аи-92-К-4 [13:05:25]line 7.480 * 66.90 [13:05:25]line = 500.41 [13:05:25]line НДС 12% НСП 1% [13:05:25]line > о реализуемом товаре [13:05:25]line ОКРУГЛЕНИЕ: -0.41 [13:05:25]line ИТОГО: 500.00 [13:05:25]line Внесено: 500.00 [13:05:25]line СДАЧА: 0.00 [13:05:25]line НСП 1% : 4.43 [13:05:25]line НДС 12% : 53.14 [13:05:25]line Наличными: 500.00 [13:05:25]line Безнал.: 0.00 [13:05:25]line Место: АЗС № 62 "Партнер Нефть" [13:05:25]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [13:05:25]line СНО: Общий режим [13:05:25]line Чек 82 04.06.2024 13:05 [13:05:25]line Смена: 325 ФФД: 1.0 [13:05:25]line ЗНМ: 0300000181 [13:05:25]line РНМ: 0000000000098096 [13:05:25]line Версия ККМ: 001 [13:05:25]line ФМ: 0000000000965400 [13:05:25]line ФД: 68584 [13:05:25]line ФПД: 169880466041701 [13:05:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T130528&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68584&fm=169880466041701&tin=02508201610067®Number=0000000000098096&sum=50000 [13:05:25]OFD Sender: Processing packet 68584 [packets to send 26, broken 25] [13:05:25]ProducePacketName [13:05:25]name=ofd_packets/00068584 [13:05:25]OFD Sender: To server: pG, [13:05:25]CommunicateWithHost lk.salyk.kg:30040 [13:05:25]ConnectInit lk.salyk.kg [13:05:25]written 0, free lines is 4095 [13:05:25]Connected sock=9 [13:05:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 58 E4 07 01 0A 46 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 18 11 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 E8 0B 01 00 35 04 06 00 9A 81 60 D5 2B 65 31 C2 EF 16 C3 1D 7E DF [13:05:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 8B 01 47 00 09 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 39 36 35 34 30 30 10 04 04 00 E8 0B 01 00 F4 03 04 00 10 B8 5E 66 B6 04 01 00 00 15 15 2A 83 36 05 DB 33 [13:05:25]CommunicateWithHost err = 0 [13:05:25]CheckOFDResponse [13:05:25]1017 (14) - 77093643461234 [13:05:25]1041 (16) - 0000000000965400 [13:05:25]1040 (4) - 68584 [13:05:25]1012 (4) - 04.06.2024 06:45 [13:05:25]1206 (1) - 0 [13:05:25]OFD Sender: Remove packet 68584 [13:05:25]ProducePacketName [13:05:25]name=ofd_packets/00068584 [13:05:25]NVStorageDeleteData [13:05:25]Write to MH i2c: 01 00 00 C6 26 EC [13:05:25]Write i2c OK [13:05:25]MH_I2C_Read... [13:05:25]Read from MH i2c: 01 [13:05:25]MH_I2C_Read... [13:05:25]Read from MH i2c: 01 07 00 [13:05:25]MH_I2C_Read... [13:05:25]Read from MH i2c: 01 07 00 C6 26 00 00 00 00 00 E7 0C E6 [13:05:25]RasterBufferAndPrint [13:05:25]line [13:05:25]line [13:05:25]line [13:05:25]line [13:05:25]line [13:05:25]written 0, free lines is 3310 [13:05:26]MH_Cut [13:05:26]Write to MH i2c: D1 01 00 CD 26 01 C5 [13:05:26]Write i2c OK [13:05:26]MH_I2C_Read... [13:05:26]Read from MH i2c: D1 [13:05:26]MH_I2C_Read... [13:05:26]Read from MH i2c: D1 01 00 [13:05:26]MH_I2C_Read... [13:05:26]Read from MH i2c: D1 01 00 CD 26 00 C4 [13:05:26]Write to MH i2c: 01 00 00 CE 26 F4 [13:05:26]Write i2c OK [13:05:26]MH_I2C_Read... [13:05:26]OFD Sender: No OFD packet to send [13:05:26]*** Cut start [13:05:26]*** Partial cut [13:05:26]*** CUTSNS_PIN = 1 [13:05:26]*** CUTSNS_PIN = 0 [13:05:27]*** Brake cut motor [13:05:27]Read from MH i2c: 01 [13:05:27]MH_I2C_Read... [13:05:27]*** Stop cut motor [13:05:27]*** Cut end [13:05:27]Read from MH i2c: 01 07 00 [13:05:27]MH_I2C_Read... [13:05:27]Read from MH i2c: 01 07 00 CE 26 00 00 00 00 00 FF 0F 09 [13:05:27]process_action close_receipt done [13:05:27]requested_data is exist [13:05:27]produce_requested_data [13:05:27]requested_item fm.sn is exist - process it [13:05:27]wFMCommunicate request_size=4 [13:05:27]MH_SAM_APDU [13:05:27]CAPDU: 80 11 00 00 [13:05:27]Write to MH i2c: E2 08 00 CF 26 80 11 00 00 00 00 00 00 6F [13:05:27]Write i2c OK [13:05:27]MH_I2C_Read... [13:05:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:05:27]Read from MH i2c: E2 [13:05:27]MH_I2C_Read... [13:05:27]Read from MH i2c: E2 17 00 [13:05:27]MH_I2C_Read... [13:05:27]Read from MH i2c: E2 17 00 CF 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 BA [13:05:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [13:05:27]wFMCommunicate OK [13:05:27]requested_item fd.num is exist - process it [13:05:27]SAM_PROTO_GetFieldsCounters [13:05:27]wFMCommunicate request_size=4 [13:05:27]MH_SAM_APDU [13:05:27]CAPDU: 80 13 00 00 [13:05:27]Write to MH i2c: E2 08 00 D0 26 80 13 00 00 00 00 00 00 72 [13:05:27]Write i2c OK [13:05:27]MH_I2C_Read... [13:05:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:05:27]Read from MH i2c: E2 [13:05:27]MH_I2C_Read... [13:05:27]Read from MH i2c: E2 62 00 [13:05:27]MH_I2C_Read... [13:05:27]Read from MH i2c: E2 62 00 D0 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 E8 0B 01 00 0E 04 04 00 45 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 C2 [13:05:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 E8 0B 01 00 0E 04 04 00 45 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 [13:05:27]wFMCommunicate OK [13:05:27]SAM_PROTO_GetFieldsCounters done [13:05:27]requested_item shift.num is exist - process it [13:05:27]requested_item shift.opened is exist - process it [13:05:27]req_shift_opened [13:05:27]FM_GetShiftState [13:05:27]SAM_PROTO_GetShiftState [13:05:27]wFMCommunicate request_size=4 [13:05:27]MH_SAM_APDU [13:05:27]CAPDU: 80 13 01 00 [13:05:27]Write to MH i2c: E2 08 00 D1 26 80 13 01 00 00 00 00 00 74 [13:05:27]Write i2c OK [13:05:27]MH_I2C_Read... [13:05:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:05:27]Read from MH i2c: E2 [13:05:27]MH_I2C_Read... [13:05:27]Read from MH i2c: E2 0E 00 [13:05:27]MH_I2C_Read... [13:05:27]Read from MH i2c: E2 0E 00 D1 26 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 10 [13:05:27]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [13:05:27]wFMCommunicate OK [13:05:27]SAM_PROTO_GetShiftState done [13:05:27]FM_GetShiftState done [13:05:27]req_shift_opened done [13:05:27]requested_item shift.open_date is exist - process it [13:05:27]req_shift_open_date [13:05:27]req_shift_open_date done [13:05:27]produce_requested_data done [13:05:27]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68584,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [13:05:27]process_action_free close_receipt [13:05:27]json_value_free [13:05:27]json_value_free done [13:05:27]process_json_proto returns [13:05:27]Send response to host [13:05:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68584,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [13:05:27]free response buf [13:05:27]execute_script done [13:05:27]execute_script returns [13:05:27]free content buf [13:05:27]Sock 7.Close socket [13:05:27]Sock 7.Thread stoped [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:21]OFD Sender: No OFD packet to send [13:08:26]OFD Sender: No OFD packet to send [13:08:31]OFD Sender: No OFD packet to send [13:08:36]OFD Sender: No OFD packet to send [13:08:41]OFD Sender: No OFD packet to send [13:08:46]OFD Sender: No OFD packet to send [13:08:51]OFD Sender: No OFD packet to send [13:08:56]OFD Sender: No OFD packet to send [13:09:01]OFD Sender: No OFD packet to send [13:09:06]OFD Sender: No OFD packet to send [13:09:11]OFD Sender: No OFD packet to send [13:09:14]accept exits with 10 [13:09:14]New connection [13:09:14]New thread 3067227492 created [13:09:14]Thread 3067084132 joined [13:09:14]Waiting for new connection... [13:09:14] Sock 10.Parse request [13:09:14]Sock 10.Check first char [13:09:14]Sock 10.First char is OK [13:09:14]request: POST /json_proto HTTP/1.0 [13:09:14]Method: POST [13:09:14]URL: /json_proto [13:09:14]Method is POST - this is cgi request [13:09:14]url: /json_proto [13:09:14]query_string will be loaded in cgi processing [13:09:14]execute_cgi json_proto POST (null) [13:09:14]execute_cgi path=json_proto method=POST [13:09:14]POST find Content-Length [13:09:14]Host: 172.17.36.132:8080 [13:09:14]Content-Length: 678 [13:09:14]Content-Type: application/json [13:09:14] [13:09:14]POST finish read [13:09:14]Found Content-Length = 678 [13:09:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706715", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 13.460, "sum" : 900.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:09:14]execute_script... [13:09: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)706715", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 13.460, "sum" : 900.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:09:14]POST & json_proto [13:09:14]process_json_proto [13:09:14]json parsed OK: [13:09:14]protocol is kg_v1.0 [13:09:14]action value=close_receipt [13:09:14]process_action close_receipt [13:09:14]cmd_close_receipt [13:09:14]MH_GetDate [13:09:14]Write to MH i2c: F0 00 00 D2 26 E7 [13:09:14]Write i2c OK [13:09:14]MH_I2C_Read... [13:09:14]Read from MH i2c: F0 [13:09:14]MH_I2C_Read... [13:09:14]Read from MH i2c: F0 09 00 [13:09:14]MH_I2C_Read... [13:09:14]Read from MH i2c: F0 09 00 D2 26 00 FE 11 5F 66 B2 22 B0 64 AC [13:09:14]GetLastDocTimeStamp 1717506328 [13:09:14]current date 1717506558 [13:09:14]FM_GetShiftState [13:09:14]SAM_PROTO_GetShiftState [13:09:14]wFMCommunicate request_size=4 [13:09:14]MH_SAM_APDU [13:09:14]CAPDU: 80 13 01 00 [13:09:14]Write to MH i2c: E2 08 00 D3 26 80 13 01 00 00 00 00 00 76 [13:09:14]Write i2c OK [13:09:14]MH_I2C_Read... [13:09:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:09:14]Read from MH i2c: E2 [13:09:14]MH_I2C_Read... [13:09:14]Read from MH i2c: E2 0E 00 [13:09:14]MH_I2C_Read... [13:09:14]Read from MH i2c: E2 0E 00 D3 26 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 12 [13:09:14]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [13:09:14]wFMCommunicate OK [13:09:14]SAM_PROTO_GetShiftState done [13:09:14]FM_GetShiftState done [13:09:14]opened in 1717460590 [13:09:14]opened+sec_in_day 1717546990 [13:09:14]quantity*price = 90047 [13:09:14]sum+1 = 90048 [13:09:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.97 НДС 12% : 95.62 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 83 04.06.2024 13:09 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68585 ФПД: 77407488754169 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T130918&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68585&fm=77407488754169&tin=02508201610067®Number=0000000000098096&sum=90000 [13:09:15]StoreToDocumentArchive [13:09:15]shift 325 fd 68585 [13:09:15]save to /storage/0325/doc_00068585 [13:09:15]save last doc name /storage/0325/doc_00068585 to /storage/kkm_last_doc_name [13:09:15]save OK [13:09:15]Clear old archive folders... [13:09:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:09:15]tlvbuf is 00A807E0 [13:09:15]SAM_PROTO_ClearQueue [13:09:15]wFMCommunicate request_size=4 [13:09:15]MH_SAM_APDU [13:09:15]CAPDU: 80 09 00 00 [13:09:15]Write to MH i2c: E2 08 00 E0 26 80 09 00 00 00 00 00 00 78 [13:09:15]Write i2c OK [13:09:15]MH_I2C_Read... [13:09:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:09:15]Read from MH i2c: E2 [13:09:15]MH_I2C_Read... [13:09:15]Read from MH i2c: E2 03 00 [13:09:15]MH_I2C_Read... [13:09:15]Read from MH i2c: E2 03 00 E0 26 00 90 00 7A [13:09:15]RAPDU: 90 00 [13:09:15]wFMCommunicate OK [13:09:15]SAM_PROTO_ClearQueue done [13:09:15]KKMCreateOFDPacket [13:09:15]OFDProtocolAddRootSTLVToBuf [13:09:15]FM_MakeSignedData [13:09:15]FM_MakeSignedData [13:09:15]SAM_PROTO_SignData [13:09:15]wFMCommunicate request_size=4 [13:09:15]MH_SAM_APDU [13:09:15]CAPDU: 80 0D 01 02 [13:09:15]Write to MH i2c: E2 08 00 E1 26 80 0D 01 02 00 00 00 00 80 [13:09:15]Write i2c OK [13:09:15]MH_I2C_Read... [13:09:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:09:15]Read from MH i2c: E2 [13:09:15]MH_I2C_Read... [13:09:15]Read from MH i2c: E2 03 00 [13:09:15]MH_I2C_Read... [13:09:15]Read from MH i2c: E2 03 00 E1 26 00 90 00 7B [13:09:15]RAPDU: 90 00 [13:09:15]wFMCommunicate OK [13:09:15]wFMCommunicate request_size=255 [13:09:15]MH_SAM_APDU [13:09: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 34 FF 03 08 00 03 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 FE 11 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 E9 0B 01 00 35 04 06 00 46 [13:09:15]Write to MH i2c: E2 02 01 E2 26 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 FE 11 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 E9 0B 01 00 35 04 06 00 46 00 00 D2 [13:09:15]Write i2c OK [13:09:15]MH_I2C_Read... [13:09:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:09:15]Read from MH i2c: E2 [13:09:15]MH_I2C_Read... [13:09:15]Read from MH i2c: E2 03 00 [13:09:15]MH_I2C_Read... [13:09:15]Read from MH i2c: E2 03 00 E2 26 00 90 00 7C [13:09:15]RAPDU: 90 00 [13:09:15]wFMCommunicate OK [13:09:15]wFMCommunicate request_size=10 [13:09:15]MH_SAM_APDU [13:09:15]CAPDU: 80 0D 02 02 05 66 D5 DE C1 F9 [13:09:15]Write to MH i2c: E2 0D 00 E3 26 80 0D 02 02 05 00 66 D5 DE C1 F9 00 00 60 [13:09:15]Write i2c OK [13:09:15]MH_I2C_Read... [13:09:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:09:15]Read from MH i2c: E2 [13:09:15]MH_I2C_Read... [13:09:15]Read from MH i2c: E2 03 00 [13:09:15]MH_I2C_Read... [13:09:15]Read from MH i2c: E2 03 00 E3 26 00 90 00 7D [13:09:15]RAPDU: 90 00 [13:09:15]wFMCommunicate OK [13:09:15]wFMCommunicate request_size=4 [13:09:15]MH_SAM_APDU [13:09:15]CAPDU: 80 0D 03 02 [13:09:15]Write to MH i2c: E2 08 00 E4 26 80 0D 03 02 00 00 00 00 85 [13:09:15]Write i2c OK [13:09:15]MH_I2C_Read... [13:09:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:09:15]Read from MH i2c: E2 [13:09:15]MH_I2C_Read... [13:09:15]Read from MH i2c: E2 0B 00 [13:09:15]MH_I2C_Read... [13:09:15]Read from MH i2c: E2 0B 00 E4 26 00 D6 93 E2 8F C0 A4 09 EB 90 00 B8 [13:09:15]RAPDU: D6 93 E2 8F C0 A4 09 EB 90 00 [13:09:15]wFMCommunicate OK [13:09:15]SAM_PROTO_SignData done [13:09:15]FM_MakeSignedData done [13:09:15]CreateOFDProtocolMessage [13:09:15]wFMCommunicate request_size=4 [13:09:15]MH_SAM_APDU [13:09:15]CAPDU: 80 11 00 00 [13:09:15]Write to MH i2c: E2 08 00 E5 26 80 11 00 00 00 00 00 00 85 [13:09:15]Write i2c OK [13:09:15]MH_I2C_Read... [13:09:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:09:15]Read from MH i2c: E2 [13:09:15]MH_I2C_Read... [13:09:15]Read from MH i2c: E2 17 00 [13:09:15]MH_I2C_Read... [13:09:15]Read from MH i2c: E2 17 00 E5 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 D0 [13:09:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [13:09:15]wFMCommunicate OK [13:09:15]CreateOFDProtocolMessage done [13:09:15]OFDSenderStorePacket 68585 [13:09:15]StoreOFDPacket docnum=68585 [13:09:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 E7 F1 07 01 BD 58 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 FE 11 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 E9 0B 01 00 35 04 06 00 46 66 D5 DE C1 F9 D6 93 E2 8F C0 A4 09 EB [13:09:15]CheckFolder [13:09:15]dirname=/storage/ofd_packets [13:09:15]CheckFolder done [13:09:15]ProducePacketName [13:09:15]name=ofd_packets/00068585 [13:09:15]NVStorageSaveData ofd_packets/00068585 [13:09:15]File name is /storage/ofd_packets/00068585 [13:09:15]Write 301 bytes [13:09:15]NVStorageSaveData done [13:09:15]OFDSenderStorePacket done [13:09:15]KKMCreateOFDPacket done [13:09:15]NVStorageSaveData kkm_last_timestamp [13:09:15]File name is /storage/kkm_last_timestamp [13:09:15]Write 4 bytes [13:09:15]NVStorageSaveData done [13:09:15]ExternCall_PrintAddStr [13:09:15]wPrintStart [13:09:15]Write to MH i2c: 01 00 00 E6 26 0C [13:09:15]Write i2c OK [13:09:15]MH_I2C_Read... [13:09:15]Read from MH i2c: 01 [13:09:15]MH_I2C_Read... [13:09:15]Read from MH i2c: 01 07 00 [13:09:15]MH_I2C_Read... [13:09:15]Read from MH i2c: 01 07 00 E6 26 00 00 00 00 00 FF 0F 21 [13:09:15]RasterBufferAndPrint [13:09:15]line Счет N : (1)706715 [13:09:15]line ИНН: 02508201610067 [13:09:15]line Контрольно-Кассовый Чек [13:09:15]line ПРОДАЖА [13:09:15]line ТРК (МРК, ГНК) : 53 [13:09:15]line Товар: 2710124130 [13:09:15]line Аи-92-К-4 [13:09:15]line 13.460 * 66.90 [13:09:15]line = 900.47 [13:09:15]line НДС 12% НСП 1% [13:09:15]line > о реализуемом товаре [13:09:15]line ОКРУГЛЕНИЕ: -0.47 [13:09:15]line ИТОГО: 900.00 [13:09:15]line Внесено: 900.00 [13:09:15]line СДАЧА: 0.00 [13:09:15]line НСП 1% : 7.97 [13:09:15]line НДС 12% : 95.62 [13:09:15]line Наличными: 900.00 [13:09:15]line Безнал.: 0.00 [13:09:15]line Место: АЗС № 62 "Партнер Нефть" [13:09:15]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [13:09:15]line СНО: Общий режим [13:09:15]line Чек 83 04.06.2024 13:09 [13:09:15]line Смена: 325 ФФД: 1.0 [13:09:15]line ЗНМ: 0300000181 [13:09:15]line РНМ: 0000000000098096 [13:09:15]line Версия ККМ: 001 [13:09:15]line ФМ: 0000000000965400 [13:09:15]line ФД: 68585 [13:09:15]line ФПД: 77407488754169 [13:09:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T130918&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68585&fm=77407488754169&tin=02508201610067®Number=0000000000098096&sum=90000 [13:09:16]OFD Sender: Processing packet 68585 [packets to send 26, broken 25] [13:09:16]ProducePacketName [13:09:16]name=ofd_packets/00068585 [13:09:16]OFD Sender: To server: pG, [13:09:16]CommunicateWithHost lk.salyk.kg:30040 [13:09:16]ConnectInit lk.salyk.kg [13:09:16]written 0, free lines is 4095 [13:09:16]Connected sock=9 [13:09:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 E7 F1 07 01 BD 58 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 FE 11 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 E9 0B 01 00 35 04 06 00 46 66 D5 DE C1 F9 D6 93 E2 8F C0 A4 09 EB [13:09:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 6D C6 47 00 98 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 39 36 35 34 30 30 10 04 04 00 E9 0B 01 00 F4 03 04 00 F7 B8 5E 66 B6 04 01 00 00 F9 FF 15 BE AD 08 05 FB [13:09:16]CommunicateWithHost err = 0 [13:09:16]CheckOFDResponse [13:09:16]1017 (14) - 77093643461234 [13:09:16]1041 (16) - 0000000000965400 [13:09:16]1040 (4) - 68585 [13:09:16]1012 (4) - 04.06.2024 06:49 [13:09:16]1206 (1) - 0 [13:09:16]OFD Sender: Remove packet 68585 [13:09:16]ProducePacketName [13:09:16]name=ofd_packets/00068585 [13:09:16]NVStorageDeleteData [13:09:16]Write to MH i2c: 01 00 00 11 27 38 [13:09:16]Write i2c OK [13:09:16]MH_I2C_Read... [13:09:16]Read from MH i2c: 01 [13:09:16]MH_I2C_Read... [13:09:16]Read from MH i2c: 01 07 00 [13:09:16]MH_I2C_Read... [13:09:16]Read from MH i2c: 01 07 00 11 27 00 00 00 00 00 D0 0C 1B [13:09:16]RasterBufferAndPrint [13:09:16]line [13:09:16]line [13:09:16]line [13:09:16]line [13:09:16]line [13:09:16]written 0, free lines is 3288 [13:09:16]MH_Cut [13:09:16]Write to MH i2c: D1 01 00 18 27 01 11 [13:09:16]Write i2c OK [13:09:16]MH_I2C_Read... [13:09:16]Read from MH i2c: D1 [13:09:16]MH_I2C_Read... [13:09:16]Read from MH i2c: D1 01 00 [13:09:16]MH_I2C_Read... [13:09:16]Read from MH i2c: D1 01 00 18 27 00 10 [13:09:16]Write to MH i2c: 01 00 00 19 27 40 [13:09:16]Write i2c OK [13:09:16]MH_I2C_Read... [13:09:16]OFD Sender: No OFD packet to send [13:09:17]*** Cut start [13:09:17]*** Partial cut [13:09:17]*** CUTSNS_PIN = 1 [13:09:17]*** CUTSNS_PIN = 0 [13:09:17]*** Brake cut motor [13:09:17]Read from MH i2c: 01 [13:09:17]MH_I2C_Read... [13:09:17]*** Stop cut motor [13:09:17]*** Cut end [13:09:17]Read from MH i2c: 01 07 00 [13:09:17]MH_I2C_Read... [13:09:17]Read from MH i2c: 01 07 00 19 27 00 00 00 00 00 FF 0F 55 [13:09:17]process_action close_receipt done [13:09:17]requested_data is exist [13:09:17]produce_requested_data [13:09:17]requested_item fm.sn is exist - process it [13:09:17]wFMCommunicate request_size=4 [13:09:17]MH_SAM_APDU [13:09:17]CAPDU: 80 11 00 00 [13:09:17]Write to MH i2c: E2 08 00 1A 27 80 11 00 00 00 00 00 00 BB [13:09:17]Write i2c OK [13:09:17]MH_I2C_Read... [13:09:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:09:18]Read from MH i2c: E2 [13:09:18]MH_I2C_Read... [13:09:18]Read from MH i2c: E2 17 00 [13:09:18]MH_I2C_Read... [13:09:18]Read from MH i2c: E2 17 00 1A 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 06 [13:09:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [13:09:18]wFMCommunicate OK [13:09:18]requested_item fd.num is exist - process it [13:09:18]SAM_PROTO_GetFieldsCounters [13:09:18]wFMCommunicate request_size=4 [13:09:18]MH_SAM_APDU [13:09:18]CAPDU: 80 13 00 00 [13:09:18]Write to MH i2c: E2 08 00 1B 27 80 13 00 00 00 00 00 00 BE [13:09:18]Write i2c OK [13:09:18]MH_I2C_Read... [13:09:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:09:18]Read from MH i2c: E2 [13:09:18]MH_I2C_Read... [13:09:18]Read from MH i2c: E2 62 00 [13:09:18]MH_I2C_Read... [13:09:18]Read from MH i2c: E2 62 00 1B 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 E9 0B 01 00 0E 04 04 00 45 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 [13:09:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 E9 0B 01 00 0E 04 04 00 45 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 [13:09:18]wFMCommunicate OK [13:09:18]SAM_PROTO_GetFieldsCounters done [13:09:18]requested_item shift.num is exist - process it [13:09:18]requested_item shift.opened is exist - process it [13:09:18]req_shift_opened [13:09:18]FM_GetShiftState [13:09:18]SAM_PROTO_GetShiftState [13:09:18]wFMCommunicate request_size=4 [13:09:18]MH_SAM_APDU [13:09:18]CAPDU: 80 13 01 00 [13:09:18]Write to MH i2c: E2 08 00 1C 27 80 13 01 00 00 00 00 00 C0 [13:09:18]Write i2c OK [13:09:18]MH_I2C_Read... [13:09:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:09:18]Read from MH i2c: E2 [13:09:18]MH_I2C_Read... [13:09:18]Read from MH i2c: E2 0E 00 [13:09:18]MH_I2C_Read... [13:09:18]Read from MH i2c: E2 0E 00 1C 27 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 5C [13:09:18]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [13:09:18]wFMCommunicate OK [13:09:18]SAM_PROTO_GetShiftState done [13:09:18]FM_GetShiftState done [13:09:18]req_shift_opened done [13:09:18]requested_item shift.open_date is exist - process it [13:09:18]req_shift_open_date [13:09:18]req_shift_open_date done [13:09:18]produce_requested_data done [13:09:18]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68585,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [13:09:18]process_action_free close_receipt [13:09:18]json_value_free [13:09:18]json_value_free done [13:09:18]process_json_proto returns [13:09:18]Send response to host [13:09:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68585,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [13:09:18]free response buf [13:09:18]execute_script done [13:09:18]execute_script returns [13:09:18]free content buf [13:09:18]Sock 10.Close socket [13:09:18]Sock 10.Thread stoped [13:09:21]OFD Sender: No OFD packet to send [13:09:26]OFD Sender: No OFD packet to send [13:09:31]OFD Sender: No OFD packet to send [13:09:36]OFD Sender: No OFD packet to send [13:09:41]OFD Sender: No OFD packet to send [13:09:46]OFD Sender: No OFD packet to send [13:09:51]OFD Sender: No OFD packet to send [13:09:56]OFD Sender: No OFD packet to send [13:10:01]OFD Sender: No OFD packet to send [13:10:06]OFD Sender: No OFD packet to send [13:10:11]OFD Sender: No OFD packet to send [13:10:16]OFD Sender: No OFD packet to send [13:10:21]OFD Sender: No OFD packet to send [13:10:26]OFD Sender: No OFD packet to send [13:10:31]OFD Sender: No OFD packet to send [13:10:36]OFD Sender: No OFD packet to send [13:10:41]OFD Sender: No OFD packet to send [13:10:46]OFD Sender: No OFD packet to send [13:10:51]OFD Sender: No OFD packet to send [13:10:56]OFD Sender: No OFD packet to send [13:11:01]OFD Sender: No OFD packet to send [13:11:06]OFD Sender: No OFD packet to send [13:11:11]OFD Sender: No OFD packet to send [13:11:16]OFD Sender: No OFD packet to send [13:11:21]OFD Sender: No OFD packet to send [13:11:26]OFD Sender: No OFD packet to send [13:11:31]OFD Sender: No OFD packet to send [13:11:36]OFD Sender: No OFD packet to send [13:11:41]OFD Sender: No OFD packet to send [13:11:46]OFD Sender: No OFD packet to send [13:11:51]OFD Sender: No OFD packet to send [13:11:56]OFD Sender: No OFD packet to send [13:12:01]OFD Sender: No OFD packet to send [13:12:06]OFD Sender: No OFD packet to send [13:12:11]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:29]accept exits with 7 [13:14:29]New connection [13:14:29]New thread 3067084132 created [13:14:29]Thread 3067227492 joined [13:14:29]Waiting for new connection... [13:14:29] Sock 7.Parse request [13:14:29]Sock 7.Check first char [13:14:29]Sock 7.First char is OK [13:14:29]request: POST /json_proto HTTP/1.0 [13:14:29]Method: POST [13:14:29]URL: /json_proto [13:14:29]Method is POST - this is cgi request [13:14:29]url: /json_proto [13:14:29]query_string will be loaded in cgi processing [13:14:29]execute_cgi json_proto POST (null) [13:14:29]execute_cgi path=json_proto method=POST [13:14:29]POST find Content-Length [13:14:29]Host: 172.17.36.132:8080 [13:14:29]Content-Length: 677 [13:14:29]Content-Type: application/json [13:14:29] [13:14:29]POST finish read [13:14:29]Found Content-Length = 677 [13:14:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706716", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:14:29]execute_script... [13:14:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706716", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:14:29]POST & json_proto [13:14:29]process_json_proto [13:14:29]json parsed OK: [13:14:29]protocol is kg_v1.0 [13:14:29]action value=close_receipt [13:14:29]process_action close_receipt [13:14:29]cmd_close_receipt [13:14:29]MH_GetDate [13:14:29]Write to MH i2c: F0 00 00 1D 27 33 [13:14:29]Write i2c OK [13:14:29]MH_I2C_Read... [13:14:29]Read from MH i2c: F0 [13:14:29]MH_I2C_Read... [13:14:29]Read from MH i2c: F0 09 00 [13:14:29]MH_I2C_Read... [13:14:29]Read from MH i2c: F0 09 00 1D 27 00 3A 13 5F 66 B2 22 B0 64 36 [13:14:29]GetLastDocTimeStamp 1717506558 [13:14:29]current date 1717506874 [13:14:29]FM_GetShiftState [13:14:29]SAM_PROTO_GetShiftState [13:14:29]wFMCommunicate request_size=4 [13:14:29]MH_SAM_APDU [13:14:29]CAPDU: 80 13 01 00 [13:14:29]Write to MH i2c: E2 08 00 1E 27 80 13 01 00 00 00 00 00 C2 [13:14:29]Write i2c OK [13:14:29]MH_I2C_Read... [13:14:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:14:29]Read from MH i2c: E2 [13:14:29]MH_I2C_Read... [13:14:29]Read from MH i2c: E2 0E 00 [13:14:29]MH_I2C_Read... [13:14:29]Read from MH i2c: E2 0E 00 1E 27 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 5E [13:14:29]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [13:14:29]wFMCommunicate OK [13:14:29]SAM_PROTO_GetShiftState done [13:14:29]FM_GetShiftState done [13:14:29]opened in 1717460590 [13:14:29]opened+sec_in_day 1717546990 [13:14:29]quantity*price = 50041 [13:14:29]sum+1 = 50042 [13:14:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 84 04.06.2024 13:14 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68586 ФПД: 203987193731056 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T131434&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68586&fm=203987193731056&tin=02508201610067®Number=0000000000098096&sum=50000 [13:14:30]StoreToDocumentArchive [13:14:30]shift 325 fd 68586 [13:14:30]save to /storage/0325/doc_00068586 [13:14:30]save last doc name /storage/0325/doc_00068586 to /storage/kkm_last_doc_name [13:14:30]save OK [13:14:30]Clear old archive folders... [13:14:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:14:30]tlvbuf is 00A32C10 [13:14:30]SAM_PROTO_ClearQueue [13:14:30]wFMCommunicate request_size=4 [13:14:30]MH_SAM_APDU [13:14:30]CAPDU: 80 09 00 00 [13:14:30]Write to MH i2c: E2 08 00 2B 27 80 09 00 00 00 00 00 00 C4 [13:14:30]Write i2c OK [13:14:30]MH_I2C_Read... [13:14:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:14:30]Read from MH i2c: E2 [13:14:30]MH_I2C_Read... [13:14:30]Read from MH i2c: E2 03 00 [13:14:30]MH_I2C_Read... [13:14:30]Read from MH i2c: E2 03 00 2B 27 00 90 00 C6 [13:14:30]RAPDU: 90 00 [13:14:30]wFMCommunicate OK [13:14:30]SAM_PROTO_ClearQueue done [13:14:30]KKMCreateOFDPacket [13:14:30]OFDProtocolAddRootSTLVToBuf [13:14:30]FM_MakeSignedData [13:14:30]FM_MakeSignedData [13:14:30]SAM_PROTO_SignData [13:14:30]wFMCommunicate request_size=4 [13:14:30]MH_SAM_APDU [13:14:30]CAPDU: 80 0D 01 02 [13:14:30]Write to MH i2c: E2 08 00 2C 27 80 0D 01 02 00 00 00 00 CC [13:14:30]Write i2c OK [13:14:30]MH_I2C_Read... [13:14:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:14:30]Read from MH i2c: E2 [13:14:30]MH_I2C_Read... [13:14:30]Read from MH i2c: E2 03 00 [13:14:30]MH_I2C_Read... [13:14:30]Read from MH i2c: E2 03 00 2C 27 00 90 00 C7 [13:14:30]RAPDU: 90 00 [13:14:30]wFMCommunicate OK [13:14:30]wFMCommunicate request_size=255 [13:14:30]MH_SAM_APDU [13:14:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 3A 13 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 EA 0B 01 00 35 04 06 00 B9 [13:14:30]Write to MH i2c: E2 02 01 2D 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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 3A 13 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 EA 0B 01 00 35 04 06 00 B9 00 00 B4 [13:14:30]Write i2c OK [13:14:30]MH_I2C_Read... [13:14:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:14:30]Read from MH i2c: E2 [13:14:30]MH_I2C_Read... [13:14:30]Read from MH i2c: E2 03 00 [13:14:30]MH_I2C_Read... [13:14:30]Read from MH i2c: E2 03 00 2D 27 00 90 00 C8 [13:14:30]RAPDU: 90 00 [13:14:30]wFMCommunicate OK [13:14:30]wFMCommunicate request_size=10 [13:14:30]MH_SAM_APDU [13:14:30]CAPDU: 80 0D 02 02 05 86 78 38 97 F0 [13:14:30]Write to MH i2c: E2 0D 00 2E 27 80 0D 02 02 05 00 86 78 38 97 F0 00 00 96 [13:14:30]Write i2c OK [13:14:30]MH_I2C_Read... [13:14:31]Read from MH i2c: E2 [13:14:31]MH_I2C_Read... [13:14:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:14:31]Read from MH i2c: E2 03 00 [13:14:31]MH_I2C_Read... [13:14:31]Read from MH i2c: E2 03 00 2E 27 00 90 00 C9 [13:14:31]RAPDU: 90 00 [13:14:31]wFMCommunicate OK [13:14:31]wFMCommunicate request_size=4 [13:14:31]MH_SAM_APDU [13:14:31]CAPDU: 80 0D 03 02 [13:14:31]Write to MH i2c: E2 08 00 2F 27 80 0D 03 02 00 00 00 00 D1 [13:14:31]Write i2c OK [13:14:31]MH_I2C_Read... [13:14:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:14:31]Read from MH i2c: E2 [13:14:31]MH_I2C_Read... [13:14:31]Read from MH i2c: E2 0B 00 [13:14:31]MH_I2C_Read... [13:14:31]Read from MH i2c: E2 0B 00 2F 27 00 FF 41 10 CE 73 71 E1 BB 90 00 70 [13:14:31]RAPDU: FF 41 10 CE 73 71 E1 BB 90 00 [13:14:31]wFMCommunicate OK [13:14:31]SAM_PROTO_SignData done [13:14:31]FM_MakeSignedData done [13:14:31]CreateOFDProtocolMessage [13:14:31]wFMCommunicate request_size=4 [13:14:31]MH_SAM_APDU [13:14:31]CAPDU: 80 11 00 00 [13:14:31]Write to MH i2c: E2 08 00 30 27 80 11 00 00 00 00 00 00 D1 [13:14:31]Write i2c OK [13:14:31]MH_I2C_Read... [13:14:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:14:31]Read from MH i2c: E2 [13:14:31]MH_I2C_Read... [13:14:31]Read from MH i2c: E2 17 00 [13:14:31]MH_I2C_Read... [13:14:31]Read from MH i2c: E2 17 00 30 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 1C [13:14:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [13:14:31]wFMCommunicate OK [13:14:31]CreateOFDProtocolMessage done [13:14:31]OFDSenderStorePacket 68586 [13:14:31]StoreOFDPacket docnum=68586 [13:14:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 BC 77 07 01 84 36 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 3A 13 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 EA 0B 01 00 35 04 06 00 B9 86 78 38 97 F0 FF 41 10 CE 73 71 E1 BB [13:14:31]CheckFolder [13:14:31]dirname=/storage/ofd_packets [13:14:31]CheckFolder done [13:14:31]ProducePacketName [13:14:31]name=ofd_packets/00068586 [13:14:31]NVStorageSaveData ofd_packets/00068586 [13:14:31]File name is /storage/ofd_packets/00068586 [13:14:31]Write 301 bytes [13:14:31]NVStorageSaveData done [13:14:31]OFDSenderStorePacket done [13:14:31]KKMCreateOFDPacket done [13:14:31]NVStorageSaveData kkm_last_timestamp [13:14:31]File name is /storage/kkm_last_timestamp [13:14:31]Write 4 bytes [13:14:31]NVStorageSaveData done [13:14:31]ExternCall_PrintAddStr [13:14:31]wPrintStart [13:14:31]Write to MH i2c: 01 00 00 31 27 58 [13:14:31]Write i2c OK [13:14:31]MH_I2C_Read... [13:14:31]Read from MH i2c: 01 [13:14:31]MH_I2C_Read... [13:14:31]Read from MH i2c: 01 07 00 [13:14:31]MH_I2C_Read... [13:14:31]Read from MH i2c: 01 07 00 31 27 00 00 00 00 00 FF 0F 6D [13:14:31]RasterBufferAndPrint [13:14:31]line Счет N : (1)706716 [13:14:31]line ИНН: 02508201610067 [13:14:31]line Контрольно-Кассовый Чек [13:14:31]line ПРОДАЖА [13:14:31]line ТРК (МРК, ГНК) : 53 [13:14:31]line Товар: 2710124130 [13:14:31]line Аи-92-К-4 [13:14:31]line 7.480 * 66.90 [13:14:31]line = 500.41 [13:14:31]line НДС 12% НСП 1% [13:14:31]line > о реализуемом товаре [13:14:31]line ОКРУГЛЕНИЕ: -0.41 [13:14:31]line ИТОГО: 500.00 [13:14:31]line Внесено: 500.00 [13:14:31]line СДАЧА: 0.00 [13:14:31]line НСП 1% : 4.43 [13:14:31]line НДС 12% : 53.14 [13:14:31]line Наличными: 500.00 [13:14:31]line Безнал.: 0.00 [13:14:31]line Место: АЗС № 62 "Партнер Нефть" [13:14:31]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [13:14:31]line СНО: Общий режим [13:14:31]line Чек 84 04.06.2024 13:14 [13:14:31]line Смена: 325 ФФД: 1.0 [13:14:31]line ЗНМ: 0300000181 [13:14:31]line РНМ: 0000000000098096 [13:14:31]line Версия ККМ: 001 [13:14:31]line ФМ: 0000000000965400 [13:14:31]line ФД: 68586 [13:14:31]line ФПД: 203987193731056 [13:14:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T131434&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68586&fm=203987193731056&tin=02508201610067®Number=0000000000098096&sum=50000 [13:14:31]OFD Sender: Processing packet 68586 [packets to send 26, broken 25] [13:14:31]ProducePacketName [13:14:31]name=ofd_packets/00068586 [13:14:31]OFD Sender: To server: pG, [13:14:31]CommunicateWithHost lk.salyk.kg:30040 [13:14:31]ConnectInit lk.salyk.kg [13:14:31]written 0, free lines is 4095 [13:14:31]Connected sock=10 [13:14:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 BC 77 07 01 84 36 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 3A 13 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 EA 0B 01 00 35 04 06 00 B9 86 78 38 97 F0 FF 41 10 CE 73 71 E1 BB [13:14:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 8B A4 47 00 18 4F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 EA 0B 01 00 F4 03 04 00 32 BA 5E 66 B6 04 01 00 00 96 1B 00 C4 6C DE 62 C0 [13:14:31]CommunicateWithHost err = 0 [13:14:31]CheckOFDResponse [13:14:31]1017 (14) - 77093643461234 [13:14:31]1041 (16) - 0000000000965400 [13:14:31]1040 (4) - 68586 [13:14:31]1012 (4) - 04.06.2024 06:54 [13:14:31]1206 (1) - 0 [13:14:31]OFD Sender: Remove packet 68586 [13:14:31]ProducePacketName [13:14:31]name=ofd_packets/00068586 [13:14:31]NVStorageDeleteData [13:14:31]Write to MH i2c: 01 00 00 5C 27 83 [13:14:31]Write i2c OK [13:14:31]MH_I2C_Read... [13:14:31]Read from MH i2c: 01 [13:14:31]MH_I2C_Read... [13:14:31]Read from MH i2c: 01 07 00 [13:14:31]MH_I2C_Read... [13:14:31]Read from MH i2c: 01 07 00 5C 27 00 00 00 00 00 DC 0C 72 [13:14:31]RasterBufferAndPrint [13:14:31]line [13:14:31]line [13:14:31]line [13:14:31]line [13:14:31]line [13:14:31]written 0, free lines is 3298 [13:14:31]MH_Cut [13:14:31]Write to MH i2c: D1 01 00 63 27 01 5C [13:14:31]Write i2c OK [13:14:31]MH_I2C_Read... [13:14:31]Read from MH i2c: D1 [13:14:31]MH_I2C_Read... [13:14:31]Read from MH i2c: D1 01 00 [13:14:31]MH_I2C_Read... [13:14:31]Read from MH i2c: D1 01 00 63 27 00 5B [13:14:31]Write to MH i2c: 01 00 00 64 27 8B [13:14:31]Write i2c OK [13:14:31]MH_I2C_Read... [13:14:32]OFD Sender: No OFD packet to send [13:14:32]*** Cut start [13:14:32]*** Partial cut [13:14:32]*** CUTSNS_PIN = 1 [13:14:32]*** CUTSNS_PIN = 0 [13:14:33]*** Brake cut motor [13:14:33]Read from MH i2c: 01 [13:14:33]MH_I2C_Read... [13:14:33]*** Stop cut motor [13:14:33]*** Cut end [13:14:33]Read from MH i2c: 01 07 00 [13:14:33]MH_I2C_Read... [13:14:33]Read from MH i2c: 01 07 00 64 27 00 00 00 00 00 FF 0F A0 [13:14:33]process_action close_receipt done [13:14:33]requested_data is exist [13:14:33]produce_requested_data [13:14:33]requested_item fm.sn is exist - process it [13:14:33]wFMCommunicate request_size=4 [13:14:33]MH_SAM_APDU [13:14:33]CAPDU: 80 11 00 00 [13:14:33]Write to MH i2c: E2 08 00 65 27 80 11 00 00 00 00 00 00 06 [13:14:33]Write i2c OK [13:14:33]MH_I2C_Read... [13:14:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:14:33]Read from MH i2c: E2 [13:14:33]MH_I2C_Read... [13:14:33]Read from MH i2c: E2 17 00 [13:14:33]MH_I2C_Read... [13:14:33]Read from MH i2c: E2 17 00 65 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 51 [13:14:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [13:14:33]wFMCommunicate OK [13:14:33]requested_item fd.num is exist - process it [13:14:33]SAM_PROTO_GetFieldsCounters [13:14:33]wFMCommunicate request_size=4 [13:14:33]MH_SAM_APDU [13:14:33]CAPDU: 80 13 00 00 [13:14:33]Write to MH i2c: E2 08 00 66 27 80 13 00 00 00 00 00 00 09 [13:14:33]Write i2c OK [13:14:33]MH_I2C_Read... [13:14:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:14:33]Read from MH i2c: E2 [13:14:33]MH_I2C_Read... [13:14:33]Read from MH i2c: E2 62 00 [13:14:33]MH_I2C_Read... [13:14:33]Read from MH i2c: E2 62 00 66 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 EA 0B 01 00 0E 04 04 00 45 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 61 [13:14:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 EA 0B 01 00 0E 04 04 00 45 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 [13:14:33]wFMCommunicate OK [13:14:33]SAM_PROTO_GetFieldsCounters done [13:14:33]requested_item shift.num is exist - process it [13:14:33]requested_item shift.opened is exist - process it [13:14:33]req_shift_opened [13:14:33]FM_GetShiftState [13:14:33]SAM_PROTO_GetShiftState [13:14:33]wFMCommunicate request_size=4 [13:14:33]MH_SAM_APDU [13:14:33]CAPDU: 80 13 01 00 [13:14:33]Write to MH i2c: E2 08 00 67 27 80 13 01 00 00 00 00 00 0B [13:14:33]Write i2c OK [13:14:33]MH_I2C_Read... [13:14:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:14:33]Read from MH i2c: E2 [13:14:33]MH_I2C_Read... [13:14:33]Read from MH i2c: E2 0E 00 [13:14:33]MH_I2C_Read... [13:14:33]Read from MH i2c: E2 0E 00 67 27 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 A7 [13:14:33]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [13:14:33]wFMCommunicate OK [13:14:33]SAM_PROTO_GetShiftState done [13:14:33]FM_GetShiftState done [13:14:33]req_shift_opened done [13:14:33]requested_item shift.open_date is exist - process it [13:14:33]req_shift_open_date [13:14:33]req_shift_open_date done [13:14:33]produce_requested_data done [13:14:33]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68586,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [13:14:33]process_action_free close_receipt [13:14:33]json_value_free [13:14:33]json_value_free done [13:14:33]process_json_proto returns [13:14:33]Send response to host [13:14:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68586,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [13:14:33]free response buf [13:14:33]execute_script done [13:14:33]execute_script returns [13:14:33]free content buf [13:14:33]Sock 7.Close socket [13:14:33]Sock 7.Thread stoped [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:12]OFD Sender: No OFD packet to send [13:15:17]OFD Sender: No OFD packet to send [13:15:22]OFD Sender: No OFD packet to send [13:15:27]OFD Sender: No OFD packet to send [13:15:32]OFD Sender: No OFD packet to send [13:15:37]OFD Sender: No OFD packet to send [13:15:42]OFD Sender: No OFD packet to send [13:15:47]OFD Sender: No OFD packet to send [13:15:52]OFD Sender: No OFD packet to send [13:15:57]OFD Sender: No OFD packet to send [13:16:02]OFD Sender: No OFD packet to send [13:16:07]OFD Sender: No OFD packet to send [13:16:12]OFD Sender: No OFD packet to send [13:16:17]OFD Sender: No OFD packet to send [13:16:22]OFD Sender: No OFD packet to send [13:16:27]OFD Sender: No OFD packet to send [13:16:32]OFD Sender: No OFD packet to send [13:16:37]OFD Sender: No OFD packet to send [13:16:42]OFD Sender: No OFD packet to send [13:16:47]OFD Sender: No OFD packet to send [13:16:52]OFD Sender: No OFD packet to send [13:16:57]OFD Sender: No OFD packet to send [13:17:02]OFD Sender: No OFD packet to send [13:17:07]OFD Sender: No OFD packet to send [13:17:12]OFD Sender: No OFD packet to send [13:17:17]OFD Sender: No OFD packet to send [13:17:22]OFD Sender: No OFD packet to send [13:17:27]OFD Sender: No OFD packet to send [13:17:32]OFD Sender: No OFD packet to send [13:17:37]OFD Sender: No OFD packet to send [13:17:42]OFD Sender: No OFD packet to send [13:17:47]OFD Sender: No OFD packet to send [13:17:52]OFD Sender: No OFD packet to send [13:17:57]OFD Sender: No OFD packet to send [13:18:02]OFD Sender: No OFD packet to send [13:18:07]OFD Sender: No OFD packet to send [13:18:12]OFD Sender: No OFD packet to send [13:18:17]OFD Sender: No OFD packet to send [13:18:22]OFD Sender: No OFD packet to send [13:18:27]OFD Sender: No OFD packet to send [13:18:32]OFD Sender: No OFD packet to send [13:18:37]OFD Sender: No OFD packet to send [13:18:42]OFD Sender: No OFD packet to send [13:18:47]OFD Sender: No OFD packet to send [13:18:52]OFD Sender: No OFD packet to send [13:18:57]OFD Sender: No OFD packet to send [13:19:02]OFD Sender: No OFD packet to send [13:19:07]OFD Sender: No OFD packet to send [13:19:12]OFD Sender: No OFD packet to send [13:19:17]OFD Sender: No OFD packet to send [13:19:22]OFD Sender: No OFD packet to send [13:19:27]OFD Sender: No OFD packet to send [13:19:32]OFD Sender: No OFD packet to send [13:19:37]OFD Sender: No OFD packet to send [13:19:42]OFD Sender: No OFD packet to send [13:19:47]OFD Sender: No OFD packet to send [13:19:52]OFD Sender: No OFD packet to send [13:19:57]OFD Sender: No OFD packet to send [13:20:02]OFD Sender: No OFD packet to send [13:20:07]OFD Sender: No OFD packet to send [13:20:12]OFD Sender: No OFD packet to send [13:20:17]OFD Sender: No OFD packet to send [13:20:22]OFD Sender: No OFD packet to send [13:20:27]OFD Sender: No OFD packet to send [13:20:32]OFD Sender: No OFD packet to send [13:20:37]OFD Sender: No OFD packet to send [13:20:42]OFD Sender: No OFD packet to send [13:20:47]OFD Sender: No OFD packet to send [13:20:52]OFD Sender: No OFD packet to send [13:20:57]OFD Sender: No OFD packet to send [13:21:02]OFD Sender: No OFD packet to send [13:21:07]OFD Sender: No OFD packet to send [13:21:12]OFD Sender: No OFD packet to send [13:21:17]OFD Sender: No OFD packet to send [13:21:22]OFD Sender: No OFD packet to send [13:21:27]OFD Sender: No OFD packet to send [13:21:32]OFD Sender: No OFD packet to send [13:21:37]OFD Sender: No OFD packet to send [13:21:42]OFD Sender: No OFD packet to send [13:21:47]OFD Sender: No OFD packet to send [13:21:52]OFD Sender: No OFD packet to send [13:21:57]OFD Sender: No OFD packet to send [13:22:02]OFD Sender: No OFD packet to send [13:22:07]OFD Sender: No OFD packet to send [13:22:12]OFD Sender: No OFD packet to send [13:22:17]OFD Sender: No OFD packet to send [13:22:22]OFD Sender: No OFD packet to send [13:22:27]OFD Sender: No OFD packet to send [13:22:32]OFD Sender: No OFD packet to send [13:22:37]OFD Sender: No OFD packet to send [13:22:42]OFD Sender: No OFD packet to send [13:22:47]OFD Sender: No OFD packet to send [13:22:52]OFD Sender: No OFD packet to send [13:22:57]OFD Sender: No OFD packet to send [13:23:02]OFD Sender: No OFD packet to send [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:56]accept exits with 9 [13:23:56]New connection [13:23:56]New thread 3067227492 created [13:23:56]Thread 3067084132 joined [13:23:56]Waiting for new connection... [13:23:56] Sock 9.Parse request [13:23:56]Sock 9.Check first char [13:23:56]Sock 9.First char is OK [13:23:56]request: POST /json_proto HTTP/1.0 [13:23:56]Method: POST [13:23:56]URL: /json_proto [13:23:56]Method is POST - this is cgi request [13:23:56]url: /json_proto [13:23:56]query_string will be loaded in cgi processing [13:23:56]execute_cgi json_proto POST (null) [13:23:56]execute_cgi path=json_proto method=POST [13:23:56]POST find Content-Length [13:23:56]Host: 172.17.36.132:8080 [13:23:56]Content-Length: 677 [13:23:56]Content-Type: application/json [13:23:56] [13:23:56]POST finish read [13:23:56]Found Content-Length = 677 [13:23:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706717", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:23:56]execute_script... [13:23: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)706717", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:23:56]POST & json_proto [13:23:56]process_json_proto [13:23:56]json parsed OK: [13:23:56]protocol is kg_v1.0 [13:23:56]action value=close_receipt [13:23:56]process_action close_receipt [13:23:56]cmd_close_receipt [13:23:56]MH_GetDate [13:23:56]Write to MH i2c: F0 00 00 68 27 7E [13:23:56]Write i2c OK [13:23:56]MH_I2C_Read... [13:23:56]Read from MH i2c: F0 [13:23:56]MH_I2C_Read... [13:23:56]Read from MH i2c: F0 09 00 [13:23:56]MH_I2C_Read... [13:23:56]Read from MH i2c: F0 09 00 68 27 00 71 15 5F 66 B2 22 B0 64 BA [13:23:56]GetLastDocTimeStamp 1717506874 [13:23:56]current date 1717507441 [13:23:56]FM_GetShiftState [13:23:56]SAM_PROTO_GetShiftState [13:23:56]wFMCommunicate request_size=4 [13:23:56]MH_SAM_APDU [13:23:56]CAPDU: 80 13 01 00 [13:23:56]Write to MH i2c: E2 08 00 69 27 80 13 01 00 00 00 00 00 0D [13:23:56]Write i2c OK [13:23:56]MH_I2C_Read... [13:23:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:23:56]Read from MH i2c: E2 [13:23:56]MH_I2C_Read... [13:23:56]Read from MH i2c: E2 0E 00 [13:23:56]MH_I2C_Read... [13:23:56]Read from MH i2c: E2 0E 00 69 27 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 A9 [13:23:56]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [13:23:56]wFMCommunicate OK [13:23:56]SAM_PROTO_GetShiftState done [13:23:56]FM_GetShiftState done [13:23:56]opened in 1717460590 [13:23:56]opened+sec_in_day 1717546990 [13:23:56]quantity*price = 30038 [13:23:56]sum+1 = 30039 [13:23:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 85 04.06.2024 13:24 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68587 ФПД: 10534818109306 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T132401&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68587&fm=10534818109306&tin=02508201610067®Number=0000000000098096&sum=30000 [13:23:57]StoreToDocumentArchive [13:23:57]shift 325 fd 68587 [13:23:57]save to /storage/0325/doc_00068587 [13:23:57]save last doc name /storage/0325/doc_00068587 to /storage/kkm_last_doc_name [13:23:57]save OK [13:23:57]Clear old archive folders... [13:23:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:23:57]tlvbuf is 00A1AE10 [13:23:57]SAM_PROTO_ClearQueue [13:23:57]wFMCommunicate request_size=4 [13:23:57]MH_SAM_APDU [13:23:57]CAPDU: 80 09 00 00 [13:23:57]Write to MH i2c: E2 08 00 76 27 80 09 00 00 00 00 00 00 0F [13:23:57]Write i2c OK [13:23:57]MH_I2C_Read... [13:23:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:23:57]Read from MH i2c: E2 [13:23:57]MH_I2C_Read... [13:23:57]Read from MH i2c: E2 03 00 [13:23:57]MH_I2C_Read... [13:23:57]Read from MH i2c: E2 03 00 76 27 00 90 00 11 [13:23:57]RAPDU: 90 00 [13:23:57]wFMCommunicate OK [13:23:57]SAM_PROTO_ClearQueue done [13:23:57]KKMCreateOFDPacket [13:23:57]OFDProtocolAddRootSTLVToBuf [13:23:57]FM_MakeSignedData [13:23:57]FM_MakeSignedData [13:23:57]SAM_PROTO_SignData [13:23:57]wFMCommunicate request_size=4 [13:23:57]MH_SAM_APDU [13:23:57]CAPDU: 80 0D 01 02 [13:23:57]Write to MH i2c: E2 08 00 77 27 80 0D 01 02 00 00 00 00 17 [13:23:57]Write i2c OK [13:23:57]MH_I2C_Read... [13:23:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:23:57]Read from MH i2c: E2 [13:23:57]MH_I2C_Read... [13:23:57]Read from MH i2c: E2 03 00 [13:23:57]MH_I2C_Read... [13:23:57]Read from MH i2c: E2 03 00 77 27 00 90 00 12 [13:23:57]RAPDU: 90 00 [13:23:57]wFMCommunicate OK [13:23:57]wFMCommunicate request_size=255 [13:23:57]MH_SAM_APDU [13:23:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 71 15 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 EB 0B 01 00 35 04 06 00 09 [13:23:57]Write to MH i2c: E2 02 01 78 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 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 71 15 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 EB 0B 01 00 35 04 06 00 09 00 00 7E [13:23:57]Write i2c OK [13:23:57]MH_I2C_Read... [13:23:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:23:58]Read from MH i2c: E2 [13:23:58]MH_I2C_Read... [13:23:58]Read from MH i2c: E2 03 00 [13:23:58]MH_I2C_Read... [13:23:58]Read from MH i2c: E2 03 00 78 27 00 90 00 13 [13:23:58]RAPDU: 90 00 [13:23:58]wFMCommunicate OK [13:23:58]wFMCommunicate request_size=10 [13:23:58]MH_SAM_APDU [13:23:58]CAPDU: 80 0D 02 02 05 94 D4 17 57 7A [13:23:58]Write to MH i2c: E2 0D 00 79 27 80 0D 02 02 05 00 94 D4 17 57 7A 00 00 74 [13:23:58]Write i2c OK [13:23:58]MH_I2C_Read... [13:23:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:23:58]Read from MH i2c: E2 [13:23:58]MH_I2C_Read... [13:23:58]Read from MH i2c: E2 03 00 [13:23:58]MH_I2C_Read... [13:23:58]Read from MH i2c: E2 03 00 79 27 00 90 00 14 [13:23:58]RAPDU: 90 00 [13:23:58]wFMCommunicate OK [13:23:58]wFMCommunicate request_size=4 [13:23:58]MH_SAM_APDU [13:23:58]CAPDU: 80 0D 03 02 [13:23:58]Write to MH i2c: E2 08 00 7A 27 80 0D 03 02 00 00 00 00 1C [13:23:58]Write i2c OK [13:23:58]MH_I2C_Read... [13:23:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:23:58]Read from MH i2c: E2 [13:23:58]MH_I2C_Read... [13:23:58]Read from MH i2c: E2 0B 00 [13:23:58]MH_I2C_Read... [13:23:58]Read from MH i2c: E2 0B 00 7A 27 00 D5 FF 4E BF AD 09 E4 EC 90 00 84 [13:23:58]RAPDU: D5 FF 4E BF AD 09 E4 EC 90 00 [13:23:58]wFMCommunicate OK [13:23:58]SAM_PROTO_SignData done [13:23:58]FM_MakeSignedData done [13:23:58]CreateOFDProtocolMessage [13:23:58]wFMCommunicate request_size=4 [13:23:58]MH_SAM_APDU [13:23:58]CAPDU: 80 11 00 00 [13:23:58]Write to MH i2c: E2 08 00 7B 27 80 11 00 00 00 00 00 00 1C [13:23:58]Write i2c OK [13:23:58]MH_I2C_Read... [13:23:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:23:58]Read from MH i2c: E2 [13:23:58]MH_I2C_Read... [13:23:58]Read from MH i2c: E2 17 00 [13:23:58]MH_I2C_Read... [13:23:58]Read from MH i2c: E2 17 00 7B 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 67 [13:23:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [13:23:58]wFMCommunicate OK [13:23:58]CreateOFDProtocolMessage done [13:23:58]OFDSenderStorePacket 68587 [13:23:58]StoreOFDPacket docnum=68587 [13:23:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 95 A8 07 01 AC 30 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 71 15 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 EB 0B 01 00 35 04 06 00 09 94 D4 17 57 7A D5 FF 4E BF AD 09 E4 EC [13:23:58]CheckFolder [13:23:58]dirname=/storage/ofd_packets [13:23:58]CheckFolder done [13:23:58]ProducePacketName [13:23:58]name=ofd_packets/00068587 [13:23:58]NVStorageSaveData ofd_packets/00068587 [13:23:58]File name is /storage/ofd_packets/00068587 [13:23:58]Write 301 bytes [13:23:58]NVStorageSaveData done [13:23:58]OFDSenderStorePacket done [13:23:58]KKMCreateOFDPacket done [13:23:58]NVStorageSaveData kkm_last_timestamp [13:23:58]File name is /storage/kkm_last_timestamp [13:23:58]Write 4 bytes [13:23:58]NVStorageSaveData done [13:23:58]ExternCall_PrintAddStr [13:23:58]wPrintStart [13:23:58]Write to MH i2c: 01 00 00 7C 27 A3 [13:23:58]Write i2c OK [13:23:58]MH_I2C_Read... [13:23:58]Read from MH i2c: 01 [13:23:58]MH_I2C_Read... [13:23:58]Read from MH i2c: 01 07 00 [13:23:58]MH_I2C_Read... [13:23:58]Read from MH i2c: 01 07 00 7C 27 00 00 00 00 00 FF 0F B8 [13:23:58]RasterBufferAndPrint [13:23:58]line Счет N : (1)706717 [13:23:58]line ИНН: 02508201610067 [13:23:58]line Контрольно-Кассовый Чек [13:23:58]line ПРОДАЖА [13:23:58]line ТРК (МРК, ГНК) : 53 [13:23:58]line Товар: 2710124130 [13:23:58]line Аи-92-К-4 [13:23:58]line 4.490 * 66.90 [13:23:58]line = 300.38 [13:23:58]line НДС 12% НСП 1% [13:23:58]line > о реализуемом товаре [13:23:58]line ОКРУГЛЕНИЕ: -0.38 [13:23:58]line ИТОГО: 300.00 [13:23:58]line Внесено: 300.00 [13:23:58]line СДАЧА: 0.00 [13:23:58]line НСП 1% : 2.66 [13:23:58]line НДС 12% : 31.90 [13:23:58]line Наличными: 300.00 [13:23:58]line Безнал.: 0.00 [13:23:58]line Место: АЗС № 62 "Партнер Нефть" [13:23:58]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [13:23:58]line СНО: Общий режим [13:23:58]line Чек 85 04.06.2024 13:24 [13:23:58]line Смена: 325 ФФД: 1.0 [13:23:58]line ЗНМ: 0300000181 [13:23:58]line РНМ: 0000000000098096 [13:23:58]line Версия ККМ: 001 [13:23:58]line ФМ: 0000000000965400 [13:23:58]line ФД: 68587 [13:23:58]line ФПД: 10534818109306 [13:23:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T132401&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68587&fm=10534818109306&tin=02508201610067®Number=0000000000098096&sum=30000 [13:23:58]OFD Sender: Processing packet 68587 [packets to send 26, broken 25] [13:23:58]ProducePacketName [13:23:58]name=ofd_packets/00068587 [13:23:58]OFD Sender: To server: pG, [13:23:58]CommunicateWithHost lk.salyk.kg:30040 [13:23:58]ConnectInit lk.salyk.kg [13:23:58]written 0, free lines is 4095 [13:23:58]Connected sock=10 [13:23:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 95 A8 07 01 AC 30 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 71 15 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 EB 0B 01 00 35 04 06 00 09 94 D4 17 57 7A D5 FF 4E BF AD 09 E4 EC [13:23:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 B7 C4 47 00 2C 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 39 36 35 34 30 30 10 04 04 00 EB 0B 01 00 F4 03 04 00 69 BC 5E 66 B6 04 01 00 00 E9 42 3E D6 5C 18 ED D2 [13:23:58]CommunicateWithHost err = 0 [13:23:58]CheckOFDResponse [13:23:58]1017 (14) - 77093643461234 [13:23:58]1041 (16) - 0000000000965400 [13:23:58]1040 (4) - 68587 [13:23:58]1012 (4) - 04.06.2024 07:04 [13:23:58]1206 (1) - 0 [13:23:58]OFD Sender: Remove packet 68587 [13:23:58]ProducePacketName [13:23:58]name=ofd_packets/00068587 [13:23:58]NVStorageDeleteData [13:23:59]Write to MH i2c: 01 00 00 A7 27 CE [13:23:59]Write i2c OK [13:23:59]MH_I2C_Read... [13:23:59]Read from MH i2c: 01 [13:23:59]MH_I2C_Read... [13:23:59]Read from MH i2c: 01 07 00 [13:23:59]MH_I2C_Read... [13:23:59]Read from MH i2c: 01 07 00 A7 27 00 00 00 00 00 D4 0C B5 [13:23:59]RasterBufferAndPrint [13:23:59]line [13:23:59]line [13:23:59]line [13:23:59]line [13:23:59]line [13:23:59]written 0, free lines is 3292 [13:23:59]MH_Cut [13:23:59]Write to MH i2c: D1 01 00 AE 27 01 A7 [13:23:59]Write i2c OK [13:23:59]MH_I2C_Read... [13:23:59]Read from MH i2c: D1 [13:23:59]MH_I2C_Read... [13:23:59]Read from MH i2c: D1 01 00 [13:23:59]MH_I2C_Read... [13:23:59]Read from MH i2c: D1 01 00 AE 27 00 A6 [13:23:59]Write to MH i2c: 01 00 00 AF 27 D6 [13:23:59]Write i2c OK [13:23:59]MH_I2C_Read... [13:23:59]OFD Sender: No OFD packet to send [13:23:59]*** Cut start [13:23:59]*** Partial cut [13:23:59]*** CUTSNS_PIN = 1 [13:23:59]*** CUTSNS_PIN = 0 [13:24:00]*** Brake cut motor [13:24:00]Read from MH i2c: 01 [13:24:00]MH_I2C_Read... [13:24:00]*** Stop cut motor [13:24:00]*** Cut end [13:24:00]Read from MH i2c: 01 07 00 [13:24:00]MH_I2C_Read... [13:24:00]Read from MH i2c: 01 07 00 AF 27 00 00 00 00 00 FF 0F EB [13:24:00]process_action close_receipt done [13:24:00]requested_data is exist [13:24:00]produce_requested_data [13:24:00]requested_item fm.sn is exist - process it [13:24:00]wFMCommunicate request_size=4 [13:24:00]MH_SAM_APDU [13:24:00]CAPDU: 80 11 00 00 [13:24:00]Write to MH i2c: E2 08 00 B0 27 80 11 00 00 00 00 00 00 51 [13:24:00]Write i2c OK [13:24:00]MH_I2C_Read... [13:24:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:24:00]Read from MH i2c: E2 [13:24:00]MH_I2C_Read... [13:24:00]Read from MH i2c: E2 17 00 [13:24:00]MH_I2C_Read... [13:24:00]Read from MH i2c: E2 17 00 B0 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 9C [13:24:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [13:24:00]wFMCommunicate OK [13:24:00]requested_item fd.num is exist - process it [13:24:00]SAM_PROTO_GetFieldsCounters [13:24:00]wFMCommunicate request_size=4 [13:24:00]MH_SAM_APDU [13:24:00]CAPDU: 80 13 00 00 [13:24:00]Write to MH i2c: E2 08 00 B1 27 80 13 00 00 00 00 00 00 54 [13:24:00]Write i2c OK [13:24:00]MH_I2C_Read... [13:24:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:24:00]Read from MH i2c: E2 [13:24:00]MH_I2C_Read... [13:24:00]Read from MH i2c: E2 62 00 [13:24:00]MH_I2C_Read... [13:24:00]Read from MH i2c: E2 62 00 B1 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 EB 0B 01 00 0E 04 04 00 45 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 B0 [13:24:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 EB 0B 01 00 0E 04 04 00 45 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 [13:24:00]wFMCommunicate OK [13:24:00]SAM_PROTO_GetFieldsCounters done [13:24:00]requested_item shift.num is exist - process it [13:24:00]requested_item shift.opened is exist - process it [13:24:00]req_shift_opened [13:24:00]FM_GetShiftState [13:24:00]SAM_PROTO_GetShiftState [13:24:00]wFMCommunicate request_size=4 [13:24:00]MH_SAM_APDU [13:24:00]CAPDU: 80 13 01 00 [13:24:00]Write to MH i2c: E2 08 00 B2 27 80 13 01 00 00 00 00 00 56 [13:24:00]Write i2c OK [13:24:00]MH_I2C_Read... [13:24:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:24:00]Read from MH i2c: E2 [13:24:00]MH_I2C_Read... [13:24:00]Read from MH i2c: E2 0E 00 [13:24:00]MH_I2C_Read... [13:24:00]Read from MH i2c: E2 0E 00 B2 27 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 F2 [13:24:00]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [13:24:00]wFMCommunicate OK [13:24:00]SAM_PROTO_GetShiftState done [13:24:00]FM_GetShiftState done [13:24:00]req_shift_opened done [13:24:00]requested_item shift.open_date is exist - process it [13:24:00]req_shift_open_date [13:24:00]req_shift_open_date done [13:24:00]produce_requested_data done [13:24:00]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68587,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [13:24:00]process_action_free close_receipt [13:24:00]json_value_free [13:24:00]json_value_free done [13:24:00]process_json_proto returns [13:24:00]Send response to host [13:24:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68587,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [13:24:00]free response buf [13:24:00]execute_script done [13:24:00]execute_script returns [13:24:00]free content buf [13:24:00]Sock 9.Close socket [13:24:00]Sock 9.Thread stoped [13:24:04]OFD Sender: No OFD packet to send [13:24:09]OFD Sender: No OFD packet to send [13:24:14]OFD Sender: No OFD packet to send [13:24:19]OFD Sender: No OFD packet to send [13:24:24]OFD Sender: No OFD packet to send [13:24:29]OFD Sender: No OFD packet to send [13:24:34]OFD Sender: No OFD packet to send [13:24:39]OFD Sender: No OFD packet to send [13:24:44]OFD Sender: No OFD packet to send [13:24:49]OFD Sender: No OFD packet to send [13:24:54]OFD Sender: No OFD packet to send [13:24:59]OFD Sender: No OFD packet to send [13:25:04]OFD Sender: No OFD packet to send [13:25:09]OFD Sender: No OFD packet to send [13:25:14]OFD Sender: No OFD packet to send [13:25:19]OFD Sender: No OFD packet to send [13:25:24]OFD Sender: No OFD packet to send [13:25:29]OFD Sender: No OFD packet to send [13:25:34]OFD Sender: No OFD packet to send [13:25:39]OFD Sender: No OFD packet to send [13:25:44]OFD Sender: No OFD packet to send [13:25:45]accept exits with 7 [13:25:45]New connection [13:25:45]New thread 3067084132 created [13:25:45]Thread 3067227492 joined [13:25:45]Waiting for new connection... [13:25:45] Sock 7.Parse request [13:25:45]Sock 7.Check first char [13:25:45]Sock 7.First char is OK [13:25:45]request: POST /json_proto HTTP/1.0 [13:25:45]Method: POST [13:25:45]URL: /json_proto [13:25:45]Method is POST - this is cgi request [13:25:45]url: /json_proto [13:25:45]query_string will be loaded in cgi processing [13:25:45]execute_cgi json_proto POST (null) [13:25:45]execute_cgi path=json_proto method=POST [13:25:45]POST find Content-Length [13:25:45]Host: 172.17.36.132:8080 [13:25:45]Content-Length: 677 [13:25:45]Content-Type: application/json [13:25:45] [13:25:45]POST finish read [13:25:45]Found Content-Length = 677 [13:25:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706719", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 7.450, "sum" : 550.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 550.00, "total" : 550.00, "payments": [ { "type": 0, "sum" : 550.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:25:45]execute_script... [13:25: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)706719", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 7.450, "sum" : 550.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 550.00, "total" : 550.00, "payments": [ { "type": 0, "sum" : 550.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:25:45]POST & json_proto [13:25:45]process_json_proto [13:25:45]json parsed OK: [13:25:45]protocol is kg_v1.0 [13:25:45]action value=close_receipt [13:25:45]process_action close_receipt [13:25:45]cmd_close_receipt [13:25:45]MH_GetDate [13:25:45]Write to MH i2c: F0 00 00 B3 27 C9 [13:25:45]Write i2c OK [13:25:45]MH_I2C_Read... [13:25:45]Read from MH i2c: F0 [13:25:45]MH_I2C_Read... [13:25:45]Read from MH i2c: F0 09 00 [13:25:45]MH_I2C_Read... [13:25:45]Read from MH i2c: F0 09 00 B3 27 00 DD 15 5F 66 B2 22 B0 64 71 [13:25:45]GetLastDocTimeStamp 1717507441 [13:25:45]current date 1717507549 [13:25:45]FM_GetShiftState [13:25:45]SAM_PROTO_GetShiftState [13:25:45]wFMCommunicate request_size=4 [13:25:45]MH_SAM_APDU [13:25:45]CAPDU: 80 13 01 00 [13:25:45]Write to MH i2c: E2 08 00 B4 27 80 13 01 00 00 00 00 00 58 [13:25:45]Write i2c OK [13:25:45]MH_I2C_Read... [13:25:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:25:45]Read from MH i2c: E2 [13:25:45]MH_I2C_Read... [13:25:45]Read from MH i2c: E2 0E 00 [13:25:45]MH_I2C_Read... [13:25:45]Read from MH i2c: E2 0E 00 B4 27 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 F4 [13:25:45]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [13:25:45]wFMCommunicate OK [13:25:45]SAM_PROTO_GetShiftState done [13:25:45]FM_GetShiftState done [13:25:45]opened in 1717460590 [13:25:45]opened+sec_in_day 1717546990 [13:25:45]quantity*price = 55055 [13:25:45]sum+1 = 55057 [13:25:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 550.00 Внесено: 550.00 СДАЧА: 0.00 НСП 1% : 4.87 НДС 12% : 58.47 Наличными: 550.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 86 04.06.2024 13:25 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68588 ФПД: 132313100863350 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T132549&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68588&fm=132313100863350&tin=02508201610067®Number=0000000000098096&sum=55000 [13:25:46]StoreToDocumentArchive [13:25:46]shift 325 fd 68588 [13:25:46]save to /storage/0325/doc_00068588 [13:25:46]save last doc name /storage/0325/doc_00068588 to /storage/kkm_last_doc_name [13:25:46]save OK [13:25:46]Clear old archive folders... [13:25:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:25:46]tlvbuf is 00A04460 [13:25:46]SAM_PROTO_ClearQueue [13:25:46]wFMCommunicate request_size=4 [13:25:46]MH_SAM_APDU [13:25:46]CAPDU: 80 09 00 00 [13:25:46]Write to MH i2c: E2 08 00 C1 27 80 09 00 00 00 00 00 00 5A [13:25:46]Write i2c OK [13:25:46]MH_I2C_Read... [13:25:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:25:46]Read from MH i2c: E2 [13:25:46]MH_I2C_Read... [13:25:46]Read from MH i2c: E2 03 00 [13:25:46]MH_I2C_Read... [13:25:46]Read from MH i2c: E2 03 00 C1 27 00 90 00 5C [13:25:46]RAPDU: 90 00 [13:25:46]wFMCommunicate OK [13:25:46]SAM_PROTO_ClearQueue done [13:25:46]KKMCreateOFDPacket [13:25:46]OFDProtocolAddRootSTLVToBuf [13:25:46]FM_MakeSignedData [13:25:46]FM_MakeSignedData [13:25:46]SAM_PROTO_SignData [13:25:46]wFMCommunicate request_size=4 [13:25:46]MH_SAM_APDU [13:25:46]CAPDU: 80 0D 01 02 [13:25:46]Write to MH i2c: E2 08 00 C2 27 80 0D 01 02 00 00 00 00 62 [13:25:46]Write i2c OK [13:25:46]MH_I2C_Read... [13:25:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:25:46]Read from MH i2c: E2 [13:25:46]MH_I2C_Read... [13:25:46]Read from MH i2c: E2 03 00 [13:25:46]MH_I2C_Read... [13:25:46]Read from MH i2c: E2 03 00 C2 27 00 90 00 5D [13:25:46]RAPDU: 90 00 [13:25:46]wFMCommunicate OK [13:25:46]wFMCommunicate request_size=255 [13:25:46]MH_SAM_APDU [13:25: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 1A 1D 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 10 D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 DD 15 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 EC 0B 01 00 35 04 06 00 78 [13:25:46]Write to MH i2c: E2 02 01 C3 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 1A 1D 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 10 D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 DD 15 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 EC 0B 01 00 35 04 06 00 78 00 00 7B [13:25:46]Write i2c OK [13:25:46]MH_I2C_Read... [13:25:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:25:46]Read from MH i2c: E2 [13:25:46]MH_I2C_Read... [13:25:46]Read from MH i2c: E2 03 00 [13:25:46]MH_I2C_Read... [13:25:46]Read from MH i2c: E2 03 00 C3 27 00 90 00 5E [13:25:46]RAPDU: 90 00 [13:25:46]wFMCommunicate OK [13:25:46]wFMCommunicate request_size=10 [13:25:46]MH_SAM_APDU [13:25:46]CAPDU: 80 0D 02 02 05 56 8B 60 47 76 [13:25:46]Write to MH i2c: E2 0D 00 C4 27 80 0D 02 02 05 00 56 8B 60 47 76 00 00 6D [13:25:46]Write i2c OK [13:25:46]MH_I2C_Read... [13:25:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:25:46]Read from MH i2c: E2 [13:25:46]MH_I2C_Read... [13:25:46]Read from MH i2c: E2 03 00 [13:25:46]MH_I2C_Read... [13:25:46]Read from MH i2c: E2 03 00 C4 27 00 90 00 5F [13:25:46]RAPDU: 90 00 [13:25:46]wFMCommunicate OK [13:25:46]wFMCommunicate request_size=4 [13:25:46]MH_SAM_APDU [13:25:46]CAPDU: 80 0D 03 02 [13:25:46]Write to MH i2c: E2 08 00 C5 27 80 0D 03 02 00 00 00 00 67 [13:25:46]Write i2c OK [13:25:46]MH_I2C_Read... [13:25:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:25:46]Read from MH i2c: E2 [13:25:46]MH_I2C_Read... [13:25:46]Read from MH i2c: E2 0B 00 [13:25:46]MH_I2C_Read... [13:25:46]Read from MH i2c: E2 0B 00 C5 27 00 BE 46 3E 23 22 85 5F C9 90 00 9C [13:25:46]RAPDU: BE 46 3E 23 22 85 5F C9 90 00 [13:25:46]wFMCommunicate OK [13:25:46]SAM_PROTO_SignData done [13:25:46]FM_MakeSignedData done [13:25:46]CreateOFDProtocolMessage [13:25:46]wFMCommunicate request_size=4 [13:25:46]MH_SAM_APDU [13:25:46]CAPDU: 80 11 00 00 [13:25:46]Write to MH i2c: E2 08 00 C6 27 80 11 00 00 00 00 00 00 67 [13:25:46]Write i2c OK [13:25:46]MH_I2C_Read... [13:25:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:25:46]Read from MH i2c: E2 [13:25:46]MH_I2C_Read... [13:25:46]Read from MH i2c: E2 17 00 [13:25:46]MH_I2C_Read... [13:25:46]Read from MH i2c: E2 17 00 C6 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 B2 [13:25:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [13:25:46]wFMCommunicate OK [13:25:46]CreateOFDProtocolMessage done [13:25:46]OFDSenderStorePacket 68588 [13:25:46]StoreOFDPacket docnum=68588 [13:25:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 55 98 07 01 8C 6B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 1A 1D 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 10 D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 DD 15 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 EC 0B 01 00 35 04 06 00 78 56 8B 60 47 76 BE 46 3E 23 22 85 5F C9 [13:25:46]CheckFolder [13:25:46]dirname=/storage/ofd_packets [13:25:46]CheckFolder done [13:25:46]ProducePacketName [13:25:46]name=ofd_packets/00068588 [13:25:46]NVStorageSaveData ofd_packets/00068588 [13:25:46]File name is /storage/ofd_packets/00068588 [13:25:46]Write 301 bytes [13:25:46]NVStorageSaveData done [13:25:46]OFDSenderStorePacket done [13:25:46]KKMCreateOFDPacket done [13:25:46]NVStorageSaveData kkm_last_timestamp [13:25:46]File name is /storage/kkm_last_timestamp [13:25:46]Write 4 bytes [13:25:46]NVStorageSaveData done [13:25:46]ExternCall_PrintAddStr [13:25:46]wPrintStart [13:25:46]Write to MH i2c: 01 00 00 C7 27 EE [13:25:46]OFD Sender: Processing packet 68588 [packets to send 26, broken 25] [13:25:46]ProducePacketName [13:25:46]name=ofd_packets/00068588 [13:25:46]OFD Sender: To server: pG, [13:25:46]CommunicateWithHost lk.salyk.kg:30040 [13:25:46]ConnectInit lk.salyk.kg [13:25:46]Write i2c OK [13:25:46]MH_I2C_Read... [13:25:46]Read from MH i2c: 01 [13:25:46]MH_I2C_Read... [13:25:46]Read from MH i2c: 01 07 00 [13:25:46]MH_I2C_Read... [13:25:46]Read from MH i2c: 01 07 00 C7 27 00 00 00 00 00 FF 0F 03 [13:25:46]RasterBufferAndPrint [13:25:46]line Счет N : (1)706719 [13:25:46]line ИНН: 02508201610067 [13:25:46]line Контрольно-Кассовый Чек [13:25:46]line ПРОДАЖА [13:25:46]line ТРК (МРК, ГНК) : 33 [13:25:46]line Товар: 2710124500 [13:25:46]line Аи-95-К-5 [13:25:46]line 7.450 * 73.90 [13:25:46]line = 550.56 [13:25:46]line НДС 12% НСП 1% [13:25:46]line > о реализуемом товаре [13:25:46]line ОКРУГЛЕНИЕ: -0.56 [13:25:46]line ИТОГО: 550.00 [13:25:46]line Внесено: 550.00 [13:25:46]line СДАЧА: 0.00 [13:25:46]line НСП 1% : 4.87 [13:25:46]line НДС 12% : 58.47 [13:25:46]line Наличными: 550.00 [13:25:46]line Безнал.: 0.00 [13:25:46]line Место: АЗС № 62 "Партнер Нефть" [13:25:46]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [13:25:46]line СНО: Общий режим [13:25:46]line Чек 86 04.06.2024 13:25 [13:25:46]line Смена: 325 ФФД: 1.0 [13:25:46]line ЗНМ: 0300000181 [13:25:46]line РНМ: 0000000000098096 [13:25:46]line Версия ККМ: 001 [13:25:46]line ФМ: 0000000000965400 [13:25:46]line ФД: 68588 [13:25:46]line ФПД: 132313100863350 [13:25:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T132549&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68588&fm=132313100863350&tin=02508201610067®Number=0000000000098096&sum=55000 [13:25:47]Connected sock=10 [13:25:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 55 98 07 01 8C 6B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 1A 1D 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 10 D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 DD 15 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 EC 0B 01 00 35 04 06 00 78 56 8B 60 47 76 BE 46 3E 23 22 85 5F C9 [13:25:47]written 0, free lines is 4095 [13:25:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 73 90 47 00 65 10 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 EC 0B 01 00 F4 03 04 00 D6 BC 5E 66 B6 04 01 00 00 4A 78 67 99 DE 12 66 05 [13:25:47]CommunicateWithHost err = 0 [13:25:47]CheckOFDResponse [13:25:47]1017 (14) - 77093643461234 [13:25:47]1041 (16) - 0000000000965400 [13:25:47]1040 (4) - 68588 [13:25:47]1012 (4) - 04.06.2024 07:05 [13:25:47]1206 (1) - 0 [13:25:47]OFD Sender: Remove packet 68588 [13:25:47]ProducePacketName [13:25:47]name=ofd_packets/00068588 [13:25:47]NVStorageDeleteData [13:25:47]Write to MH i2c: 01 00 00 F2 27 19 [13:25:47]Write i2c OK [13:25:47]MH_I2C_Read... [13:25:47]Read from MH i2c: 01 [13:25:47]MH_I2C_Read... [13:25:47]Read from MH i2c: 01 07 00 [13:25:47]MH_I2C_Read... [13:25:47]Read from MH i2c: 01 07 00 F2 27 00 00 00 00 00 D1 0C FD [13:25:47]RasterBufferAndPrint [13:25:47]line [13:25:47]line [13:25:47]line [13:25:47]line [13:25:47]line [13:25:47]written 0, free lines is 3288 [13:25:47]MH_Cut [13:25:47]Write to MH i2c: D1 01 00 F9 27 01 F2 [13:25:47]Write i2c OK [13:25:47]MH_I2C_Read... [13:25:47]Read from MH i2c: D1 [13:25:47]MH_I2C_Read... [13:25:47]Read from MH i2c: D1 01 00 [13:25:47]MH_I2C_Read... [13:25:47]Read from MH i2c: D1 01 00 F9 27 00 F1 [13:25:47]Write to MH i2c: 01 00 00 FA 27 21 [13:25:47]Write i2c OK [13:25:47]MH_I2C_Read... [13:25:47]OFD Sender: No OFD packet to send [13:25:48]*** Cut start [13:25:48]*** Partial cut [13:25:48]*** CUTSNS_PIN = 1 [13:25:48]*** CUTSNS_PIN = 0 [13:25:48]*** Brake cut motor [13:25:49]Read from MH i2c: 01 [13:25:49]MH_I2C_Read... [13:25:49]*** Stop cut motor [13:25:49]*** Cut end [13:25:49]Read from MH i2c: 01 07 00 [13:25:49]MH_I2C_Read... [13:25:49]Read from MH i2c: 01 07 00 FA 27 00 00 00 00 00 FF 0F 36 [13:25:49]process_action close_receipt done [13:25:49]requested_data is exist [13:25:49]produce_requested_data [13:25:49]requested_item fm.sn is exist - process it [13:25:49]wFMCommunicate request_size=4 [13:25:49]MH_SAM_APDU [13:25:49]CAPDU: 80 11 00 00 [13:25:49]Write to MH i2c: E2 08 00 FB 27 80 11 00 00 00 00 00 00 9C [13:25:49]Write i2c OK [13:25:49]MH_I2C_Read... [13:25:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:25:49]Read from MH i2c: E2 [13:25:49]MH_I2C_Read... [13:25:49]Read from MH i2c: E2 17 00 [13:25:49]MH_I2C_Read... [13:25:49]Read from MH i2c: E2 17 00 FB 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 E7 [13:25:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [13:25:49]wFMCommunicate OK [13:25:49]requested_item fd.num is exist - process it [13:25:49]SAM_PROTO_GetFieldsCounters [13:25:49]wFMCommunicate request_size=4 [13:25:49]MH_SAM_APDU [13:25:49]CAPDU: 80 13 00 00 [13:25:49]Write to MH i2c: E2 08 00 FC 27 80 13 00 00 00 00 00 00 9F [13:25:49]Write i2c OK [13:25:49]MH_I2C_Read... [13:25:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:25:49]Read from MH i2c: E2 [13:25:49]MH_I2C_Read... [13:25:49]Read from MH i2c: E2 62 00 [13:25:49]MH_I2C_Read... [13:25:49]Read from MH i2c: E2 62 00 FC 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 EC 0B 01 00 0E 04 04 00 45 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 FF [13:25:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 EC 0B 01 00 0E 04 04 00 45 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 [13:25:49]wFMCommunicate OK [13:25:49]SAM_PROTO_GetFieldsCounters done [13:25:49]requested_item shift.num is exist - process it [13:25:49]requested_item shift.opened is exist - process it [13:25:49]req_shift_opened [13:25:49]FM_GetShiftState [13:25:49]SAM_PROTO_GetShiftState [13:25:49]wFMCommunicate request_size=4 [13:25:49]MH_SAM_APDU [13:25:49]CAPDU: 80 13 01 00 [13:25:49]Write to MH i2c: E2 08 00 FD 27 80 13 01 00 00 00 00 00 A1 [13:25:49]Write i2c OK [13:25:49]MH_I2C_Read... [13:25:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:25:49]Read from MH i2c: E2 [13:25:49]MH_I2C_Read... [13:25:49]Read from MH i2c: E2 0E 00 [13:25:49]MH_I2C_Read... [13:25:49]Read from MH i2c: E2 0E 00 FD 27 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 3D [13:25:49]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [13:25:49]wFMCommunicate OK [13:25:49]SAM_PROTO_GetShiftState done [13:25:49]FM_GetShiftState done [13:25:49]req_shift_opened done [13:25:49]requested_item shift.open_date is exist - process it [13:25:49]req_shift_open_date [13:25:49]req_shift_open_date done [13:25:49]produce_requested_data done [13:25:49]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68588,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [13:25:49]process_action_free close_receipt [13:25:49]json_value_free [13:25:49]json_value_free done [13:25:49]process_json_proto returns [13:25:49]Send response to host [13:25:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68588,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [13:25:49]free response buf [13:25:49]execute_script done [13:25:49]execute_script returns [13:25:49]free content buf [13:25:49]Sock 7.Close socket [13:25:49]Sock 7.Thread stoped [13:25:52]OFD Sender: No OFD packet to send [13:25:57]OFD Sender: No OFD packet to send [13:26:02]OFD Sender: No OFD packet to send [13:26:07]OFD Sender: No OFD packet to send [13:26:12]OFD Sender: No OFD packet to send [13:26:17]OFD Sender: No OFD packet to send [13:26:22]OFD Sender: No OFD packet to send [13:26:24]accept exits with 9 [13:26:24]New connection [13:26:24]New thread 3067227492 created [13:26:24]Thread 3067084132 joined [13:26:24]Waiting for new connection... [13:26:24] Sock 9.Parse request [13:26:24]Sock 9.Check first char [13:26:24]Sock 9.First char is OK [13:26:24]request: POST /json_proto HTTP/1.0 [13:26:24]Method: POST [13:26:24]URL: /json_proto [13:26:24]Method is POST - this is cgi request [13:26:24]url: /json_proto [13:26:24]query_string will be loaded in cgi processing [13:26:24]execute_cgi json_proto POST (null) [13:26:24]execute_cgi path=json_proto method=POST [13:26:24]POST find Content-Length [13:26:24]Host: 172.17.36.132:8080 [13:26:24]Content-Length: 843 [13:26:24]Content-Type: application/json [13:26:24] [13:26:24]POST finish read [13:26:24]Found Content-Length = 843 [13:26:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706718", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 2000.31 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:26:24]execute_script... [13:26: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)706718", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 2000.31 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:26:24]POST & json_proto [13:26:24]process_json_proto [13:26:24]json parsed OK: [13:26:24]protocol is kg_v1.0 [13:26:24]action value=close_receipt [13:26:24]process_action close_receipt [13:26:24]cmd_close_receipt [13:26:24]MH_GetDate [13:26:24]Write to MH i2c: F0 00 00 FE 27 14 [13:26:24]Write i2c OK [13:26:24]MH_I2C_Read... [13:26:24]Read from MH i2c: F0 [13:26:24]MH_I2C_Read... [13:26:24]Read from MH i2c: F0 09 00 [13:26:24]MH_I2C_Read... [13:26:24]Read from MH i2c: F0 09 00 FE 27 00 05 16 5F 66 B2 22 B0 64 E5 [13:26:24]GetLastDocTimeStamp 1717507549 [13:26:24]current date 1717507589 [13:26:24]FM_GetShiftState [13:26:24]SAM_PROTO_GetShiftState [13:26:24]wFMCommunicate request_size=4 [13:26:24]MH_SAM_APDU [13:26:24]CAPDU: 80 13 01 00 [13:26:24]Write to MH i2c: E2 08 00 FF 27 80 13 01 00 00 00 00 00 A3 [13:26:24]Write i2c OK [13:26:24]MH_I2C_Read... [13:26:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:26:24]Read from MH i2c: E2 [13:26:24]MH_I2C_Read... [13:26:24]Read from MH i2c: E2 0E 00 [13:26:24]MH_I2C_Read... [13:26:24]Read from MH i2c: E2 0E 00 FF 27 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 3F [13:26:24]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [13:26:24]wFMCommunicate OK [13:26:24]SAM_PROTO_GetShiftState done [13:26:24]FM_GetShiftState done [13:26:24]opened in 1717460590 [13:26:24]opened+sec_in_day 1717546990 [13:26:24]quantity*price = 200031 [13:26:24]sum+1 = 200032 [13:26:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.31 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.31 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 87 04.06.2024 13:26 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000965400 ФД: 68589 ФПД: 5103970927871 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T132629&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68589&fm=5103970927871&tin=02508201610067®Number=0000000000098096&sum=200031 [13:26:25]StoreToDocumentArchive [13:26:25]shift 325 fd 68589 [13:26:25]save to /storage/0325/doc_00068589 [13:26:25]save last doc name /storage/0325/doc_00068589 to /storage/kkm_last_doc_name [13:26:25]save OK [13:26:25]Clear old archive folders... [13:26:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:26:25]tlvbuf is B6F98010 [13:26:25]SAM_PROTO_ClearQueue [13:26:25]wFMCommunicate request_size=4 [13:26:25]MH_SAM_APDU [13:26:25]CAPDU: 80 09 00 00 [13:26:25]Write to MH i2c: E2 08 00 0C 28 80 09 00 00 00 00 00 00 A6 [13:26:25]Write i2c OK [13:26:25]MH_I2C_Read... [13:26:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:26:25]Read from MH i2c: E2 [13:26:25]MH_I2C_Read... [13:26:25]Read from MH i2c: E2 03 00 [13:26:25]MH_I2C_Read... [13:26:25]Read from MH i2c: E2 03 00 0C 28 00 90 00 A8 [13:26:25]RAPDU: 90 00 [13:26:25]wFMCommunicate OK [13:26:25]SAM_PROTO_ClearQueue done [13:26:25]KKMCreateOFDPacket [13:26:25]OFDProtocolAddRootSTLVToBuf [13:26:25]FM_MakeSignedData [13:26:25]FM_MakeSignedData [13:26:25]SAM_PROTO_SignData [13:26:25]wFMCommunicate request_size=4 [13:26:25]MH_SAM_APDU [13:26:25]CAPDU: 80 0D 01 02 [13:26:25]Write to MH i2c: E2 08 00 0D 28 80 0D 01 02 00 00 00 00 AE [13:26:25]Write i2c OK [13:26:25]MH_I2C_Read... [13:26:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:26:25]Read from MH i2c: E2 [13:26:25]MH_I2C_Read... [13:26:25]Read from MH i2c: E2 03 00 [13:26:25]MH_I2C_Read... [13:26:25]Read from MH i2c: E2 03 00 0D 28 00 90 00 A9 [13:26:25]RAPDU: 90 00 [13:26:25]wFMCommunicate OK [13:26:25]wFMCommunicate request_size=255 [13:26:25]MH_SAM_APDU [13:26: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 34 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 05 16 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 ED 0B 01 00 35 04 06 00 04 [13:26:25]Write to MH i2c: E2 02 01 0E 28 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 05 16 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 ED 0B 01 00 35 04 06 00 04 00 00 35 [13:26:25]Write i2c OK [13:26:25]MH_I2C_Read... [13:26:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:26:25]Read from MH i2c: E2 [13:26:25]MH_I2C_Read... [13:26:25]Read from MH i2c: E2 03 00 [13:26:25]MH_I2C_Read... [13:26:25]Read from MH i2c: E2 03 00 0E 28 00 90 00 AA [13:26:25]RAPDU: 90 00 [13:26:25]wFMCommunicate OK [13:26:25]wFMCommunicate request_size=10 [13:26:25]MH_SAM_APDU [13:26:25]CAPDU: 80 0D 02 02 05 A4 5C 5F C4 FF [13:26:25]Write to MH i2c: E2 0D 00 0F 28 80 0D 02 02 05 00 A4 5C 5F C4 FF 00 00 DD [13:26:25]Write i2c OK [13:26:25]MH_I2C_Read... [13:26:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:26:26]Read from MH i2c: E2 [13:26:26]MH_I2C_Read... [13:26:26]Read from MH i2c: E2 03 00 [13:26:26]MH_I2C_Read... [13:26:26]Read from MH i2c: E2 03 00 0F 28 00 90 00 AB [13:26:26]RAPDU: 90 00 [13:26:26]wFMCommunicate OK [13:26:26]wFMCommunicate request_size=4 [13:26:26]MH_SAM_APDU [13:26:26]CAPDU: 80 0D 03 02 [13:26:26]Write to MH i2c: E2 08 00 10 28 80 0D 03 02 00 00 00 00 B3 [13:26:26]Write i2c OK [13:26:26]MH_I2C_Read... [13:26:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:26:26]Read from MH i2c: E2 [13:26:26]MH_I2C_Read... [13:26:26]Read from MH i2c: E2 0B 00 [13:26:26]MH_I2C_Read... [13:26:26]Read from MH i2c: E2 0B 00 10 28 00 F1 4B 34 94 3C 61 CB 21 90 00 41 [13:26:26]RAPDU: F1 4B 34 94 3C 61 CB 21 90 00 [13:26:26]wFMCommunicate OK [13:26:26]SAM_PROTO_SignData done [13:26:26]FM_MakeSignedData done [13:26:26]CreateOFDProtocolMessage [13:26:26]wFMCommunicate request_size=4 [13:26:26]MH_SAM_APDU [13:26:26]CAPDU: 80 11 00 00 [13:26:26]Write to MH i2c: E2 08 00 11 28 80 11 00 00 00 00 00 00 B3 [13:26:26]Write i2c OK [13:26:26]MH_I2C_Read... [13:26:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:26:26]Read from MH i2c: E2 [13:26:26]MH_I2C_Read... [13:26:26]Read from MH i2c: E2 17 00 [13:26:26]MH_I2C_Read... [13:26:26]Read from MH i2c: E2 17 00 11 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 FE [13:26:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [13:26:26]wFMCommunicate OK [13:26:26]CreateOFDProtocolMessage done [13:26:26]OFDSenderStorePacket 68589 [13:26:26]StoreOFDPacket docnum=68589 [13:26:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 31 B4 07 01 E3 28 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 05 16 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 ED 0B 01 00 35 04 06 00 04 A4 5C 5F C4 FF F1 4B 34 94 3C 61 CB 21 [13:26:26]CheckFolder [13:26:26]dirname=/storage/ofd_packets [13:26:26]CheckFolder done [13:26:26]ProducePacketName [13:26:26]name=ofd_packets/00068589 [13:26:26]NVStorageSaveData ofd_packets/00068589 [13:26:26]File name is /storage/ofd_packets/00068589 [13:26:26]Write 301 bytes [13:26:26]NVStorageSaveData done [13:26:26]OFDSenderStorePacket done [13:26:26]KKMCreateOFDPacket done [13:26:26]NVStorageSaveData kkm_last_timestamp [13:26:26]File name is /storage/kkm_last_timestamp [13:26:26]Write 4 bytes [13:26:26]NVStorageSaveData done [13:26:26]ExternCall_PrintAddStr [13:26:26]wPrintStart [13:26:26]Write to MH i2c: 01 00 00 12 28 3A [13:26:26]Write i2c OK [13:26:26]MH_I2C_Read... [13:26:26]Read from MH i2c: 01 [13:26:26]MH_I2C_Read... [13:26:26]Read from MH i2c: 01 07 00 [13:26:26]MH_I2C_Read... [13:26:26]Read from MH i2c: 01 07 00 12 28 00 00 00 00 00 FF 0F 4F [13:26:26]RasterBufferAndPrint [13:26:26]line Счет N : (1)706718 [13:26:26]line ИНН: 02508201610067 [13:26:26]line Контрольно-Кассовый Чек [13:26:26]line ПРОДАЖА [13:26:26]line ТРК (МРК, ГНК) : 42 [13:26:26]line Товар: 2710124130 [13:26:26]line Аи-92-К-4 [13:26:26]line 29.900 * 66.90 [13:26:26]line = 2000.31 [13:26:26]line НДС 12% НСП 1% [13:26:26]line > о реализуемом товаре [13:26:26]line ИТОГО: 2000.31 [13:26:26]line НСП 1% : 17.70 [13:26:26]line НДС 12% : 212.42 [13:26:26]line Наличными: 0.00 [13:26:26]line Безнал.: 2000.31 [13:26:26]line Место: АЗС № 62 "Партнер Нефть" [13:26:26]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [13:26:26]line СНО: Общий режим [13:26:26]line Чек 87 04.06.2024 13:26 [13:26:26]line Смена: 325 ФФД: 1.0 [13:26:26]line ЗНМ: 0300000181 [13:26:26]line РНМ: 0000000000098096 [13:26:26]line Версия ККМ: 001 [13:26:26]line Платежная система: АКБ Кыргызстан [13:26:26]line ФМ: 0000000000965400 [13:26:26]line ФД: 68589 [13:26:26]line ФПД: 5103970927871 [13:26:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T132629&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68589&fm=5103970927871&tin=02508201610067®Number=0000000000098096&sum=200031 [13:26:26]OFD Sender: Processing packet 68589 [packets to send 26, broken 25] [13:26:26]ProducePacketName [13:26:26]name=ofd_packets/00068589 [13:26:26]OFD Sender: To server: pG, [13:26:26]CommunicateWithHost lk.salyk.kg:30040 [13:26:26]ConnectInit lk.salyk.kg [13:26:26]written 0, free lines is 4095 [13:26:26]Connected sock=10 [13:26:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 31 B4 07 01 E3 28 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 05 16 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 ED 0B 01 00 35 04 06 00 04 A4 5C 5F C4 FF F1 4B 34 94 3C 61 CB 21 [13:26:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 46 56 47 00 C9 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 39 36 35 34 30 30 10 04 04 00 ED 0B 01 00 F4 03 04 00 FD BC 5E 66 B6 04 01 00 00 D7 7A D2 8D F9 97 7A B6 [13:26:26]CommunicateWithHost err = 0 [13:26:26]CheckOFDResponse [13:26:26]1017 (14) - 77093643461234 [13:26:26]1041 (16) - 0000000000965400 [13:26:26]1040 (4) - 68589 [13:26:26]1012 (4) - 04.06.2024 07:06 [13:26:26]1206 (1) - 0 [13:26:26]OFD Sender: Remove packet 68589 [13:26:26]ProducePacketName [13:26:26]name=ofd_packets/00068589 [13:26:26]NVStorageDeleteData [13:26:26]Write to MH i2c: 01 00 00 3C 28 64 [13:26:26]Write i2c OK [13:26:26]MH_I2C_Read... [13:26:26]Read from MH i2c: 01 [13:26:26]MH_I2C_Read... [13:26:26]Read from MH i2c: 01 07 00 [13:26:26]MH_I2C_Read... [13:26:26]Read from MH i2c: 01 07 00 3C 28 00 00 00 00 00 E7 0C 5E [13:26:26]RasterBufferAndPrint [13:26:26]line [13:26:26]line [13:26:26]line [13:26:26]line [13:26:26]line [13:26:26]written 0, free lines is 3310 [13:26:26]MH_Cut [13:26:26]Write to MH i2c: D1 01 00 43 28 01 3D [13:26:26]Write i2c OK [13:26:26]MH_I2C_Read... [13:26:26]Read from MH i2c: D1 [13:26:26]MH_I2C_Read... [13:26:26]Read from MH i2c: D1 01 00 [13:26:26]MH_I2C_Read... [13:26:26]Read from MH i2c: D1 01 00 43 28 00 3C [13:26:26]Write to MH i2c: 01 00 00 44 28 6C [13:26:26]Write i2c OK [13:26:26]MH_I2C_Read... [13:26:27]OFD Sender: No OFD packet to send [13:26:27]*** Cut start [13:26:27]*** Partial cut [13:26:27]*** CUTSNS_PIN = 1 [13:26:27]*** CUTSNS_PIN = 0 [13:26:27]*** Brake cut motor [13:26:28]Read from MH i2c: 01 [13:26:28]MH_I2C_Read... [13:26:28]*** Stop cut motor [13:26:28]*** Cut end [13:26:28]Read from MH i2c: 01 07 00 [13:26:28]MH_I2C_Read... [13:26:28]Read from MH i2c: 01 07 00 44 28 00 00 00 00 00 FF 0F 81 [13:26:28]process_action close_receipt done [13:26:28]requested_data is exist [13:26:28]produce_requested_data [13:26:28]requested_item fm.sn is exist - process it [13:26:28]wFMCommunicate request_size=4 [13:26:28]MH_SAM_APDU [13:26:28]CAPDU: 80 11 00 00 [13:26:28]Write to MH i2c: E2 08 00 45 28 80 11 00 00 00 00 00 00 E7 [13:26:28]Write i2c OK [13:26:28]MH_I2C_Read... [13:26:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:26:28]Read from MH i2c: E2 [13:26:28]MH_I2C_Read... [13:26:28]Read from MH i2c: E2 17 00 [13:26:28]MH_I2C_Read... [13:26:28]Read from MH i2c: E2 17 00 45 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 32 [13:26:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [13:26:28]wFMCommunicate OK [13:26:28]requested_item fd.num is exist - process it [13:26:28]SAM_PROTO_GetFieldsCounters [13:26:28]wFMCommunicate request_size=4 [13:26:28]MH_SAM_APDU [13:26:28]CAPDU: 80 13 00 00 [13:26:28]Write to MH i2c: E2 08 00 46 28 80 13 00 00 00 00 00 00 EA [13:26:28]Write i2c OK [13:26:28]MH_I2C_Read... [13:26:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:26:28]Read from MH i2c: E2 [13:26:28]MH_I2C_Read... [13:26:28]Read from MH i2c: E2 62 00 [13:26:28]MH_I2C_Read... [13:26:28]Read from MH i2c: E2 62 00 46 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 ED 0B 01 00 0E 04 04 00 45 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 4E [13:26:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 ED 0B 01 00 0E 04 04 00 45 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 [13:26:28]wFMCommunicate OK [13:26:28]SAM_PROTO_GetFieldsCounters done [13:26:28]requested_item shift.num is exist - process it [13:26:28]requested_item shift.opened is exist - process it [13:26:28]req_shift_opened [13:26:28]FM_GetShiftState [13:26:28]SAM_PROTO_GetShiftState [13:26:28]wFMCommunicate request_size=4 [13:26:28]MH_SAM_APDU [13:26:28]CAPDU: 80 13 01 00 [13:26:28]Write to MH i2c: E2 08 00 47 28 80 13 01 00 00 00 00 00 EC [13:26:28]Write i2c OK [13:26:28]MH_I2C_Read... [13:26:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:26:28]Read from MH i2c: E2 [13:26:28]MH_I2C_Read... [13:26:28]Read from MH i2c: E2 0E 00 [13:26:28]MH_I2C_Read... [13:26:28]Read from MH i2c: E2 0E 00 47 28 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 88 [13:26:28]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [13:26:28]wFMCommunicate OK [13:26:28]SAM_PROTO_GetShiftState done [13:26:28]FM_GetShiftState done [13:26:28]req_shift_opened done [13:26:28]requested_item shift.open_date is exist - process it [13:26:28]req_shift_open_date [13:26:28]req_shift_open_date done [13:26:28]produce_requested_data done [13:26:28]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68589,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [13:26:28]process_action_free close_receipt [13:26:28]json_value_free [13:26:28]json_value_free done [13:26:28]process_json_proto returns [13:26:28]Send response to host [13:26:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68589,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [13:26:28]free response buf [13:26:28]execute_script done [13:26:28]execute_script returns [13:26:28]free content buf [13:26:28]Sock 9.Close socket [13:26:28]Sock 9.Thread stoped [13:26:32]OFD Sender: No OFD packet to send [13:26:37]OFD Sender: No OFD packet to send [13:26:42]OFD Sender: No OFD packet to send [13:26:47]OFD Sender: No OFD packet to send [13:26:52]OFD Sender: No OFD packet to send [13:26:57]OFD Sender: No OFD packet to send [13:27:02]OFD Sender: No OFD packet to send [13:27:07]OFD Sender: No OFD packet to send [13:27:12]OFD Sender: No OFD packet to send [13:27:17]OFD Sender: No OFD packet to send [13:27:22]OFD Sender: No OFD packet to send [13:27:27]OFD Sender: No OFD packet to send [13:27:32]OFD Sender: No OFD packet to send [13:27:37]OFD Sender: No OFD packet to send [13:27:42]OFD Sender: No OFD packet to send [13:27:47]OFD Sender: No OFD packet to send [13:27:52]OFD Sender: No OFD packet to send [13:27:57]OFD Sender: No OFD packet to send [13:28:02]OFD Sender: No OFD packet to send [13:28:07]OFD Sender: No OFD packet to send [13:28:12]OFD Sender: No OFD packet to send [13:28:17]OFD Sender: No OFD packet to send [13:28:22]OFD Sender: No OFD packet to send [13:28:27]OFD Sender: No OFD packet to send [13:28:32]OFD Sender: No OFD packet to send [13:28:37]OFD Sender: No OFD packet to send [13:28:42]OFD Sender: No OFD packet to send [13:28:47]OFD Sender: No OFD packet to send [13:28:52]OFD Sender: No OFD packet to send [13:28:57]OFD Sender: No OFD packet to send [13:29:02]OFD Sender: No OFD packet to send [13:29:07]OFD Sender: No OFD packet to send [13:29:12]OFD Sender: No OFD packet to send [13:29:17]OFD Sender: No OFD packet to send [13:29:19]accept exits with 7 [13:29:19]New connection [13:29:19]New thread 3067084132 created [13:29:19]Thread 3067227492 joined [13:29:19]Waiting for new connection... [13:29:19] Sock 7.Parse request [13:29:19]Sock 7.Check first char [13:29:19]Sock 7.First char is OK [13:29:19]request: POST /json_proto HTTP/1.0 [13:29:19]Method: POST [13:29:19]URL: /json_proto [13:29:19]Method is POST - this is cgi request [13:29:19]url: /json_proto [13:29:19]query_string will be loaded in cgi processing [13:29:19]execute_cgi json_proto POST (null) [13:29:19]execute_cgi path=json_proto method=POST [13:29:19]POST find Content-Length [13:29:19]Host: 172.17.36.132:8080 [13:29:19]Content-Length: 687 [13:29:19]Content-Type: application/json [13:29:19] [13:29:19]POST finish read [13:29:19]Found Content-Length = 687 [13:29:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706720", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "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:29:19]execute_script... [13:29: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)706720", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "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:29:19]POST & json_proto [13:29:19]process_json_proto [13:29:19]json parsed OK: [13:29:19]protocol is kg_v1.0 [13:29:19]action value=close_receipt [13:29:19]process_action close_receipt [13:29:19]cmd_close_receipt [13:29:19]MH_GetDate [13:29:19]Write to MH i2c: F0 00 00 48 28 5F [13:29:19]Write i2c OK [13:29:19]MH_I2C_Read... [13:29:19]Read from MH i2c: F0 [13:29:19]MH_I2C_Read... [13:29:19]Read from MH i2c: F0 09 00 [13:29:19]MH_I2C_Read... [13:29:19]Read from MH i2c: F0 09 00 48 28 00 B3 16 5F 66 B2 22 B0 64 DE [13:29:19]GetLastDocTimeStamp 1717507589 [13:29:19]current date 1717507763 [13:29:19]FM_GetShiftState [13:29:19]SAM_PROTO_GetShiftState [13:29:19]wFMCommunicate request_size=4 [13:29:19]MH_SAM_APDU [13:29:19]CAPDU: 80 13 01 00 [13:29:19]Write to MH i2c: E2 08 00 49 28 80 13 01 00 00 00 00 00 EE [13:29:19]Write i2c OK [13:29:19]MH_I2C_Read... [13:29:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:29:19]Read from MH i2c: E2 [13:29:19]MH_I2C_Read... [13:29:19]Read from MH i2c: E2 0E 00 [13:29:19]MH_I2C_Read... [13:29:19]Read from MH i2c: E2 0E 00 49 28 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 8A [13:29:19]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [13:29:19]wFMCommunicate OK [13:29:19]SAM_PROTO_GetShiftState done [13:29:19]FM_GetShiftState done [13:29:19]opened in 1717460590 [13:29:19]opened+sec_in_day 1717546990 [13:29:19]quantity*price = 100018 [13:29:19]sum+1 = 100020 [13:29:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 88 04.06.2024 13:29 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68590 ФПД: 246366955774849 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T132924&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68590&fm=246366955774849&tin=02508201610067®Number=0000000000098096&sum=100000 [13:29:20]StoreToDocumentArchive [13:29:20]shift 325 fd 68590 [13:29:20]save to /storage/0325/doc_00068590 [13:29:20]save last doc name /storage/0325/doc_00068590 to /storage/kkm_last_doc_name [13:29:20]save OK [13:29:20]Clear old archive folders... [13:29:20]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:29:20]tlvbuf is 00A10670 [13:29:20]SAM_PROTO_ClearQueue [13:29:20]wFMCommunicate request_size=4 [13:29:20]MH_SAM_APDU [13:29:20]CAPDU: 80 09 00 00 [13:29:20]Write to MH i2c: E2 08 00 56 28 80 09 00 00 00 00 00 00 F0 [13:29:20]Write i2c OK [13:29:20]MH_I2C_Read... [13:29:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:29:20]Read from MH i2c: E2 [13:29:20]MH_I2C_Read... [13:29:20]Read from MH i2c: E2 03 00 [13:29:20]MH_I2C_Read... [13:29:20]Read from MH i2c: E2 03 00 56 28 00 90 00 F2 [13:29:20]RAPDU: 90 00 [13:29:20]wFMCommunicate OK [13:29:20]SAM_PROTO_ClearQueue done [13:29:20]KKMCreateOFDPacket [13:29:20]OFDProtocolAddRootSTLVToBuf [13:29:20]FM_MakeSignedData [13:29:20]FM_MakeSignedData [13:29:20]SAM_PROTO_SignData [13:29:20]wFMCommunicate request_size=4 [13:29:20]MH_SAM_APDU [13:29:20]CAPDU: 80 0D 01 02 [13:29:20]Write to MH i2c: E2 08 00 57 28 80 0D 01 02 00 00 00 00 F8 [13:29:20]Write i2c OK [13:29:20]MH_I2C_Read... [13:29:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:29:20]Read from MH i2c: E2 [13:29:20]MH_I2C_Read... [13:29:20]Read from MH i2c: E2 03 00 [13:29:20]MH_I2C_Read... [13:29:20]Read from MH i2c: E2 03 00 57 28 00 90 00 F3 [13:29:20]RAPDU: 90 00 [13:29:20]wFMCommunicate OK [13:29:20]wFMCommunicate request_size=255 [13:29:20]MH_SAM_APDU [13:29:20]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 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 58 00 00 00 F4 03 04 00 B4 16 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 EE 0B 01 00 35 04 06 00 [13:29:20]Write to MH i2c: E2 02 01 58 28 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 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 58 00 00 00 F4 03 04 00 B4 16 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 EE 0B 01 00 35 04 06 00 00 00 6B [13:29:20]Write i2c OK [13:29:20]MH_I2C_Read... [13:29:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:29:20]Read from MH i2c: E2 [13:29:20]MH_I2C_Read... [13:29:20]Read from MH i2c: E2 03 00 [13:29:20]MH_I2C_Read... [13:29:20]Read from MH i2c: E2 03 00 58 28 00 90 00 F4 [13:29:20]RAPDU: 90 00 [13:29:20]wFMCommunicate OK [13:29:20]wFMCommunicate request_size=11 [13:29:20]MH_SAM_APDU [13:29:20]CAPDU: 80 0D 02 02 06 E0 11 C6 E2 23 81 [13:29:20]Write to MH i2c: E2 0E 00 59 28 80 0D 02 02 06 00 E0 11 C6 E2 23 81 00 00 44 [13:29:20]Write i2c OK [13:29:20]MH_I2C_Read... [13:29:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:29:20]Read from MH i2c: E2 [13:29:20]MH_I2C_Read... [13:29:20]Read from MH i2c: E2 03 00 [13:29:20]MH_I2C_Read... [13:29:20]Read from MH i2c: E2 03 00 59 28 00 90 00 F5 [13:29:20]RAPDU: 90 00 [13:29:20]wFMCommunicate OK [13:29:20]wFMCommunicate request_size=4 [13:29:20]MH_SAM_APDU [13:29:20]CAPDU: 80 0D 03 02 [13:29:20]Write to MH i2c: E2 08 00 5A 28 80 0D 03 02 00 00 00 00 FD [13:29:20]Write i2c OK [13:29:20]MH_I2C_Read... [13:29:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:29:20]Read from MH i2c: E2 [13:29:20]MH_I2C_Read... [13:29:20]Read from MH i2c: E2 0B 00 [13:29:20]MH_I2C_Read... [13:29:20]Read from MH i2c: E2 0B 00 5A 28 00 56 7A 93 0D 23 69 73 77 90 00 E4 [13:29:20]RAPDU: 56 7A 93 0D 23 69 73 77 90 00 [13:29:20]wFMCommunicate OK [13:29:20]SAM_PROTO_SignData done [13:29:20]FM_MakeSignedData done [13:29:20]CreateOFDProtocolMessage [13:29:20]wFMCommunicate request_size=4 [13:29:20]MH_SAM_APDU [13:29:20]CAPDU: 80 11 00 00 [13:29:20]Write to MH i2c: E2 08 00 5B 28 80 11 00 00 00 00 00 00 FD [13:29:20]Write i2c OK [13:29:20]MH_I2C_Read... [13:29:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:29:21]Read from MH i2c: E2 [13:29:21]MH_I2C_Read... [13:29:21]Read from MH i2c: E2 17 00 [13:29:21]MH_I2C_Read... [13:29:21]Read from MH i2c: E2 17 00 5B 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 48 [13:29:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [13:29:21]wFMCommunicate OK [13:29:21]CreateOFDProtocolMessage done [13:29:21]OFDSenderStorePacket 68590 [13:29:21]StoreOFDPacket docnum=68590 [13:29:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 F0 95 08 01 6F 72 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 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 58 00 00 00 F4 03 04 00 B4 16 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 EE 0B 01 00 35 04 06 00 E0 11 C6 E2 23 81 56 7A 93 0D 23 69 73 77 [13:29:21]CheckFolder [13:29:21]dirname=/storage/ofd_packets [13:29:21]CheckFolder done [13:29:21]ProducePacketName [13:29:21]name=ofd_packets/00068590 [13:29:21]NVStorageSaveData ofd_packets/00068590 [13:29:21]File name is /storage/ofd_packets/00068590 [13:29:21]Write 302 bytes [13:29:21]NVStorageSaveData done [13:29:21]OFDSenderStorePacket done [13:29:21]KKMCreateOFDPacket done [13:29:21]NVStorageSaveData kkm_last_timestamp [13:29:21]File name is /storage/kkm_last_timestamp [13:29:21]Write 4 bytes [13:29:21]NVStorageSaveData done [13:29:21]ExternCall_PrintAddStr [13:29:21]wPrintStart [13:29:21]Write to MH i2c: 01 00 00 5C 28 84 [13:29:21]Write i2c OK [13:29:21]MH_I2C_Read... [13:29:21]Read from MH i2c: 01 [13:29:21]MH_I2C_Read... [13:29:21]Read from MH i2c: 01 07 00 [13:29:21]MH_I2C_Read... [13:29:21]Read from MH i2c: 01 07 00 5C 28 00 00 00 00 00 FF 0F 99 [13:29:21]RasterBufferAndPrint [13:29:21]line Счет N : (1)706720 [13:29:21]line ИНН: 02508201610067 [13:29:21]line Контрольно-Кассовый Чек [13:29:21]line ПРОДАЖА [13:29:21]line ТРК (МРК, ГНК) : 11 [13:29:21]line Товар: 2710194210 [13:29:21]line ДТ(л)-К-4 [13:29:21]line 13.720 * 72.90 [13:29:21]line = 1000.19 [13:29:21]line НДС 12% НСП 1% [13:29:21]line > о реализуемом товаре [13:29:21]line ОКРУГЛЕНИЕ: -0.19 [13:29:21]line ИТОГО: 1000.00 [13:29:21]line Внесено: 1000.00 [13:29:21]line СДАЧА: 0.00 [13:29:21]line НСП 1% : 8.85 [13:29:21]line НДС 12% : 106.21 [13:29:21]line Наличными: 1000.00 [13:29:21]line Безнал.: 0.00 [13:29:21]line Место: АЗС № 62 "Партнер Нефть" [13:29:21]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [13:29:21]line СНО: Общий режим [13:29:21]line Чек 88 04.06.2024 13:29 [13:29:21]line Смена: 325 ФФД: 1.0 [13:29:21]line ЗНМ: 0300000181 [13:29:21]line РНМ: 0000000000098096 [13:29:21]line Версия ККМ: 001 [13:29:21]line ФМ: 0000000000965400 [13:29:21]line ФД: 68590 [13:29:21]line ФПД: 246366955774849 [13:29:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T132924&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68590&fm=246366955774849&tin=02508201610067®Number=0000000000098096&sum=100000 [13:29:21]OFD Sender: Processing packet 68590 [packets to send 26, broken 25] [13:29:21]ProducePacketName [13:29:21]name=ofd_packets/00068590 [13:29:21]OFD Sender: To server: pG, [13:29:21]CommunicateWithHost lk.salyk.kg:30040 [13:29:21]ConnectInit lk.salyk.kg [13:29:21]written 0, free lines is 4095 [13:29:21]Connected sock=10 [13:29:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 F0 95 08 01 6F 72 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 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 58 00 00 00 F4 03 04 00 B4 16 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 EE 0B 01 00 35 04 06 00 E0 11 C6 E2 23 81 56 7A 93 0D 23 69 73 77 [13:29:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 AF B3 47 00 E7 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 39 36 35 34 30 30 10 04 04 00 EE 0B 01 00 F4 03 04 00 AC BD 5E 66 B6 04 01 00 00 AE 6A D9 51 6B 5C 54 01 [13:29:21]CommunicateWithHost err = 0 [13:29:21]CheckOFDResponse [13:29:21]1017 (14) - 77093643461234 [13:29:21]1041 (16) - 0000000000965400 [13:29:21]1040 (4) - 68590 [13:29:21]1012 (4) - 04.06.2024 07:09 [13:29:21]1206 (1) - 0 [13:29:21]OFD Sender: Remove packet 68590 [13:29:21]ProducePacketName [13:29:21]name=ofd_packets/00068590 [13:29:21]NVStorageDeleteData [13:29:21]Write to MH i2c: 01 00 00 87 28 AF [13:29:21]Write i2c OK [13:29:21]MH_I2C_Read... [13:29:21]Read from MH i2c: 01 [13:29:21]MH_I2C_Read... [13:29:21]Read from MH i2c: 01 07 00 [13:29:21]MH_I2C_Read... [13:29:21]Read from MH i2c: 01 07 00 87 28 00 00 00 00 00 D2 0C 94 [13:29:21]RasterBufferAndPrint [13:29:21]line [13:29:21]line [13:29:21]line [13:29:21]line [13:29:21]line [13:29:21]written 0, free lines is 3289 [13:29:21]MH_Cut [13:29:21]Write to MH i2c: D1 01 00 8E 28 01 88 [13:29:21]Write i2c OK [13:29:21]MH_I2C_Read... [13:29:21]Read from MH i2c: D1 [13:29:21]MH_I2C_Read... [13:29:21]Read from MH i2c: D1 01 00 [13:29:21]MH_I2C_Read... [13:29:21]Read from MH i2c: D1 01 00 8E 28 00 87 [13:29:21]Write to MH i2c: 01 00 00 8F 28 B7 [13:29:21]Write i2c OK [13:29:21]MH_I2C_Read... [13:29:22]OFD Sender: No OFD packet to send [13:29:22]*** Cut start [13:29:22]*** Partial cut [13:29:22]*** CUTSNS_PIN = 1 [13:29:22]*** CUTSNS_PIN = 0 [13:29:22]*** Brake cut motor [13:29:23]Read from MH i2c: 01 [13:29:23]MH_I2C_Read... [13:29:23]*** Stop cut motor [13:29:23]*** Cut end [13:29:23]Read from MH i2c: 01 07 00 [13:29:23]MH_I2C_Read... [13:29:23]Read from MH i2c: 01 07 00 8F 28 00 00 00 00 00 FF 0F CC [13:29:23]process_action close_receipt done [13:29:23]requested_data is exist [13:29:23]produce_requested_data [13:29:23]requested_item fm.sn is exist - process it [13:29:23]wFMCommunicate request_size=4 [13:29:23]MH_SAM_APDU [13:29:23]CAPDU: 80 11 00 00 [13:29:23]Write to MH i2c: E2 08 00 90 28 80 11 00 00 00 00 00 00 32 [13:29:23]Write i2c OK [13:29:23]MH_I2C_Read... [13:29:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:29:23]Read from MH i2c: E2 [13:29:23]MH_I2C_Read... [13:29:23]Read from MH i2c: E2 17 00 [13:29:23]MH_I2C_Read... [13:29:23]Read from MH i2c: E2 17 00 90 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 7D [13:29:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [13:29:23]wFMCommunicate OK [13:29:23]requested_item fd.num is exist - process it [13:29:23]SAM_PROTO_GetFieldsCounters [13:29:23]wFMCommunicate request_size=4 [13:29:23]MH_SAM_APDU [13:29:23]CAPDU: 80 13 00 00 [13:29:23]Write to MH i2c: E2 08 00 91 28 80 13 00 00 00 00 00 00 35 [13:29:23]Write i2c OK [13:29:23]MH_I2C_Read... [13:29:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:29:23]Read from MH i2c: E2 [13:29:23]MH_I2C_Read... [13:29:23]Read from MH i2c: E2 62 00 [13:29:23]MH_I2C_Read... [13:29:23]Read from MH i2c: E2 62 00 91 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 EE 0B 01 00 0E 04 04 00 45 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 9D [13:29:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 EE 0B 01 00 0E 04 04 00 45 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 [13:29:23]wFMCommunicate OK [13:29:23]SAM_PROTO_GetFieldsCounters done [13:29:23]requested_item shift.num is exist - process it [13:29:23]requested_item shift.opened is exist - process it [13:29:23]req_shift_opened [13:29:23]FM_GetShiftState [13:29:23]SAM_PROTO_GetShiftState [13:29:23]wFMCommunicate request_size=4 [13:29:23]MH_SAM_APDU [13:29:23]CAPDU: 80 13 01 00 [13:29:23]Write to MH i2c: E2 08 00 92 28 80 13 01 00 00 00 00 00 37 [13:29:23]Write i2c OK [13:29:23]MH_I2C_Read... [13:29:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:29:23]Read from MH i2c: E2 [13:29:23]MH_I2C_Read... [13:29:23]Read from MH i2c: E2 0E 00 [13:29:23]MH_I2C_Read... [13:29:23]Read from MH i2c: E2 0E 00 92 28 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 D3 [13:29:23]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [13:29:23]wFMCommunicate OK [13:29:23]SAM_PROTO_GetShiftState done [13:29:23]FM_GetShiftState done [13:29:23]req_shift_opened done [13:29:23]requested_item shift.open_date is exist - process it [13:29:23]req_shift_open_date [13:29:23]req_shift_open_date done [13:29:23]produce_requested_data done [13:29:23]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68590,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [13:29:23]process_action_free close_receipt [13:29:23]json_value_free [13:29:23]json_value_free done [13:29:23]process_json_proto returns [13:29:23]Send response to host [13:29:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68590,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [13:29:23]free response buf [13:29:23]execute_script done [13:29:23]execute_script returns [13:29:23]free content buf [13:29:23]Sock 7.Close socket [13:29:23]Sock 7.Thread stoped [13:29:27]OFD Sender: No OFD packet to send [13:29:32]OFD Sender: No OFD packet to send [13:29:37]OFD Sender: No OFD packet to send [13:29:42]OFD Sender: No OFD packet to send [13:29:47]OFD Sender: No OFD packet to send [13:29:52]OFD Sender: No OFD packet to send [13:29:57]OFD Sender: No OFD packet to send [13:30:02]OFD Sender: No OFD packet to send [13:30:07]OFD Sender: No OFD packet to send [13:30:12]OFD Sender: No OFD packet to send [13:30:17]OFD Sender: No OFD packet to send [13:30:22]OFD Sender: No OFD packet to send [13:30:27]OFD Sender: No OFD packet to send [13:30:32]OFD Sender: No OFD packet to send [13:30:37]OFD Sender: No OFD packet to send [13:30:42]OFD Sender: No OFD packet to send [13:30:47]OFD Sender: No OFD packet to send [13:30:52]OFD Sender: No OFD packet to send [13:30:57]OFD Sender: No OFD packet to send [13:31:02]OFD Sender: No OFD packet to send [13:31:07]OFD Sender: No OFD packet to send [13:31:12]OFD Sender: No OFD packet to send [13:31:17]OFD Sender: No OFD packet to send [13:31:22]OFD Sender: No OFD packet to send [13:31:27]OFD Sender: No OFD packet to send [13:31:32]OFD Sender: No OFD packet to send [13:31:37]OFD Sender: No OFD packet to send [13:31:42]OFD Sender: No OFD packet to send [13:31:47]OFD Sender: No OFD packet to send [13:31:52]OFD Sender: No OFD packet to send [13:31:57]OFD Sender: No OFD packet to send [13:32:01]accept exits with 9 [13:32:01]New connection [13:32:01]New thread 3067227492 created [13:32:01]Thread 3067084132 joined [13:32:01]Waiting for new connection... [13:32:01] Sock 9.Parse request [13:32:01]Sock 9.Check first char [13:32:01]Sock 9.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.36.132:8080 [13:32:01]Content-Length: 843 [13:32:01]Content-Type: application/json [13:32:01] [13:32:01]POST finish read [13:32:01]Found Content-Length = 843 [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)706721", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 2000.31 } ] } , "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)706721", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 2000.31 } ] } , "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 93 28 AA [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 93 28 00 56 17 5F 66 B2 22 B0 64 CD [13:32:01]GetLastDocTimeStamp 1717507764 [13:32:01]current date 1717507926 [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 94 28 80 13 01 00 00 00 00 00 39 [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 94 28 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 D5 [13:32:01]RAPDU: 09 00 01 6E 5E 5E 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 1717460590 [13:32:01]opened+sec_in_day 1717546990 [13:32:01]quantity*price = 200031 [13:32:01]sum+1 = 200032 [13:32:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.31 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.31 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 89 04.06.2024 13:32 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000965400 ФД: 68591 ФПД: 134394991661046 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T133206&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68591&fm=134394991661046&tin=02508201610067®Number=0000000000098096&sum=200031 [13:32:02]StoreToDocumentArchive [13:32:02]shift 325 fd 68591 [13:32:02]save to /storage/0325/doc_00068591 [13:32:02]save last doc name /storage/0325/doc_00068591 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=251 [13:32:02]tlvbuf is 00A5A360 [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 A1 28 80 09 00 00 00 00 00 00 3B [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 A1 28 00 90 00 3D [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 A2 28 80 0D 01 02 00 00 00 00 43 [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 A2 28 00 90 00 3E [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 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 56 17 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 EF 0B 01 00 35 04 06 00 7A [13:32:02]Write to MH i2c: E2 02 01 A3 28 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 56 17 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 EF 0B 01 00 35 04 06 00 7A 00 00 96 [13:32:02]Write i2c OK [13:32:02]MH_I2C_Read... [13:32:02]*** iso7816_exchange 80 0D 02 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 A3 28 00 90 00 3F [13:32:02]RAPDU: 90 00 [13:32:02]wFMCommunicate OK [13:32:02]wFMCommunicate request_size=10 [13:32:02]MH_SAM_APDU [13:32:02]CAPDU: 80 0D 02 02 05 3B 45 BC CF F6 [13:32:02]Write to MH i2c: E2 0D 00 A4 28 80 0D 02 02 05 00 3B 45 BC CF F6 00 00 51 [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 A4 28 00 90 00 40 [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 A5 28 80 0D 03 02 00 00 00 00 48 [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 A5 28 00 18 2B 92 AD 6C 0D 90 A0 90 00 74 [13:32:03]RAPDU: 18 2B 92 AD 6C 0D 90 A0 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 A6 28 80 11 00 00 00 00 00 00 48 [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 A6 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 93 [13:32:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [13:32:03]wFMCommunicate OK [13:32:03]CreateOFDProtocolMessage done [13:32:03]OFDSenderStorePacket 68591 [13:32:03]StoreOFDPacket docnum=68591 [13:32:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 E2 98 07 01 00 6B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 56 17 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 EF 0B 01 00 35 04 06 00 7A 3B 45 BC CF F6 18 2B 92 AD 6C 0D 90 A0 [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/00068591 [13:32:03]NVStorageSaveData ofd_packets/00068591 [13:32:03]File name is /storage/ofd_packets/00068591 [13:32:03]Write 301 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 A7 28 CF [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 A7 28 00 00 00 00 00 FF 0F E4 [13:32:03]RasterBufferAndPrint [13:32:03]line Счет N : (1)706721 [13:32:03]line ИНН: 02508201610067 [13:32:03]line Контрольно-Кассовый Чек [13:32:03]line ПРОДАЖА [13:32:03]line ТРК (МРК, ГНК) : 63 [13:32:03]line Товар: 2710124130 [13:32:03]line Аи-92-К-4 [13:32:03]line 29.900 * 66.90 [13:32:03]line = 2000.31 [13:32:03]line НДС 12% НСП 1% [13:32:03]line > о реализуемом товаре [13:32:03]line ИТОГО: 2000.31 [13:32:03]line НСП 1% : 17.70 [13:32:03]line НДС 12% : 212.42 [13:32:03]line Наличными: 0.00 [13:32:03]line Безнал.: 2000.31 [13:32:03]line Место: АЗС № 62 "Партнер Нефть" [13:32:03]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [13:32:03]line СНО: Общий режим [13:32:03]line Чек 89 04.06.2024 13:32 [13:32:03]line Смена: 325 ФФД: 1.0 [13:32:03]line ЗНМ: 0300000181 [13:32:03]line РНМ: 0000000000098096 [13:32:03]line Версия ККМ: 001 [13:32:03]line Платежная система: АКБ Кыргызстан [13:32:03]line ФМ: 0000000000965400 [13:32:03]line ФД: 68591 [13:32:03]line ФПД: 134394991661046 [13:32:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T133206&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68591&fm=134394991661046&tin=02508201610067®Number=0000000000098096&sum=200031 [13:32:03]OFD Sender: Processing packet 68591 [packets to send 26, broken 25] [13:32:03]ProducePacketName [13:32:03]name=ofd_packets/00068591 [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 39 36 35 34 30 30 0F 01 00 00 E2 98 07 01 00 6B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 56 17 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 EF 0B 01 00 35 04 06 00 7A 3B 45 BC CF F6 18 2B 92 AD 6C 0D 90 A0 [13:32:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 55 67 47 00 E3 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 39 36 35 34 30 30 10 04 04 00 EF 0B 01 00 F4 03 04 00 4E BE 5E 66 B6 04 01 00 00 21 1D C6 10 56 D8 BB 52 [13:32:03]CommunicateWithHost err = 0 [13:32:03]CheckOFDResponse [13:32:03]1017 (14) - 77093643461234 [13:32:03]1041 (16) - 0000000000965400 [13:32:03]1040 (4) - 68591 [13:32:03]1012 (4) - 04.06.2024 07:12 [13:32:03]1206 (1) - 0 [13:32:03]OFD Sender: Remove packet 68591 [13:32:03]ProducePacketName [13:32:03]name=ofd_packets/00068591 [13:32:03]NVStorageDeleteData [13:32:03]Write to MH i2c: 01 00 00 D1 28 F9 [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 D1 28 00 00 00 00 00 E5 0C F1 [13:32:03]RasterBufferAndPrint [13:32:03]line [13:32:03]line [13:32:03]line [13:32:03]line [13:32:03]line [13:32:03]written 0, free lines is 3308 [13:32:03]MH_Cut [13:32:03]Write to MH i2c: D1 01 00 D8 28 01 D2 [13:32:03]Write i2c OK [13:32:03]MH_I2C_Read... [13:32:03]Read from MH i2c: D1 [13:32:03]MH_I2C_Read... [13:32:03]Read from MH i2c: D1 01 00 [13:32:03]MH_I2C_Read... [13:32:03]Read from MH i2c: D1 01 00 D8 28 00 D1 [13:32:03]Write to MH i2c: 01 00 00 D9 28 01 [13:32:03]Write i2c OK [13:32:03]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:04]*** CUTSNS_PIN = 0 [13:32:04]*** 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 D9 28 00 00 00 00 00 FF 0F 16 [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 DA 28 80 11 00 00 00 00 00 00 7C [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 DA 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 C7 [13:32:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 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 DB 28 80 13 00 00 00 00 00 00 7F [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 DB 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 EF 0B 01 00 0E 04 04 00 45 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 EB [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 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 EF 0B 01 00 0E 04 04 00 45 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 [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 DC 28 80 13 01 00 00 00 00 00 81 [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 DC 28 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 1D [13:32:05]RAPDU: 09 00 01 6E 5E 5E 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":"0000000000965400","fd.num":68591,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [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":"0000000000965400","fd.num":68591,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [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 9.Close socket [13:32:05]Sock 9.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:19]OFD Sender: No OFD packet to send [13:33:24]OFD Sender: No OFD packet to send [13:33:29]OFD Sender: No OFD packet to send [13:33:34]OFD Sender: No OFD packet to send [13:33:39]OFD Sender: No OFD packet to send [13:33:44]OFD Sender: No OFD packet to send [13:33:49]OFD Sender: No OFD packet to send [13:33:54]OFD Sender: No OFD packet to send [13:33:59]OFD Sender: No OFD packet to send [13:34:04]OFD Sender: No OFD packet to send [13:34:09]OFD Sender: No OFD packet to send [13:34:14]OFD Sender: No OFD packet to send [13:34:19]OFD Sender: No OFD packet to send [13:34:24]OFD Sender: No OFD packet to send [13:34:29]OFD Sender: No OFD packet to send [13:34:34]OFD Sender: No OFD packet to send [13:34:39]OFD Sender: No OFD packet to send [13:34:44]OFD Sender: No OFD packet to send [13:34:49]OFD Sender: No OFD packet to send [13:34:54]OFD Sender: No OFD packet to send [13:34:59]OFD Sender: No OFD packet to send [13:35:04]OFD Sender: No OFD packet to send [13:35:09]OFD Sender: No OFD packet to send [13:35:14]OFD Sender: No OFD packet to send [13:35:19]OFD Sender: No OFD packet to send [13:35:24]OFD Sender: No OFD packet to send [13:35:29]OFD Sender: No OFD packet to send [13:35:34]OFD Sender: No OFD packet to send [13:35:39]OFD Sender: No OFD packet to send [13:35:44]OFD Sender: No OFD packet to send [13:35:49]OFD Sender: No OFD packet to send [13:35:54]OFD Sender: No OFD packet to send [13:35:59]OFD Sender: No OFD packet to send [13:36:04]OFD Sender: No OFD packet to send [13:36:09]OFD Sender: No OFD packet to send [13:36:14]OFD Sender: No OFD packet to send [13:36:19]OFD Sender: No OFD packet to send [13:36:24]OFD Sender: No OFD packet to send [13:36:29]OFD Sender: No OFD packet to send [13:36:34]OFD Sender: No OFD packet to send [13:36:39]OFD Sender: No OFD packet to send [13:36:44]OFD Sender: No OFD packet to send [13:36:49]OFD Sender: No OFD packet to send [13:36:54]OFD Sender: No OFD packet to send [13:36:59]OFD Sender: No OFD packet to send [13:37:04]OFD Sender: No OFD packet to send [13:37:09]OFD Sender: No OFD packet to send [13:37:14]OFD Sender: No OFD packet to send [13:37:19]OFD Sender: No OFD packet to send [13:37:24]OFD Sender: No OFD packet to send [13:37:29]OFD Sender: No OFD packet to send [13:37:34]OFD Sender: No OFD packet to send [13:37:39]OFD Sender: No OFD packet to send [13:37:44]OFD Sender: No OFD packet to send [13:37:49]OFD Sender: No OFD packet to send [13:37:54]OFD Sender: No OFD packet to send [13:37:59]OFD Sender: No OFD packet to send [13:38:04]OFD Sender: No OFD packet to send [13:38:09]OFD Sender: No OFD packet to send [13:38:14]OFD Sender: No OFD packet to send [13:38:19]OFD Sender: No OFD packet to send [13:38:24]OFD Sender: No OFD packet to send [13:38:29]OFD Sender: No OFD packet to send [13:38:34]OFD Sender: No OFD packet to send [13:38:39]OFD Sender: No OFD packet to send [13:38:44]OFD Sender: No OFD packet to send [13:38:49]OFD Sender: No OFD packet to send [13:38:54]OFD Sender: No OFD packet to send [13:38:59]OFD Sender: No OFD packet to send [13:39:04]OFD Sender: No OFD packet to send [13:39:09]OFD Sender: No OFD packet to send [13:39:14]OFD Sender: No OFD packet to send [13:39:19]OFD Sender: No OFD packet to send [13:39:23]accept exits with 7 [13:39:23]New connection [13:39:23]New thread 3067084132 created [13:39:23]Thread 3067227492 joined [13:39:23]Waiting for new connection... [13:39:23] Sock 7.Parse request [13:39:23]Sock 7.Check first char [13:39:23]Sock 7.First char is OK [13:39:23]request: POST /json_proto HTTP/1.0 [13:39:23]Method: POST [13:39:23]URL: /json_proto [13:39:23]Method is POST - this is cgi request [13:39:23]url: /json_proto [13:39:23]query_string will be loaded in cgi processing [13:39:23]execute_cgi json_proto POST (null) [13:39:23]execute_cgi path=json_proto method=POST [13:39:23]POST find Content-Length [13:39:23]Host: 172.17.36.132:8080 [13:39:23]Content-Length: 682 [13:39:23]Content-Type: application/json [13:39:23] [13:39:23]POST finish read [13:39:23]Found Content-Length = 682 [13:39:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706722", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 27.070, "sum" : 2000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:39:23]execute_script... [13:39: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)706722", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 27.070, "sum" : 2000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:39:23]POST & json_proto [13:39:23]process_json_proto [13:39:23]json parsed OK: [13:39:23]protocol is kg_v1.0 [13:39:23]action value=close_receipt [13:39:23]process_action close_receipt [13:39:23]cmd_close_receipt [13:39:23]MH_GetDate [13:39:23]Write to MH i2c: F0 00 00 DD 28 F4 [13:39:23]Write i2c OK [13:39:23]MH_I2C_Read... [13:39:23]Read from MH i2c: F0 [13:39:23]MH_I2C_Read... [13:39:23]Read from MH i2c: F0 09 00 [13:39:23]MH_I2C_Read... [13:39:23]Read from MH i2c: F0 09 00 DD 28 00 10 19 5F 66 B2 22 B0 64 D3 [13:39:23]GetLastDocTimeStamp 1717507926 [13:39:23]current date 1717508368 [13:39:23]FM_GetShiftState [13:39:23]SAM_PROTO_GetShiftState [13:39:23]wFMCommunicate request_size=4 [13:39:23]MH_SAM_APDU [13:39:23]CAPDU: 80 13 01 00 [13:39:23]Write to MH i2c: E2 08 00 DE 28 80 13 01 00 00 00 00 00 83 [13:39:23]Write i2c OK [13:39:23]MH_I2C_Read... [13:39:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:39:23]Read from MH i2c: E2 [13:39:23]MH_I2C_Read... [13:39:23]Read from MH i2c: E2 0E 00 [13:39:23]MH_I2C_Read... [13:39:23]Read from MH i2c: E2 0E 00 DE 28 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 1F [13:39:23]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [13:39:23]wFMCommunicate OK [13:39:23]SAM_PROTO_GetShiftState done [13:39:23]FM_GetShiftState done [13:39:23]opened in 1717460590 [13:39:23]opened+sec_in_day 1717546990 [13:39:23]quantity*price = 200047 [13:39:23]sum+1 = 200048 [13:39:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.44 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 90 04.06.2024 13:39 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68592 ФПД: 131123227137175 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T133928&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68592&fm=131123227137175&tin=02508201610067®Number=0000000000098096&sum=200000 [13:39:24]StoreToDocumentArchive [13:39:24]shift 325 fd 68592 [13:39:24]save to /storage/0325/doc_00068592 [13:39:24]save last doc name /storage/0325/doc_00068592 to /storage/kkm_last_doc_name [13:39:24]save OK [13:39:24]Clear old archive folders... [13:39:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:39:24]tlvbuf is 00A5A620 [13:39:24]SAM_PROTO_ClearQueue [13:39:24]wFMCommunicate request_size=4 [13:39:24]MH_SAM_APDU [13:39:24]CAPDU: 80 09 00 00 [13:39:24]Write to MH i2c: E2 08 00 EB 28 80 09 00 00 00 00 00 00 85 [13:39:24]Write i2c OK [13:39:24]MH_I2C_Read... [13:39:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:39:24]Read from MH i2c: E2 [13:39:24]MH_I2C_Read... [13:39:24]Read from MH i2c: E2 03 00 [13:39:24]MH_I2C_Read... [13:39:24]Read from MH i2c: E2 03 00 EB 28 00 90 00 87 [13:39:24]RAPDU: 90 00 [13:39:24]wFMCommunicate OK [13:39:24]SAM_PROTO_ClearQueue done [13:39:24]KKMCreateOFDPacket [13:39:24]OFDProtocolAddRootSTLVToBuf [13:39:24]FM_MakeSignedData [13:39:24]FM_MakeSignedData [13:39:24]SAM_PROTO_SignData [13:39:24]wFMCommunicate request_size=4 [13:39:24]MH_SAM_APDU [13:39:24]CAPDU: 80 0D 01 02 [13:39:24]Write to MH i2c: E2 08 00 EC 28 80 0D 01 02 00 00 00 00 8D [13:39:24]Write i2c OK [13:39:24]MH_I2C_Read... [13:39:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:39:24]Read from MH i2c: E2 [13:39:24]MH_I2C_Read... [13:39:24]Read from MH i2c: E2 03 00 [13:39:24]MH_I2C_Read... [13:39:24]Read from MH i2c: E2 03 00 EC 28 00 90 00 88 [13:39:24]RAPDU: 90 00 [13:39:24]wFMCommunicate OK [13:39:24]wFMCommunicate request_size=255 [13:39:24]MH_SAM_APDU [13:39: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 BE 69 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 10 19 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 F0 0B 01 00 35 04 06 00 77 [13:39:24]Write to MH i2c: E2 02 01 ED 28 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 BE 69 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 10 19 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 F0 0B 01 00 35 04 06 00 77 00 00 19 [13:39:24]Write i2c OK [13:39:24]MH_I2C_Read... [13:39:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:39:25]Read from MH i2c: E2 [13:39:25]MH_I2C_Read... [13:39:25]Read from MH i2c: E2 03 00 [13:39:25]MH_I2C_Read... [13:39:25]Read from MH i2c: E2 03 00 ED 28 00 90 00 89 [13:39:25]RAPDU: 90 00 [13:39:25]wFMCommunicate OK [13:39:25]wFMCommunicate request_size=10 [13:39:25]MH_SAM_APDU [13:39:25]CAPDU: 80 0D 02 02 05 41 81 60 14 97 [13:39:25]Write to MH i2c: E2 0D 00 EE 28 80 0D 02 02 05 00 41 81 60 14 97 00 00 67 [13:39:25]Write i2c OK [13:39:25]MH_I2C_Read... [13:39:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:39:25]Read from MH i2c: E2 [13:39:25]MH_I2C_Read... [13:39:25]Read from MH i2c: E2 03 00 [13:39:25]MH_I2C_Read... [13:39:25]Read from MH i2c: E2 03 00 EE 28 00 90 00 8A [13:39:25]RAPDU: 90 00 [13:39:25]wFMCommunicate OK [13:39:25]wFMCommunicate request_size=4 [13:39:25]MH_SAM_APDU [13:39:25]CAPDU: 80 0D 03 02 [13:39:25]Write to MH i2c: E2 08 00 EF 28 80 0D 03 02 00 00 00 00 92 [13:39:25]Write i2c OK [13:39:25]MH_I2C_Read... [13:39:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:39:25]Read from MH i2c: E2 [13:39:25]MH_I2C_Read... [13:39:25]Read from MH i2c: E2 0B 00 [13:39:25]MH_I2C_Read... [13:39:25]Read from MH i2c: E2 0B 00 EF 28 00 0E DB D8 15 36 E5 BD E3 90 00 24 [13:39:25]RAPDU: 0E DB D8 15 36 E5 BD E3 90 00 [13:39:25]wFMCommunicate OK [13:39:25]SAM_PROTO_SignData done [13:39:25]FM_MakeSignedData done [13:39:25]CreateOFDProtocolMessage [13:39:25]wFMCommunicate request_size=4 [13:39:25]MH_SAM_APDU [13:39:25]CAPDU: 80 11 00 00 [13:39:25]Write to MH i2c: E2 08 00 F0 28 80 11 00 00 00 00 00 00 92 [13:39:25]Write i2c OK [13:39:25]MH_I2C_Read... [13:39:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:39:25]Read from MH i2c: E2 [13:39:25]MH_I2C_Read... [13:39:25]Read from MH i2c: E2 17 00 [13:39:25]MH_I2C_Read... [13:39:25]Read from MH i2c: E2 17 00 F0 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 DD [13:39:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [13:39:25]wFMCommunicate OK [13:39:25]CreateOFDProtocolMessage done [13:39:25]OFDSenderStorePacket 68592 [13:39:25]StoreOFDPacket docnum=68592 [13:39:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 7D 79 07 01 21 29 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 BE 69 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 10 19 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 F0 0B 01 00 35 04 06 00 77 41 81 60 14 97 0E DB D8 15 36 E5 BD E3 [13:39:25]CheckFolder [13:39:25]dirname=/storage/ofd_packets [13:39:25]CheckFolder done [13:39:25]ProducePacketName [13:39:25]name=ofd_packets/00068592 [13:39:25]NVStorageSaveData ofd_packets/00068592 [13:39:25]File name is /storage/ofd_packets/00068592 [13:39:25]Write 301 bytes [13:39:25]NVStorageSaveData done [13:39:25]OFDSenderStorePacket done [13:39:25]KKMCreateOFDPacket done [13:39:25]NVStorageSaveData kkm_last_timestamp [13:39:25]File name is /storage/kkm_last_timestamp [13:39:25]Write 4 bytes [13:39:25]NVStorageSaveData done [13:39:25]ExternCall_PrintAddStr [13:39:25]wPrintStart [13:39:25]Write to MH i2c: 01 00 00 F1 28 19 [13:39:25]Write i2c OK [13:39:25]MH_I2C_Read... [13:39:25]Read from MH i2c: 01 [13:39:25]MH_I2C_Read... [13:39:25]Read from MH i2c: 01 07 00 [13:39:25]MH_I2C_Read... [13:39:25]Read from MH i2c: 01 07 00 F1 28 00 00 00 00 00 FF 0F 2E [13:39:25]RasterBufferAndPrint [13:39:25]line Счет N : (1)706722 [13:39:25]line ИНН: 02508201610067 [13:39:25]line Контрольно-Кассовый Чек [13:39:25]line ПРОДАЖА [13:39:25]line ТРК (МРК, ГНК) : 33 [13:39:25]line Товар: 2710124500 [13:39:25]line Аи-95-К-5 [13:39:25]line 27.070 * 73.90 [13:39:25]line = 2000.47 [13:39:25]line НДС 12% НСП 1% [13:39:25]line > о реализуемом товаре [13:39:25]line ОКРУГЛЕНИЕ: -0.47 [13:39:25]line ИТОГО: 2000.00 [13:39:25]line Внесено: 2000.00 [13:39:25]line СДАЧА: 0.00 [13:39:25]line НСП 1% : 17.70 [13:39:25]line НДС 12% : 212.44 [13:39:25]line Наличными: 2000.00 [13:39:25]line Безнал.: 0.00 [13:39:25]line Место: АЗС № 62 "Партнер Нефть" [13:39:25]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [13:39:25]line СНО: Общий режим [13:39:25]line Чек 90 04.06.2024 13:39 [13:39:25]line Смена: 325 ФФД: 1.0 [13:39:25]line ЗНМ: 0300000181 [13:39:25]line РНМ: 0000000000098096 [13:39:25]line Версия ККМ: 001 [13:39:25]line ФМ: 0000000000965400 [13:39:25]line ФД: 68592 [13:39:25]line ФПД: 131123227137175 [13:39:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T133928&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68592&fm=131123227137175&tin=02508201610067®Number=0000000000098096&sum=200000 [13:39:25]OFD Sender: Processing packet 68592 [packets to send 26, broken 25] [13:39:25]ProducePacketName [13:39:25]name=ofd_packets/00068592 [13:39:25]OFD Sender: To server: pG, [13:39:25]CommunicateWithHost lk.salyk.kg:30040 [13:39:25]ConnectInit lk.salyk.kg [13:39:25]written 0, free lines is 4095 [13:39:25]Connected sock=10 [13:39:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 7D 79 07 01 21 29 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 BE 69 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 10 19 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 F0 0B 01 00 35 04 06 00 77 41 81 60 14 97 0E DB D8 15 36 E5 BD E3 [13:39:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 16 AF 47 00 94 F6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 F0 0B 01 00 F4 03 04 00 08 C0 5E 66 B6 04 01 00 00 35 61 8B F2 96 9C 7F 7A [13:39:26]CommunicateWithHost err = 0 [13:39:26]CheckOFDResponse [13:39:26]1017 (14) - 77093643461234 [13:39:26]1041 (16) - 0000000000965400 [13:39:26]1040 (4) - 68592 [13:39:26]1012 (4) - 04.06.2024 07:19 [13:39:26]1206 (1) - 0 [13:39:26]OFD Sender: Remove packet 68592 [13:39:26]ProducePacketName [13:39:26]name=ofd_packets/00068592 [13:39:26]NVStorageDeleteData [13:39:26]Write to MH i2c: 01 00 00 1C 29 45 [13:39:26]Write i2c OK [13:39:26]MH_I2C_Read... [13:39:26]Read from MH i2c: 01 [13:39:26]MH_I2C_Read... [13:39:26]Read from MH i2c: 01 07 00 [13:39:26]MH_I2C_Read... [13:39:26]Read from MH i2c: 01 07 00 1C 29 00 00 00 00 00 DD 0C 35 [13:39:26]RasterBufferAndPrint [13:39:26]line [13:39:26]line [13:39:26]line [13:39:26]line [13:39:26]line [13:39:26]written 0, free lines is 3299 [13:39:26]MH_Cut [13:39:26]Write to MH i2c: D1 01 00 23 29 01 1E [13:39:26]Write i2c OK [13:39:26]MH_I2C_Read... [13:39:26]Read from MH i2c: D1 [13:39:26]MH_I2C_Read... [13:39:26]Read from MH i2c: D1 01 00 [13:39:26]MH_I2C_Read... [13:39:26]Read from MH i2c: D1 01 00 23 29 00 1D [13:39:26]Write to MH i2c: 01 00 00 24 29 4D [13:39:26]Write i2c OK [13:39:26]MH_I2C_Read... [13:39:26]OFD Sender: No OFD packet to send [13:39:26]*** Cut start [13:39:26]*** Partial cut [13:39:26]*** CUTSNS_PIN = 1 [13:39:26]*** CUTSNS_PIN = 0 [13:39:27]*** Brake cut motor [13:39:27]Read from MH i2c: 01 [13:39:27]MH_I2C_Read... [13:39:27]*** Stop cut motor [13:39:27]*** Cut end [13:39:27]Read from MH i2c: 01 07 00 [13:39:27]MH_I2C_Read... [13:39:27]Read from MH i2c: 01 07 00 24 29 00 00 00 00 00 FF 0F 62 [13:39:27]process_action close_receipt done [13:39:27]requested_data is exist [13:39:27]produce_requested_data [13:39:27]requested_item fm.sn is exist - process it [13:39:27]wFMCommunicate request_size=4 [13:39:27]MH_SAM_APDU [13:39:27]CAPDU: 80 11 00 00 [13:39:27]Write to MH i2c: E2 08 00 25 29 80 11 00 00 00 00 00 00 C8 [13:39:27]Write i2c OK [13:39:27]MH_I2C_Read... [13:39:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:39:27]Read from MH i2c: E2 [13:39:27]MH_I2C_Read... [13:39:27]Read from MH i2c: E2 17 00 [13:39:27]MH_I2C_Read... [13:39:27]Read from MH i2c: E2 17 00 25 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 13 [13:39:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [13:39:27]wFMCommunicate OK [13:39:27]requested_item fd.num is exist - process it [13:39:27]SAM_PROTO_GetFieldsCounters [13:39:27]wFMCommunicate request_size=4 [13:39:27]MH_SAM_APDU [13:39:27]CAPDU: 80 13 00 00 [13:39:27]Write to MH i2c: E2 08 00 26 29 80 13 00 00 00 00 00 00 CB [13:39:27]Write i2c OK [13:39:27]MH_I2C_Read... [13:39:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:39:27]Read from MH i2c: E2 [13:39:27]MH_I2C_Read... [13:39:27]Read from MH i2c: E2 62 00 [13:39:27]MH_I2C_Read... [13:39:27]Read from MH i2c: E2 62 00 26 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 F0 0B 01 00 0E 04 04 00 45 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 3B [13:39:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 F0 0B 01 00 0E 04 04 00 45 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:39:27]wFMCommunicate OK [13:39:27]SAM_PROTO_GetFieldsCounters done [13:39:27]requested_item shift.num is exist - process it [13:39:27]requested_item shift.opened is exist - process it [13:39:27]req_shift_opened [13:39:27]FM_GetShiftState [13:39:27]SAM_PROTO_GetShiftState [13:39:27]wFMCommunicate request_size=4 [13:39:27]MH_SAM_APDU [13:39:27]CAPDU: 80 13 01 00 [13:39:27]Write to MH i2c: E2 08 00 27 29 80 13 01 00 00 00 00 00 CD [13:39:27]Write i2c OK [13:39:27]MH_I2C_Read... [13:39:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:39:27]Read from MH i2c: E2 [13:39:27]MH_I2C_Read... [13:39:27]Read from MH i2c: E2 0E 00 [13:39:27]MH_I2C_Read... [13:39:27]Read from MH i2c: E2 0E 00 27 29 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 69 [13:39:27]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [13:39:27]wFMCommunicate OK [13:39:27]SAM_PROTO_GetShiftState done [13:39:27]FM_GetShiftState done [13:39:27]req_shift_opened done [13:39:27]requested_item shift.open_date is exist - process it [13:39:27]req_shift_open_date [13:39:27]req_shift_open_date done [13:39:27]produce_requested_data done [13:39:27]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68592,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [13:39:27]process_action_free close_receipt [13:39:27]json_value_free [13:39:27]json_value_free done [13:39:27]process_json_proto returns [13:39:27]Send response to host [13:39:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68592,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [13:39:27]free response buf [13:39:27]execute_script done [13:39:27]execute_script returns [13:39:27]free content buf [13:39:27]Sock 7.Close socket [13:39:27]Sock 7.Thread stoped [13:39:31]OFD Sender: No OFD packet to send [13:39:36]OFD Sender: No OFD packet to send [13:39:41]OFD Sender: No OFD packet to send [13:39:46]OFD Sender: No OFD packet to send [13:39:51]OFD Sender: No OFD packet to send [13:39:56]OFD Sender: No OFD packet to send [13:40:01]OFD Sender: No OFD packet to send [13:40:06]OFD Sender: No OFD packet to send [13:40:11]OFD Sender: No OFD packet to send [13:40:16]OFD Sender: No OFD packet to send [13:40:21]OFD Sender: No OFD packet to send [13:40:26]OFD Sender: No OFD packet to send [13:40:31]OFD Sender: No OFD packet to send [13:40:36]OFD Sender: No OFD packet to send [13:40:41]OFD Sender: No OFD packet to send [13:40:46]OFD Sender: No OFD packet to send [13:40:51]OFD Sender: No OFD packet to send [13:40:56]OFD Sender: No OFD packet to send [13:41:01]OFD Sender: No OFD packet to send [13:41:06]OFD Sender: No OFD packet to send [13:41:11]OFD Sender: No OFD packet to send [13:41:16]OFD Sender: No OFD packet to send [13:41:21]OFD Sender: No OFD packet to send [13:41:26]OFD Sender: No OFD packet to send [13:41:31]OFD Sender: No OFD packet to send [13:41:36]OFD Sender: No OFD packet to send [13:41:41]OFD Sender: No OFD packet to send [13:41:46]OFD Sender: No OFD packet to send [13:41:51]OFD Sender: No OFD packet to send [13:41:56]OFD Sender: No OFD packet to send [13:42:01]OFD Sender: No OFD packet to send [13:42:06]OFD Sender: No OFD packet to send [13:42:11]OFD Sender: No OFD packet to send [13:42:16]OFD Sender: No OFD packet to send [13:42:21]OFD Sender: No OFD packet to send [13:42:26]OFD Sender: No OFD packet to send [13:42:31]OFD Sender: No OFD packet to send [13:42:36]OFD Sender: No OFD packet to send [13:42:41]OFD Sender: No OFD packet to send [13:42:46]OFD Sender: No OFD packet to send [13:42:51]OFD Sender: No OFD packet to send [13:42:56]OFD Sender: No OFD packet to send [13:43:01]OFD Sender: No OFD packet to send [13:43:06]OFD Sender: No OFD packet to send [13:43:11]OFD Sender: No OFD packet to send [13:43:16]OFD Sender: No OFD packet to send [13:43:21]OFD Sender: No OFD packet to send [13:43:26]OFD Sender: No OFD packet to send [13:43:31]OFD Sender: No OFD packet to send [13:43:36]OFD Sender: No OFD packet to send [13:43:41]OFD Sender: No OFD packet to send [13:43:46]OFD Sender: No OFD packet to send [13:43:51]OFD Sender: No OFD packet to send [13:43:56]OFD Sender: No OFD packet to send [13:44:01]OFD Sender: No OFD packet to send [13:44:06]OFD Sender: No OFD packet to send [13:44:11]OFD Sender: No OFD packet to send [13:44:16]OFD Sender: No OFD packet to send [13:44:21]OFD Sender: No OFD packet to send [13:44:26]OFD Sender: No OFD packet to send [13:44:31]OFD Sender: No OFD packet to send [13:44:36]OFD Sender: No OFD packet to send [13:44:41]OFD Sender: No OFD packet to send [13:44:46]OFD Sender: No OFD packet to send [13:44:51]OFD Sender: No OFD packet to send [13:44:56]OFD Sender: No OFD packet to send [13:45:01]OFD Sender: No OFD packet to send [13:45:06]OFD Sender: No OFD packet to send [13:45:11]OFD Sender: No OFD packet to send [13:45:16]OFD Sender: No OFD packet to send [13:45:21]OFD Sender: No OFD packet to send [13:45:26]OFD Sender: No OFD packet to send [13:45:31]OFD Sender: No OFD packet to send [13:45:36]OFD Sender: No OFD packet to send [13:45:41]OFD Sender: No OFD packet to send [13:45:46]OFD Sender: No OFD packet to send [13:45:51]OFD Sender: No OFD packet to send [13:45:56]OFD Sender: No OFD packet to send [13:46:01]OFD Sender: No OFD packet to send [13:46:06]OFD Sender: No OFD packet to send [13:46:11]OFD Sender: No OFD packet to send [13:46:16]OFD Sender: No OFD packet to send [13:46:21]OFD Sender: No OFD packet to send [13:46:26]OFD Sender: No OFD packet to send [13:46:31]OFD Sender: No OFD packet to send [13:46:36]OFD Sender: No OFD packet to send [13:46:38]accept exits with 9 [13:46:38]New connection [13:46:38]New thread 3067227492 created [13:46:38]Thread 3067084132 joined [13:46:38]Waiting for new connection... [13:46:38] Sock 9.Parse request [13:46:38]Sock 9.Check first char [13:46:38]Sock 9.First char is OK [13:46:38]request: POST /json_proto HTTP/1.0 [13:46:38]Method: POST [13:46:38]URL: /json_proto [13:46:38]Method is POST - this is cgi request [13:46:38]url: /json_proto [13:46:38]query_string will be loaded in cgi processing [13:46:38]execute_cgi json_proto POST (null) [13:46:38]execute_cgi path=json_proto method=POST [13:46:38]POST find Content-Length [13:46:38]Host: 172.17.36.132:8080 [13:46:38]Content-Length: 677 [13:46:38]Content-Type: application/json [13:46:38] [13:46:38]POST finish read [13:46:38]Found Content-Length = 677 [13:46:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706724", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:46:38]execute_script... [13:46: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)706724", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:46:38]POST & json_proto [13:46:38]process_json_proto [13:46:38]json parsed OK: [13:46:38]protocol is kg_v1.0 [13:46:38]action value=close_receipt [13:46:38]process_action close_receipt [13:46:38]cmd_close_receipt [13:46:38]MH_GetDate [13:46:38]Write to MH i2c: F0 00 00 28 29 40 [13:46:38]Write i2c OK [13:46:38]MH_I2C_Read... [13:46:38]Read from MH i2c: F0 [13:46:38]MH_I2C_Read... [13:46:38]Read from MH i2c: F0 09 00 [13:46:38]MH_I2C_Read... [13:46:38]Read from MH i2c: F0 09 00 28 29 00 C3 1A 5F 66 B2 22 B0 64 D3 [13:46:38]GetLastDocTimeStamp 1717508368 [13:46:38]current date 1717508803 [13:46:38]FM_GetShiftState [13:46:38]SAM_PROTO_GetShiftState [13:46:38]wFMCommunicate request_size=4 [13:46:38]MH_SAM_APDU [13:46:38]CAPDU: 80 13 01 00 [13:46:38]Write to MH i2c: E2 08 00 29 29 80 13 01 00 00 00 00 00 CF [13:46:38]Write i2c OK [13:46:38]MH_I2C_Read... [13:46:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:46:38]Read from MH i2c: E2 [13:46:38]MH_I2C_Read... [13:46:38]Read from MH i2c: E2 0E 00 [13:46:38]MH_I2C_Read... [13:46:38]Read from MH i2c: E2 0E 00 29 29 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 6B [13:46:38]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [13:46:38]wFMCommunicate OK [13:46:38]SAM_PROTO_GetShiftState done [13:46:38]FM_GetShiftState done [13:46:38]opened in 1717460590 [13:46:38]opened+sec_in_day 1717546990 [13:46:38]quantity*price = 20003 [13:46:38]sum+1 = 20004 [13:46:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 91 04.06.2024 13:46 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68593 ФПД: 232388495658629 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T134643&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68593&fm=232388495658629&tin=02508201610067®Number=0000000000098096&sum=20000 [13:46:39]StoreToDocumentArchive [13:46:39]shift 325 fd 68593 [13:46:39]save to /storage/0325/doc_00068593 [13:46:39]save last doc name /storage/0325/doc_00068593 to /storage/kkm_last_doc_name [13:46:39]save OK [13:46:39]Clear old archive folders... [13:46:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:46:39]tlvbuf is 00A80690 [13:46:39]SAM_PROTO_ClearQueue [13:46:39]wFMCommunicate request_size=4 [13:46:39]MH_SAM_APDU [13:46:39]CAPDU: 80 09 00 00 [13:46:39]Write to MH i2c: E2 08 00 36 29 80 09 00 00 00 00 00 00 D1 [13:46:39]Write i2c OK [13:46:39]MH_I2C_Read... [13:46:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:46:39]Read from MH i2c: E2 [13:46:39]MH_I2C_Read... [13:46:39]Read from MH i2c: E2 03 00 [13:46:39]MH_I2C_Read... [13:46:39]Read from MH i2c: E2 03 00 36 29 00 90 00 D3 [13:46:39]RAPDU: 90 00 [13:46:39]wFMCommunicate OK [13:46:39]SAM_PROTO_ClearQueue done [13:46:39]KKMCreateOFDPacket [13:46:39]OFDProtocolAddRootSTLVToBuf [13:46:39]FM_MakeSignedData [13:46:39]FM_MakeSignedData [13:46:39]SAM_PROTO_SignData [13:46:39]wFMCommunicate request_size=4 [13:46:39]MH_SAM_APDU [13:46:39]CAPDU: 80 0D 01 02 [13:46:39]Write to MH i2c: E2 08 00 37 29 80 0D 01 02 00 00 00 00 D9 [13:46:39]Write i2c OK [13:46:39]MH_I2C_Read... [13:46:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:46:39]Read from MH i2c: E2 [13:46:39]MH_I2C_Read... [13:46:39]Read from MH i2c: E2 03 00 [13:46:39]MH_I2C_Read... [13:46:39]Read from MH i2c: E2 03 00 37 29 00 90 00 D4 [13:46:39]RAPDU: 90 00 [13:46:39]wFMCommunicate OK [13:46:39]wFMCommunicate request_size=255 [13:46:39]MH_SAM_APDU [13: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 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 C3 1A 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 F1 0B 01 00 35 04 06 00 D3 [13:46:39]Write to MH i2c: E2 02 01 38 29 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 C3 1A 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 F1 0B 01 00 35 04 06 00 D3 00 00 3B [13:46:39]Write i2c OK [13:46:39]MH_I2C_Read... [13:46:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:46:39]Read from MH i2c: E2 [13:46:39]MH_I2C_Read... [13:46:39]Read from MH i2c: E2 03 00 [13:46:39]MH_I2C_Read... [13:46:39]Read from MH i2c: E2 03 00 38 29 00 90 00 D5 [13:46:39]RAPDU: 90 00 [13:46:39]wFMCommunicate OK [13:46:39]wFMCommunicate request_size=10 [13:46:39]MH_SAM_APDU [13:46:39]CAPDU: 80 0D 02 02 05 5B 29 BB CE 85 [13:46:39]Write to MH i2c: E2 0D 00 39 29 80 0D 02 02 05 00 5B 29 BB CE 85 00 00 78 [13:46:39]Write i2c OK [13:46:39]MH_I2C_Read... [13:46:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:46:39]Read from MH i2c: E2 [13:46:39]MH_I2C_Read... [13:46:39]Read from MH i2c: E2 03 00 [13:46:39]MH_I2C_Read... [13:46:39]Read from MH i2c: E2 03 00 39 29 00 90 00 D6 [13:46:39]RAPDU: 90 00 [13:46:39]wFMCommunicate OK [13:46:39]wFMCommunicate request_size=4 [13:46:39]MH_SAM_APDU [13:46:39]CAPDU: 80 0D 03 02 [13:46:39]Write to MH i2c: E2 08 00 3A 29 80 0D 03 02 00 00 00 00 DE [13:46:39]Write i2c OK [13:46:39]MH_I2C_Read... [13:46:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:46:39]Read from MH i2c: E2 [13:46:39]MH_I2C_Read... [13:46:39]Read from MH i2c: E2 0B 00 [13:46:39]MH_I2C_Read... [13:46:39]Read from MH i2c: E2 0B 00 3A 29 00 12 DF 82 C0 AF 74 60 E8 90 00 7D [13:46:39]RAPDU: 12 DF 82 C0 AF 74 60 E8 90 00 [13:46:39]wFMCommunicate OK [13:46:39]SAM_PROTO_SignData done [13:46:39]FM_MakeSignedData done [13:46:39]CreateOFDProtocolMessage [13:46:39]wFMCommunicate request_size=4 [13:46:39]MH_SAM_APDU [13:46:39]CAPDU: 80 11 00 00 [13:46:39]Write to MH i2c: E2 08 00 3B 29 80 11 00 00 00 00 00 00 DE [13:46:39]Write i2c OK [13:46:39]MH_I2C_Read... [13:46:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:46:40]Read from MH i2c: E2 [13:46:40]MH_I2C_Read... [13:46:40]Read from MH i2c: E2 17 00 [13:46:40]MH_I2C_Read... [13:46:40]Read from MH i2c: E2 17 00 3B 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 29 [13:46:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [13:46:40]wFMCommunicate OK [13:46:40]CreateOFDProtocolMessage done [13:46:40]OFDSenderStorePacket 68593 [13:46:40]StoreOFDPacket docnum=68593 [13:46:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 0A DA 07 01 9B A1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 C3 1A 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 F1 0B 01 00 35 04 06 00 D3 5B 29 BB CE 85 12 DF 82 C0 AF 74 60 E8 [13:46:40]CheckFolder [13:46:40]dirname=/storage/ofd_packets [13:46:40]CheckFolder done [13:46:40]ProducePacketName [13:46:40]name=ofd_packets/00068593 [13:46:40]NVStorageSaveData ofd_packets/00068593 [13:46:40]File name is /storage/ofd_packets/00068593 [13:46:40]Write 301 bytes [13:46:40]NVStorageSaveData done [13:46:40]OFDSenderStorePacket done [13:46:40]KKMCreateOFDPacket done [13:46:40]NVStorageSaveData kkm_last_timestamp [13:46:40]File name is /storage/kkm_last_timestamp [13:46:40]Write 4 bytes [13:46:40]NVStorageSaveData done [13:46:40]ExternCall_PrintAddStr [13:46:40]wPrintStart [13:46:40]Write to MH i2c: 01 00 00 3C 29 65 [13:46:40]Write i2c OK [13:46:40]MH_I2C_Read... [13:46:40]Read from MH i2c: 01 [13:46:40]MH_I2C_Read... [13:46:40]Read from MH i2c: 01 07 00 [13:46:40]MH_I2C_Read... [13:46:40]Read from MH i2c: 01 07 00 3C 29 00 00 00 00 00 FF 0F 7A [13:46:40]RasterBufferAndPrint [13:46:40]line Счет N : (1)706724 [13:46:40]line ИНН: 02508201610067 [13:46:40]line Контрольно-Кассовый Чек [13:46:40]line ПРОДАЖА [13:46:40]line ТРК (МРК, ГНК) : 42 [13:46:40]line Товар: 2710124130 [13:46:40]line Аи-92-К-4 [13:46:40]line 2.990 * 66.90 [13:46:40]line = 200.03 [13:46:40]line НДС 12% НСП 1% [13:46:40]line > о реализуемом товаре [13:46:40]line ОКРУГЛЕНИЕ: -0.03 [13:46:40]line ИТОГО: 200.00 [13:46:40]line Внесено: 200.00 [13:46:40]line СДАЧА: 0.00 [13:46:40]line НСП 1% : 1.77 [13:46:40]line НДС 12% : 21.24 [13:46:40]line Наличными: 200.00 [13:46:40]line Безнал.: 0.00 [13:46:40]line Место: АЗС № 62 "Партнер Нефть" [13:46:40]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [13:46:40]line СНО: Общий режим [13:46:40]line Чек 91 04.06.2024 13:46 [13:46:40]line Смена: 325 ФФД: 1.0 [13:46:40]line ЗНМ: 0300000181 [13:46:40]line РНМ: 0000000000098096 [13:46:40]line Версия ККМ: 001 [13:46:40]line ФМ: 0000000000965400 [13:46:40]line ФД: 68593 [13:46:40]line ФПД: 232388495658629 [13:46:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T134643&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68593&fm=232388495658629&tin=02508201610067®Number=0000000000098096&sum=20000 [13:46:40]OFD Sender: Processing packet 68593 [packets to send 26, broken 25] [13:46:40]ProducePacketName [13:46:40]name=ofd_packets/00068593 [13:46:40]OFD Sender: To server: pG, [13:46:40]CommunicateWithHost lk.salyk.kg:30040 [13:46:40]ConnectInit lk.salyk.kg [13:46:40]written 0, free lines is 4095 [13:46:40]Connected sock=10 [13:46:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 0A DA 07 01 9B A1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 C3 1A 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 F1 0B 01 00 35 04 06 00 D3 5B 29 BB CE 85 12 DF 82 C0 AF 74 60 E8 [13:46:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 FA 07 47 00 C8 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 39 36 35 34 30 30 10 04 04 00 F1 0B 01 00 F4 03 04 00 BB C1 5E 66 B6 04 01 00 00 50 EC 57 C3 98 2E 09 7C [13:46:40]CommunicateWithHost err = 0 [13:46:40]CheckOFDResponse [13:46:40]1017 (14) - 77093643461234 [13:46:40]1041 (16) - 0000000000965400 [13:46:40]1040 (4) - 68593 [13:46:40]1012 (4) - 04.06.2024 07:26 [13:46:40]1206 (1) - 0 [13:46:40]OFD Sender: Remove packet 68593 [13:46:40]ProducePacketName [13:46:40]name=ofd_packets/00068593 [13:46:40]NVStorageDeleteData [13:46:40]Write to MH i2c: 01 00 00 67 29 90 [13:46:40]Write i2c OK [13:46:40]MH_I2C_Read... [13:46:40]Read from MH i2c: 01 [13:46:40]MH_I2C_Read... [13:46:40]Read from MH i2c: 01 07 00 [13:46:40]MH_I2C_Read... [13:46:40]Read from MH i2c: 01 07 00 67 29 00 00 00 00 00 D8 0C 7B [13:46:40]RasterBufferAndPrint [13:46:40]line [13:46:40]line [13:46:40]line [13:46:40]line [13:46:40]line [13:46:40]written 0, free lines is 3295 [13:46:40]MH_Cut [13:46:40]Write to MH i2c: D1 01 00 6E 29 01 69 [13:46:40]Write i2c OK [13:46:40]MH_I2C_Read... [13:46:40]Read from MH i2c: D1 [13:46:40]MH_I2C_Read... [13:46:40]Read from MH i2c: D1 01 00 [13:46:40]MH_I2C_Read... [13:46:40]Read from MH i2c: D1 01 00 6E 29 00 68 [13:46:40]Write to MH i2c: 01 00 00 6F 29 98 [13:46:40]Write i2c OK [13:46:40]MH_I2C_Read... [13:46:41]OFD Sender: No OFD packet to send [13:46:41]*** Cut start [13:46:41]*** Partial cut [13:46:41]*** CUTSNS_PIN = 1 [13:46:41]*** CUTSNS_PIN = 0 [13:46:41]*** Brake cut motor [13:46:42]Read from MH i2c: 01 [13:46:42]MH_I2C_Read... [13:46:42]*** Stop cut motor [13:46:42]*** Cut end [13:46:42]Read from MH i2c: 01 07 00 [13:46:42]MH_I2C_Read... [13:46:42]Read from MH i2c: 01 07 00 6F 29 00 00 00 00 00 FF 0F AD [13:46:42]process_action close_receipt done [13:46:42]requested_data is exist [13:46:42]produce_requested_data [13:46:42]requested_item fm.sn is exist - process it [13:46:42]wFMCommunicate request_size=4 [13:46:42]MH_SAM_APDU [13:46:42]CAPDU: 80 11 00 00 [13:46:42]Write to MH i2c: E2 08 00 70 29 80 11 00 00 00 00 00 00 13 [13:46:42]Write i2c OK [13:46:42]MH_I2C_Read... [13:46:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:46:42]Read from MH i2c: E2 [13:46:42]MH_I2C_Read... [13:46:42]Read from MH i2c: E2 17 00 [13:46:42]MH_I2C_Read... [13:46:42]Read from MH i2c: E2 17 00 70 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 5E [13:46:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [13:46:42]wFMCommunicate OK [13:46:42]requested_item fd.num is exist - process it [13:46:42]SAM_PROTO_GetFieldsCounters [13:46:42]wFMCommunicate request_size=4 [13:46:42]MH_SAM_APDU [13:46:42]CAPDU: 80 13 00 00 [13:46:42]Write to MH i2c: E2 08 00 71 29 80 13 00 00 00 00 00 00 16 [13:46:42]Write i2c OK [13:46:42]MH_I2C_Read... [13:46:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:46:42]Read from MH i2c: E2 [13:46:42]MH_I2C_Read... [13:46:42]Read from MH i2c: E2 62 00 [13:46:42]MH_I2C_Read... [13:46:42]Read from MH i2c: E2 62 00 71 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 F1 0B 01 00 0E 04 04 00 45 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 8A [13:46:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 F1 0B 01 00 0E 04 04 00 45 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:46:42]wFMCommunicate OK [13:46:42]SAM_PROTO_GetFieldsCounters done [13:46:42]requested_item shift.num is exist - process it [13:46:42]requested_item shift.opened is exist - process it [13:46:42]req_shift_opened [13:46:42]FM_GetShiftState [13:46:42]SAM_PROTO_GetShiftState [13:46:42]wFMCommunicate request_size=4 [13:46:42]MH_SAM_APDU [13:46:42]CAPDU: 80 13 01 00 [13:46:42]Write to MH i2c: E2 08 00 72 29 80 13 01 00 00 00 00 00 18 [13:46:42]Write i2c OK [13:46:42]MH_I2C_Read... [13:46:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:46:42]Read from MH i2c: E2 [13:46:42]MH_I2C_Read... [13:46:42]Read from MH i2c: E2 0E 00 [13:46:42]MH_I2C_Read... [13:46:42]Read from MH i2c: E2 0E 00 72 29 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 B4 [13:46:42]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [13:46:42]wFMCommunicate OK [13:46:42]SAM_PROTO_GetShiftState done [13:46:42]FM_GetShiftState done [13:46:42]req_shift_opened done [13:46:42]requested_item shift.open_date is exist - process it [13:46:42]req_shift_open_date [13:46:42]req_shift_open_date done [13:46:42]produce_requested_data done [13:46:42]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68593,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [13:46:42]process_action_free close_receipt [13:46:42]json_value_free [13:46:42]json_value_free done [13:46:42]process_json_proto returns [13:46:42]Send response to host [13:46:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68593,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [13:46:42]free response buf [13:46:42]execute_script done [13:46:42]execute_script returns [13:46:42]free content buf [13:46:42]Sock 9.Close socket [13:46:42]Sock 9.Thread stoped [13:46:42]accept exits with 7 [13:46:42]New connection [13:46:42]New thread 3067084132 created [13:46:42]Thread 3067227492 joined [13:46:42]Waiting for new connection... [13:46:42] Sock 7.Parse request [13:46:42]Sock 7.Check first char [13:46:42]Sock 7.First char is OK [13:46:42]request: POST /json_proto HTTP/1.0 [13:46:42]Method: POST [13:46:42]URL: /json_proto [13:46:42]Method is POST - this is cgi request [13:46:42]url: /json_proto [13:46:42]query_string will be loaded in cgi processing [13:46:42]execute_cgi json_proto POST (null) [13:46:42]execute_cgi path=json_proto method=POST [13:46:42]POST find Content-Length [13:46:42]Host: 172.17.36.132:8080 [13:46:42]Content-Length: 840 [13:46:42]Content-Type: application/json [13:46:42] [13:46:42]POST finish read [13:46:42]Found Content-Length = 840 [13:46:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706723", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.490, "sum" : 300.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:46:42]execute_script... [13:46: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)706723", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.490, "sum" : 300.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:46:42]POST & json_proto [13:46:42]process_json_proto [13:46:42]json parsed OK: [13:46:42]protocol is kg_v1.0 [13:46:42]action value=close_receipt [13:46:42]process_action close_receipt [13:46:42]cmd_close_receipt [13:46:42]MH_GetDate [13:46:42]Write to MH i2c: F0 00 00 73 29 8B [13:46:42]Write i2c OK [13:46:42]MH_I2C_Read... [13:46:42]Read from MH i2c: F0 [13:46:42]MH_I2C_Read... [13:46:42]Read from MH i2c: F0 09 00 [13:46:42]MH_I2C_Read... [13:46:42]Read from MH i2c: F0 09 00 73 29 00 C7 1A 5F 66 B2 22 B0 64 22 [13:46:42]GetLastDocTimeStamp 1717508803 [13:46:42]current date 1717508807 [13:46:42]FM_GetShiftState [13:46:42]SAM_PROTO_GetShiftState [13:46:42]wFMCommunicate request_size=4 [13:46:42]MH_SAM_APDU [13:46:42]CAPDU: 80 13 01 00 [13:46:42]Write to MH i2c: E2 08 00 74 29 80 13 01 00 00 00 00 00 1A [13:46:42]Write i2c OK [13:46:42]MH_I2C_Read... [13:46:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:46:42]Read from MH i2c: E2 [13:46:42]MH_I2C_Read... [13:46:42]Read from MH i2c: E2 0E 00 [13:46:42]MH_I2C_Read... [13:46:42]Read from MH i2c: E2 0E 00 74 29 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 B6 [13:46:42]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [13:46:42]wFMCommunicate OK [13:46:42]SAM_PROTO_GetShiftState done [13:46:42]FM_GetShiftState done [13:46:42]opened in 1717460590 [13:46:42]opened+sec_in_day 1717546990 [13:46:42]quantity*price = 30038 [13:46:42]sum+1 = 30039 [13:46:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.38 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 0.00 Безнал.: 300.38 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 92 04.06.2024 13:46 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000965400 ФД: 68594 ФПД: 204994669169471 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T134647&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68594&fm=204994669169471&tin=02508201610067®Number=0000000000098096&sum=30038 [13:46:44]StoreToDocumentArchive [13:46:44]shift 325 fd 68594 [13:46:44]save to /storage/0325/doc_00068594 [13:46:44]save last doc name /storage/0325/doc_00068594 to /storage/kkm_last_doc_name [13:46:44]save OK [13:46:44]Clear old archive folders... [13:46:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:46:44]tlvbuf is 00A1ADD0 [13:46:44]SAM_PROTO_ClearQueue [13:46:44]wFMCommunicate request_size=4 [13:46:44]MH_SAM_APDU [13:46:44]CAPDU: 80 09 00 00 [13:46:44]Write to MH i2c: E2 08 00 81 29 80 09 00 00 00 00 00 00 1C [13:46:44]Write i2c OK [13:46:44]MH_I2C_Read... [13:46:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:46:44]Read from MH i2c: E2 [13:46:44]MH_I2C_Read... [13:46:44]Read from MH i2c: E2 03 00 [13:46:44]MH_I2C_Read... [13:46:44]Read from MH i2c: E2 03 00 81 29 00 90 00 1E [13:46:44]RAPDU: 90 00 [13:46:44]wFMCommunicate OK [13:46:44]SAM_PROTO_ClearQueue done [13:46:44]KKMCreateOFDPacket [13:46:44]OFDProtocolAddRootSTLVToBuf [13:46:44]FM_MakeSignedData [13:46:44]FM_MakeSignedData [13:46:44]SAM_PROTO_SignData [13:46:44]wFMCommunicate request_size=4 [13:46:44]MH_SAM_APDU [13:46:44]CAPDU: 80 0D 01 02 [13:46:44]Write to MH i2c: E2 08 00 82 29 80 0D 01 02 00 00 00 00 24 [13:46:44]Write i2c OK [13:46:44]MH_I2C_Read... [13:46:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:46:44]Read from MH i2c: E2 [13:46:44]MH_I2C_Read... [13:46:44]Read from MH i2c: E2 03 00 [13:46:44]MH_I2C_Read... [13:46:44]Read from MH i2c: E2 03 00 82 29 00 90 00 1F [13:46:44]RAPDU: 90 00 [13:46:44]wFMCommunicate OK [13:46:44]wFMCommunicate request_size=255 [13:46:44]MH_SAM_APDU [13:46:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 C7 1A 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 F2 0B 01 00 35 04 06 00 BA [13:46:44]Write to MH i2c: E2 02 01 83 29 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 C7 1A 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 F2 0B 01 00 35 04 06 00 BA 00 00 F1 [13:46:44]Write i2c OK [13:46:44]MH_I2C_Read... [13:46:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:46:44]Read from MH i2c: E2 [13:46:44]MH_I2C_Read... [13:46:44]Read from MH i2c: E2 03 00 [13:46:44]MH_I2C_Read... [13:46:44]Read from MH i2c: E2 03 00 83 29 00 90 00 20 [13:46:44]RAPDU: 90 00 [13:46:44]wFMCommunicate OK [13:46:44]wFMCommunicate request_size=10 [13:46:44]MH_SAM_APDU [13:46:44]CAPDU: 80 0D 02 02 05 71 0A 6F CB 3F [13:46:44]Write to MH i2c: E2 0D 00 84 29 80 0D 02 02 05 00 71 0A 6F CB 3F 00 00 25 [13:46:44]Write i2c OK [13:46:44]MH_I2C_Read... [13:46:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:46:44]Read from MH i2c: E2 [13:46:44]MH_I2C_Read... [13:46:44]Read from MH i2c: E2 03 00 [13:46:44]MH_I2C_Read... [13:46:44]Read from MH i2c: E2 03 00 84 29 00 90 00 21 [13:46:44]RAPDU: 90 00 [13:46:44]wFMCommunicate OK [13:46:44]wFMCommunicate request_size=4 [13:46:44]MH_SAM_APDU [13:46:44]CAPDU: 80 0D 03 02 [13:46:44]Write to MH i2c: E2 08 00 85 29 80 0D 03 02 00 00 00 00 29 [13:46:44]Write i2c OK [13:46:44]MH_I2C_Read... [13:46:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:46:44]Read from MH i2c: E2 [13:46:44]MH_I2C_Read... [13:46:44]Read from MH i2c: E2 0B 00 [13:46:44]MH_I2C_Read... [13:46:44]Read from MH i2c: E2 0B 00 85 29 00 29 6A 69 DB F0 2B 8F 6B 90 00 16 [13:46:44]RAPDU: 29 6A 69 DB F0 2B 8F 6B 90 00 [13:46:44]wFMCommunicate OK [13:46:44]SAM_PROTO_SignData done [13:46:44]FM_MakeSignedData done [13:46:44]CreateOFDProtocolMessage [13:46:44]wFMCommunicate request_size=4 [13:46:44]MH_SAM_APDU [13:46:44]CAPDU: 80 11 00 00 [13:46:44]Write to MH i2c: E2 08 00 86 29 80 11 00 00 00 00 00 00 29 [13:46:44]Write i2c OK [13:46:44]MH_I2C_Read... [13:46:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:46:45]Read from MH i2c: E2 [13:46:45]MH_I2C_Read... [13:46:45]Read from MH i2c: E2 17 00 [13:46:45]MH_I2C_Read... [13:46:45]Read from MH i2c: E2 17 00 86 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 74 [13:46:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [13:46:45]wFMCommunicate OK [13:46:45]CreateOFDProtocolMessage done [13:46:45]OFDSenderStorePacket 68594 [13:46:45]StoreOFDPacket docnum=68594 [13:46:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 C0 1C 07 01 C6 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 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 C7 1A 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 F2 0B 01 00 35 04 06 00 BA 71 0A 6F CB 3F 29 6A 69 DB F0 2B 8F 6B [13:46:45]CheckFolder [13:46:45]dirname=/storage/ofd_packets [13:46:45]CheckFolder done [13:46:45]ProducePacketName [13:46:45]name=ofd_packets/00068594 [13:46:45]NVStorageSaveData ofd_packets/00068594 [13:46:45]File name is /storage/ofd_packets/00068594 [13:46:45]Write 301 bytes [13:46:45]NVStorageSaveData done [13:46:45]OFDSenderStorePacket done [13:46:45]KKMCreateOFDPacket done [13:46:45]NVStorageSaveData kkm_last_timestamp [13:46:45]File name is /storage/kkm_last_timestamp [13:46:45]Write 4 bytes [13:46:45]NVStorageSaveData done [13:46:45]ExternCall_PrintAddStr [13:46:45]wPrintStart [13:46:45]Write to MH i2c: 01 00 00 87 29 B0 [13:46:45]Write i2c OK [13:46:45]MH_I2C_Read... [13:46:45]Read from MH i2c: 01 [13:46:45]MH_I2C_Read... [13:46:45]Read from MH i2c: 01 07 00 [13:46:45]MH_I2C_Read... [13:46:45]Read from MH i2c: 01 07 00 87 29 00 00 00 00 00 FF 0F C5 [13:46:45]RasterBufferAndPrint [13:46:45]line Счет N : (1)706723 [13:46:45]line ИНН: 02508201610067 [13:46:45]line Контрольно-Кассовый Чек [13:46:45]line ПРОДАЖА [13:46:45]line ТРК (МРК, ГНК) : 63 [13:46:45]line Товар: 2710124130 [13:46:45]line Аи-92-К-4 [13:46:45]line 4.490 * 66.90 [13:46:45]line = 300.38 [13:46:45]line НДС 12% НСП 1% [13:46:45]line > о реализуемом товаре [13:46:45]line ИТОГО: 300.38 [13:46:45]line НСП 1% : 2.66 [13:46:45]line НДС 12% : 31.90 [13:46:45]line Наличными: 0.00 [13:46:45]line Безнал.: 300.38 [13:46:45]line Место: АЗС № 62 "Партнер Нефть" [13:46:45]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [13:46:45]line СНО: Общий режим [13:46:45]line Чек 92 04.06.2024 13:46 [13:46:45]line Смена: 325 ФФД: 1.0 [13:46:45]line ЗНМ: 0300000181 [13:46:45]line РНМ: 0000000000098096 [13:46:45]line Версия ККМ: 001 [13:46:45]line Платежная система: АКБ Кыргызстан [13:46:45]line ФМ: 0000000000965400 [13:46:45]line ФД: 68594 [13:46:45]line ФПД: 204994669169471 [13:46:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T134647&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68594&fm=204994669169471&tin=02508201610067®Number=0000000000098096&sum=30038 [13:46:45]OFD Sender: Processing packet 68594 [packets to send 26, broken 25] [13:46:45]ProducePacketName [13:46:45]name=ofd_packets/00068594 [13:46:45]OFD Sender: To server: pG, [13:46:45]CommunicateWithHost lk.salyk.kg:30040 [13:46:45]ConnectInit lk.salyk.kg [13:46:45]written 0, free lines is 4095 [13:46:45]Connected sock=10 [13:46:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 C0 1C 07 01 C6 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 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 C7 1A 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 F2 0B 01 00 35 04 06 00 BA 71 0A 6F CB 3F 29 6A 69 DB F0 2B 8F 6B [13:46:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 31 4E 47 00 9E 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 39 36 35 34 30 30 10 04 04 00 F2 0B 01 00 F4 03 04 00 C0 C1 5E 66 B6 04 01 00 00 DC 38 21 F1 7D 1C 9F 2B [13:46:45]CommunicateWithHost err = 0 [13:46:45]CheckOFDResponse [13:46:45]1017 (14) - 77093643461234 [13:46:45]1041 (16) - 0000000000965400 [13:46:45]1040 (4) - 68594 [13:46:45]1012 (4) - 04.06.2024 07:26 [13:46:45]1206 (1) - 0 [13:46:45]OFD Sender: Remove packet 68594 [13:46:45]ProducePacketName [13:46:45]name=ofd_packets/00068594 [13:46:45]NVStorageDeleteData [13:46:45]Write to MH i2c: 01 00 00 B1 29 DA [13:46:45]Write i2c OK [13:46:45]MH_I2C_Read... [13:46:45]Read from MH i2c: 01 [13:46:45]MH_I2C_Read... [13:46:45]Read from MH i2c: 01 07 00 [13:46:45]MH_I2C_Read... [13:46:45]Read from MH i2c: 01 07 00 B1 29 00 00 00 00 00 F1 0C DE [13:46:45]RasterBufferAndPrint [13:46:45]line [13:46:45]line [13:46:45]line [13:46:45]line [13:46:45]line [13:46:45]written 0, free lines is 3327 [13:46:45]MH_Cut [13:46:45]Write to MH i2c: D1 01 00 B8 29 01 B3 [13:46:45]Write i2c OK [13:46:45]MH_I2C_Read... [13:46:45]Read from MH i2c: D1 [13:46:45]MH_I2C_Read... [13:46:45]Read from MH i2c: D1 01 00 [13:46:45]MH_I2C_Read... [13:46:45]Read from MH i2c: D1 01 00 B8 29 00 B2 [13:46:45]Write to MH i2c: 01 00 00 B9 29 E2 [13:46:45]Write i2c OK [13:46:45]MH_I2C_Read... [13:46:46]OFD Sender: No OFD packet to send [13:46:46]*** Cut start [13:46:46]*** Partial cut [13:46:46]*** CUTSNS_PIN = 1 [13:46:46]*** CUTSNS_PIN = 0 [13:46:46]*** Brake cut motor [13:46:47]Read from MH i2c: 01 [13:46:47]MH_I2C_Read... [13:46:47]*** Stop cut motor [13:46:47]*** Cut end [13:46:47]Read from MH i2c: 01 07 00 [13:46:47]MH_I2C_Read... [13:46:47]Read from MH i2c: 01 07 00 B9 29 00 00 00 00 00 FF 0F F7 [13:46:47]process_action close_receipt done [13:46:47]requested_data is exist [13:46:47]produce_requested_data [13:46:47]requested_item fm.sn is exist - process it [13:46:47]wFMCommunicate request_size=4 [13:46:47]MH_SAM_APDU [13:46:47]CAPDU: 80 11 00 00 [13:46:47]Write to MH i2c: E2 08 00 BA 29 80 11 00 00 00 00 00 00 5D [13:46:47]Write i2c OK [13:46:47]MH_I2C_Read... [13:46:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:46:47]Read from MH i2c: E2 [13:46:47]MH_I2C_Read... [13:46:47]Read from MH i2c: E2 17 00 [13:46:47]MH_I2C_Read... [13:46:47]Read from MH i2c: E2 17 00 BA 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 A8 [13:46:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [13:46:47]wFMCommunicate OK [13:46:47]requested_item fd.num is exist - process it [13:46:47]SAM_PROTO_GetFieldsCounters [13:46:47]wFMCommunicate request_size=4 [13:46:47]MH_SAM_APDU [13:46:47]CAPDU: 80 13 00 00 [13:46:47]Write to MH i2c: E2 08 00 BB 29 80 13 00 00 00 00 00 00 60 [13:46:47]Write i2c OK [13:46:47]MH_I2C_Read... [13:46:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:46:47]Read from MH i2c: E2 [13:46:47]MH_I2C_Read... [13:46:47]Read from MH i2c: E2 62 00 [13:46:47]MH_I2C_Read... [13:46:47]Read from MH i2c: E2 62 00 BB 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 F2 0B 01 00 0E 04 04 00 45 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 D8 [13:46:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 F2 0B 01 00 0E 04 04 00 45 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:46:47]wFMCommunicate OK [13:46:47]SAM_PROTO_GetFieldsCounters done [13:46:47]requested_item shift.num is exist - process it [13:46:47]requested_item shift.opened is exist - process it [13:46:47]req_shift_opened [13:46:47]FM_GetShiftState [13:46:47]SAM_PROTO_GetShiftState [13:46:47]wFMCommunicate request_size=4 [13:46:47]MH_SAM_APDU [13:46:47]CAPDU: 80 13 01 00 [13:46:47]Write to MH i2c: E2 08 00 BC 29 80 13 01 00 00 00 00 00 62 [13:46:47]Write i2c OK [13:46:47]MH_I2C_Read... [13:46:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:46:47]Read from MH i2c: E2 [13:46:47]MH_I2C_Read... [13:46:47]Read from MH i2c: E2 0E 00 [13:46:47]MH_I2C_Read... [13:46:47]Read from MH i2c: E2 0E 00 BC 29 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 FE [13:46:47]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [13:46:47]wFMCommunicate OK [13:46:47]SAM_PROTO_GetShiftState done [13:46:47]FM_GetShiftState done [13:46:47]req_shift_opened done [13:46:47]requested_item shift.open_date is exist - process it [13:46:47]req_shift_open_date [13:46:47]req_shift_open_date done [13:46:47]produce_requested_data done [13:46:47]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68594,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [13:46:47]process_action_free close_receipt [13:46:47]json_value_free [13:46:47]json_value_free done [13:46:47]process_json_proto returns [13:46:47]Send response to host [13:46:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68594,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [13:46:47]free response buf [13:46:47]execute_script done [13:46:47]execute_script returns [13:46:47]free content buf [13:46:47]Sock 7.Close socket [13:46:47]Sock 7.Thread stoped [13:46:51]OFD Sender: No OFD packet to send [13:46:56]OFD Sender: No OFD packet to send [13:47:01]OFD Sender: No OFD packet to send [13:47:06]OFD Sender: No OFD packet to send [13:47:11]OFD Sender: No OFD packet to send [13:47:16]OFD Sender: No OFD packet to send [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:51]OFD Sender: No OFD packet to send [13:47:56]OFD Sender: No OFD packet to send [13:48:01]OFD Sender: No OFD packet to send [13:48:06]OFD Sender: No OFD packet to send [13:48:11]OFD Sender: No OFD packet to send [13:48:16]OFD Sender: No OFD packet to send [13:48:21]OFD Sender: No OFD packet to send [13:48:26]OFD Sender: No OFD packet to send [13:48:31]OFD Sender: No OFD packet to send [13:48:36]OFD Sender: No OFD packet to send [13:48:41]OFD Sender: No OFD packet to send [13:48:46]OFD Sender: No OFD packet to send [13:48:51]OFD Sender: No OFD packet to send [13:48:56]OFD Sender: No OFD packet to send [13:49:01]OFD Sender: No OFD packet to send [13:49:06]OFD Sender: No OFD packet to send [13:49:11]OFD Sender: No OFD packet to send [13:49:16]OFD Sender: No OFD packet to send [13:49:21]OFD Sender: No OFD packet to send [13:49:26]OFD Sender: No OFD packet to send [13:49:31]OFD Sender: No OFD packet to send [13:49:36]OFD Sender: No OFD packet to send [13:49:41]OFD Sender: No OFD packet to send [13:49:46]OFD Sender: No OFD packet to send [13:49:51]OFD Sender: No OFD packet to send [13:49:56]OFD Sender: No OFD packet to send [13:50:01]OFD Sender: No OFD packet to send [13:50:06]OFD Sender: No OFD packet to send [13:50:11]OFD Sender: No OFD packet to send [13:50:16]OFD Sender: No OFD packet to send [13:50:21]OFD Sender: No OFD packet to send [13:50:26]OFD Sender: No OFD packet to send [13:50:31]OFD Sender: No OFD packet to send [13:50:36]OFD Sender: No OFD packet to send [13:50:41]OFD Sender: No OFD packet to send [13:50:46]OFD Sender: No OFD packet to send [13:50:51]OFD Sender: No OFD packet to send [13:50:56]OFD Sender: No OFD packet to send [13:51:01]OFD Sender: No OFD packet to send [13:51:06]OFD Sender: No OFD packet to send [13:51:11]OFD Sender: No OFD packet to send [13:51:16]OFD Sender: No OFD packet to send [13:51:21]OFD Sender: No OFD packet to send [13:51:26]OFD Sender: No OFD packet to send [13:51:31]OFD Sender: No OFD packet to send [13:51:36]OFD Sender: No OFD packet to send [13:51:41]OFD Sender: No OFD packet to send [13:51:46]OFD Sender: No OFD packet to send [13:51:51]OFD Sender: No OFD packet to send [13:51:56]OFD Sender: No OFD packet to send [13:52:01]OFD Sender: No OFD packet to send [13:52:06]OFD Sender: No OFD packet to send [13:52:11]OFD Sender: No OFD packet to send [13:52:16]OFD Sender: No OFD packet to send [13:52:21]OFD Sender: No OFD packet to send [13:52:26]OFD Sender: No OFD packet to send [13:52:31]OFD Sender: No OFD packet to send [13:52:36]OFD Sender: No OFD packet to send [13:52:41]OFD Sender: No OFD packet to send [13:52:46]OFD Sender: No OFD packet to send [13:52:51]OFD Sender: No OFD packet to send [13:52:56]OFD Sender: No OFD packet to send [13:53:01]OFD Sender: No OFD packet to send [13:53:06]OFD Sender: No OFD packet to send [13:53:11]OFD Sender: No OFD packet to send [13:53:16]OFD Sender: No OFD packet to send [13:53:21]OFD Sender: No OFD packet to send [13:53:26]OFD Sender: No OFD packet to send [13:53:31]OFD Sender: No OFD packet to send [13:53:36]OFD Sender: No OFD packet to send [13:53:41]OFD Sender: No OFD packet to send [13:53:46]OFD Sender: No OFD packet to send [13:53:51]OFD Sender: No OFD packet to send [13:53:56]OFD Sender: No OFD packet to send [13:54:01]OFD Sender: No OFD packet to send [13:54:06]OFD Sender: No OFD packet to send [13:54:11]OFD Sender: No OFD packet to send [13:54:16]OFD Sender: No OFD packet to send [13:54:21]OFD Sender: No OFD packet to send [13:54:26]OFD Sender: No OFD packet to send [13:54:31]OFD Sender: No OFD packet to send [13:54:36]OFD Sender: No OFD packet to send [13:54:41]OFD Sender: No OFD packet to send [13:54:46]OFD Sender: No OFD packet to send [13:54:51]OFD Sender: No OFD packet to send [13:54:56]OFD Sender: No OFD packet to send [13:55:01]OFD Sender: No OFD packet to send [13:55:06]OFD Sender: No OFD packet to send [13:55:11]OFD Sender: No OFD packet to send [13:55:16]OFD Sender: No OFD packet to send [13:55:21]OFD Sender: No OFD packet to send [13:55:26]OFD Sender: No OFD packet to send [13:55:31]OFD Sender: No OFD packet to send [13:55:36]OFD Sender: No OFD packet to send [13:55:41]OFD Sender: No OFD packet to send [13:55:46]OFD Sender: No OFD packet to send [13:55:51]OFD Sender: No OFD packet to send [13:55:56]OFD Sender: No OFD packet to send [13:56:01]OFD Sender: No OFD packet to send [13:56:06]OFD Sender: No OFD packet to send [13:56:11]OFD Sender: No OFD packet to send [13:56:16]OFD Sender: No OFD packet to send [13:56:21]OFD Sender: No OFD packet to send [13:56:26]OFD Sender: No OFD packet to send [13:56:31]OFD Sender: No OFD packet to send [13:56:36]OFD Sender: No OFD packet to send [13:56:41]OFD Sender: No OFD packet to send [13:56:46]OFD Sender: No OFD packet to send [13:56:51]OFD Sender: No OFD packet to send [13:56:56]OFD Sender: No OFD packet to send [13:57:01]OFD Sender: No OFD packet to send [13:57:06]OFD Sender: No OFD packet to send [13:57:11]OFD Sender: No OFD packet to send [13:57:16]OFD Sender: No OFD packet to send [13:57:21]OFD Sender: No OFD packet to send [13:57:26]OFD Sender: No OFD packet to send [13:57:31]OFD Sender: No OFD packet to send [13:57:36]OFD Sender: No OFD packet to send [13:57:41]OFD Sender: No OFD packet to send [13:57:46]OFD Sender: No OFD packet to send [13:57:51]OFD Sender: No OFD packet to send [13:57:56]OFD Sender: No OFD packet to send [13:58:01]OFD Sender: No OFD packet to send [13:58:06]OFD Sender: No OFD packet to send [13:58:11]OFD Sender: No OFD packet to send [13:58:16]OFD Sender: No OFD packet to send [13:58:21]OFD Sender: No OFD packet to send [13:58:26]OFD Sender: No OFD packet to send [13:58:31]OFD Sender: No OFD packet to send [13:58:36]OFD Sender: No OFD packet to send [13:58:41]OFD Sender: No OFD packet to send [13:58:46]OFD Sender: No OFD packet to send [13:58:51]OFD Sender: No OFD packet to send [13:58:56]OFD Sender: No OFD packet to send [13:59:00]accept exits with 9 [13:59:00]New connection [13:59:00]New thread 3067227492 created [13:59:00]Thread 3067084132 joined [13:59:00]Waiting for new connection... [13:59:00] Sock 9.Parse request [13:59:00]Sock 9.Check first char [13:59:00]Sock 9.First char is OK [13:59:00]request: POST /json_proto HTTP/1.0 [13:59:00]Method: POST [13:59:00]URL: /json_proto [13:59:00]Method is POST - this is cgi request [13:59:00]url: /json_proto [13:59:00]query_string will be loaded in cgi processing [13:59:00]execute_cgi json_proto POST (null) [13:59:00]execute_cgi path=json_proto method=POST [13:59:00]POST find Content-Length [13:59:00]Host: 172.17.36.132:8080 [13:59:00]Content-Length: 682 [13:59:00]Content-Type: application/json [13:59:00] [13:59:00]POST finish read [13:59:00]Found Content-Length = 682 [13:59:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706725", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:59:00]execute_script... [13:59: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)706725", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:59:00]POST & json_proto [13:59:00]process_json_proto [13:59:00]json parsed OK: [13:59:00]protocol is kg_v1.0 [13:59:00]action value=close_receipt [13:59:00]process_action close_receipt [13:59:00]cmd_close_receipt [13:59:00]MH_GetDate [13:59:00]Write to MH i2c: F0 00 00 BD 29 D5 [13:59:00]Write i2c OK [13:59:00]MH_I2C_Read... [13:59:00]Read from MH i2c: F0 [13:59:00]MH_I2C_Read... [13:59:00]Read from MH i2c: F0 09 00 [13:59:00]MH_I2C_Read... [13:59:00]Read from MH i2c: F0 09 00 BD 29 00 A9 1D 5F 66 B2 22 B0 64 51 [13:59:00]GetLastDocTimeStamp 1717508807 [13:59:00]current date 1717509545 [13:59:00]FM_GetShiftState [13:59:00]SAM_PROTO_GetShiftState [13:59:00]wFMCommunicate request_size=4 [13:59:00]MH_SAM_APDU [13:59:00]CAPDU: 80 13 01 00 [13:59:00]Write to MH i2c: E2 08 00 BE 29 80 13 01 00 00 00 00 00 64 [13:59:00]Write i2c OK [13:59:00]MH_I2C_Read... [13:59:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:59:00]Read from MH i2c: E2 [13:59:00]MH_I2C_Read... [13:59:00]Read from MH i2c: E2 0E 00 [13:59:00]MH_I2C_Read... [13:59:00]Read from MH i2c: E2 0E 00 BE 29 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 00 [13:59:00]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [13:59:00]wFMCommunicate OK [13:59:00]SAM_PROTO_GetShiftState done [13:59:00]FM_GetShiftState done [13:59:00]opened in 1717460590 [13:59:00]opened+sec_in_day 1717546990 [13:59:00]quantity*price = 100015 [13:59:00]sum+1 = 100017 [13:59:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 93 04.06.2024 13:59 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68595 ФПД: 116482317510719 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T135905&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68595&fm=116482317510719&tin=02508201610067®Number=0000000000098096&sum=100000 [13:59:01]StoreToDocumentArchive [13:59:01]shift 325 fd 68595 [13:59:01]save to /storage/0325/doc_00068595 [13:59:01]save last doc name /storage/0325/doc_00068595 to /storage/kkm_last_doc_name [13:59:01]save OK [13:59:01]Clear old archive folders... [13:59:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:59:01]tlvbuf is 00A24DF0 [13:59:01]SAM_PROTO_ClearQueue [13:59:01]wFMCommunicate request_size=4 [13:59:01]MH_SAM_APDU [13:59:01]CAPDU: 80 09 00 00 [13:59:01]Write to MH i2c: E2 08 00 CB 29 80 09 00 00 00 00 00 00 66 [13:59:01]Write i2c OK [13:59:01]MH_I2C_Read... [13:59:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:59:01]Read from MH i2c: E2 [13:59:01]MH_I2C_Read... [13:59:01]Read from MH i2c: E2 03 00 [13:59:01]MH_I2C_Read... [13:59:01]Read from MH i2c: E2 03 00 CB 29 00 90 00 68 [13:59:01]RAPDU: 90 00 [13:59:01]wFMCommunicate OK [13:59:01]SAM_PROTO_ClearQueue done [13:59:01]KKMCreateOFDPacket [13:59:01]OFDProtocolAddRootSTLVToBuf [13:59:01]FM_MakeSignedData [13:59:01]FM_MakeSignedData [13:59:01]SAM_PROTO_SignData [13:59:01]wFMCommunicate request_size=4 [13:59:01]MH_SAM_APDU [13:59:01]CAPDU: 80 0D 01 02 [13:59:01]Write to MH i2c: E2 08 00 CC 29 80 0D 01 02 00 00 00 00 6E [13:59:01]Write i2c OK [13:59:01]MH_I2C_Read... [13:59:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:59:01]Read from MH i2c: E2 [13:59:01]MH_I2C_Read... [13:59:01]Read from MH i2c: E2 03 00 [13:59:01]MH_I2C_Read... [13:59:01]Read from MH i2c: E2 03 00 CC 29 00 90 00 69 [13:59:01]RAPDU: 90 00 [13:59:01]wFMCommunicate OK [13:59:01]wFMCommunicate request_size=255 [13:59:01]MH_SAM_APDU [13:59: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 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 A9 1D 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 F3 0B 01 00 35 04 06 00 69 [13:59:01]Write to MH i2c: E2 02 01 CD 29 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 A9 1D 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 F3 0B 01 00 35 04 06 00 69 00 00 8B [13:59:01]Write i2c OK [13:59:01]MH_I2C_Read... [13:59:01]OFD Sender: No OFD packet to send [13:59:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:59:01]Read from MH i2c: E2 [13:59:01]MH_I2C_Read... [13:59:01]Read from MH i2c: E2 03 00 [13:59:01]MH_I2C_Read... [13:59:01]Read from MH i2c: E2 03 00 CD 29 00 90 00 6A [13:59:01]RAPDU: 90 00 [13:59:01]wFMCommunicate OK [13:59:01]wFMCommunicate request_size=10 [13:59:01]MH_SAM_APDU [13:59:01]CAPDU: 80 0D 02 02 05 F0 A7 28 68 3F [13:59:01]Write to MH i2c: E2 0D 00 CE 29 80 0D 02 02 05 00 F0 A7 28 68 3F 00 00 E1 [13:59:01]Write i2c OK [13:59:01]MH_I2C_Read... [13:59:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:59:01]Read from MH i2c: E2 [13:59:01]MH_I2C_Read... [13:59:01]Read from MH i2c: E2 03 00 [13:59:01]MH_I2C_Read... [13:59:01]Read from MH i2c: E2 03 00 CE 29 00 90 00 6B [13:59:01]RAPDU: 90 00 [13:59:01]wFMCommunicate OK [13:59:01]wFMCommunicate request_size=4 [13:59:01]MH_SAM_APDU [13:59:01]CAPDU: 80 0D 03 02 [13:59:01]Write to MH i2c: E2 08 00 CF 29 80 0D 03 02 00 00 00 00 73 [13:59:01]Write i2c OK [13:59:01]MH_I2C_Read... [13:59:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:59:02]Read from MH i2c: E2 [13:59:02]MH_I2C_Read... [13:59:02]Read from MH i2c: E2 0B 00 [13:59:02]MH_I2C_Read... [13:59:02]Read from MH i2c: E2 0B 00 CF 29 00 A9 5F C2 A7 15 50 CC EC 90 00 02 [13:59:02]RAPDU: A9 5F C2 A7 15 50 CC EC 90 00 [13:59:02]wFMCommunicate OK [13:59:02]SAM_PROTO_SignData done [13:59:02]FM_MakeSignedData done [13:59:02]CreateOFDProtocolMessage [13:59:02]wFMCommunicate request_size=4 [13:59:02]MH_SAM_APDU [13:59:02]CAPDU: 80 11 00 00 [13:59:02]Write to MH i2c: E2 08 00 D0 29 80 11 00 00 00 00 00 00 73 [13:59:02]Write i2c OK [13:59:02]MH_I2C_Read... [13:59:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:59:02]Read from MH i2c: E2 [13:59:02]MH_I2C_Read... [13:59:02]Read from MH i2c: E2 17 00 [13:59:02]MH_I2C_Read... [13:59:02]Read from MH i2c: E2 17 00 D0 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 BE [13:59:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [13:59:02]wFMCommunicate OK [13:59:02]CreateOFDProtocolMessage done [13:59:02]OFDSenderStorePacket 68595 [13:59:02]StoreOFDPacket docnum=68595 [13:59:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 3B A9 07 01 E8 56 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 A9 1D 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 F3 0B 01 00 35 04 06 00 69 F0 A7 28 68 3F A9 5F C2 A7 15 50 CC EC [13:59:02]CheckFolder [13:59:02]dirname=/storage/ofd_packets [13:59:02]CheckFolder done [13:59:02]ProducePacketName [13:59:02]name=ofd_packets/00068595 [13:59:02]NVStorageSaveData ofd_packets/00068595 [13:59:02]File name is /storage/ofd_packets/00068595 [13:59:02]Write 301 bytes [13:59:02]NVStorageSaveData done [13:59:02]OFDSenderStorePacket done [13:59:02]KKMCreateOFDPacket done [13:59:02]NVStorageSaveData kkm_last_timestamp [13:59:02]File name is /storage/kkm_last_timestamp [13:59:02]Write 4 bytes [13:59:02]NVStorageSaveData done [13:59:02]ExternCall_PrintAddStr [13:59:02]wPrintStart [13:59:02]Write to MH i2c: 01 00 00 D1 29 FA [13:59:02]Write i2c OK [13:59:02]MH_I2C_Read... [13:59:02]Read from MH i2c: 01 [13:59:02]MH_I2C_Read... [13:59:02]Read from MH i2c: 01 07 00 [13:59:02]MH_I2C_Read... [13:59:02]Read from MH i2c: 01 07 00 D1 29 00 00 00 00 00 FF 0F 0F [13:59:02]RasterBufferAndPrint [13:59:02]line Счет N : (1)706725 [13:59:02]line ИНН: 02508201610067 [13:59:02]line Контрольно-Кассовый Чек [13:59:02]line ПРОДАЖА [13:59:02]line ТРК (МРК, ГНК) : 53 [13:59:02]line Товар: 2710124130 [13:59:02]line Аи-92-К-4 [13:59:02]line 14.950 * 66.90 [13:59:02]line = 1000.16 [13:59:02]line НДС 12% НСП 1% [13:59:02]line > о реализуемом товаре [13:59:02]line ОКРУГЛЕНИЕ: -0.16 [13:59:02]line ИТОГО: 1000.00 [13:59:02]line Внесено: 1000.00 [13:59:02]line СДАЧА: 0.00 [13:59:02]line НСП 1% : 8.85 [13:59:02]line НДС 12% : 106.21 [13:59:02]line Наличными: 1000.00 [13:59:02]line Безнал.: 0.00 [13:59:02]line Место: АЗС № 62 "Партнер Нефть" [13:59:02]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [13:59:02]line СНО: Общий режим [13:59:02]line Чек 93 04.06.2024 13:59 [13:59:02]line Смена: 325 ФФД: 1.0 [13:59:02]line ЗНМ: 0300000181 [13:59:02]line РНМ: 0000000000098096 [13:59:02]line Версия ККМ: 001 [13:59:02]line ФМ: 0000000000965400 [13:59:02]line ФД: 68595 [13:59:02]line ФПД: 116482317510719 [13:59:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T135905&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68595&fm=116482317510719&tin=02508201610067®Number=0000000000098096&sum=100000 [13:59:02]OFD Sender: Processing packet 68595 [packets to send 26, broken 25] [13:59:02]ProducePacketName [13:59:02]name=ofd_packets/00068595 [13:59:02]OFD Sender: To server: pG, [13:59:02]CommunicateWithHost lk.salyk.kg:30040 [13:59:02]ConnectInit lk.salyk.kg [13:59:02]written 0, free lines is 4095 [13:59:02]Connected sock=10 [13:59:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 3B A9 07 01 E8 56 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 A9 1D 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 F3 0B 01 00 35 04 06 00 69 F0 A7 28 68 3F A9 5F C2 A7 15 50 CC EC [13:59:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 FB 21 47 00 6E 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 39 36 35 34 30 30 10 04 04 00 F3 0B 01 00 F4 03 04 00 A1 C4 5E 66 B6 04 01 00 00 D3 E6 D3 7D E0 AD 2B 03 [13:59:02]CommunicateWithHost err = 0 [13:59:02]CheckOFDResponse [13:59:02]1017 (14) - 77093643461234 [13:59:02]1041 (16) - 0000000000965400 [13:59:02]1040 (4) - 68595 [13:59:02]1012 (4) - 04.06.2024 07:39 [13:59:02]1206 (1) - 0 [13:59:02]OFD Sender: Remove packet 68595 [13:59:02]ProducePacketName [13:59:02]name=ofd_packets/00068595 [13:59:02]NVStorageDeleteData [13:59:02]Write to MH i2c: 01 00 00 FC 29 25 [13:59:02]Write i2c OK [13:59:02]MH_I2C_Read... [13:59:02]Read from MH i2c: 01 [13:59:02]MH_I2C_Read... [13:59:02]Read from MH i2c: 01 07 00 [13:59:02]MH_I2C_Read... [13:59:02]Read from MH i2c: 01 07 00 FC 29 00 00 00 00 00 D4 0C 0C [13:59:02]RasterBufferAndPrint [13:59:02]line [13:59:02]line [13:59:02]line [13:59:02]line [13:59:02]line [13:59:02]written 0, free lines is 3290 [13:59:02]MH_Cut [13:59:02]Write to MH i2c: D1 01 00 03 2A 01 FF [13:59:02]Write i2c OK [13:59:02]MH_I2C_Read... [13:59:02]Read from MH i2c: D1 [13:59:02]MH_I2C_Read... [13:59:02]Read from MH i2c: D1 01 00 [13:59:02]MH_I2C_Read... [13:59:02]Read from MH i2c: D1 01 00 03 2A 00 FE [13:59:02]Write to MH i2c: 01 00 00 04 2A 2E [13:59:02]Write i2c OK [13:59:02]MH_I2C_Read... [13:59:03]OFD Sender: No OFD packet to send [13:59:03]*** Cut start [13:59:03]*** Partial cut [13:59:03]*** CUTSNS_PIN = 1 [13:59:03]*** CUTSNS_PIN = 0 [13:59:03]*** Brake cut motor [13:59:04]Read from MH i2c: 01 [13:59:04]MH_I2C_Read... [13:59:04]*** Stop cut motor [13:59:04]*** Cut end [13:59:04]Read from MH i2c: 01 07 00 [13:59:04]MH_I2C_Read... [13:59:04]Read from MH i2c: 01 07 00 04 2A 00 00 00 00 00 FF 0F 43 [13:59:04]process_action close_receipt done [13:59:04]requested_data is exist [13:59:04]produce_requested_data [13:59:04]requested_item fm.sn is exist - process it [13:59:04]wFMCommunicate request_size=4 [13:59:04]MH_SAM_APDU [13:59:04]CAPDU: 80 11 00 00 [13:59:04]Write to MH i2c: E2 08 00 05 2A 80 11 00 00 00 00 00 00 A9 [13:59:04]Write i2c OK [13:59:04]MH_I2C_Read... [13:59:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:59:04]Read from MH i2c: E2 [13:59:04]MH_I2C_Read... [13:59:04]Read from MH i2c: E2 17 00 [13:59:04]MH_I2C_Read... [13:59:04]Read from MH i2c: E2 17 00 05 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 F4 [13:59:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [13:59:04]wFMCommunicate OK [13:59:04]requested_item fd.num is exist - process it [13:59:04]SAM_PROTO_GetFieldsCounters [13:59:04]wFMCommunicate request_size=4 [13:59:04]MH_SAM_APDU [13:59:04]CAPDU: 80 13 00 00 [13:59:04]Write to MH i2c: E2 08 00 06 2A 80 13 00 00 00 00 00 00 AC [13:59:04]Write i2c OK [13:59:04]MH_I2C_Read... [13:59:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:59:04]Read from MH i2c: E2 [13:59:04]MH_I2C_Read... [13:59:04]Read from MH i2c: E2 62 00 [13:59:04]MH_I2C_Read... [13:59:04]Read from MH i2c: E2 62 00 06 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 F3 0B 01 00 0E 04 04 00 45 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 28 [13:59:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 F3 0B 01 00 0E 04 04 00 45 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:59:04]wFMCommunicate OK [13:59:04]SAM_PROTO_GetFieldsCounters done [13:59:04]requested_item shift.num is exist - process it [13:59:04]requested_item shift.opened is exist - process it [13:59:04]req_shift_opened [13:59:04]FM_GetShiftState [13:59:04]SAM_PROTO_GetShiftState [13:59:04]wFMCommunicate request_size=4 [13:59:04]MH_SAM_APDU [13:59:04]CAPDU: 80 13 01 00 [13:59:04]Write to MH i2c: E2 08 00 07 2A 80 13 01 00 00 00 00 00 AE [13:59:04]Write i2c OK [13:59:04]MH_I2C_Read... [13:59:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:59:04]Read from MH i2c: E2 [13:59:04]MH_I2C_Read... [13:59:04]Read from MH i2c: E2 0E 00 [13:59:04]MH_I2C_Read... [13:59:04]Read from MH i2c: E2 0E 00 07 2A 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 4A [13:59:04]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [13:59:04]wFMCommunicate OK [13:59:04]SAM_PROTO_GetShiftState done [13:59:04]FM_GetShiftState done [13:59:04]req_shift_opened done [13:59:04]requested_item shift.open_date is exist - process it [13:59:04]req_shift_open_date [13:59:04]req_shift_open_date done [13:59:04]produce_requested_data done [13:59:04]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68595,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [13:59:04]process_action_free close_receipt [13:59:04]json_value_free [13:59:04]json_value_free done [13:59:04]process_json_proto returns [13:59:04]Send response to host [13:59:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68595,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [13:59:04]free response buf [13:59:04]execute_script done [13:59:04]execute_script returns [13:59:04]free content buf [13:59:04]Sock 9.Close socket [13:59:04]Sock 9.Thread stoped [13:59:08]OFD Sender: No OFD packet to send [13:59:13]OFD Sender: No OFD packet to send [13:59:18]OFD Sender: No OFD packet to send [13:59:23]OFD Sender: No OFD packet to send [13:59:28]OFD Sender: No OFD packet to send [13:59:33]OFD Sender: No OFD packet to send [13:59:38]OFD Sender: No OFD packet to send [13:59:43]OFD Sender: No OFD packet to send [13:59:48]OFD Sender: No OFD packet to send [13:59:53]OFD Sender: No OFD packet to send [13:59:58]OFD Sender: No OFD packet to send [14:00:03]OFD Sender: No OFD packet to send [14:00:08]OFD Sender: No OFD packet to send [14:00:13]OFD Sender: No OFD packet to send [14:00:18]OFD Sender: No OFD packet to send [14:00:23]OFD Sender: No OFD packet to send [14:00:28]OFD Sender: No OFD packet to send [14:00:33]OFD Sender: No OFD packet to send [14:00:38]OFD Sender: No OFD packet to send [14:00:38]accept exits with 7 [14:00:38]New connection [14:00:38]New thread 3067084132 created [14:00:38]Thread 3067227492 joined [14:00:38]Waiting for new connection... [14:00:38] Sock 7.Parse request [14:00:38]Sock 7.Check first char [14:00:38]Sock 7.First char is OK [14:00:38]request: POST /json_proto HTTP/1.0 [14:00:38]Method: POST [14:00:38]URL: /json_proto [14:00:38]Method is POST - this is cgi request [14:00:38]url: /json_proto [14:00:38]query_string will be loaded in cgi processing [14:00:38]execute_cgi json_proto POST (null) [14:00:38]execute_cgi path=json_proto method=POST [14:00:38]POST find Content-Length [14:00:38]Host: 172.17.36.132:8080 [14:00:38]Content-Length: 682 [14:00:38]Content-Type: application/json [14:00:38] [14:00:38]POST finish read [14:00:38]Found Content-Length = 682 [14:00:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706726", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "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" ] } } [14:00:38]execute_script... [14:00: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)706726", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "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" ] } } [14:00:38]POST & json_proto [14:00:38]process_json_proto [14:00:38]json parsed OK: [14:00:38]protocol is kg_v1.0 [14:00:38]action value=close_receipt [14:00:38]process_action close_receipt [14:00:38]cmd_close_receipt [14:00:38]MH_GetDate [14:00:38]Write to MH i2c: F0 00 00 08 2A 21 [14:00:38]Write i2c OK [14:00:38]MH_I2C_Read... [14:00:38]Read from MH i2c: F0 [14:00:38]MH_I2C_Read... [14:00:38]Read from MH i2c: F0 09 00 [14:00:38]MH_I2C_Read... [14:00:38]Read from MH i2c: F0 09 00 08 2A 00 0B 1E 5F 66 B2 22 B0 64 00 [14:00:38]GetLastDocTimeStamp 1717509545 [14:00:38]current date 1717509643 [14:00:38]FM_GetShiftState [14:00:38]SAM_PROTO_GetShiftState [14:00:38]wFMCommunicate request_size=4 [14:00:38]MH_SAM_APDU [14:00:38]CAPDU: 80 13 01 00 [14:00:38]Write to MH i2c: E2 08 00 09 2A 80 13 01 00 00 00 00 00 B0 [14:00:38]Write i2c OK [14:00:38]MH_I2C_Read... [14:00:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:00:38]Read from MH i2c: E2 [14:00:38]MH_I2C_Read... [14:00:38]Read from MH i2c: E2 0E 00 [14:00:38]MH_I2C_Read... [14:00:38]Read from MH i2c: E2 0E 00 09 2A 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 4C [14:00:38]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [14:00:38]wFMCommunicate OK [14:00:38]SAM_PROTO_GetShiftState done [14:00:38]FM_GetShiftState done [14:00:38]opened in 1717460590 [14:00:38]opened+sec_in_day 1717546990 [14:00:38]quantity*price = 70056 [14:00:38]sum+1 = 70058 [14:00:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.40 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 94 04.06.2024 14:00 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68596 ФПД: 275958645977546 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T140043&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68596&fm=275958645977546&tin=02508201610067®Number=0000000000098096&sum=70000 [14:00:39]StoreToDocumentArchive [14:00:39]shift 325 fd 68596 [14:00:39]save to /storage/0325/doc_00068596 [14:00:39]save last doc name /storage/0325/doc_00068596 to /storage/kkm_last_doc_name [14:00:39]save OK [14:00:39]Clear old archive folders... [14:00:39]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:00:39]tlvbuf is B6F98010 [14:00:39]SAM_PROTO_ClearQueue [14:00:39]wFMCommunicate request_size=4 [14:00:39]MH_SAM_APDU [14:00:39]CAPDU: 80 09 00 00 [14:00:39]Write to MH i2c: E2 08 00 16 2A 80 09 00 00 00 00 00 00 B2 [14:00:39]Write i2c OK [14:00:39]MH_I2C_Read... [14:00:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:00:39]Read from MH i2c: E2 [14:00:39]MH_I2C_Read... [14:00:39]Read from MH i2c: E2 03 00 [14:00:39]MH_I2C_Read... [14:00:39]Read from MH i2c: E2 03 00 16 2A 00 90 00 B4 [14:00:39]RAPDU: 90 00 [14:00:39]wFMCommunicate OK [14:00:39]SAM_PROTO_ClearQueue done [14:00:39]KKMCreateOFDPacket [14:00:39]OFDProtocolAddRootSTLVToBuf [14:00:39]FM_MakeSignedData [14:00:39]FM_MakeSignedData [14:00:39]SAM_PROTO_SignData [14:00:39]wFMCommunicate request_size=4 [14:00:39]MH_SAM_APDU [14:00:39]CAPDU: 80 0D 01 02 [14:00:39]Write to MH i2c: E2 08 00 17 2A 80 0D 01 02 00 00 00 00 BA [14:00:39]Write i2c OK [14:00:39]MH_I2C_Read... [14:00:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:00:39]Read from MH i2c: E2 [14:00:39]MH_I2C_Read... [14:00:39]Read from MH i2c: E2 03 00 [14:00:39]MH_I2C_Read... [14:00:39]Read from MH i2c: E2 03 00 17 2A 00 90 00 B5 [14:00:39]RAPDU: 90 00 [14:00:39]wFMCommunicate OK [14:00:39]wFMCommunicate request_size=255 [14:00:39]MH_SAM_APDU [14:00:39]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 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 5E 00 00 00 F4 03 04 00 0B 1E 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 F4 0B 01 00 35 04 06 00 [14:00:39]Write to MH i2c: E2 02 01 18 2A 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 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 5E 00 00 00 F4 03 04 00 0B 1E 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 F4 0B 01 00 35 04 06 00 00 00 2E [14:00:39]Write i2c OK [14:00:39]MH_I2C_Read... [14:00:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:00:39]Read from MH i2c: E2 [14:00:39]MH_I2C_Read... [14:00:39]Read from MH i2c: E2 03 00 [14:00:39]MH_I2C_Read... [14:00:39]Read from MH i2c: E2 03 00 18 2A 00 90 00 B6 [14:00:39]RAPDU: 90 00 [14:00:40]wFMCommunicate OK [14:00:40]wFMCommunicate request_size=11 [14:00:40]MH_SAM_APDU [14:00:40]CAPDU: 80 0D 02 02 06 FA FB A1 10 F1 CA [14:00:40]Write to MH i2c: E2 0E 00 19 2A 80 0D 02 02 06 00 FA FB A1 10 F1 CA 00 00 2A [14:00:40]Write i2c OK [14:00:40]MH_I2C_Read... [14:00:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:00:40]Read from MH i2c: E2 [14:00:40]MH_I2C_Read... [14:00:40]Read from MH i2c: E2 03 00 [14:00:40]MH_I2C_Read... [14:00:40]Read from MH i2c: E2 03 00 19 2A 00 90 00 B7 [14:00:40]RAPDU: 90 00 [14:00:40]wFMCommunicate OK [14:00:40]wFMCommunicate request_size=4 [14:00:40]MH_SAM_APDU [14:00:40]CAPDU: 80 0D 03 02 [14:00:40]Write to MH i2c: E2 08 00 1A 2A 80 0D 03 02 00 00 00 00 BF [14:00:40]Write i2c OK [14:00:40]MH_I2C_Read... [14:00:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:00:40]Read from MH i2c: E2 [14:00:40]MH_I2C_Read... [14:00:40]Read from MH i2c: E2 0B 00 [14:00:40]MH_I2C_Read... [14:00:40]Read from MH i2c: E2 0B 00 1A 2A 00 15 07 1A 86 D3 B2 8F 33 90 00 C3 [14:00:40]RAPDU: 15 07 1A 86 D3 B2 8F 33 90 00 [14:00:40]wFMCommunicate OK [14:00:40]SAM_PROTO_SignData done [14:00:40]FM_MakeSignedData done [14:00:40]CreateOFDProtocolMessage [14:00:40]wFMCommunicate request_size=4 [14:00:40]MH_SAM_APDU [14:00:40]CAPDU: 80 11 00 00 [14:00:40]Write to MH i2c: E2 08 00 1B 2A 80 11 00 00 00 00 00 00 BF [14:00:40]Write i2c OK [14:00:40]MH_I2C_Read... [14:00:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:00:40]Read from MH i2c: E2 [14:00:40]MH_I2C_Read... [14:00:40]Read from MH i2c: E2 17 00 [14:00:40]MH_I2C_Read... [14:00:40]Read from MH i2c: E2 17 00 1B 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 0A [14:00:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [14:00:40]wFMCommunicate OK [14:00:40]CreateOFDProtocolMessage done [14:00:40]OFDSenderStorePacket 68596 [14:00:40]StoreOFDPacket docnum=68596 [14:00:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 02 0B 08 01 ED E8 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 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 5E 00 00 00 F4 03 04 00 0B 1E 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 F4 0B 01 00 35 04 06 00 FA FB A1 10 F1 CA 15 07 1A 86 D3 B2 8F 33 [14:00:40]CheckFolder [14:00:40]dirname=/storage/ofd_packets [14:00:40]CheckFolder done [14:00:40]ProducePacketName [14:00:40]name=ofd_packets/00068596 [14:00:40]NVStorageSaveData ofd_packets/00068596 [14:00:40]File name is /storage/ofd_packets/00068596 [14:00:40]Write 302 bytes [14:00:40]NVStorageSaveData done [14:00:40]OFDSenderStorePacket done [14:00:40]KKMCreateOFDPacket done [14:00:40]NVStorageSaveData kkm_last_timestamp [14:00:40]File name is /storage/kkm_last_timestamp [14:00:40]Write 4 bytes [14:00:40]NVStorageSaveData done [14:00:40]ExternCall_PrintAddStr [14:00:40]wPrintStart [14:00:40]Write to MH i2c: 01 00 00 1C 2A 46 [14:00:40]Write i2c OK [14:00:40]MH_I2C_Read... [14:00:40]Read from MH i2c: 01 [14:00:40]MH_I2C_Read... [14:00:40]Read from MH i2c: 01 07 00 [14:00:40]MH_I2C_Read... [14:00:40]Read from MH i2c: 01 07 00 1C 2A 00 00 00 00 00 FF 0F 5B [14:00:40]RasterBufferAndPrint [14:00:40]line Счет N : (1)706726 [14:00:40]line ИНН: 02508201610067 [14:00:40]line Контрольно-Кассовый Чек [14:00:40]line ПРОДАЖА [14:00:40]line ТРК (МРК, ГНК) : 21 [14:00:40]line Товар: 2710194210 [14:00:40]line ДТ(л)-К-4 [14:00:40]line 9.610 * 72.90 [14:00:40]line = 700.57 [14:00:40]line НДС 12% НСП 1% [14:00:40]line > о реализуемом товаре [14:00:40]line ОКРУГЛЕНИЕ: -0.57 [14:00:40]line ИТОГО: 700.00 [14:00:40]line Внесено: 700.00 [14:00:40]line СДАЧА: 0.00 [14:00:40]line НСП 1% : 6.20 [14:00:40]line НДС 12% : 74.40 [14:00:40]line Наличными: 700.00 [14:00:40]line Безнал.: 0.00 [14:00:40]line Место: АЗС № 62 "Партнер Нефть" [14:00:40]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [14:00:40]line СНО: Общий режим [14:00:40]line Чек 94 04.06.2024 14:00 [14:00:40]line Смена: 325 ФФД: 1.0 [14:00:40]line ЗНМ: 0300000181 [14:00:40]line РНМ: 0000000000098096 [14:00:40]line Версия ККМ: 001 [14:00:40]line ФМ: 0000000000965400 [14:00:40]line ФД: 68596 [14:00:40]line ФПД: 275958645977546 [14:00:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T140043&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68596&fm=275958645977546&tin=02508201610067®Number=0000000000098096&sum=70000 [14:00:40]OFD Sender: Processing packet 68596 [packets to send 26, broken 25] [14:00:40]ProducePacketName [14:00:40]name=ofd_packets/00068596 [14:00:40]OFD Sender: To server: pG, [14:00:40]CommunicateWithHost lk.salyk.kg:30040 [14:00:40]ConnectInit lk.salyk.kg [14:00:40]written 0, free lines is 4095 [14:00:40]Connected sock=10 [14:00:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 02 0B 08 01 ED E8 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 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 5E 00 00 00 F4 03 04 00 0B 1E 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 F4 0B 01 00 35 04 06 00 FA FB A1 10 F1 CA 15 07 1A 86 D3 B2 8F 33 [14:00:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 E5 82 47 00 53 03 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 F4 0B 01 00 F4 03 04 00 03 C5 5E 66 B6 04 01 00 00 78 56 C8 5C 48 93 C9 81 [14:00:40]CommunicateWithHost err = 0 [14:00:40]CheckOFDResponse [14:00:40]1017 (14) - 77093643461234 [14:00:40]1041 (16) - 0000000000965400 [14:00:40]1040 (4) - 68596 [14:00:40]1012 (4) - 04.06.2024 07:40 [14:00:40]1206 (1) - 0 [14:00:40]OFD Sender: Remove packet 68596 [14:00:40]ProducePacketName [14:00:40]name=ofd_packets/00068596 [14:00:40]NVStorageDeleteData [14:00:40]Write to MH i2c: 01 00 00 47 2A 71 [14:00:40]Write i2c OK [14:00:40]MH_I2C_Read... [14:00:40]Read from MH i2c: 01 [14:00:40]MH_I2C_Read... [14:00:40]Read from MH i2c: 01 07 00 [14:00:40]MH_I2C_Read... [14:00:40]Read from MH i2c: 01 07 00 47 2A 00 00 00 00 00 DA 0C 5E [14:00:40]RasterBufferAndPrint [14:00:40]line [14:00:40]line [14:00:40]line [14:00:40]line [14:00:40]line [14:00:40]written 0, free lines is 3297 [14:00:40]MH_Cut [14:00:40]Write to MH i2c: D1 01 00 4E 2A 01 4A [14:00:40]Write i2c OK [14:00:40]MH_I2C_Read... [14:00:40]Read from MH i2c: D1 [14:00:40]MH_I2C_Read... [14:00:40]Read from MH i2c: D1 01 00 [14:00:40]MH_I2C_Read... [14:00:40]Read from MH i2c: D1 01 00 4E 2A 00 49 [14:00:40]Write to MH i2c: 01 00 00 4F 2A 79 [14:00:40]Write i2c OK [14:00:40]MH_I2C_Read... [14:00:41]OFD Sender: No OFD packet to send [14:00:41]*** Cut start [14:00:41]*** Partial cut [14:00:41]*** CUTSNS_PIN = 1 [14:00:41]*** CUTSNS_PIN = 0 [14:00:42]*** Brake cut motor [14:00:42]Read from MH i2c: 01 [14:00:42]MH_I2C_Read... [14:00:42]*** Stop cut motor [14:00:42]*** Cut end [14:00:42]Read from MH i2c: 01 07 00 [14:00:42]MH_I2C_Read... [14:00:42]Read from MH i2c: 01 07 00 4F 2A 00 00 00 00 00 FF 0F 8E [14:00:42]process_action close_receipt done [14:00:42]requested_data is exist [14:00:42]produce_requested_data [14:00:42]requested_item fm.sn is exist - process it [14:00:42]wFMCommunicate request_size=4 [14:00:42]MH_SAM_APDU [14:00:42]CAPDU: 80 11 00 00 [14:00:42]Write to MH i2c: E2 08 00 50 2A 80 11 00 00 00 00 00 00 F4 [14:00:42]Write i2c OK [14:00:42]MH_I2C_Read... [14:00:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:00:42]Read from MH i2c: E2 [14:00:42]MH_I2C_Read... [14:00:42]Read from MH i2c: E2 17 00 [14:00:42]MH_I2C_Read... [14:00:42]Read from MH i2c: E2 17 00 50 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 3F [14:00:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [14:00:42]wFMCommunicate OK [14:00:42]requested_item fd.num is exist - process it [14:00:42]SAM_PROTO_GetFieldsCounters [14:00:42]wFMCommunicate request_size=4 [14:00:42]MH_SAM_APDU [14:00:42]CAPDU: 80 13 00 00 [14:00:42]Write to MH i2c: E2 08 00 51 2A 80 13 00 00 00 00 00 00 F7 [14:00:42]Write i2c OK [14:00:42]MH_I2C_Read... [14:00:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:00:42]Read from MH i2c: E2 [14:00:42]MH_I2C_Read... [14:00:42]Read from MH i2c: E2 62 00 [14:00:42]MH_I2C_Read... [14:00:42]Read from MH i2c: E2 62 00 51 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 F4 0B 01 00 0E 04 04 00 45 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 77 [14:00:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 F4 0B 01 00 0E 04 04 00 45 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 [14:00:42]wFMCommunicate OK [14:00:42]SAM_PROTO_GetFieldsCounters done [14:00:42]requested_item shift.num is exist - process it [14:00:42]requested_item shift.opened is exist - process it [14:00:42]req_shift_opened [14:00:42]FM_GetShiftState [14:00:42]SAM_PROTO_GetShiftState [14:00:42]wFMCommunicate request_size=4 [14:00:42]MH_SAM_APDU [14:00:42]CAPDU: 80 13 01 00 [14:00:42]Write to MH i2c: E2 08 00 52 2A 80 13 01 00 00 00 00 00 F9 [14:00:42]Write i2c OK [14:00:42]MH_I2C_Read... [14:00:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:00:42]Read from MH i2c: E2 [14:00:42]MH_I2C_Read... [14:00:42]Read from MH i2c: E2 0E 00 [14:00:42]MH_I2C_Read... [14:00:42]Read from MH i2c: E2 0E 00 52 2A 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 95 [14:00:42]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [14:00:42]wFMCommunicate OK [14:00:42]SAM_PROTO_GetShiftState done [14:00:42]FM_GetShiftState done [14:00:42]req_shift_opened done [14:00:42]requested_item shift.open_date is exist - process it [14:00:42]req_shift_open_date [14:00:42]req_shift_open_date done [14:00:42]produce_requested_data done [14:00:42]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68596,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [14:00:42]process_action_free close_receipt [14:00:42]json_value_free [14:00:42]json_value_free done [14:00:42]process_json_proto returns [14:00:42]Send response to host [14:00:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68596,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [14:00:42]free response buf [14:00:42]execute_script done [14:00:42]execute_script returns [14:00:42]free content buf [14:00:42]Sock 7.Close socket [14:00:42]Sock 7.Thread stoped [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:53]accept exits with 9 [14:04:53]New connection [14:04:53]New thread 3067227492 created [14:04:53]Thread 3067084132 joined [14:04:53]Waiting for new connection... [14:04:53] Sock 9.Parse request [14:04:53]Sock 9.Check first char [14:04:53]Sock 9.First char is OK [14:04:53]request: POST /json_proto HTTP/1.0 [14:04:53]Method: POST [14:04:53]URL: /json_proto [14:04:53]Method is POST - this is cgi request [14:04:53]url: /json_proto [14:04:53]query_string will be loaded in cgi processing [14:04:53]execute_cgi json_proto POST (null) [14:04:53]execute_cgi path=json_proto method=POST [14:04:53]POST find Content-Length [14:04:53]Host: 172.17.36.132:8080 [14:04:53]Content-Length: 677 [14:04:53]Content-Type: application/json [14:04:53] [14:04:53]POST finish read [14:04:53]Found Content-Length = 677 [14:04:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706727", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:04:53]execute_script... [14:04: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)706727", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:04:53]POST & json_proto [14:04:53]process_json_proto [14:04:53]json parsed OK: [14:04:53]protocol is kg_v1.0 [14:04:53]action value=close_receipt [14:04:53]process_action close_receipt [14:04:53]cmd_close_receipt [14:04:53]MH_GetDate [14:04:53]Write to MH i2c: F0 00 00 53 2A 6C [14:04:53]Write i2c OK [14:04:53]MH_I2C_Read... [14:04:53]Read from MH i2c: F0 [14:04:53]MH_I2C_Read... [14:04:53]Read from MH i2c: F0 09 00 [14:04:53]MH_I2C_Read... [14:04:53]Read from MH i2c: F0 09 00 53 2A 00 09 1F 5F 66 B2 22 B0 64 4A [14:04:53]GetLastDocTimeStamp 1717509643 [14:04:53]current date 1717509897 [14:04:53]FM_GetShiftState [14:04:53]SAM_PROTO_GetShiftState [14:04:53]wFMCommunicate request_size=4 [14:04:53]MH_SAM_APDU [14:04:53]CAPDU: 80 13 01 00 [14:04:53]Write to MH i2c: E2 08 00 54 2A 80 13 01 00 00 00 00 00 FB [14:04:53]Write i2c OK [14:04:53]MH_I2C_Read... [14:04:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:04:53]Read from MH i2c: E2 [14:04:53]MH_I2C_Read... [14:04:53]Read from MH i2c: E2 0E 00 [14:04:53]MH_I2C_Read... [14:04:53]Read from MH i2c: E2 0E 00 54 2A 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 97 [14:04:53]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [14:04:53]wFMCommunicate OK [14:04:53]SAM_PROTO_GetShiftState done [14:04:53]FM_GetShiftState done [14:04:53]opened in 1717460590 [14:04:53]opened+sec_in_day 1717546990 [14:04:53]quantity*price = 60009 [14:04:53]sum+1 = 60010 [14:04:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 95 04.06.2024 14:04 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68597 ФПД: 154651911464117 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T140457&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68597&fm=154651911464117&tin=02508201610067®Number=0000000000098096&sum=60000 [14:04:54]StoreToDocumentArchive [14:04:54]shift 325 fd 68597 [14:04:54]save to /storage/0325/doc_00068597 [14:04:54]save last doc name /storage/0325/doc_00068597 to /storage/kkm_last_doc_name [14:04:54]save OK [14:04:54]Clear old archive folders... [14:04:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:04:54]tlvbuf is 00A08170 [14:04:54]SAM_PROTO_ClearQueue [14:04:54]wFMCommunicate request_size=4 [14:04:54]MH_SAM_APDU [14:04:54]CAPDU: 80 09 00 00 [14:04:54]Write to MH i2c: E2 08 00 61 2A 80 09 00 00 00 00 00 00 FD [14:04:54]Write i2c OK [14:04:54]MH_I2C_Read... [14:04:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:04:54]Read from MH i2c: E2 [14:04:54]MH_I2C_Read... [14:04:54]Read from MH i2c: E2 03 00 [14:04:54]MH_I2C_Read... [14:04:54]Read from MH i2c: E2 03 00 61 2A 00 90 00 FF [14:04:54]RAPDU: 90 00 [14:04:54]wFMCommunicate OK [14:04:54]SAM_PROTO_ClearQueue done [14:04:54]KKMCreateOFDPacket [14:04:54]OFDProtocolAddRootSTLVToBuf [14:04:54]FM_MakeSignedData [14:04:54]FM_MakeSignedData [14:04:54]SAM_PROTO_SignData [14:04:54]wFMCommunicate request_size=4 [14:04:54]MH_SAM_APDU [14:04:54]CAPDU: 80 0D 01 02 [14:04:54]Write to MH i2c: E2 08 00 62 2A 80 0D 01 02 00 00 00 00 05 [14:04:54]Write i2c OK [14:04:54]MH_I2C_Read... [14:04:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:04:54]Read from MH i2c: E2 [14:04:54]MH_I2C_Read... [14:04:54]Read from MH i2c: E2 03 00 [14:04:54]MH_I2C_Read... [14:04:54]Read from MH i2c: E2 03 00 62 2A 00 90 00 00 [14:04:54]RAPDU: 90 00 [14:04:54]wFMCommunicate OK [14:04:54]wFMCommunicate request_size=255 [14:04:54]MH_SAM_APDU [14:04: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 34 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 09 1F 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 F5 0B 01 00 35 04 06 00 8C [14:04:54]Write to MH i2c: E2 02 01 63 2A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 09 1F 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 F5 0B 01 00 35 04 06 00 8C 00 00 8E [14:04:54]Write i2c OK [14:04:54]MH_I2C_Read... [14:04:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:04:54]Read from MH i2c: E2 [14:04:54]MH_I2C_Read... [14:04:54]Read from MH i2c: E2 03 00 [14:04:54]MH_I2C_Read... [14:04:54]Read from MH i2c: E2 03 00 63 2A 00 90 00 01 [14:04:54]RAPDU: 90 00 [14:04:54]wFMCommunicate OK [14:04:54]wFMCommunicate request_size=10 [14:04:54]MH_SAM_APDU [14:04:54]CAPDU: 80 0D 02 02 05 A7 B4 3F 24 B5 [14:04:54]Write to MH i2c: E2 0D 00 64 2A 80 0D 02 02 05 00 A7 B4 3F 24 B5 00 00 85 [14:04:54]Write i2c OK [14:04:54]MH_I2C_Read... [14:04:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:04:54]Read from MH i2c: E2 [14:04:54]MH_I2C_Read... [14:04:54]Read from MH i2c: E2 03 00 [14:04:54]MH_I2C_Read... [14:04:54]Read from MH i2c: E2 03 00 64 2A 00 90 00 02 [14:04:54]RAPDU: 90 00 [14:04:54]wFMCommunicate OK [14:04:54]wFMCommunicate request_size=4 [14:04:54]MH_SAM_APDU [14:04:54]CAPDU: 80 0D 03 02 [14:04:54]Write to MH i2c: E2 08 00 65 2A 80 0D 03 02 00 00 00 00 0A [14:04:54]Write i2c OK [14:04:54]MH_I2C_Read... [14:04:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:04:54]Read from MH i2c: E2 [14:04:54]MH_I2C_Read... [14:04:54]Read from MH i2c: E2 0B 00 [14:04:54]MH_I2C_Read... [14:04:54]Read from MH i2c: E2 0B 00 65 2A 00 BA A7 41 08 BE 73 5A 8A 90 00 CA [14:04:54]RAPDU: BA A7 41 08 BE 73 5A 8A 90 00 [14:04:54]wFMCommunicate OK [14:04:54]SAM_PROTO_SignData done [14:04:54]FM_MakeSignedData done [14:04:54]CreateOFDProtocolMessage [14:04:54]wFMCommunicate request_size=4 [14:04:54]MH_SAM_APDU [14:04:54]CAPDU: 80 11 00 00 [14:04:54]Write to MH i2c: E2 08 00 66 2A 80 11 00 00 00 00 00 00 0A [14:04:54]Write i2c OK [14:04:54]MH_I2C_Read... [14:04:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:04:54]Read from MH i2c: E2 [14:04:54]MH_I2C_Read... [14:04:54]Read from MH i2c: E2 17 00 [14:04:54]MH_I2C_Read... [14:04:54]Read from MH i2c: E2 17 00 66 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 55 [14:04:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [14:04:54]wFMCommunicate OK [14:04:54]CreateOFDProtocolMessage done [14:04:54]OFDSenderStorePacket 68597 [14:04:54]StoreOFDPacket docnum=68597 [14:04:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 9C A1 07 01 27 FC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 09 1F 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 F5 0B 01 00 35 04 06 00 8C A7 B4 3F 24 B5 BA A7 41 08 BE 73 5A 8A [14:04:54]CheckFolder [14:04:54]dirname=/storage/ofd_packets [14:04:54]CheckFolder done [14:04:54]ProducePacketName [14:04:54]name=ofd_packets/00068597 [14:04:54]NVStorageSaveData ofd_packets/00068597 [14:04:54]File name is /storage/ofd_packets/00068597 [14:04:54]Write 301 bytes [14:04:54]NVStorageSaveData done [14:04:54]OFDSenderStorePacket done [14:04:54]KKMCreateOFDPacket done [14:04:54]NVStorageSaveData kkm_last_timestamp [14:04:54]File name is /storage/kkm_last_timestamp [14:04:54]Write 4 bytes [14:04:54]NVStorageSaveData done [14:04:54]ExternCall_PrintAddStr [14:04:54]wPrintStart [14:04:54]Write to MH i2c: 01 00 00 67 2A 91 [14:04:54]Write i2c OK [14:04:54]MH_I2C_Read... [14:04:54]Read from MH i2c: 01 [14:04:54]MH_I2C_Read... [14:04:54]Read from MH i2c: 01 07 00 [14:04:54]MH_I2C_Read... [14:04:54]Read from MH i2c: 01 07 00 67 2A 00 00 00 00 00 FF 0F A6 [14:04:54]RasterBufferAndPrint [14:04:54]line Счет N : (1)706727 [14:04:54]line ИНН: 02508201610067 [14:04:54]line Контрольно-Кассовый Чек [14:04:54]line ПРОДАЖА [14:04:54]line ТРК (МРК, ГНК) : 53 [14:04:54]line Товар: 2710124130 [14:04:54]line Аи-92-К-4 [14:04:54]line 8.970 * 66.90 [14:04:54]line = 600.09 [14:04:54]line НДС 12% НСП 1% [14:04:54]line > о реализуемом товаре [14:04:54]line ОКРУГЛЕНИЕ: -0.09 [14:04:54]line ИТОГО: 600.00 [14:04:54]line Внесено: 600.00 [14:04:54]line СДАЧА: 0.00 [14:04:54]line НСП 1% : 5.31 [14:04:54]line НДС 12% : 63.73 [14:04:54]line Наличными: 600.00 [14:04:54]line Безнал.: 0.00 [14:04:54]line Место: АЗС № 62 "Партнер Нефть" [14:04:54]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [14:04:54]line СНО: Общий режим [14:04:54]line Чек 95 04.06.2024 14:04 [14:04:54]line Смена: 325 ФФД: 1.0 [14:04:54]line ЗНМ: 0300000181 [14:04:54]line РНМ: 0000000000098096 [14:04:54]line Версия ККМ: 001 [14:04:54]line ФМ: 0000000000965400 [14:04:54]line ФД: 68597 [14:04:54]line ФПД: 154651911464117 [14:04:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T140457&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68597&fm=154651911464117&tin=02508201610067®Number=0000000000098096&sum=60000 [14:04:55]OFD Sender: Processing packet 68597 [packets to send 26, broken 25] [14:04:55]ProducePacketName [14:04:55]name=ofd_packets/00068597 [14:04:55]OFD Sender: To server: pG, [14:04:55]CommunicateWithHost lk.salyk.kg:30040 [14:04:55]ConnectInit lk.salyk.kg [14:04:55]written 0, free lines is 4095 [14:04:55]Connected sock=10 [14:04:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 9C A1 07 01 27 FC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 09 1F 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 F5 0B 01 00 35 04 06 00 8C A7 B4 3F 24 B5 BA A7 41 08 BE 73 5A 8A [14:04:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 15 55 47 00 3C 20 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 F5 0B 01 00 F4 03 04 00 02 C6 5E 66 B6 04 01 00 00 A3 22 DD 76 5B C2 0C E5 [14:04:55]CommunicateWithHost err = 0 [14:04:55]CheckOFDResponse [14:04:55]1017 (14) - 77093643461234 [14:04:55]1041 (16) - 0000000000965400 [14:04:55]1040 (4) - 68597 [14:04:55]1012 (4) - 04.06.2024 07:45 [14:04:55]1206 (1) - 0 [14:04:55]OFD Sender: Remove packet 68597 [14:04:55]ProducePacketName [14:04:55]name=ofd_packets/00068597 [14:04:55]NVStorageDeleteData [14:04:55]Write to MH i2c: 01 00 00 92 2A BC [14:04:55]Write i2c OK [14:04:55]MH_I2C_Read... [14:04:55]Read from MH i2c: 01 [14:04:55]MH_I2C_Read... [14:04:55]Read from MH i2c: 01 07 00 [14:04:55]MH_I2C_Read... [14:04:55]Read from MH i2c: 01 07 00 92 2A 00 00 00 00 00 C2 0C 91 [14:04:55]RasterBufferAndPrint [14:04:55]line [14:04:55]line [14:04:55]line [14:04:55]line [14:04:55]line [14:04:55]written 0, free lines is 3272 [14:04:55]MH_Cut [14:04:55]Write to MH i2c: D1 01 00 99 2A 01 95 [14:04:55]Write i2c OK [14:04:55]MH_I2C_Read... [14:04:55]Read from MH i2c: D1 [14:04:55]MH_I2C_Read... [14:04:55]Read from MH i2c: D1 01 00 [14:04:55]MH_I2C_Read... [14:04:55]Read from MH i2c: D1 01 00 99 2A 00 94 [14:04:55]Write to MH i2c: 01 00 00 9A 2A C4 [14:04:55]Write i2c OK [14:04:55]MH_I2C_Read... [14:04:55]OFD Sender: No OFD packet to send [14:04:56]*** Cut start [14:04:56]*** Partial cut [14:04:56]*** CUTSNS_PIN = 1 [14:04:56]*** CUTSNS_PIN = 0 [14:04:56]*** Brake cut motor [14:04:57]Read from MH i2c: 01 [14:04:57]MH_I2C_Read... [14:04:57]*** Stop cut motor [14:04:57]*** Cut end [14:04:57]Read from MH i2c: 01 07 00 [14:04:57]MH_I2C_Read... [14:04:57]Read from MH i2c: 01 07 00 9A 2A 00 00 00 00 00 FF 0F D9 [14:04:57]process_action close_receipt done [14:04:57]requested_data is exist [14:04:57]produce_requested_data [14:04:57]requested_item fm.sn is exist - process it [14:04:57]wFMCommunicate request_size=4 [14:04:57]MH_SAM_APDU [14:04:57]CAPDU: 80 11 00 00 [14:04:57]Write to MH i2c: E2 08 00 9B 2A 80 11 00 00 00 00 00 00 3F [14:04:57]Write i2c OK [14:04:57]MH_I2C_Read... [14:04:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:04:57]Read from MH i2c: E2 [14:04:57]MH_I2C_Read... [14:04:57]Read from MH i2c: E2 17 00 [14:04:57]MH_I2C_Read... [14:04:57]Read from MH i2c: E2 17 00 9B 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 8A [14:04:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [14:04:57]wFMCommunicate OK [14:04:57]requested_item fd.num is exist - process it [14:04:57]SAM_PROTO_GetFieldsCounters [14:04:57]wFMCommunicate request_size=4 [14:04:57]MH_SAM_APDU [14:04:57]CAPDU: 80 13 00 00 [14:04:57]Write to MH i2c: E2 08 00 9C 2A 80 13 00 00 00 00 00 00 42 [14:04:57]Write i2c OK [14:04:57]MH_I2C_Read... [14:04:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:04:57]Read from MH i2c: E2 [14:04:57]MH_I2C_Read... [14:04:57]Read from MH i2c: E2 62 00 [14:04:57]MH_I2C_Read... [14:04:57]Read from MH i2c: E2 62 00 9C 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 F5 0B 01 00 0E 04 04 00 45 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 C6 [14:04:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 F5 0B 01 00 0E 04 04 00 45 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 [14:04:57]wFMCommunicate OK [14:04:57]SAM_PROTO_GetFieldsCounters done [14:04:57]requested_item shift.num is exist - process it [14:04:57]requested_item shift.opened is exist - process it [14:04:57]req_shift_opened [14:04:57]FM_GetShiftState [14:04:57]SAM_PROTO_GetShiftState [14:04:57]wFMCommunicate request_size=4 [14:04:57]MH_SAM_APDU [14:04:57]CAPDU: 80 13 01 00 [14:04:57]Write to MH i2c: E2 08 00 9D 2A 80 13 01 00 00 00 00 00 44 [14:04:57]Write i2c OK [14:04:57]MH_I2C_Read... [14:04:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:04:57]Read from MH i2c: E2 [14:04:57]MH_I2C_Read... [14:04:57]Read from MH i2c: E2 0E 00 [14:04:57]MH_I2C_Read... [14:04:57]Read from MH i2c: E2 0E 00 9D 2A 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 E0 [14:04:57]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [14:04:57]wFMCommunicate OK [14:04:57]SAM_PROTO_GetShiftState done [14:04:57]FM_GetShiftState done [14:04:57]req_shift_opened done [14:04:57]requested_item shift.open_date is exist - process it [14:04:57]req_shift_open_date [14:04:57]req_shift_open_date done [14:04:57]produce_requested_data done [14:04:57]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68597,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [14:04:57]process_action_free close_receipt [14:04:57]json_value_free [14:04:57]json_value_free done [14:04:57]process_json_proto returns [14:04:57]Send response to host [14:04:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68597,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [14:04:57]free response buf [14:04:57]execute_script done [14:04:57]execute_script returns [14:04:57]free content buf [14:04:57]Sock 9.Close socket [14:04:57]Sock 9.Thread stoped [14:05:00]OFD Sender: No OFD packet to send [14:05:05]OFD Sender: No OFD packet to send [14:05:11]OFD Sender: No OFD packet to send [14:05:16]OFD Sender: No OFD packet to send [14:05:21]OFD Sender: No OFD packet to send [14:05:26]OFD Sender: No OFD packet to send [14:05:31]OFD Sender: No OFD packet to send [14:05:36]OFD Sender: No OFD packet to send [14:05:41]OFD Sender: No OFD packet to send [14:05:46]OFD Sender: No OFD packet to send [14:05:51]OFD Sender: No OFD packet to send [14:05:56]OFD Sender: No OFD packet to send [14:06:01]OFD Sender: No OFD packet to send [14:06:06]OFD Sender: No OFD packet to send [14:06:11]OFD Sender: No OFD packet to send [14:06:16]OFD Sender: No OFD packet to send [14:06:21]OFD Sender: No OFD packet to send [14:06:26]OFD Sender: No OFD packet to send [14:06:31]OFD Sender: No OFD packet to send [14:06:36]OFD Sender: No OFD packet to send [14:06:41]OFD Sender: No OFD packet to send [14:06:46]OFD Sender: No OFD packet to send [14:06:51]OFD Sender: No OFD packet to send [14:06:56]OFD Sender: No OFD packet to send [14:07:01]OFD Sender: No OFD packet to send [14:07:06]OFD Sender: No OFD packet to send [14:07:11]OFD Sender: No OFD packet to send [14:07:16]OFD Sender: No OFD packet to send [14:07:21]OFD Sender: No OFD packet to send [14:07:26]OFD Sender: No OFD packet to send [14:07:31]OFD Sender: No OFD packet to send [14:07:36]OFD Sender: No OFD packet to send [14:07:41]OFD Sender: No OFD packet to send [14:07:46]OFD Sender: No OFD packet to send [14:07:51]OFD Sender: No OFD packet to send [14:07:56]OFD Sender: No OFD packet to send [14:08:01]OFD Sender: No OFD packet to send [14:08:06]OFD Sender: No OFD packet to send [14:08:11]OFD Sender: No OFD packet to send [14:08:16]OFD Sender: No OFD packet to send [14:08:21]OFD Sender: No OFD packet to send [14:08:26]OFD Sender: No OFD packet to send [14:08:31]OFD Sender: No OFD packet to send [14:08:36]OFD Sender: No OFD packet to send [14:08:41]OFD Sender: No OFD packet to send [14:08:46]OFD Sender: No OFD packet to send [14:08:51]OFD Sender: No OFD packet to send [14:08:56]OFD Sender: No OFD packet to send [14:09:01]OFD Sender: No OFD packet to send [14:09:06]OFD Sender: No OFD packet to send [14:09:11]OFD Sender: No OFD packet to send [14:09:16]OFD Sender: No OFD packet to send [14:09:21]OFD Sender: No OFD packet to send [14:09:26]OFD Sender: No OFD packet to send [14:09:31]OFD Sender: No OFD packet to send [14:09:36]OFD Sender: No OFD packet to send [14:09:41]OFD Sender: No OFD packet to send [14:09:46]OFD Sender: No OFD packet to send [14:09:51]OFD Sender: No OFD packet to send [14:09:56]OFD Sender: No OFD packet to send [14:10:01]OFD Sender: No OFD packet to send [14:10:06]OFD Sender: No OFD packet to send [14:10:11]OFD Sender: No OFD packet to send [14:10:16]OFD Sender: No OFD packet to send [14:10:21]OFD Sender: No OFD packet to send [14:10:26]OFD Sender: No OFD packet to send [14:10:31]OFD Sender: No OFD packet to send [14:10:36]OFD Sender: No OFD packet to send [14:10:41]OFD Sender: No OFD packet to send [14:10:46]OFD Sender: No OFD packet to send [14:10:51]OFD Sender: No OFD packet to send [14:10:56]OFD Sender: No OFD packet to send [14:11:01]OFD Sender: No OFD packet to send [14:11:06]OFD Sender: No OFD packet to send [14:11:11]OFD Sender: No OFD packet to send [14:11:16]OFD Sender: No OFD packet to send [14:11:21]OFD Sender: No OFD packet to send [14:11:26]OFD Sender: No OFD packet to send [14:11:31]OFD Sender: No OFD packet to send [14:11:36]OFD Sender: No OFD packet to send [14:11:41]OFD Sender: No OFD packet to send [14:11:46]OFD Sender: No OFD packet to send [14:11:51]OFD Sender: No OFD packet to send [14:11:56]OFD Sender: No OFD packet to send [14:12:01]OFD Sender: No OFD packet to send [14:12:06]OFD Sender: No OFD packet to send [14:12:11]OFD Sender: No OFD packet to send [14:12:16]OFD Sender: No OFD packet to send [14:12:21]OFD Sender: No OFD packet to send [14:12:26]OFD Sender: No OFD packet to send [14:12:31]OFD Sender: No OFD packet to send [14:12:36]OFD Sender: No OFD packet to send [14:12:41]OFD Sender: No OFD packet to send [14:12:46]OFD Sender: No OFD packet to send [14:12:51]OFD Sender: No OFD packet to send [14:12:56]OFD Sender: No OFD packet to send [14:13:01]OFD Sender: No OFD packet to send [14:13:06]OFD Sender: No OFD packet to send [14:13:11]OFD Sender: No OFD packet to send [14:13:16]OFD Sender: No OFD packet to send [14:13:21]OFD Sender: No OFD packet to send [14:13:26]OFD Sender: No OFD packet to send [14:13:31]OFD Sender: No OFD packet to send [14:13:36]OFD Sender: No OFD packet to send [14:13:41]OFD Sender: No OFD packet to send [14:13:46]OFD Sender: No OFD packet to send [14:13:51]OFD Sender: No OFD packet to send [14:13:56]OFD Sender: No OFD packet to send [14:14:01]OFD Sender: No OFD packet to send [14:14:06]OFD Sender: No OFD packet to send [14:14:11]OFD Sender: No OFD packet to send [14:14:16]OFD Sender: No OFD packet to send [14:14:21]OFD Sender: No OFD packet to send [14:14:26]OFD Sender: No OFD packet to send [14:14:31]OFD Sender: No OFD packet to send [14:14:36]OFD Sender: No OFD packet to send [14:14:41]OFD Sender: No OFD packet to send [14:14:46]OFD Sender: No OFD packet to send [14:14:51]OFD Sender: No OFD packet to send [14:14:56]OFD Sender: No OFD packet to send [14:15:01]OFD Sender: No OFD packet to send [14:15:06]OFD Sender: No OFD packet to send [14:15:11]OFD Sender: No OFD packet to send [14:15:16]OFD Sender: No OFD packet to send [14:15:21]OFD Sender: No OFD packet to send [14:15:26]OFD Sender: No OFD packet to send [14:15:31]OFD Sender: No OFD packet to send [14:15:36]OFD Sender: No OFD packet to send [14:15:41]OFD Sender: No OFD packet to send [14:15:46]OFD Sender: No OFD packet to send [14:15:51]OFD Sender: No OFD packet to send [14:15:56]OFD Sender: No OFD packet to send [14:16:01]OFD Sender: No OFD packet to send [14:16:06]OFD Sender: No OFD packet to send [14:16:10]accept exits with 7 [14:16:10]New connection [14:16:10]New thread 3067084132 created [14:16:10]Thread 3067227492 joined [14:16:10]Waiting for new connection... [14:16:10] Sock 7.Parse request [14:16:10]Sock 7.Check first char [14:16:10]Sock 7.First char is OK [14:16:10]request: POST /json_proto HTTP/1.0 [14:16:10]Method: POST [14:16:10]URL: /json_proto [14:16:10]Method is POST - this is cgi request [14:16:10]url: /json_proto [14:16:10]query_string will be loaded in cgi processing [14:16:10]execute_cgi json_proto POST (null) [14:16:10]execute_cgi path=json_proto method=POST [14:16:10]POST find Content-Length [14:16:10]Host: 172.17.36.132:8080 [14:16:10]Content-Length: 677 [14:16:10]Content-Type: application/json [14:16:10] [14:16:10]POST finish read [14:16:10]Found Content-Length = 677 [14:16:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706728", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:16:10]execute_script... [14:16: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)706728", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:16:10]POST & json_proto [14:16:10]process_json_proto [14:16:10]json parsed OK: [14:16:10]protocol is kg_v1.0 [14:16:10]action value=close_receipt [14:16:10]process_action close_receipt [14:16:10]cmd_close_receipt [14:16:10]MH_GetDate [14:16:10]Write to MH i2c: F0 00 00 9E 2A B7 [14:16:10]Write i2c OK [14:16:10]MH_I2C_Read... [14:16:10]Read from MH i2c: F0 [14:16:10]MH_I2C_Read... [14:16:10]Read from MH i2c: F0 09 00 [14:16:10]MH_I2C_Read... [14:16:10]Read from MH i2c: F0 09 00 9E 2A 00 AF 21 5F 66 B2 22 B0 64 3D [14:16:10]GetLastDocTimeStamp 1717509897 [14:16:10]current date 1717510575 [14:16:10]FM_GetShiftState [14:16:10]SAM_PROTO_GetShiftState [14:16:10]wFMCommunicate request_size=4 [14:16:10]MH_SAM_APDU [14:16:10]CAPDU: 80 13 01 00 [14:16:10]Write to MH i2c: E2 08 00 9F 2A 80 13 01 00 00 00 00 00 46 [14:16:10]Write i2c OK [14:16:10]MH_I2C_Read... [14:16:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:16:10]Read from MH i2c: E2 [14:16:10]MH_I2C_Read... [14:16:10]Read from MH i2c: E2 0E 00 [14:16:10]MH_I2C_Read... [14:16:10]Read from MH i2c: E2 0E 00 9F 2A 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 E2 [14:16:10]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [14:16:10]wFMCommunicate OK [14:16:10]SAM_PROTO_GetShiftState done [14:16:10]FM_GetShiftState done [14:16:10]opened in 1717460590 [14:16:10]opened+sec_in_day 1717546990 [14:16:10]quantity*price = 50041 [14:16:10]sum+1 = 50042 [14:16:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 96 04.06.2024 14:16 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68598 ФПД: 172262003201998 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T141615&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68598&fm=172262003201998&tin=02508201610067®Number=0000000000098096&sum=50000 [14:16:11]StoreToDocumentArchive [14:16:11]shift 325 fd 68598 [14:16:11]save to /storage/0325/doc_00068598 [14:16:11]save last doc name /storage/0325/doc_00068598 to /storage/kkm_last_doc_name [14:16:11]save OK [14:16:11]Clear old archive folders... [14:16:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:16:11]tlvbuf is B6F1D610 [14:16:11]SAM_PROTO_ClearQueue [14:16:11]wFMCommunicate request_size=4 [14:16:11]MH_SAM_APDU [14:16:11]CAPDU: 80 09 00 00 [14:16:11]Write to MH i2c: E2 08 00 AC 2A 80 09 00 00 00 00 00 00 48 [14:16:11]Write i2c OK [14:16:11]MH_I2C_Read... [14:16:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:16:11]Read from MH i2c: E2 [14:16:11]MH_I2C_Read... [14:16:11]Read from MH i2c: E2 03 00 [14:16:11]MH_I2C_Read... [14:16:11]Read from MH i2c: E2 03 00 AC 2A 00 90 00 4A [14:16:11]RAPDU: 90 00 [14:16:11]wFMCommunicate OK [14:16:11]SAM_PROTO_ClearQueue done [14:16:11]KKMCreateOFDPacket [14:16:11]OFDProtocolAddRootSTLVToBuf [14:16:11]FM_MakeSignedData [14:16:11]FM_MakeSignedData [14:16:11]SAM_PROTO_SignData [14:16:11]wFMCommunicate request_size=4 [14:16:11]MH_SAM_APDU [14:16:11]CAPDU: 80 0D 01 02 [14:16:11]Write to MH i2c: E2 08 00 AD 2A 80 0D 01 02 00 00 00 00 50 [14:16:11]Write i2c OK [14:16:11]MH_I2C_Read... [14:16:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:16:12]Read from MH i2c: E2 [14:16:12]MH_I2C_Read... [14:16:12]Read from MH i2c: E2 03 00 [14:16:12]MH_I2C_Read... [14:16:12]Read from MH i2c: E2 03 00 AD 2A 00 90 00 4B [14:16:12]RAPDU: 90 00 [14:16:12]wFMCommunicate OK [14:16:12]wFMCommunicate request_size=255 [14:16:12]MH_SAM_APDU [14:16:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 AF 21 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 F6 0B 01 00 35 04 06 00 9C [14:16:12]Write to MH i2c: E2 02 01 AE 2A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 AF 21 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 F6 0B 01 00 35 04 06 00 9C 00 00 B6 [14:16:12]Write i2c OK [14:16:12]MH_I2C_Read... [14:16:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:16:12]Read from MH i2c: E2 [14:16:12]MH_I2C_Read... [14:16:12]Read from MH i2c: E2 03 00 [14:16:12]MH_I2C_Read... [14:16:12]Read from MH i2c: E2 03 00 AE 2A 00 90 00 4C [14:16:12]RAPDU: 90 00 [14:16:12]wFMCommunicate OK [14:16:12]wFMCommunicate request_size=10 [14:16:12]MH_SAM_APDU [14:16:12]CAPDU: 80 0D 02 02 05 AB DF 82 57 CE [14:16:12]Write to MH i2c: E2 0D 00 AF 2A 80 0D 02 02 05 00 AB DF 82 57 CE 00 00 8E [14:16:12]Write i2c OK [14:16:12]MH_I2C_Read... [14:16:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:16:12]Read from MH i2c: E2 [14:16:12]MH_I2C_Read... [14:16:12]Read from MH i2c: E2 03 00 [14:16:12]MH_I2C_Read... [14:16:12]Read from MH i2c: E2 03 00 AF 2A 00 90 00 4D [14:16:12]RAPDU: 90 00 [14:16:12]wFMCommunicate OK [14:16:12]wFMCommunicate request_size=4 [14:16:12]MH_SAM_APDU [14:16:12]CAPDU: 80 0D 03 02 [14:16:12]Write to MH i2c: E2 08 00 B0 2A 80 0D 03 02 00 00 00 00 55 [14:16:12]Write i2c OK [14:16:12]MH_I2C_Read... [14:16:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:16:12]Read from MH i2c: E2 [14:16:12]MH_I2C_Read... [14:16:12]Read from MH i2c: E2 0B 00 [14:16:12]MH_I2C_Read... [14:16:12]Read from MH i2c: E2 0B 00 B0 2A 00 9B C2 CB CA 37 68 BC 9B 90 00 3E [14:16:12]RAPDU: 9B C2 CB CA 37 68 BC 9B 90 00 [14:16:12]wFMCommunicate OK [14:16:12]SAM_PROTO_SignData done [14:16:12]FM_MakeSignedData done [14:16:12]CreateOFDProtocolMessage [14:16:12]wFMCommunicate request_size=4 [14:16:12]MH_SAM_APDU [14:16:12]CAPDU: 80 11 00 00 [14:16:12]Write to MH i2c: E2 08 00 B1 2A 80 11 00 00 00 00 00 00 55 [14:16:12]Write i2c OK [14:16:12]MH_I2C_Read... [14:16:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:16:12]Read from MH i2c: E2 [14:16:12]MH_I2C_Read... [14:16:12]Read from MH i2c: E2 17 00 [14:16:12]MH_I2C_Read... [14:16:12]Read from MH i2c: E2 17 00 B1 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 A0 [14:16:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [14:16:12]wFMCommunicate OK [14:16:12]CreateOFDProtocolMessage done [14:16:12]OFDSenderStorePacket 68598 [14:16:12]StoreOFDPacket docnum=68598 [14:16:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 17 9B 07 01 89 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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 AF 21 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 F6 0B 01 00 35 04 06 00 9C AB DF 82 57 CE 9B C2 CB CA 37 68 BC 9B [14:16:12]CheckFolder [14:16:12]dirname=/storage/ofd_packets [14:16:12]CheckFolder done [14:16:12]ProducePacketName [14:16:12]name=ofd_packets/00068598 [14:16:12]NVStorageSaveData ofd_packets/00068598 [14:16:12]File name is /storage/ofd_packets/00068598 [14:16:12]Write 301 bytes [14:16:12]NVStorageSaveData done [14:16:12]OFDSenderStorePacket done [14:16:12]KKMCreateOFDPacket done [14:16:12]NVStorageSaveData kkm_last_timestamp [14:16:12]File name is /storage/kkm_last_timestamp [14:16:12]Write 4 bytes [14:16:12]NVStorageSaveData done [14:16:12]ExternCall_PrintAddStr [14:16:12]wPrintStart [14:16:12]Write to MH i2c: 01 00 00 B2 2A DC [14:16:12]Write i2c OK [14:16:12]MH_I2C_Read... [14:16:12]Read from MH i2c: 01 [14:16:12]MH_I2C_Read... [14:16:12]Read from MH i2c: 01 07 00 [14:16:12]MH_I2C_Read... [14:16:12]Read from MH i2c: 01 07 00 B2 2A 00 00 00 00 00 FF 0F F1 [14:16:12]RasterBufferAndPrint [14:16:12]line Счет N : (1)706728 [14:16:12]line ИНН: 02508201610067 [14:16:12]line Контрольно-Кассовый Чек [14:16:12]line ПРОДАЖА [14:16:12]line ТРК (МРК, ГНК) : 32 [14:16:12]line Товар: 2710124130 [14:16:12]line Аи-92-К-4 [14:16:12]line 7.480 * 66.90 [14:16:12]line = 500.41 [14:16:12]line НДС 12% НСП 1% [14:16:12]line > о реализуемом товаре [14:16:12]line ОКРУГЛЕНИЕ: -0.41 [14:16:12]line ИТОГО: 500.00 [14:16:12]line Внесено: 500.00 [14:16:12]line СДАЧА: 0.00 [14:16:12]line НСП 1% : 4.43 [14:16:12]line НДС 12% : 53.14 [14:16:12]line Наличными: 500.00 [14:16:12]line Безнал.: 0.00 [14:16:12]line Место: АЗС № 62 "Партнер Нефть" [14:16:12]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [14:16:12]line СНО: Общий режим [14:16:12]line Чек 96 04.06.2024 14:16 [14:16:12]line Смена: 325 ФФД: 1.0 [14:16:12]line ЗНМ: 0300000181 [14:16:12]line РНМ: 0000000000098096 [14:16:12]line Версия ККМ: 001 [14:16:12]line ФМ: 0000000000965400 [14:16:12]line ФД: 68598 [14:16:12]line ФПД: 172262003201998 [14:16:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T141615&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68598&fm=172262003201998&tin=02508201610067®Number=0000000000098096&sum=50000 [14:16:12]OFD Sender: Processing packet 68598 [packets to send 26, broken 25] [14:16:12]ProducePacketName [14:16:12]name=ofd_packets/00068598 [14:16:12]OFD Sender: To server: pG, [14:16:12]CommunicateWithHost lk.salyk.kg:30040 [14:16:12]ConnectInit lk.salyk.kg [14:16:12]written 0, free lines is 4095 [14:16:12]Connected sock=9 [14:16:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 17 9B 07 01 89 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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 AF 21 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 F6 0B 01 00 35 04 06 00 9C AB DF 82 57 CE 9B C2 CB CA 37 68 BC 9B [14:16:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 80 30 47 00 8C E5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 F6 0B 01 00 F4 03 04 00 A7 C8 5E 66 B6 04 01 00 00 97 82 4B 0D 78 62 2B C8 [14:16:13]CommunicateWithHost err = 0 [14:16:13]CheckOFDResponse [14:16:13]1017 (14) - 77093643461234 [14:16:13]1041 (16) - 0000000000965400 [14:16:13]1040 (4) - 68598 [14:16:13]1012 (4) - 04.06.2024 07:56 [14:16:13]1206 (1) - 0 [14:16:13]OFD Sender: Remove packet 68598 [14:16:13]ProducePacketName [14:16:13]name=ofd_packets/00068598 [14:16:13]NVStorageDeleteData [14:16:13]Write to MH i2c: 01 00 00 DD 2A 07 [14:16:13]Write i2c OK [14:16:13]MH_I2C_Read... [14:16:13]Read from MH i2c: 01 [14:16:13]MH_I2C_Read... [14:16:13]Read from MH i2c: 01 07 00 [14:16:13]MH_I2C_Read... [14:16:13]Read from MH i2c: 01 07 00 DD 2A 00 00 00 00 00 E1 0C FB [14:16:13]RasterBufferAndPrint [14:16:13]line [14:16:13]line [14:16:13]line [14:16:13]line [14:16:13]line [14:16:13]written 0, free lines is 3306 [14:16:13]MH_Cut [14:16:13]Write to MH i2c: D1 01 00 E4 2A 01 E0 [14:16:13]Write i2c OK [14:16:13]MH_I2C_Read... [14:16:13]Read from MH i2c: D1 [14:16:13]MH_I2C_Read... [14:16:13]Read from MH i2c: D1 01 00 [14:16:13]MH_I2C_Read... [14:16:13]Read from MH i2c: D1 01 00 E4 2A 00 DF [14:16:13]Write to MH i2c: 01 00 00 E5 2A 0F [14:16:13]Write i2c OK [14:16:13]MH_I2C_Read... [14:16:13]OFD Sender: No OFD packet to send [14:16:14]*** Cut start [14:16:14]*** Partial cut [14:16:14]*** CUTSNS_PIN = 1 [14:16:14]*** CUTSNS_PIN = 0 [14:16:14]*** Brake cut motor [14:16:14]Read from MH i2c: 01 [14:16:14]MH_I2C_Read... [14:16:14]*** Stop cut motor [14:16:14]*** Cut end [14:16:14]Read from MH i2c: 01 07 00 [14:16:14]MH_I2C_Read... [14:16:14]Read from MH i2c: 01 07 00 E5 2A 00 00 00 00 00 FF 0F 24 [14:16:14]process_action close_receipt done [14:16:14]requested_data is exist [14:16:14]produce_requested_data [14:16:14]requested_item fm.sn is exist - process it [14:16:14]wFMCommunicate request_size=4 [14:16:14]MH_SAM_APDU [14:16:14]CAPDU: 80 11 00 00 [14:16:14]Write to MH i2c: E2 08 00 E6 2A 80 11 00 00 00 00 00 00 8A [14:16:14]Write i2c OK [14:16:14]MH_I2C_Read... [14:16:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:16:14]Read from MH i2c: E2 [14:16:14]MH_I2C_Read... [14:16:14]Read from MH i2c: E2 17 00 [14:16:14]MH_I2C_Read... [14:16:14]Read from MH i2c: E2 17 00 E6 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 D5 [14:16:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [14:16:14]wFMCommunicate OK [14:16:14]requested_item fd.num is exist - process it [14:16:14]SAM_PROTO_GetFieldsCounters [14:16:14]wFMCommunicate request_size=4 [14:16:14]MH_SAM_APDU [14:16:14]CAPDU: 80 13 00 00 [14:16:14]Write to MH i2c: E2 08 00 E7 2A 80 13 00 00 00 00 00 00 8D [14:16:14]Write i2c OK [14:16:14]MH_I2C_Read... [14:16:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:16:14]Read from MH i2c: E2 [14:16:14]MH_I2C_Read... [14:16:14]Read from MH i2c: E2 62 00 [14:16:14]MH_I2C_Read... [14:16:14]Read from MH i2c: E2 62 00 E7 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 F6 0B 01 00 0E 04 04 00 45 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 15 [14:16:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 F6 0B 01 00 0E 04 04 00 45 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 [14:16:14]wFMCommunicate OK [14:16:14]SAM_PROTO_GetFieldsCounters done [14:16:14]requested_item shift.num is exist - process it [14:16:14]requested_item shift.opened is exist - process it [14:16:14]req_shift_opened [14:16:14]FM_GetShiftState [14:16:14]SAM_PROTO_GetShiftState [14:16:14]wFMCommunicate request_size=4 [14:16:14]MH_SAM_APDU [14:16:14]CAPDU: 80 13 01 00 [14:16:14]Write to MH i2c: E2 08 00 E8 2A 80 13 01 00 00 00 00 00 8F [14:16:14]Write i2c OK [14:16:14]MH_I2C_Read... [14:16:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:16:14]Read from MH i2c: E2 [14:16:14]MH_I2C_Read... [14:16:14]Read from MH i2c: E2 0E 00 [14:16:14]MH_I2C_Read... [14:16:14]Read from MH i2c: E2 0E 00 E8 2A 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 2B [14:16:14]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [14:16:14]wFMCommunicate OK [14:16:14]SAM_PROTO_GetShiftState done [14:16:14]FM_GetShiftState done [14:16:14]req_shift_opened done [14:16:14]requested_item shift.open_date is exist - process it [14:16:14]req_shift_open_date [14:16:14]req_shift_open_date done [14:16:14]produce_requested_data done [14:16:14]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68598,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [14:16:14]process_action_free close_receipt [14:16:14]json_value_free [14:16:14]json_value_free done [14:16:14]process_json_proto returns [14:16:14]Send response to host [14:16:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68598,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [14:16:14]free response buf [14:16:14]execute_script done [14:16:14]execute_script returns [14:16:14]free content buf [14:16:14]Sock 7.Close socket [14:16:14]Sock 7.Thread stoped [14:16:18]OFD Sender: No OFD packet to send [14:16:23]OFD Sender: No OFD packet to send [14:16:28]OFD Sender: No OFD packet to send [14:16:33]OFD Sender: No OFD packet to send [14:16:38]OFD Sender: No OFD packet to send [14:16:43]OFD Sender: No OFD packet to send [14:16:48]OFD Sender: No OFD packet to send [14:16:52]accept exits with 10 [14:16:52]New connection [14:16:52]New thread 3067227492 created [14:16:52]Thread 3067084132 joined [14:16:52]Waiting for new connection... [14:16:52] Sock 10.Parse request [14:16:52]Sock 10.Check first char [14:16:52]Sock 10.First char is OK [14:16:52]request: POST /json_proto HTTP/1.0 [14:16:52]Method: POST [14:16:52]URL: /json_proto [14:16:52]Method is POST - this is cgi request [14:16:52]url: /json_proto [14:16:52]query_string will be loaded in cgi processing [14:16:52]execute_cgi json_proto POST (null) [14:16:52]execute_cgi path=json_proto method=POST [14:16:52]POST find Content-Length [14:16:52]Host: 172.17.36.132:8080 [14:16:52]Content-Length: 675 [14:16:52]Content-Type: application/json [14:16:52] [14:16:52]POST finish read [14:16:52]Found Content-Length = 675 [14:16:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706729", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.90, "quantity" : 14.730, "sum" : 1000.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:16:52]execute_script... [14:16:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706729", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.90, "quantity" : 14.730, "sum" : 1000.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:16:52]POST & json_proto [14:16:52]process_json_proto [14:16:52]json parsed OK: [14:16:52]protocol is kg_v1.0 [14:16:52]action value=close_receipt [14:16:52]process_action close_receipt [14:16:52]cmd_close_receipt [14:16:52]MH_GetDate [14:16:52]Write to MH i2c: F0 00 00 E9 2A 02 [14:16:52]Write i2c OK [14:16:52]MH_I2C_Read... [14:16:52]Read from MH i2c: F0 [14:16:52]MH_I2C_Read... [14:16:52]Read from MH i2c: F0 09 00 [14:16:52]MH_I2C_Read... [14:16:52]Read from MH i2c: F0 09 00 E9 2A 00 D9 21 5F 66 B2 22 B0 64 B2 [14:16:52]GetLastDocTimeStamp 1717510575 [14:16:52]current date 1717510617 [14:16:52]FM_GetShiftState [14:16:52]SAM_PROTO_GetShiftState [14:16:52]wFMCommunicate request_size=4 [14:16:52]MH_SAM_APDU [14:16:52]CAPDU: 80 13 01 00 [14:16:52]Write to MH i2c: E2 08 00 EA 2A 80 13 01 00 00 00 00 00 91 [14:16:52]Write i2c OK [14:16:52]MH_I2C_Read... [14:16:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:16:52]Read from MH i2c: E2 [14:16:52]MH_I2C_Read... [14:16:52]Read from MH i2c: E2 0E 00 [14:16:52]MH_I2C_Read... [14:16:52]Read from MH i2c: E2 0E 00 EA 2A 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 2D [14:16:52]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [14:16:52]wFMCommunicate OK [14:16:52]SAM_PROTO_GetShiftState done [14:16:52]FM_GetShiftState done [14:16:52]opened in 1717460590 [14:16:52]opened+sec_in_day 1717546990 [14:16:52]quantity*price = 100016 [14:16:52]sum+1 = 100018 [14:16:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.17 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 97 04.06.2024 14:16 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68599 ФПД: 121157850565297 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T141657&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68599&fm=121157850565297&tin=02508201610067®Number=0000000000098096&sum=100000 [14:16:53]StoreToDocumentArchive [14:16:53]shift 325 fd 68599 [14:16:53]save to /storage/0325/doc_00068599 [14:16:53]save last doc name /storage/0325/doc_00068599 to /storage/kkm_last_doc_name [14:16:53]save OK [14:16:53]Clear old archive folders... [14:16:53]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:16:53]tlvbuf is 00A10880 [14:16:53]SAM_PROTO_ClearQueue [14:16:53]wFMCommunicate request_size=4 [14:16:53]MH_SAM_APDU [14:16:53]CAPDU: 80 09 00 00 [14:16:53]Write to MH i2c: E2 08 00 F7 2A 80 09 00 00 00 00 00 00 93 [14:16:53]Write i2c OK [14:16:53]MH_I2C_Read... [14:16:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:16:53]Read from MH i2c: E2 [14:16:53]MH_I2C_Read... [14:16:53]Read from MH i2c: E2 03 00 [14:16:53]MH_I2C_Read... [14:16:53]Read from MH i2c: E2 03 00 F7 2A 00 90 00 95 [14:16:53]RAPDU: 90 00 [14:16:53]wFMCommunicate OK [14:16:53]SAM_PROTO_ClearQueue done [14:16:53]KKMCreateOFDPacket [14:16:53]OFDProtocolAddRootSTLVToBuf [14:16:53]FM_MakeSignedData [14:16:53]FM_MakeSignedData [14:16:53]SAM_PROTO_SignData [14:16:53]wFMCommunicate request_size=4 [14:16:53]MH_SAM_APDU [14:16:53]CAPDU: 80 0D 01 02 [14:16:53]Write to MH i2c: E2 08 00 F8 2A 80 0D 01 02 00 00 00 00 9B [14:16:53]Write i2c OK [14:16:53]MH_I2C_Read... [14:16:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:16:53]Read from MH i2c: E2 [14:16:53]MH_I2C_Read... [14:16:53]Read from MH i2c: E2 03 00 [14:16:53]MH_I2C_Read... [14:16:53]Read from MH i2c: E2 03 00 F8 2A 00 90 00 96 [14:16:53]RAPDU: 90 00 [14:16:53]wFMCommunicate OK [14:16:53]wFMCommunicate request_size=255 [14:16:53]MH_SAM_APDU [14:16:53]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 39 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 B1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 D9 21 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 F7 0B 01 00 35 04 06 00 [14:16:53]Write to MH i2c: E2 02 01 F9 2A 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 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 39 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 B1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 D9 21 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 F7 0B 01 00 35 04 06 00 00 00 3E [14:16:53]OFD Sender: No OFD packet to send [14:16:53]Write i2c OK [14:16:53]MH_I2C_Read... [14:16:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:16:53]Read from MH i2c: E2 [14:16:53]MH_I2C_Read... [14:16:53]Read from MH i2c: E2 03 00 [14:16:53]MH_I2C_Read... [14:16:53]Read from MH i2c: E2 03 00 F9 2A 00 90 00 97 [14:16:53]RAPDU: 90 00 [14:16:53]wFMCommunicate OK [14:16:53]wFMCommunicate request_size=11 [14:16:53]MH_SAM_APDU [14:16:53]CAPDU: 80 0D 02 02 06 6E 31 42 A5 0A B1 [14:16:53]Write to MH i2c: E2 0E 00 FA 2A 80 0D 02 02 06 00 6E 31 42 A5 0A B1 00 00 EB [14:16:53]Write i2c OK [14:16:53]MH_I2C_Read... [14:16:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:16:53]Read from MH i2c: E2 [14:16:53]MH_I2C_Read... [14:16:53]Read from MH i2c: E2 03 00 [14:16:53]MH_I2C_Read... [14:16:53]Read from MH i2c: E2 03 00 FA 2A 00 90 00 98 [14:16:53]RAPDU: 90 00 [14:16:53]wFMCommunicate OK [14:16:53]wFMCommunicate request_size=4 [14:16:53]MH_SAM_APDU [14:16:53]CAPDU: 80 0D 03 02 [14:16:53]Write to MH i2c: E2 08 00 FB 2A 80 0D 03 02 00 00 00 00 A0 [14:16:53]Write i2c OK [14:16:53]MH_I2C_Read... [14:16:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:16:53]Read from MH i2c: E2 [14:16:53]MH_I2C_Read... [14:16:53]Read from MH i2c: E2 0B 00 [14:16:53]MH_I2C_Read... [14:16:53]Read from MH i2c: E2 0B 00 FB 2A 00 9F 82 9B 78 C7 27 D8 4A 90 00 E5 [14:16:53]RAPDU: 9F 82 9B 78 C7 27 D8 4A 90 00 [14:16:53]wFMCommunicate OK [14:16:53]SAM_PROTO_SignData done [14:16:53]FM_MakeSignedData done [14:16:53]CreateOFDProtocolMessage [14:16:53]wFMCommunicate request_size=4 [14:16:53]MH_SAM_APDU [14:16:53]CAPDU: 80 11 00 00 [14:16:53]Write to MH i2c: E2 08 00 FC 2A 80 11 00 00 00 00 00 00 A0 [14:16:53]Write i2c OK [14:16:53]MH_I2C_Read... [14:16:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:16:54]Read from MH i2c: E2 [14:16:54]MH_I2C_Read... [14:16:54]Read from MH i2c: E2 17 00 [14:16:54]MH_I2C_Read... [14:16:54]Read from MH i2c: E2 17 00 FC 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 EB [14:16:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [14:16:54]wFMCommunicate OK [14:16:54]CreateOFDProtocolMessage done [14:16:54]OFDSenderStorePacket 68599 [14:16:54]StoreOFDPacket docnum=68599 [14:16:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 3B 51 08 01 EA 77 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 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 39 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 B1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 D9 21 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 F7 0B 01 00 35 04 06 00 6E 31 42 A5 0A B1 9F 82 9B 78 C7 27 D8 4A [14:16:54]CheckFolder [14:16:54]dirname=/storage/ofd_packets [14:16:54]CheckFolder done [14:16:54]ProducePacketName [14:16:54]name=ofd_packets/00068599 [14:16:54]NVStorageSaveData ofd_packets/00068599 [14:16:54]File name is /storage/ofd_packets/00068599 [14:16:54]Write 302 bytes [14:16:54]NVStorageSaveData done [14:16:54]OFDSenderStorePacket done [14:16:54]KKMCreateOFDPacket done [14:16:54]NVStorageSaveData kkm_last_timestamp [14:16:54]File name is /storage/kkm_last_timestamp [14:16:54]Write 4 bytes [14:16:54]NVStorageSaveData done [14:16:54]ExternCall_PrintAddStr [14:16:54]wPrintStart [14:16:54]Write to MH i2c: 01 00 00 FD 2A 27 [14:16:54]Write i2c OK [14:16:54]MH_I2C_Read... [14:16:54]Read from MH i2c: 01 [14:16:54]MH_I2C_Read... [14:16:54]Read from MH i2c: 01 07 00 [14:16:54]MH_I2C_Read... [14:16:54]Read from MH i2c: 01 07 00 FD 2A 00 00 00 00 00 FF 0F 3C [14:16:54]RasterBufferAndPrint [14:16:54]line Счет N : (1)706729 [14:16:54]line ИНН: 02508201610067 [14:16:54]line Контрольно-Кассовый Чек [14:16:54]line ПРОДАЖА [14:16:54]line ТРК (МРК, ГНК) : 12 [14:16:54]line Товар: 2710124130 [14:16:54]line Super-92-К-5 [14:16:54]line 14.730 * 67.90 [14:16:54]line = 1000.17 [14:16:54]line НДС 12% НСП 1% [14:16:54]line > о реализуемом товаре [14:16:54]line ОКРУГЛЕНИЕ: -0.17 [14:16:54]line ИТОГО: 1000.00 [14:16:54]line Внесено: 1000.00 [14:16:54]line СДАЧА: 0.00 [14:16:54]line НСП 1% : 8.85 [14:16:54]line НДС 12% : 106.21 [14:16:54]line Наличными: 1000.00 [14:16:54]line Безнал.: 0.00 [14:16:54]line Место: АЗС № 62 "Партнер Нефть" [14:16:54]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [14:16:54]line СНО: Общий режим [14:16:54]line Чек 97 04.06.2024 14:16 [14:16:54]line Смена: 325 ФФД: 1.0 [14:16:54]line ЗНМ: 0300000181 [14:16:54]line РНМ: 0000000000098096 [14:16:54]line Версия ККМ: 001 [14:16:54]line ФМ: 0000000000965400 [14:16:54]line ФД: 68599 [14:16:54]line ФПД: 121157850565297 [14:16:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T141657&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68599&fm=121157850565297&tin=02508201610067®Number=0000000000098096&sum=100000 [14:16:54]OFD Sender: Processing packet 68599 [packets to send 26, broken 25] [14:16:54]ProducePacketName [14:16:54]name=ofd_packets/00068599 [14:16:54]OFD Sender: To server: pG, [14:16:54]CommunicateWithHost lk.salyk.kg:30040 [14:16:54]ConnectInit lk.salyk.kg [14:16:54]written 0, free lines is 4095 [14:16:54]Connected sock=9 [14:16:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 3B 51 08 01 EA 77 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 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 39 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 B1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 D9 21 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 F7 0B 01 00 35 04 06 00 6E 31 42 A5 0A B1 9F 82 9B 78 C7 27 D8 4A [14:16:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 8B 5D 47 00 85 05 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 F7 0B 01 00 F4 03 04 00 D1 C8 5E 66 B6 04 01 00 00 D2 7B 00 43 96 23 1A 12 [14:16:54]CommunicateWithHost err = 0 [14:16:54]CheckOFDResponse [14:16:54]1017 (14) - 77093643461234 [14:16:54]1041 (16) - 0000000000965400 [14:16:54]1040 (4) - 68599 [14:16:54]1012 (4) - 04.06.2024 07:57 [14:16:54]1206 (1) - 0 [14:16:54]OFD Sender: Remove packet 68599 [14:16:54]ProducePacketName [14:16:54]name=ofd_packets/00068599 [14:16:54]NVStorageDeleteData [14:16:54]Write to MH i2c: 01 00 00 28 2B 53 [14:16:54]Write i2c OK [14:16:54]MH_I2C_Read... [14:16:54]Read from MH i2c: 01 [14:16:54]MH_I2C_Read... [14:16:54]Read from MH i2c: 01 07 00 [14:16:54]MH_I2C_Read... [14:16:54]Read from MH i2c: 01 07 00 28 2B 00 00 00 00 00 D9 0C 3F [14:16:54]RasterBufferAndPrint [14:16:54]line [14:16:54]line [14:16:54]line [14:16:54]line [14:16:54]line [14:16:54]written 0, free lines is 3296 [14:16:54]MH_Cut [14:16:54]Write to MH i2c: D1 01 00 2F 2B 01 2C [14:16:54]Write i2c OK [14:16:54]MH_I2C_Read... [14:16:54]Read from MH i2c: D1 [14:16:54]MH_I2C_Read... [14:16:54]Read from MH i2c: D1 01 00 [14:16:54]MH_I2C_Read... [14:16:54]Read from MH i2c: D1 01 00 2F 2B 00 2B [14:16:54]Write to MH i2c: 01 00 00 30 2B 5B [14:16:54]Write i2c OK [14:16:54]MH_I2C_Read... [14:16:55]OFD Sender: No OFD packet to send [14:16:55]*** Cut start [14:16:55]*** Partial cut [14:16:55]*** CUTSNS_PIN = 1 [14:16:55]*** CUTSNS_PIN = 0 [14:16:55]*** Brake cut motor [14:16:56]Read from MH i2c: 01 [14:16:56]MH_I2C_Read... [14:16:56]*** Stop cut motor [14:16:56]*** Cut end [14:16:56]Read from MH i2c: 01 07 00 [14:16:56]MH_I2C_Read... [14:16:56]Read from MH i2c: 01 07 00 30 2B 00 00 00 00 00 FF 0F 70 [14:16:56]process_action close_receipt done [14:16:56]requested_data is exist [14:16:56]produce_requested_data [14:16:56]requested_item fm.sn is exist - process it [14:16:56]wFMCommunicate request_size=4 [14:16:56]MH_SAM_APDU [14:16:56]CAPDU: 80 11 00 00 [14:16:56]Write to MH i2c: E2 08 00 31 2B 80 11 00 00 00 00 00 00 D6 [14:16:56]Write i2c OK [14:16:56]MH_I2C_Read... [14:16:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:16:56]Read from MH i2c: E2 [14:16:56]MH_I2C_Read... [14:16:56]Read from MH i2c: E2 17 00 [14:16:56]MH_I2C_Read... [14:16:56]Read from MH i2c: E2 17 00 31 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 21 [14:16:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [14:16:56]wFMCommunicate OK [14:16:56]requested_item fd.num is exist - process it [14:16:56]SAM_PROTO_GetFieldsCounters [14:16:56]wFMCommunicate request_size=4 [14:16:56]MH_SAM_APDU [14:16:56]CAPDU: 80 13 00 00 [14:16:56]Write to MH i2c: E2 08 00 32 2B 80 13 00 00 00 00 00 00 D9 [14:16:56]Write i2c OK [14:16:56]MH_I2C_Read... [14:16:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:16:56]Read from MH i2c: E2 [14:16:56]MH_I2C_Read... [14:16:56]Read from MH i2c: E2 62 00 [14:16:56]MH_I2C_Read... [14:16:56]Read from MH i2c: E2 62 00 32 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 F7 0B 01 00 0E 04 04 00 45 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 65 [14:16:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 F7 0B 01 00 0E 04 04 00 45 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 [14:16:56]wFMCommunicate OK [14:16:56]SAM_PROTO_GetFieldsCounters done [14:16:56]requested_item shift.num is exist - process it [14:16:56]requested_item shift.opened is exist - process it [14:16:56]req_shift_opened [14:16:56]FM_GetShiftState [14:16:56]SAM_PROTO_GetShiftState [14:16:56]wFMCommunicate request_size=4 [14:16:56]MH_SAM_APDU [14:16:56]CAPDU: 80 13 01 00 [14:16:56]Write to MH i2c: E2 08 00 33 2B 80 13 01 00 00 00 00 00 DB [14:16:56]Write i2c OK [14:16:56]MH_I2C_Read... [14:16:56]Read from MH i2c: E2 [14:16:56]MH_I2C_Read... [14:16:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:16:56]Read from MH i2c: E2 0E 00 [14:16:56]MH_I2C_Read... [14:16:56]Read from MH i2c: E2 0E 00 33 2B 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 77 [14:16:56]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [14:16:56]wFMCommunicate OK [14:16:56]SAM_PROTO_GetShiftState done [14:16:56]FM_GetShiftState done [14:16:56]req_shift_opened done [14:16:56]requested_item shift.open_date is exist - process it [14:16:56]req_shift_open_date [14:16:56]req_shift_open_date done [14:16:56]produce_requested_data done [14:16:56]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68599,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [14:16:56]process_action_free close_receipt [14:16:56]json_value_free [14:16:56]json_value_free done [14:16:56]process_json_proto returns [14:16:56]Send response to host [14:16:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68599,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [14:16:56]free response buf [14:16:56]execute_script done [14:16:56]execute_script returns [14:16:56]free content buf [14:16:56]Sock 10.Close socket [14:16:56]Sock 10.Thread stoped [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]accept exits with 7 [14:19:15]New connection [14:19:15]New thread 3067084132 created [14:19:15]Thread 3067227492 joined [14:19:15]Waiting for new connection... [14:19:15] Sock 7.Parse request [14:19:15]Sock 7.Check first char [14:19:15]Sock 7.First char is OK [14:19:15]request: POST /json_proto HTTP/1.0 [14:19:15]Method: POST [14:19:15]URL: /json_proto [14:19:15]Method is POST - this is cgi request [14:19:15]url: /json_proto [14:19:15]query_string will be loaded in cgi processing [14:19:15]execute_cgi json_proto POST (null) [14:19:15]execute_cgi path=json_proto method=POST [14:19:15]POST find Content-Length [14:19:15]Host: 172.17.36.132:8080 [14:19:15]Content-Length: 682 [14:19:15]Content-Type: application/json [14:19:15] [14:19:15]POST finish read [14:19:15]Found Content-Length = 682 [14:19:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706730", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "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:19:15]execute_script... [14:19: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)706730", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "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:19:15]POST & json_proto [14:19:15]process_json_proto [14:19:15]json parsed OK: [14:19:15]protocol is kg_v1.0 [14:19:15]action value=close_receipt [14:19:15]process_action close_receipt [14:19:15]cmd_close_receipt [14:19:15]MH_GetDate [14:19:15]Write to MH i2c: F0 00 00 34 2B 4E [14:19:15]Write i2c OK [14:19:15]MH_I2C_Read... [14:19:15]Read from MH i2c: F0 [14:19:15]MH_I2C_Read... [14:19:15]Read from MH i2c: F0 09 00 [14:19:15]MH_I2C_Read... [14:19:15]Read from MH i2c: F0 09 00 34 2B 00 67 22 5F 66 B2 22 B0 64 8D [14:19:15]GetLastDocTimeStamp 1717510617 [14:19:15]current date 1717510759 [14:19:15]FM_GetShiftState [14:19:15]SAM_PROTO_GetShiftState [14:19:15]wFMCommunicate request_size=4 [14:19:15]MH_SAM_APDU [14:19:15]CAPDU: 80 13 01 00 [14:19:15]Write to MH i2c: E2 08 00 35 2B 80 13 01 00 00 00 00 00 DD [14:19:15]Write i2c OK [14:19:15]MH_I2C_Read... [14:19:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:19:15]Read from MH i2c: E2 [14:19:15]MH_I2C_Read... [14:19:15]Read from MH i2c: E2 0E 00 [14:19:15]MH_I2C_Read... [14:19:15]Read from MH i2c: E2 0E 00 35 2B 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 79 [14:19:15]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [14:19:15]wFMCommunicate OK [14:19:15]SAM_PROTO_GetShiftState done [14:19:15]FM_GetShiftState done [14:19:15]opened in 1717460590 [14:19:15]opened+sec_in_day 1717546990 [14:19:15]quantity*price = 50009 [14:19:15]sum+1 = 50010 [14:19: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 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 98 04.06.2024 14:19 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68600 ФПД: 163604403961263 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T141920&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68600&fm=163604403961263&tin=02508201610067®Number=0000000000098096&sum=50000 [14:19:16]StoreToDocumentArchive [14:19:16]shift 325 fd 68600 [14:19:16]save to /storage/0325/doc_00068600 [14:19:16]save last doc name /storage/0325/doc_00068600 to /storage/kkm_last_doc_name [14:19:16]save OK [14:19:16]Clear old archive folders... [14:19:16]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:19:16]tlvbuf is 009F4F70 [14:19:16]SAM_PROTO_ClearQueue [14:19:16]wFMCommunicate request_size=4 [14:19:16]MH_SAM_APDU [14:19:16]CAPDU: 80 09 00 00 [14:19:16]Write to MH i2c: E2 08 00 42 2B 80 09 00 00 00 00 00 00 DF [14:19:16]Write i2c OK [14:19:16]MH_I2C_Read... [14:19:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:19:16]Read from MH i2c: E2 [14:19:16]MH_I2C_Read... [14:19:16]Read from MH i2c: E2 03 00 [14:19:16]MH_I2C_Read... [14:19:16]Read from MH i2c: E2 03 00 42 2B 00 90 00 E1 [14:19:16]RAPDU: 90 00 [14:19:16]wFMCommunicate OK [14:19:16]SAM_PROTO_ClearQueue done [14:19:16]KKMCreateOFDPacket [14:19:16]OFDProtocolAddRootSTLVToBuf [14:19:16]FM_MakeSignedData [14:19:16]FM_MakeSignedData [14:19:16]SAM_PROTO_SignData [14:19:16]wFMCommunicate request_size=4 [14:19:16]MH_SAM_APDU [14:19:16]CAPDU: 80 0D 01 02 [14:19:16]Write to MH i2c: E2 08 00 43 2B 80 0D 01 02 00 00 00 00 E7 [14:19:16]Write i2c OK [14:19:16]MH_I2C_Read... [14:19:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:19:16]Read from MH i2c: E2 [14:19:16]MH_I2C_Read... [14:19:16]Read from MH i2c: E2 03 00 [14:19:16]MH_I2C_Read... [14:19:16]Read from MH i2c: E2 03 00 43 2B 00 90 00 E2 [14:19:16]RAPDU: 90 00 [14:19:16]wFMCommunicate OK [14:19:16]wFMCommunicate request_size=255 [14:19:16]MH_SAM_APDU [14:19:16]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 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 62 00 00 00 F4 03 04 00 68 22 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 F8 0B 01 00 35 04 06 00 [14:19:16]Write to MH i2c: E2 02 01 44 2B 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 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 62 00 00 00 F4 03 04 00 68 22 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 F8 0B 01 00 35 04 06 00 00 00 72 [14:19:16]Write i2c OK [14:19:16]MH_I2C_Read... [14:19:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:19:16]Read from MH i2c: E2 [14:19:16]MH_I2C_Read... [14:19:16]Read from MH i2c: E2 03 00 [14:19:16]MH_I2C_Read... [14:19:16]Read from MH i2c: E2 03 00 44 2B 00 90 00 E3 [14:19:16]RAPDU: 90 00 [14:19:16]wFMCommunicate OK [14:19:16]wFMCommunicate request_size=11 [14:19:16]MH_SAM_APDU [14:19:16]CAPDU: 80 0D 02 02 06 94 CC 1E 61 BD AF [14:19:16]Write to MH i2c: E2 0E 00 45 2B 80 0D 02 02 06 00 94 CC 1E 61 BD AF 00 00 41 [14:19:16]Write i2c OK [14:19:16]MH_I2C_Read... [14:19:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:19:16]Read from MH i2c: E2 [14:19:16]MH_I2C_Read... [14:19:16]Read from MH i2c: E2 03 00 [14:19:16]MH_I2C_Read... [14:19:16]Read from MH i2c: E2 03 00 45 2B 00 90 00 E4 [14:19:16]RAPDU: 90 00 [14:19:16]wFMCommunicate OK [14:19:16]wFMCommunicate request_size=4 [14:19:16]MH_SAM_APDU [14:19:16]CAPDU: 80 0D 03 02 [14:19:16]Write to MH i2c: E2 08 00 46 2B 80 0D 03 02 00 00 00 00 EC [14:19:16]Write i2c OK [14:19:16]MH_I2C_Read... [14:19:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:19:16]Read from MH i2c: E2 [14:19:16]MH_I2C_Read... [14:19:16]Read from MH i2c: E2 0B 00 [14:19:16]MH_I2C_Read... [14:19:16]Read from MH i2c: E2 0B 00 46 2B 00 B2 82 44 B8 76 EF EF 65 90 00 D6 [14:19:16]RAPDU: B2 82 44 B8 76 EF EF 65 90 00 [14:19:16]wFMCommunicate OK [14:19:16]SAM_PROTO_SignData done [14:19:16]FM_MakeSignedData done [14:19:16]CreateOFDProtocolMessage [14:19:16]wFMCommunicate request_size=4 [14:19:16]MH_SAM_APDU [14:19:16]CAPDU: 80 11 00 00 [14:19:16]Write to MH i2c: E2 08 00 47 2B 80 11 00 00 00 00 00 00 EC [14:19:16]Write i2c OK [14:19:16]MH_I2C_Read... [14:19:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:19:16]Read from MH i2c: E2 [14:19:16]MH_I2C_Read... [14:19:16]Read from MH i2c: E2 17 00 [14:19:16]MH_I2C_Read... [14:19:16]Read from MH i2c: E2 17 00 47 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 37 [14:19:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [14:19:16]wFMCommunicate OK [14:19:16]CreateOFDProtocolMessage done [14:19:16]OFDSenderStorePacket 68600 [14:19:16]StoreOFDPacket docnum=68600 [14:19:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 A4 EF 08 01 28 C1 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 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 62 00 00 00 F4 03 04 00 68 22 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 F8 0B 01 00 35 04 06 00 94 CC 1E 61 BD AF B2 82 44 B8 76 EF EF 65 [14:19:16]CheckFolder [14:19:16]dirname=/storage/ofd_packets [14:19:16]CheckFolder done [14:19:16]ProducePacketName [14:19:16]name=ofd_packets/00068600 [14:19:16]NVStorageSaveData ofd_packets/00068600 [14:19:16]File name is /storage/ofd_packets/00068600 [14:19:16]Write 302 bytes [14:19:16]NVStorageSaveData done [14:19:16]OFDSenderStorePacket done [14:19:16]KKMCreateOFDPacket done [14:19:16]NVStorageSaveData kkm_last_timestamp [14:19:16]File name is /storage/kkm_last_timestamp [14:19:16]Write 4 bytes [14:19:16]NVStorageSaveData done [14:19:16]ExternCall_PrintAddStr [14:19:16]wPrintStart [14:19:16]Write to MH i2c: 01 00 00 48 2B 73 [14:19:16]Write i2c OK [14:19:16]MH_I2C_Read... [14:19:16]Read from MH i2c: 01 [14:19:16]MH_I2C_Read... [14:19:16]Read from MH i2c: 01 07 00 [14:19:16]MH_I2C_Read... [14:19:16]Read from MH i2c: 01 07 00 48 2B 00 00 00 00 00 FF 0F 88 [14:19:16]RasterBufferAndPrint [14:19:16]line Счет N : (1)706730 [14:19:16]line ИНН: 02508201610067 [14:19:16]line Контрольно-Кассовый Чек [14:19:16]line ПРОДАЖА [14:19:16]line ТРК (МРК, ГНК) : 61 [14:19:16]line Товар: 2710194210 [14:19:16]line ДТ(л)-К-4 [14:19:16]line 6.860 * 72.90 [14:19:16]line = 500.09 [14:19:16]line НДС 12% НСП 1% [14:19:16]line > о реализуемом товаре [14:19:16]line ОКРУГЛЕНИЕ: -0.09 [14:19:16]line ИТОГО: 500.00 [14:19:16]line Внесено: 500.00 [14:19:16]line СДАЧА: 0.00 [14:19:16]line НСП 1% : 4.43 [14:19:16]line НДС 12% : 53.11 [14:19:16]line Наличными: 500.00 [14:19:16]line Безнал.: 0.00 [14:19:16]line Место: АЗС № 62 "Партнер Нефть" [14:19:16]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [14:19:16]line СНО: Общий режим [14:19:16]line Чек 98 04.06.2024 14:19 [14:19:16]line Смена: 325 ФФД: 1.0 [14:19:16]line ЗНМ: 0300000181 [14:19:16]line РНМ: 0000000000098096 [14:19:16]line Версия ККМ: 001 [14:19:16]line ФМ: 0000000000965400 [14:19:16]line ФД: 68600 [14:19:16]line ФПД: 163604403961263 [14:19:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T141920&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68600&fm=163604403961263&tin=02508201610067®Number=0000000000098096&sum=50000 [14:19:16]OFD Sender: Processing packet 68600 [packets to send 26, broken 25] [14:19:16]ProducePacketName [14:19:16]name=ofd_packets/00068600 [14:19:16]OFD Sender: To server: pG, [14:19:16]CommunicateWithHost lk.salyk.kg:30040 [14:19:16]ConnectInit lk.salyk.kg [14:19:16]written 0, free lines is 4095 [14:19:17]Connected sock=10 [14:19:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 A4 EF 08 01 28 C1 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 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 62 00 00 00 F4 03 04 00 68 22 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 F8 0B 01 00 35 04 06 00 94 CC 1E 61 BD AF B2 82 44 B8 76 EF EF 65 [14:19:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 D5 42 47 00 BD 1F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 F8 0B 01 00 F4 03 04 00 60 C9 5E 66 B6 04 01 00 00 CA 42 CC 3D E2 0B A8 F8 [14:19:17]CommunicateWithHost err = 0 [14:19:17]CheckOFDResponse [14:19:17]1017 (14) - 77093643461234 [14:19:17]1041 (16) - 0000000000965400 [14:19:17]1040 (4) - 68600 [14:19:17]1012 (4) - 04.06.2024 07:59 [14:19:17]1206 (1) - 0 [14:19:17]OFD Sender: Remove packet 68600 [14:19:17]ProducePacketName [14:19:17]name=ofd_packets/00068600 [14:19:17]NVStorageDeleteData [14:19:17]Write to MH i2c: 01 00 00 73 2B 9E [14:19:17]Write i2c OK [14:19:17]MH_I2C_Read... [14:19:17]Read from MH i2c: 01 [14:19:17]MH_I2C_Read... [14:19:17]Read from MH i2c: 01 07 00 [14:19:17]MH_I2C_Read... [14:19:17]Read from MH i2c: 01 07 00 73 2B 00 00 00 00 00 EE 0C 9F [14:19:17]RasterBufferAndPrint [14:19:17]line [14:19:17]line [14:19:17]line [14:19:17]line [14:19:17]line [14:19:17]written 0, free lines is 3316 [14:19:17]MH_Cut [14:19:17]Write to MH i2c: D1 01 00 7A 2B 01 77 [14:19:17]Write i2c OK [14:19:17]MH_I2C_Read... [14:19:17]Read from MH i2c: D1 [14:19:17]MH_I2C_Read... [14:19:17]Read from MH i2c: D1 01 00 [14:19:17]MH_I2C_Read... [14:19:17]Read from MH i2c: D1 01 00 7A 2B 00 76 [14:19:17]Write to MH i2c: 01 00 00 7B 2B A6 [14:19:17]Write i2c OK [14:19:17]MH_I2C_Read... [14:19:17]OFD Sender: No OFD packet to send [14:19:18]*** Cut start [14:19:18]*** Partial cut [14:19:18]*** CUTSNS_PIN = 1 [14:19:18]*** CUTSNS_PIN = 0 [14:19:18]*** Brake cut motor [14:19:18]Read from MH i2c: 01 [14:19:18]MH_I2C_Read... [14:19:18]*** Stop cut motor [14:19:18]*** Cut end [14:19:18]Read from MH i2c: 01 07 00 [14:19:18]MH_I2C_Read... [14:19:18]Read from MH i2c: 01 07 00 7B 2B 00 00 00 00 00 FF 0F BB [14:19:18]process_action close_receipt done [14:19:18]requested_data is exist [14:19:18]produce_requested_data [14:19:18]requested_item fm.sn is exist - process it [14:19:18]wFMCommunicate request_size=4 [14:19:18]MH_SAM_APDU [14:19:18]CAPDU: 80 11 00 00 [14:19:18]Write to MH i2c: E2 08 00 7C 2B 80 11 00 00 00 00 00 00 21 [14:19:18]Write i2c OK [14:19:18]MH_I2C_Read... [14:19:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:19:18]Read from MH i2c: E2 [14:19:18]MH_I2C_Read... [14:19:18]Read from MH i2c: E2 17 00 [14:19:18]MH_I2C_Read... [14:19:18]Read from MH i2c: E2 17 00 7C 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 6C [14:19:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [14:19:18]wFMCommunicate OK [14:19:18]requested_item fd.num is exist - process it [14:19:18]SAM_PROTO_GetFieldsCounters [14:19:18]wFMCommunicate request_size=4 [14:19:18]MH_SAM_APDU [14:19:18]CAPDU: 80 13 00 00 [14:19:18]Write to MH i2c: E2 08 00 7D 2B 80 13 00 00 00 00 00 00 24 [14:19:18]Write i2c OK [14:19:18]MH_I2C_Read... [14:19:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:19:19]Read from MH i2c: E2 [14:19:19]MH_I2C_Read... [14:19:19]Read from MH i2c: E2 62 00 [14:19:19]MH_I2C_Read... [14:19:19]Read from MH i2c: E2 62 00 7D 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 F8 0B 01 00 0E 04 04 00 45 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 B4 [14:19:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 F8 0B 01 00 0E 04 04 00 45 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 [14:19:19]wFMCommunicate OK [14:19:19]SAM_PROTO_GetFieldsCounters done [14:19:19]requested_item shift.num is exist - process it [14:19:19]requested_item shift.opened is exist - process it [14:19:19]req_shift_opened [14:19:19]FM_GetShiftState [14:19:19]SAM_PROTO_GetShiftState [14:19:19]wFMCommunicate request_size=4 [14:19:19]MH_SAM_APDU [14:19:19]CAPDU: 80 13 01 00 [14:19:19]Write to MH i2c: E2 08 00 7E 2B 80 13 01 00 00 00 00 00 26 [14:19:19]Write i2c OK [14:19:19]MH_I2C_Read... [14:19:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:19:19]Read from MH i2c: E2 [14:19:19]MH_I2C_Read... [14:19:19]Read from MH i2c: E2 0E 00 [14:19:19]MH_I2C_Read... [14:19:19]Read from MH i2c: E2 0E 00 7E 2B 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 C2 [14:19:19]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [14:19:19]wFMCommunicate OK [14:19:19]SAM_PROTO_GetShiftState done [14:19:19]FM_GetShiftState done [14:19:19]req_shift_opened done [14:19:19]requested_item shift.open_date is exist - process it [14:19:19]req_shift_open_date [14:19:19]req_shift_open_date done [14:19:19]produce_requested_data done [14:19:19]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68600,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [14:19:19]process_action_free close_receipt [14:19:19]json_value_free [14:19:19]json_value_free done [14:19:19]process_json_proto returns [14:19:19]Send response to host [14:19:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68600,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [14:19:19]free response buf [14:19:19]execute_script done [14:19:19]execute_script returns [14:19:19]free content buf [14:19:19]Sock 7.Close socket [14:19:19]Sock 7.Thread stoped [14:19:22]OFD Sender: No OFD packet to send [14:19:27]OFD Sender: No OFD packet to send [14:19:32]OFD Sender: No OFD packet to send [14:19:37]OFD Sender: No OFD packet to send [14:19:42]OFD Sender: No OFD packet to send [14:19:47]OFD Sender: No OFD packet to send [14:19:52]OFD Sender: No OFD packet to send [14:19:57]OFD Sender: No OFD packet to send [14:20:02]OFD Sender: No OFD packet to send [14:20:07]OFD Sender: No OFD packet to send [14:20:09]accept exits with 9 [14:20:09]New connection [14:20:09]New thread 3067227492 created [14:20:09]Thread 3067084132 joined [14:20:09]Waiting for new connection... [14:20:09] Sock 9.Parse request [14:20:09]Sock 9.Check first char [14:20:09]Sock 9.First char is OK [14:20:09]request: POST /json_proto HTTP/1.0 [14:20:09]Method: POST [14:20:09]URL: /json_proto [14:20:09]Method is POST - this is cgi request [14:20:09]url: /json_proto [14:20:09]query_string will be loaded in cgi processing [14:20:09]execute_cgi json_proto POST (null) [14:20:09]execute_cgi path=json_proto method=POST [14:20:09]POST find Content-Length [14:20:09]Host: 172.17.36.132:8080 [14:20:09]Content-Length: 682 [14:20:09]Content-Type: application/json [14:20:09] [14:20:09]POST finish read [14:20:09]Found Content-Length = 682 [14:20:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706731", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:20:09]execute_script... [14:20: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)706731", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:20:09]POST & json_proto [14:20:09]process_json_proto [14:20:09]json parsed OK: [14:20:09]protocol is kg_v1.0 [14:20:09]action value=close_receipt [14:20:09]process_action close_receipt [14:20:09]cmd_close_receipt [14:20:09]MH_GetDate [14:20:09]Write to MH i2c: F0 00 00 7F 2B 99 [14:20:09]Write i2c OK [14:20:09]MH_I2C_Read... [14:20:09]Read from MH i2c: F0 [14:20:09]MH_I2C_Read... [14:20:09]Read from MH i2c: F0 09 00 [14:20:09]MH_I2C_Read... [14:20:09]Read from MH i2c: F0 09 00 7F 2B 00 9E 22 5F 66 B2 22 B0 64 0F [14:20:09]GetLastDocTimeStamp 1717510760 [14:20:09]current date 1717510814 [14:20:09]FM_GetShiftState [14:20:09]SAM_PROTO_GetShiftState [14:20:09]wFMCommunicate request_size=4 [14:20:09]MH_SAM_APDU [14:20:09]CAPDU: 80 13 01 00 [14:20:09]Write to MH i2c: E2 08 00 80 2B 80 13 01 00 00 00 00 00 28 [14:20:09]Write i2c OK [14:20:09]MH_I2C_Read... [14:20:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:20:09]Read from MH i2c: E2 [14:20:09]MH_I2C_Read... [14:20:09]Read from MH i2c: E2 0E 00 [14:20:09]MH_I2C_Read... [14:20:09]Read from MH i2c: E2 0E 00 80 2B 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 C4 [14:20:09]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [14:20:09]wFMCommunicate OK [14:20:09]SAM_PROTO_GetShiftState done [14:20:09]FM_GetShiftState done [14:20:09]opened in 1717460590 [14:20:09]opened+sec_in_day 1717546990 [14:20:09]quantity*price = 100015 [14:20:09]sum+1 = 100017 [14:20:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 99 04.06.2024 14:20 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68601 ФПД: 212390036732441 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T142014&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68601&fm=212390036732441&tin=02508201610067®Number=0000000000098096&sum=100000 [14:20:11]StoreToDocumentArchive [14:20:11]shift 325 fd 68601 [14:20:11]save to /storage/0325/doc_00068601 [14:20:11]save last doc name /storage/0325/doc_00068601 to /storage/kkm_last_doc_name [14:20:11]save OK [14:20:11]Clear old archive folders... [14:20:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:20:11]tlvbuf is 009F4F70 [14:20:11]SAM_PROTO_ClearQueue [14:20:11]wFMCommunicate request_size=4 [14:20:11]MH_SAM_APDU [14:20:11]CAPDU: 80 09 00 00 [14:20:11]Write to MH i2c: E2 08 00 8D 2B 80 09 00 00 00 00 00 00 2A [14:20:11]Write i2c OK [14:20:11]MH_I2C_Read... [14:20:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:20:11]Read from MH i2c: E2 [14:20:11]MH_I2C_Read... [14:20:11]Read from MH i2c: E2 03 00 [14:20:11]MH_I2C_Read... [14:20:11]Read from MH i2c: E2 03 00 8D 2B 00 90 00 2C [14:20:11]RAPDU: 90 00 [14:20:11]wFMCommunicate OK [14:20:11]SAM_PROTO_ClearQueue done [14:20:11]KKMCreateOFDPacket [14:20:11]OFDProtocolAddRootSTLVToBuf [14:20:11]FM_MakeSignedData [14:20:11]FM_MakeSignedData [14:20:11]SAM_PROTO_SignData [14:20:11]wFMCommunicate request_size=4 [14:20:11]MH_SAM_APDU [14:20:11]CAPDU: 80 0D 01 02 [14:20:11]Write to MH i2c: E2 08 00 8E 2B 80 0D 01 02 00 00 00 00 32 [14:20:11]Write i2c OK [14:20:11]MH_I2C_Read... [14:20:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:20:11]Read from MH i2c: E2 [14:20:11]MH_I2C_Read... [14:20:11]Read from MH i2c: E2 03 00 [14:20:11]MH_I2C_Read... [14:20:11]Read from MH i2c: E2 03 00 8E 2B 00 90 00 2D [14:20:11]RAPDU: 90 00 [14:20:11]wFMCommunicate OK [14:20:11]wFMCommunicate request_size=255 [14:20:11]MH_SAM_APDU [14:20:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 9E 22 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 F9 0B 01 00 35 04 06 00 C1 [14:20:11]Write to MH i2c: E2 02 01 8F 2B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 9E 22 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 F9 0B 01 00 35 04 06 00 C1 00 00 AD [14:20:11]Write i2c OK [14:20:11]MH_I2C_Read... [14:20:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:20:11]Read from MH i2c: E2 [14:20:11]MH_I2C_Read... [14:20:11]Read from MH i2c: E2 03 00 [14:20:11]MH_I2C_Read... [14:20:11]Read from MH i2c: E2 03 00 8F 2B 00 90 00 2E [14:20:11]RAPDU: 90 00 [14:20:11]wFMCommunicate OK [14:20:11]wFMCommunicate request_size=10 [14:20:11]MH_SAM_APDU [14:20:11]CAPDU: 80 0D 02 02 05 2A E8 B1 7A 19 [14:20:11]Write to MH i2c: E2 0D 00 90 2B 80 0D 02 02 05 00 2A E8 B1 7A 19 00 00 95 [14:20:11]Write i2c OK [14:20:11]MH_I2C_Read... [14:20:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:20:11]Read from MH i2c: E2 [14:20:11]MH_I2C_Read... [14:20:11]Read from MH i2c: E2 03 00 [14:20:11]MH_I2C_Read... [14:20:11]Read from MH i2c: E2 03 00 90 2B 00 90 00 2F [14:20:11]RAPDU: 90 00 [14:20:11]wFMCommunicate OK [14:20:11]wFMCommunicate request_size=4 [14:20:11]MH_SAM_APDU [14:20:11]CAPDU: 80 0D 03 02 [14:20:11]Write to MH i2c: E2 08 00 91 2B 80 0D 03 02 00 00 00 00 37 [14:20:11]Write i2c OK [14:20:11]MH_I2C_Read... [14:20:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:20:11]Read from MH i2c: E2 [14:20:11]MH_I2C_Read... [14:20:11]Read from MH i2c: E2 0B 00 [14:20:11]MH_I2C_Read... [14:20:11]Read from MH i2c: E2 0B 00 91 2B 00 6E B3 84 90 E4 C1 6E B2 90 00 32 [14:20:11]RAPDU: 6E B3 84 90 E4 C1 6E B2 90 00 [14:20:11]wFMCommunicate OK [14:20:11]SAM_PROTO_SignData done [14:20:11]FM_MakeSignedData done [14:20:11]CreateOFDProtocolMessage [14:20:11]wFMCommunicate request_size=4 [14:20:11]MH_SAM_APDU [14:20:11]CAPDU: 80 11 00 00 [14:20:11]Write to MH i2c: E2 08 00 92 2B 80 11 00 00 00 00 00 00 37 [14:20:11]Write i2c OK [14:20:11]MH_I2C_Read... [14:20:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:20:11]Read from MH i2c: E2 [14:20:11]MH_I2C_Read... [14:20:11]Read from MH i2c: E2 17 00 [14:20:11]MH_I2C_Read... [14:20:11]Read from MH i2c: E2 17 00 92 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 82 [14:20:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [14:20:11]wFMCommunicate OK [14:20:11]CreateOFDProtocolMessage done [14:20:11]OFDSenderStorePacket 68601 [14:20:11]StoreOFDPacket docnum=68601 [14:20:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 6F 1C 07 01 B8 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 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 9E 22 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 F9 0B 01 00 35 04 06 00 C1 2A E8 B1 7A 19 6E B3 84 90 E4 C1 6E B2 [14:20:11]CheckFolder [14:20:11]dirname=/storage/ofd_packets [14:20:11]CheckFolder done [14:20:11]ProducePacketName [14:20:11]name=ofd_packets/00068601 [14:20:11]NVStorageSaveData ofd_packets/00068601 [14:20:11]File name is /storage/ofd_packets/00068601 [14:20:11]Write 301 bytes [14:20:11]NVStorageSaveData done [14:20:11]OFDSenderStorePacket done [14:20:11]KKMCreateOFDPacket done [14:20:11]NVStorageSaveData kkm_last_timestamp [14:20:11]File name is /storage/kkm_last_timestamp [14:20:11]Write 4 bytes [14:20:11]NVStorageSaveData done [14:20:11]ExternCall_PrintAddStr [14:20:11]wPrintStart [14:20:11]Write to MH i2c: 01 00 00 93 2B BE [14:20:11]Write i2c OK [14:20:11]MH_I2C_Read... [14:20:11]Read from MH i2c: 01 [14:20:11]MH_I2C_Read... [14:20:11]Read from MH i2c: 01 07 00 [14:20:11]MH_I2C_Read... [14:20:11]Read from MH i2c: 01 07 00 93 2B 00 00 00 00 00 FF 0F D3 [14:20:11]RasterBufferAndPrint [14:20:11]line Счет N : (1)706731 [14:20:11]line ИНН: 02508201610067 [14:20:11]line Контрольно-Кассовый Чек [14:20:11]line ПРОДАЖА [14:20:11]line ТРК (МРК, ГНК) : 32 [14:20:11]line Товар: 2710124130 [14:20:11]line Аи-92-К-4 [14:20:11]line 14.950 * 66.90 [14:20:11]line = 1000.16 [14:20:11]line НДС 12% НСП 1% [14:20:11]line > о реализуемом товаре [14:20:11]line ОКРУГЛЕНИЕ: -0.16 [14:20:11]line ИТОГО: 1000.00 [14:20:11]line Внесено: 1000.00 [14:20:11]line СДАЧА: 0.00 [14:20:11]line НСП 1% : 8.85 [14:20:11]line НДС 12% : 106.21 [14:20:11]line Наличными: 1000.00 [14:20:11]line Безнал.: 0.00 [14:20:11]line Место: АЗС № 62 "Партнер Нефть" [14:20:11]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [14:20:11]line СНО: Общий режим [14:20:11]line Чек 99 04.06.2024 14:20 [14:20:11]line Смена: 325 ФФД: 1.0 [14:20:11]line ЗНМ: 0300000181 [14:20:11]line РНМ: 0000000000098096 [14:20:11]line Версия ККМ: 001 [14:20:11]line ФМ: 0000000000965400 [14:20:11]line ФД: 68601 [14:20:11]line ФПД: 212390036732441 [14:20:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T142014&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68601&fm=212390036732441&tin=02508201610067®Number=0000000000098096&sum=100000 [14:20:11]OFD Sender: Processing packet 68601 [packets to send 26, broken 25] [14:20:11]ProducePacketName [14:20:11]name=ofd_packets/00068601 [14:20:11]OFD Sender: To server: pG, [14:20:11]CommunicateWithHost lk.salyk.kg:30040 [14:20:11]ConnectInit lk.salyk.kg [14:20:11]written 0, free lines is 4095 [14:20:12]Connected sock=10 [14:20:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 6F 1C 07 01 B8 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 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 9E 22 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 F9 0B 01 00 35 04 06 00 C1 2A E8 B1 7A 19 6E B3 84 90 E4 C1 6E B2 [14:20:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 F6 3D 47 00 A3 60 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 F9 0B 01 00 F4 03 04 00 97 C9 5E 66 B6 04 01 00 00 BE A7 38 5E FC B7 96 B8 [14:20:12]CommunicateWithHost err = 0 [14:20:12]CheckOFDResponse [14:20:12]1017 (14) - 77093643461234 [14:20:12]1041 (16) - 0000000000965400 [14:20:12]1040 (4) - 68601 [14:20:12]1012 (4) - 04.06.2024 08:00 [14:20:12]1206 (1) - 0 [14:20:12]OFD Sender: Remove packet 68601 [14:20:12]ProducePacketName [14:20:12]name=ofd_packets/00068601 [14:20:12]NVStorageDeleteData [14:20:12]Write to MH i2c: 01 00 00 BE 2B E9 [14:20:12]Write i2c OK [14:20:12]MH_I2C_Read... [14:20:12]Read from MH i2c: 01 [14:20:12]MH_I2C_Read... [14:20:12]Read from MH i2c: 01 07 00 [14:20:12]MH_I2C_Read... [14:20:12]Read from MH i2c: 01 07 00 BE 2B 00 00 00 00 00 E4 0C E0 [14:20:12]RasterBufferAndPrint [14:20:12]line [14:20:12]line [14:20:12]line [14:20:12]line [14:20:12]line [14:20:12]written 0, free lines is 3306 [14:20:12]MH_Cut [14:20:12]Write to MH i2c: D1 01 00 C5 2B 01 C2 [14:20:12]Write i2c OK [14:20:12]MH_I2C_Read... [14:20:12]Read from MH i2c: D1 [14:20:12]MH_I2C_Read... [14:20:12]Read from MH i2c: D1 01 00 [14:20:12]MH_I2C_Read... [14:20:12]Read from MH i2c: D1 01 00 C5 2B 00 C1 [14:20:12]Write to MH i2c: 01 00 00 C6 2B F1 [14:20:12]Write i2c OK [14:20:12]MH_I2C_Read... [14:20:12]OFD Sender: No OFD packet to send [14:20:13]*** Cut start [14:20:13]*** Partial cut [14:20:13]*** CUTSNS_PIN = 1 [14:20:13]*** CUTSNS_PIN = 0 [14:20:13]*** Brake cut motor [14:20:13]Read from MH i2c: 01 [14:20:13]MH_I2C_Read... [14:20:13]*** Stop cut motor [14:20:13]*** Cut end [14:20:13]Read from MH i2c: 01 07 00 [14:20:13]MH_I2C_Read... [14:20:13]Read from MH i2c: 01 07 00 C6 2B 00 00 00 00 00 FF 0F 06 [14:20:13]process_action close_receipt done [14:20:13]requested_data is exist [14:20:13]produce_requested_data [14:20:13]requested_item fm.sn is exist - process it [14:20:13]wFMCommunicate request_size=4 [14:20:13]MH_SAM_APDU [14:20:13]CAPDU: 80 11 00 00 [14:20:13]Write to MH i2c: E2 08 00 C7 2B 80 11 00 00 00 00 00 00 6C [14:20:13]Write i2c OK [14:20:13]MH_I2C_Read... [14:20:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:20:13]Read from MH i2c: E2 [14:20:13]MH_I2C_Read... [14:20:13]Read from MH i2c: E2 17 00 [14:20:13]MH_I2C_Read... [14:20:13]Read from MH i2c: E2 17 00 C7 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 B7 [14:20:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [14:20:13]wFMCommunicate OK [14:20:13]requested_item fd.num is exist - process it [14:20:13]SAM_PROTO_GetFieldsCounters [14:20:13]wFMCommunicate request_size=4 [14:20:13]MH_SAM_APDU [14:20:13]CAPDU: 80 13 00 00 [14:20:13]Write to MH i2c: E2 08 00 C8 2B 80 13 00 00 00 00 00 00 6F [14:20:13]Write i2c OK [14:20:13]MH_I2C_Read... [14:20:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:20:14]Read from MH i2c: E2 [14:20:14]MH_I2C_Read... [14:20:14]Read from MH i2c: E2 62 00 [14:20:14]MH_I2C_Read... [14:20:14]Read from MH i2c: E2 62 00 C8 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 F9 0B 01 00 0E 04 04 00 45 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 03 [14:20:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 F9 0B 01 00 0E 04 04 00 45 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 [14:20:14]wFMCommunicate OK [14:20:14]SAM_PROTO_GetFieldsCounters done [14:20:14]requested_item shift.num is exist - process it [14:20:14]requested_item shift.opened is exist - process it [14:20:14]req_shift_opened [14:20:14]FM_GetShiftState [14:20:14]SAM_PROTO_GetShiftState [14:20:14]wFMCommunicate request_size=4 [14:20:14]MH_SAM_APDU [14:20:14]CAPDU: 80 13 01 00 [14:20:14]Write to MH i2c: E2 08 00 C9 2B 80 13 01 00 00 00 00 00 71 [14:20:14]Write i2c OK [14:20:14]MH_I2C_Read... [14:20:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:20:14]Read from MH i2c: E2 [14:20:14]MH_I2C_Read... [14:20:14]Read from MH i2c: E2 0E 00 [14:20:14]MH_I2C_Read... [14:20:14]Read from MH i2c: E2 0E 00 C9 2B 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 0D [14:20:14]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [14:20:14]wFMCommunicate OK [14:20:14]SAM_PROTO_GetShiftState done [14:20:14]FM_GetShiftState done [14:20:14]req_shift_opened done [14:20:14]requested_item shift.open_date is exist - process it [14:20:14]req_shift_open_date [14:20:14]req_shift_open_date done [14:20:14]produce_requested_data done [14:20:14]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68601,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [14:20:14]process_action_free close_receipt [14:20:14]json_value_free [14:20:14]json_value_free done [14:20:14]process_json_proto returns [14:20:14]Send response to host [14:20:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68601,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [14:20:14]free response buf [14:20:14]execute_script done [14:20:14]execute_script returns [14:20:14]free content buf [14:20:14]Sock 9.Close socket [14:20:14]Sock 9.Thread stoped [14:20:17]OFD Sender: No OFD packet to send [14:20:22]OFD Sender: No OFD packet to send [14:20:27]OFD Sender: No OFD packet to send [14:20:32]OFD Sender: No OFD packet to send [14:20:37]OFD Sender: No OFD packet to send [14:20:42]OFD Sender: No OFD packet to send [14:20:47]OFD Sender: No OFD packet to send [14:20:52]OFD Sender: No OFD packet to send [14:20:57]OFD Sender: No OFD packet to send [14:21:02]OFD Sender: No OFD packet to send [14:21:07]OFD Sender: No OFD packet to send [14:21:12]OFD Sender: No OFD packet to send [14:21:17]OFD Sender: No OFD packet to send [14:21:22]OFD Sender: No OFD packet to send [14:21:27]OFD Sender: No OFD packet to send [14:21:32]OFD Sender: No OFD packet to send [14:21:37]OFD Sender: No OFD packet to send [14:21:42]OFD Sender: No OFD packet to send [14:21:47]OFD Sender: No OFD packet to send [14:21:52]OFD Sender: No OFD packet to send [14:21:57]OFD Sender: No OFD packet to send [14:22:02]OFD Sender: No OFD packet to send [14:22:07]OFD Sender: No OFD packet to send [14:22:12]OFD Sender: No OFD packet to send [14:22:16]accept exits with 7 [14:22:16]New connection [14:22:16]New thread 3067084132 created [14:22:16]Thread 3067227492 joined [14:22:16]Waiting for new connection... [14:22:16] Sock 7.Parse request [14:22:16]Sock 7.Check first char [14:22:16]Sock 7.First char is OK [14:22:16]request: POST /json_proto HTTP/1.0 [14:22:16]Method: POST [14:22:16]URL: /json_proto [14:22:16]Method is POST - this is cgi request [14:22:16]url: /json_proto [14:22:16]query_string will be loaded in cgi processing [14:22:16]execute_cgi json_proto POST (null) [14:22:16]execute_cgi path=json_proto method=POST [14:22:16]POST find Content-Length [14:22:16]Host: 172.17.36.132:8080 [14:22:16]Content-Length: 677 [14:22:16]Content-Type: application/json [14:22:16] [14:22:16]POST finish read [14:22:16]Found Content-Length = 677 [14:22:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706732", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:22:16]execute_script... [14:22: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)706732", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:22:16]POST & json_proto [14:22:16]process_json_proto [14:22:16]json parsed OK: [14:22:16]protocol is kg_v1.0 [14:22:16]action value=close_receipt [14:22:16]process_action close_receipt [14:22:16]cmd_close_receipt [14:22:16]MH_GetDate [14:22:16]Write to MH i2c: F0 00 00 CA 2B E4 [14:22:16]Write i2c OK [14:22:16]MH_I2C_Read... [14:22:16]Read from MH i2c: F0 [14:22:16]MH_I2C_Read... [14:22:16]Read from MH i2c: F0 09 00 [14:22:16]MH_I2C_Read... [14:22:16]Read from MH i2c: F0 09 00 CA 2B 00 1C 23 5F 66 B2 22 B0 64 D9 [14:22:16]GetLastDocTimeStamp 1717510814 [14:22:16]current date 1717510940 [14:22:16]FM_GetShiftState [14:22:16]SAM_PROTO_GetShiftState [14:22:16]wFMCommunicate request_size=4 [14:22:16]MH_SAM_APDU [14:22:16]CAPDU: 80 13 01 00 [14:22:16]Write to MH i2c: E2 08 00 CB 2B 80 13 01 00 00 00 00 00 73 [14:22:16]Write i2c OK [14:22:16]MH_I2C_Read... [14:22:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:22:16]Read from MH i2c: E2 [14:22:16]MH_I2C_Read... [14:22:16]Read from MH i2c: E2 0E 00 [14:22:16]MH_I2C_Read... [14:22:16]Read from MH i2c: E2 0E 00 CB 2B 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 0F [14:22:16]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [14:22:16]wFMCommunicate OK [14:22:16]SAM_PROTO_GetShiftState done [14:22:16]FM_GetShiftState done [14:22:16]opened in 1717460590 [14:22:16]opened+sec_in_day 1717546990 [14:22:16]quantity*price = 30038 [14:22:16]sum+1 = 30039 [14:22:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 100 04.06.2024 14:22 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68602 ФПД: 4135588752311 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T142221&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68602&fm=4135588752311&tin=02508201610067®Number=0000000000098096&sum=30000 [14:22:17]StoreToDocumentArchive [14:22:17]shift 325 fd 68602 [14:22:17]save to /storage/0325/doc_00068602 [14:22:17]save last doc name /storage/0325/doc_00068602 to /storage/kkm_last_doc_name [14:22:17]save OK [14:22:17]Clear old archive folders... [14:22:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:22:17]tlvbuf is 00A5A360 [14:22:17]SAM_PROTO_ClearQueue [14:22:17]wFMCommunicate request_size=4 [14:22:17]MH_SAM_APDU [14:22:17]CAPDU: 80 09 00 00 [14:22:17]Write to MH i2c: E2 08 00 D8 2B 80 09 00 00 00 00 00 00 75 [14:22:17]Write i2c OK [14:22:17]MH_I2C_Read... [14:22:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:22:17]Read from MH i2c: E2 [14:22:17]MH_I2C_Read... [14:22:17]Read from MH i2c: E2 03 00 [14:22:17]MH_I2C_Read... [14:22:17]Read from MH i2c: E2 03 00 D8 2B 00 90 00 77 [14:22:17]RAPDU: 90 00 [14:22:17]wFMCommunicate OK [14:22:17]SAM_PROTO_ClearQueue done [14:22:17]KKMCreateOFDPacket [14:22:17]OFDProtocolAddRootSTLVToBuf [14:22:17]FM_MakeSignedData [14:22:17]FM_MakeSignedData [14:22:17]SAM_PROTO_SignData [14:22:17]wFMCommunicate request_size=4 [14:22:17]MH_SAM_APDU [14:22:17]CAPDU: 80 0D 01 02 [14:22:17]Write to MH i2c: E2 08 00 D9 2B 80 0D 01 02 00 00 00 00 7D [14:22:17]Write i2c OK [14:22:17]MH_I2C_Read... [14:22:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:22:17]Read from MH i2c: E2 [14:22:17]MH_I2C_Read... [14:22:17]Read from MH i2c: E2 03 00 [14:22:17]MH_I2C_Read... [14:22:17]Read from MH i2c: E2 03 00 D9 2B 00 90 00 78 [14:22:17]RAPDU: 90 00 [14:22:17]wFMCommunicate OK [14:22:17]wFMCommunicate request_size=255 [14:22:17]MH_SAM_APDU [14:22:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 1D 23 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 FA 0B 01 00 35 04 06 00 03 [14:22:17]Write to MH i2c: E2 02 01 DA 2B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 1D 23 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 FA 0B 01 00 35 04 06 00 03 00 00 B6 [14:22:17]Write i2c OK [14:22:17]MH_I2C_Read... [14:22:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:22:17]Read from MH i2c: E2 [14:22:17]MH_I2C_Read... [14:22:17]Read from MH i2c: E2 03 00 [14:22:17]MH_I2C_Read... [14:22:17]Read from MH i2c: E2 03 00 DA 2B 00 90 00 79 [14:22:17]RAPDU: 90 00 [14:22:17]wFMCommunicate OK [14:22:17]wFMCommunicate request_size=10 [14:22:17]MH_SAM_APDU [14:22:17]CAPDU: 80 0D 02 02 05 C2 E4 4C 6B B7 [14:22:17]Write to MH i2c: E2 0D 00 DB 2B 80 0D 02 02 05 00 C2 E4 4C 6B B7 00 00 9E [14:22:17]Write i2c OK [14:22:17]MH_I2C_Read... [14:22:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:22:17]Read from MH i2c: E2 [14:22:17]MH_I2C_Read... [14:22:17]Read from MH i2c: E2 03 00 [14:22:17]MH_I2C_Read... [14:22:17]Read from MH i2c: E2 03 00 DB 2B 00 90 00 7A [14:22:17]RAPDU: 90 00 [14:22:17]wFMCommunicate OK [14:22:17]wFMCommunicate request_size=4 [14:22:17]MH_SAM_APDU [14:22:17]CAPDU: 80 0D 03 02 [14:22:17]Write to MH i2c: E2 08 00 DC 2B 80 0D 03 02 00 00 00 00 82 [14:22:17]Write i2c OK [14:22:17]MH_I2C_Read... [14:22:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:22:17]Read from MH i2c: E2 [14:22:17]MH_I2C_Read... [14:22:17]Read from MH i2c: E2 0B 00 [14:22:17]MH_I2C_Read... [14:22:17]Read from MH i2c: E2 0B 00 DC 2B 00 D6 17 26 4C 9D 12 D6 4A 90 00 B1 [14:22:17]RAPDU: D6 17 26 4C 9D 12 D6 4A 90 00 [14:22:17]wFMCommunicate OK [14:22:17]SAM_PROTO_SignData done [14:22:17]FM_MakeSignedData done [14:22:17]CreateOFDProtocolMessage [14:22:17]wFMCommunicate request_size=4 [14:22:17]MH_SAM_APDU [14:22:17]CAPDU: 80 11 00 00 [14:22:17]Write to MH i2c: E2 08 00 DD 2B 80 11 00 00 00 00 00 00 82 [14:22:17]Write i2c OK [14:22:17]MH_I2C_Read... [14:22:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:22:17]Read from MH i2c: E2 [14:22:17]MH_I2C_Read... [14:22:17]Read from MH i2c: E2 17 00 [14:22:17]MH_I2C_Read... [14:22:17]Read from MH i2c: E2 17 00 DD 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 CD [14:22:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [14:22:17]wFMCommunicate OK [14:22:17]CreateOFDProtocolMessage done [14:22:17]OFDSenderStorePacket 68602 [14:22:17]StoreOFDPacket docnum=68602 [00:00:10]/dev/ttyS4 opened [00:00:10] *** EcrCore started. Build 196 *** [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 00 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 A5 [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 5400000000572500 (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: 28246171+1689264818=1717510989 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x200ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33530623 [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 00 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 A6 [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 46 00 40 00 FF FF 64 [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 4E 23 5F 66 B2 22 B0 64 1D [14:23:10]Current date/time: 04.06.2024 14:23 [14:23:10]FM_Init [14:23:10]wFMConnect [14:23:10]MH_SAM_On [14:23:10]Write to MH i2c: E0 00 00 08 00 E7 [14:23:10]Write i2c OK [14:23:10]MH_I2C_Read... [14:23:10]*** iso7816_init finished! [14:23:10]*** atr: [14:23:10]*** 0F 3B D5 18 FF 81 91 FE [14:23:10]*** 1F C3 80 73 C8 21 10 0A [14:23:10]*** 00 00 00 00 00 00 00 00 [14:23:10]*** 00 00 00 00 00 00 00 00 [14:23:10]*** 00 00 00 00 00 00 00 00 [14:23:10]*** 00 00 00 00 00 00 00 00 [14:23:10]*** 00 00 00 00 00 00 00 00 [14:23:10]*** 00 00 00 00 00 00 00 00 [14:23:10]Read from MH i2c: E0 [14:23:10]MH_I2C_Read... [14:23:10]Read from MH i2c: E0 10 00 [14:23:10]MH_I2C_Read... [14:23:10]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:23:10]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [14:23:10]wFMCommunicate request_size=10 [14:23:10]MH_SAM_APDU [14:23:10]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [14:23:10]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [14:23:10]Write i2c OK [14:23:10]MH_I2C_Read... [14:23:10]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [14:23:10]Read from MH i2c: E2 [14:23:10]MH_I2C_Read... [14:23:10]Read from MH i2c: E2 03 00 [14:23:10]MH_I2C_Read... [14:23:10]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [14:23:10]RAPDU: 90 00 [14:23:10]wFMCommunicate OK [14:23:10]wFMCommunicate request_size=4 [14:23:10]MH_SAM_APDU [14:23:10]CAPDU: 80 11 00 00 [14:23:10]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [14:23:10]Write i2c OK [14:23:10]MH_I2C_Read... [14:23:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:23:10]Read from MH i2c: E2 [14:23:10]MH_I2C_Read... [14:23:10]Read from MH i2c: E2 17 00 [14:23:10]MH_I2C_Read... [14:23:10]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 CF [14:23:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [14:23:10]wFMCommunicate OK [14:23:10]Detected FM SN is 0000000000965400 [14:23:10]Stored FM SN is 0000000000965400 [14:23:10]wFMCommunicate request_size=9 [14:23:10]MH_SAM_APDU [14:23:10]CAPDU: 80 16 00 00 04 4A 22 00 00 [14:23:10]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 4A 22 00 00 00 00 FE [14:23:10]Write i2c OK [14:23:10]MH_I2C_Read... [14:23:10]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [14:23:10]Read from MH i2c: E2 [14:23:10]MH_I2C_Read... [14:23:10]Read from MH i2c: E2 03 00 [14:23:10]MH_I2C_Read... [14:23:10]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [14:23:10]RAPDU: 90 00 [14:23:10]wFMCommunicate OK [14:23:10]FM PIN OK [14:23:10]wFMCommunicate request_size=8 [14:23:10]MH_SAM_APDU [14:23:10]CAPDU: 80 14 04 00 03 02 00 01 [14:23:10]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [14:23:10]Write i2c OK [14:23:10]MH_I2C_Read... [14:23:10]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [14:23:10]Read from MH i2c: E2 [14:23:10]MH_I2C_Read... [14:23:10]Read from MH i2c: E2 03 00 [14:23:10]MH_I2C_Read... [14:23:10]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [14:23:10]RAPDU: 90 00 [14:23:10]wFMCommunicate OK [14:23:10]wFMCommunicate request_size=13 [14:23:10]MH_SAM_APDU [14:23:10]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [14:23:10]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:23:10]Write i2c OK [14:23:10]MH_I2C_Read... [14:23:10]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [14:23:10]Read from MH i2c: E2 [14:23:10]MH_I2C_Read... [14:23:10]Read from MH i2c: E2 03 00 [14:23:10]MH_I2C_Read... [14:23:10]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [14:23:10]RAPDU: 90 00 [14:23:10]wFMCommunicate OK [14:23:10]wFMCommunicate request_size=4 [14:23:10]MH_SAM_APDU [14:23:10]CAPDU: 80 11 00 00 [14:23:10]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [14:23:10]Write i2c OK [14:23:10]MH_I2C_Read... [14:23:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:23:10]Read from MH i2c: E2 [14:23:10]MH_I2C_Read... [14:23:10]Read from MH i2c: E2 17 00 [14:23:10]MH_I2C_Read... [14:23:10]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 D3 [14:23:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [14:23:10]wFMCommunicate OK [14:23:10]DocumentArchiveInit [14:23:10]Start Httpd... [14:23:10]Httpd thread 3067583844 created [14:23:10]Write to MH i2c: 01 00 00 0F 00 0F [14:23:10]Write i2c OK [14:23:10]MH_I2C_Read... [14:23:10]Read from MH i2c: 01 [14:23:10]MH_I2C_Read... [14:23:10]Read from MH i2c: 01 07 00 [14:23:10]MH_I2C_Read... [14:23:10]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [14:23:10]MH Int Process started [14:23:10]Allocated Socket 8 [14:23:10]Bind OK [14:23:10]Listen OK [14:23:10]httpd running on port 8080 [14:23:10]Waiting for new connection... [14:23:10]OFD Sender: No OFD packet to send [14:23:12]accept exits with 9 [14:23:12]New connection [14:23:12]New thread 3067297124 created [14:23:12]Waiting for new connection... [14:23:12] Sock 9.Parse request [14:23:12]Sock 9.Check first char [14:23:12]Sock 9.First char is OK [14:23:12]request: POST /json_proto HTTP/1.0 [14:23:12]Method: POST [14:23:12]URL: /json_proto [14:23:12]Method is POST - this is cgi request [14:23:12]url: /json_proto [14:23:12]query_string will be loaded in cgi processing [14:23:12]execute_cgi json_proto POST (null) [14:23:12]execute_cgi path=json_proto method=POST [14:23:12]POST find Content-Length [14:23:12]Host: 172.17.36.132:8080 [14:23:12]Content-Length: 215 [14:23:12]Content-Type: application/json [14:23:12] [14:23:12]POST finish read [14:23:12]Found Content-Length = 215 [14:23:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:23:12]execute_script... [14:23:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:23:12]POST & json_proto [14:23:12]process_json_proto [14:23:12]json parsed OK: [14:23:12]protocol is kg_v1.0 [14:23:12]action value=get_value [14:23:12]process_action get_value [14:23:12]cmd_get_value [14:23:12]process_action get_value done [14:23:12]requested_data is exist [14:23:12]produce_requested_data [14:23:12]requested_item kkm.sn is exist - process it [14:23:12]requested_item kkm.ver is exist - process it [14:23:12]requested_item fm.sn is exist - process it [14:23:12]wFMCommunicate request_size=4 [14:23:12]MH_SAM_APDU [14:23:12]CAPDU: 80 11 00 00 [14:23:12]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [14:23:12]Write i2c OK [14:23:12]MH_I2C_Read... [14:23:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:23:12]Read from MH i2c: E2 [14:23:12]MH_I2C_Read... [14:23:12]Read from MH i2c: E2 17 00 [14:23:12]MH_I2C_Read... [14:23:12]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 D5 [14:23:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [14:23:12]wFMCommunicate OK [14:23:12]requested_item fd.num is exist - process it [14:23:12]SAM_PROTO_GetFieldsCounters [14:23:12]wFMCommunicate request_size=4 [14:23:12]MH_SAM_APDU [14:23:12]CAPDU: 80 13 00 00 [14:23:12]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [14:23:12]Write i2c OK [14:23:12]MH_I2C_Read... [14:23:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:23:12]Read from MH i2c: E2 [14:23:12]MH_I2C_Read... [14:23:12]Read from MH i2c: E2 62 00 [14:23:12]MH_I2C_Read... [14:23:12]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 FA 0B 01 00 0E 04 04 00 45 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 25 [14:23:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 FA 0B 01 00 0E 04 04 00 45 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 [14:23:12]wFMCommunicate OK [14:23:12]SAM_PROTO_GetFieldsCounters done [14:23:12]requested_item shift.num is exist - process it [14:23:12]requested_item shift.opened is exist - process it [14:23:12]req_shift_opened [14:23:12]FM_GetShiftState [14:23:12]SAM_PROTO_GetShiftState [14:23:12]wFMCommunicate request_size=4 [14:23:12]MH_SAM_APDU [14:23:12]CAPDU: 80 13 01 00 [14:23:12]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [14:23:12]Write i2c OK [14:23:12]MH_I2C_Read... [14:23:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:23:12]Read from MH i2c: E2 [14:23:12]MH_I2C_Read... [14:23:12]Read from MH i2c: E2 0E 00 [14:23:12]MH_I2C_Read... [14:23:12]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 2B [14:23:12]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [14:23:12]wFMCommunicate OK [14:23:12]SAM_PROTO_GetShiftState done [14:23:12]FM_GetShiftState done [14:23:12]req_shift_opened done [14:23:12]requested_item shift.open_date is exist - process it [14:23:12]req_shift_open_date [14:23:12]req_shift_open_date done [14:23:12]produce_requested_data done [14:23:12]produce_requested_data return {"kkm.sn":"0300000181","kkm.ver":"001","fm.sn":"0000000000965400","fd.num":68602,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [14:23:12]process_action_free get_value [14:23:12]json_value_free [14:23:12]json_value_free done [14:23:12]process_json_proto returns [14:23:12]Send response to host [14:23:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000181","kkm.ver":"001","fm.sn":"0000000000965400","fd.num":68602,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [14:23:12]free response buf [14:23:12]execute_script done [14:23:12]execute_script returns [14:23:12]free content buf [14:23:12]Sock 9.Close socket [14:23:12]Sock 9.Thread stoped [14:23:12]accept exits with 6 [14:23:12]New connection [14:23:12]New thread 3067153764 created [14:23:12]Thread 3067297124 joined [14:23:12]Waiting for new connection... [14:23:12] Sock 6.Parse request [14:23:12]Sock 6.Check first char [14:23:12]Sock 6.First char is OK [14:23:12]request: POST /json_proto HTTP/1.0 [14:23:12]Method: POST [14:23:12]URL: /json_proto [14:23:12]Method is POST - this is cgi request [14:23:12]url: /json_proto [14:23:12]query_string will be loaded in cgi processing [14:23:12]execute_cgi json_proto POST (null) [14:23:12]execute_cgi path=json_proto method=POST [14:23:12]POST find Content-Length [14:23:12]Host: 172.17.36.132:8080 [14:23:12]Content-Length: 331 [14:23:12]Content-Type: application/json [14:23:12] [14:23:12]POST finish read [14:23:12]Found Content-Length = 331 [14:23:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [14:23:12]execute_script... [14:23:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [14:23:12]POST & json_proto [14:23:12]process_json_proto [14:23:12]json parsed OK: [14:23:12]protocol is kg_v1.0 [14:23:12]action value=get_value [14:23:12]process_action get_value [14:23:12]cmd_get_value [14:23:12]process_action get_value done [14:23:12]requested_data is exist [14:23:12]produce_requested_data [14:23:12]requested_item fm.sale.total is exist - process it [14:23:12]SAM_PROTO_GetFMData [14:23:12]wFMCommunicate request_size=4 [14:23:12]MH_SAM_APDU [14:23:12]CAPDU: 80 13 03 00 [14:23:12]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [14:23:12]Write i2c OK [14:23:12]MH_I2C_Read... [14:23:13]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [14:23:13]Read from MH i2c: E2 [14:23:13]MH_I2C_Read... [14:23:13]Read from MH i2c: E2 FD 00 [14:23:13]MH_I2C_Read... [14:23:13]Read from MH i2c: E2 FD 00 13 00 00 C5 04 85 04 C1 04 6E 04 04 00 70 09 01 00 69 04 A3 00 6F 04 04 00 57 04 01 00 B1 04 05 00 D7 47 70 3A 01 70 04 05 00 CC 82 A7 0D 01 72 04 04 00 0B C5 C8 2C 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 44 E4 66 21 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 C2 79 C8 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 9C 00 6F 04 04 00 19 05 00 00 B1 04 04 00 54 69 F2 0E 70 04 04 00 54 69 F2 0E 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 92 66 96 01 EF 03 09 90 00 F7 [14:23:13]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 70 09 01 00 69 04 A3 00 6F 04 04 00 57 04 01 00 B1 04 05 00 D7 47 70 3A 01 70 04 05 00 CC 82 A7 0D 01 72 04 04 00 0B C5 C8 2C 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 44 E4 66 21 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 C2 79 C8 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 9C 00 6F 04 04 00 19 05 00 00 B1 04 04 00 54 69 F2 0E 70 04 04 00 54 69 F2 0E 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 92 66 96 01 EF 03 09 90 00 [14:23:13]wFMCommunicate OK [14:23:13]wFMCommunicate request_size=4 [14:23:13]MH_SAM_APDU [14:23:13]CAPDU: 80 17 00 00 [14:23:13]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [14:23:13]Write i2c OK [14:23:13]MH_I2C_Read... [14:23:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:23:13]Read from MH i2c: E2 [14:23:13]MH_I2C_Read... [14:23:13]Read from MH i2c: E2 FD 00 [14:23:13]MH_I2C_Read... [14:23:13]Read from MH i2c: E2 FD 00 14 00 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 70 DD 21 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 B8 [14:23:13]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 70 DD 21 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [14:23:13]wFMCommunicate OK [14:23:13]wFMCommunicate request_size=4 [14:23:13]MH_SAM_APDU [14:23:13]CAPDU: 80 17 00 00 [14:23:13]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [14:23:13]Write i2c OK [14:23:13]MH_I2C_Read... [14:23:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:23:13]Read from MH i2c: E2 [14:23:13]MH_I2C_Read... [14:23:13]Read from MH i2c: E2 FD 00 [14:23:13]MH_I2C_Read... [14:23:13]Read from MH i2c: E2 FD 00 15 00 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 A7 [14:23:13]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [14:23:13]wFMCommunicate OK [14:23:13]wFMCommunicate request_size=4 [14:23:13]MH_SAM_APDU [14:23:13]CAPDU: 80 17 00 00 [14:23:13]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [14:23:13]Write i2c OK [14:23:13]MH_I2C_Read... [14:23:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:23:14]Read from MH i2c: E2 [14:23:14]MH_I2C_Read... [14:23:14]Read from MH i2c: E2 FD 00 [14:23:14]MH_I2C_Read... [14:23:14]Read from MH i2c: E2 FD 00 16 00 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 22 [14:23:14]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [14:23:14]wFMCommunicate OK [14:23:14]wFMCommunicate request_size=4 [14:23:14]MH_SAM_APDU [14:23:14]CAPDU: 80 17 00 00 [14:23:14]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [14:23:14]Write i2c OK [14:23:14]MH_I2C_Read... [14:23:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [14:23:14]Read from MH i2c: E2 [14:23:14]MH_I2C_Read... [14:23:14]Read from MH i2c: E2 E2 00 [14:23:14]MH_I2C_Read... [14:23:14]Read from MH i2c: E2 E2 00 17 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 75 [14:23:14]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [14:23:14]wFMCommunicate OK [14:23:14]SAM_PROTO_GetFMData done [14:23:14]requested_item fm.sale_refund.total is exist - process it [14:23:14]requested_item fm.buy.total is exist - process it [14:23:14]requested_item shift.sale.total is exist - process it [14:23:14]SAM_PROTO_GetShiftData [14:23:14]wFMCommunicate request_size=4 [14:23:14]MH_SAM_APDU [14:23:14]CAPDU: 80 13 02 00 [14:23:14]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [14:23:14]Write i2c OK [14:23:14]MH_I2C_Read... [14:23:14]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [14:23:14]Read from MH i2c: E2 [14:23:14]MH_I2C_Read... [14:23:14]Read from MH i2c: E2 FD 00 [14:23:14]MH_I2C_Read... [14:23:14]Read from MH i2c: E2 FD 00 18 00 00 BA 04 AA 04 B6 04 6E 04 04 00 64 00 00 00 69 04 9C 00 6F 04 04 00 62 00 00 00 B1 04 03 00 E6 50 8B 70 04 03 00 64 A4 6A 72 04 03 00 82 AC 20 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 5A CC 0E 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 B3 3B 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 98 00 6F 04 04 00 02 00 00 00 B1 04 03 00 60 AE 0A 70 04 03 00 60 AE 0A 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 6A 22 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 CB [14:23:14]RAPDU: BA 04 AA 04 B6 04 6E 04 04 00 64 00 00 00 69 04 9C 00 6F 04 04 00 62 00 00 00 B1 04 03 00 E6 50 8B 70 04 03 00 64 A4 6A 72 04 03 00 82 AC 20 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 5A CC 0E 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 B3 3B 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 98 00 6F 04 04 00 02 00 00 00 B1 04 03 00 60 AE 0A 70 04 03 00 60 AE 0A 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 6A 22 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [14:23:14]wFMCommunicate OK [14:23:14]wFMCommunicate request_size=4 [14:23:14]MH_SAM_APDU [14:23:14]CAPDU: 80 17 00 00 [14:23:14]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [14:23:15]Write i2c OK [14:23:15]MH_I2C_Read... [14:23:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:23:15]Read from MH i2c: E2 [14:23:15]MH_I2C_Read... [14:23:15]Read from MH i2c: E2 FD 00 [14:23:15]MH_I2C_Read... [14:23:15]Read from MH i2c: E2 FD 00 19 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 34 18 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 8F [14:23:15]RAPDU: EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 34 18 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [14:23:15]wFMCommunicate OK [14:23:15]wFMCommunicate request_size=4 [14:23:15]MH_SAM_APDU [14:23:15]CAPDU: 80 17 00 00 [14:23:15]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [14:23:15]Write i2c OK [14:23:15]MH_I2C_Read... [14:23:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:23:15]Read from MH i2c: E2 [14:23:15]MH_I2C_Read... [14:23:15]Read from MH i2c: E2 FD 00 [14:23:15]MH_I2C_Read... [14:23:15]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 [14:23:15]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 [14:23:15]wFMCommunicate OK [14:23:15]wFMCommunicate request_size=4 [14:23:15]MH_SAM_APDU [14:23:15]CAPDU: 80 17 00 00 [14:23:15]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [14:23:15]OFD Sender: No OFD packet to send [14:23:15]Write i2c OK [14:23:15]MH_I2C_Read... [14:23:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:23:15]Read from MH i2c: E2 [14:23:15]MH_I2C_Read... [14:23:15]Read from MH i2c: E2 FD 00 [14:23:15]MH_I2C_Read... [14:23:15]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 [14:23:15]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 [14:23:15]wFMCommunicate OK [14:23:15]wFMCommunicate request_size=4 [14:23:15]MH_SAM_APDU [14:23:15]CAPDU: 80 17 00 00 [14:23:15]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [14:23:15]Write i2c OK [14:23:15]MH_I2C_Read... [14:23:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [14:23:16]Read from MH i2c: E2 [14:23:16]MH_I2C_Read... [14:23:16]Read from MH i2c: E2 D7 00 [14:23:16]MH_I2C_Read... [14:23:16]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 [14:23:16]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 [14:23:16]wFMCommunicate OK [14:23:16]SAM_PROTO_GetShiftData done [14:23:16]requested_item shift.sale.total_cash is exist - process it [14:23:16]requested_item shift.sale_refund.total is exist - process it [14:23:16]requested_item shift.sale_refund.total_cash is exist - process it [14:23:16]requested_item shift.buy.total is exist - process it [14:23:16]requested_item shift.buy.total_cash is exist - process it [14:23:16]produce_requested_data done [14:23:16]produce_requested_data return {"fm.sale.total":52754042.47,"fm.sale_refund.total":2507677.00,"fm.buy.total":0.00,"shift.sale.total":91302.14,"shift.sale.total_cash":69889.00,"shift.sale_refund.total":7000.00,"shift.sale_refund.total_cash":7000.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [14:23:16]process_action_free get_value [14:23:16]json_value_free [14:23:16]json_value_free done [14:23:16]process_json_proto returns [14:23:16]Send response to host [14:23:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":52754042.47,"fm.sale_refund.total":2507677.00,"fm.buy.total":0.00,"shift.sale.total":91302.14,"shift.sale.total_cash":69889.00,"shift.sale_refund.total":7000.00,"shift.sale_refund.total_cash":7000.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [14:23:16]free response buf [14:23:16]execute_script done [14:23:16]execute_script returns [14:23:16]free content buf [14:23:16]Sock 6.Close socket [14:23:16]Sock 6.Thread stoped [14:23:20]OFD Sender: No OFD packet to send [14:23:25]OFD Sender: No OFD packet to send [14:23:30]OFD Sender: No OFD packet to send [14:23:35]OFD Sender: No OFD packet to send [14:23:40]OFD Sender: No OFD packet to send [14:23:45]OFD Sender: No OFD packet to send [14:23:50]OFD Sender: No OFD packet to send [14:23:55]OFD Sender: No OFD packet to send [14:24:00]OFD Sender: No OFD packet to send [14:24:02]accept exits with 9 [14:24:02]New connection [14:24:02]New thread 3067297124 created [14:24:02]Thread 3067153764 joined [14:24:02]Waiting for new connection... [14:24:02] Sock 9.Parse request [14:24:02]Sock 9.Check first char [14:24:02]Sock 9.First char is OK [14:24:02]request: POST /json_proto HTTP/1.0 [14:24:02]Method: POST [14:24:02]URL: /json_proto [14:24:02]Method is POST - this is cgi request [14:24:02]url: /json_proto [14:24:02]query_string will be loaded in cgi processing [14:24:02]execute_cgi json_proto POST (null) [14:24:02]execute_cgi path=json_proto method=POST [14:24:02]POST find Content-Length [14:24:02]Host: 172.17.36.132:8080 [14:24:02]Content-Length: 677 [14:24:02]Content-Type: application/json [14:24:02] [14:24:02]POST finish read [14:24:02]Found Content-Length = 677 [14:24:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706733", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 2.250, "sum" : 150.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 150.00, "total" : 150.00, "payments": [ { "type": 0, "sum" : 150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:24:02]execute_script... [14:24: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)706733", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 2.250, "sum" : 150.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 150.00, "total" : 150.00, "payments": [ { "type": 0, "sum" : 150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:24:02]POST & json_proto [14:24:02]process_json_proto [14:24:02]json parsed OK: [14:24:02]protocol is kg_v1.0 [14:24:02]action value=close_receipt [14:24:02]process_action close_receipt [14:24:02]cmd_close_receipt [14:24:02]MH_GetDate [14:24:02]Write to MH i2c: F0 00 00 1D 00 0C [14:24:02]Write i2c OK [14:24:02]MH_I2C_Read... [14:24:02]Read from MH i2c: F0 [14:24:02]MH_I2C_Read... [14:24:02]Read from MH i2c: F0 09 00 [14:24:02]MH_I2C_Read... [14:24:02]Read from MH i2c: F0 09 00 1D 00 00 82 23 5F 66 B2 22 B0 64 67 [14:24:02]GetLastDocTimeStamp 97 [14:24:02]current date 1717511042 [14:24:02]FM_GetShiftState [14:24:02]SAM_PROTO_GetShiftState [14:24:02]wFMCommunicate request_size=4 [14:24:02]MH_SAM_APDU [14:24:02]CAPDU: 80 13 01 00 [14:24:02]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [14:24:02]Write i2c OK [14:24:02]MH_I2C_Read... [14:24:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:24:02]Read from MH i2c: E2 [14:24:02]MH_I2C_Read... [14:24:02]Read from MH i2c: E2 0E 00 [14:24:02]MH_I2C_Read... [14:24:02]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 37 [14:24:02]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [14:24:02]wFMCommunicate OK [14:24:02]SAM_PROTO_GetShiftState done [14:24:02]FM_GetShiftState done [14:24:02]opened in 1717460590 [14:24:02]opened+sec_in_day 1717546990 [14:24:02]quantity*price = 15052 [14:24:02]sum+1 = 15054 [14:24:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 150.00 Внесено: 150.00 СДАЧА: 0.00 НСП 1% : 1.33 НДС 12% : 15.98 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 101 04.06.2024 14:24 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68603 ФПД: 276536853877120 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T142402&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68603&fm=276536853877120&tin=02508201610067®Number=0000000000098096&sum=15000 [14:24:03]StoreToDocumentArchive [14:24:03]shift 325 fd 68603 [14:24:03]save to /storage/0325/doc_00068603 [14:24:03]save last doc name /storage/0325/doc_00068603 to /storage/kkm_last_doc_name [14:24:03]save OK [14:24:03]Clear old archive folders... [14:24:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:24:03]tlvbuf is 00A69A20 [14:24:03]SAM_PROTO_ClearQueue [14:24:03]wFMCommunicate request_size=4 [14:24:03]MH_SAM_APDU [14:24:03]CAPDU: 80 09 00 00 [14:24:03]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [14:24:03]Write i2c OK [14:24:03]MH_I2C_Read... [14:24:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:24:03]Read from MH i2c: E2 [14:24:03]MH_I2C_Read... [14:24:03]Read from MH i2c: E2 03 00 [14:24:03]MH_I2C_Read... [14:24:03]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [14:24:03]RAPDU: 90 00 [14:24:03]wFMCommunicate OK [14:24:03]SAM_PROTO_ClearQueue done [14:24:03]KKMCreateOFDPacket [14:24:03]OFDProtocolAddRootSTLVToBuf [14:24:03]FM_MakeSignedData [14:24:03]FM_MakeSignedData [14:24:03]SAM_PROTO_SignData [14:24:03]wFMCommunicate request_size=4 [14:24:03]MH_SAM_APDU [14:24:03]CAPDU: 80 0D 01 02 [14:24:03]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [14:24:03]Write i2c OK [14:24:03]MH_I2C_Read... [14:24:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:24:03]Read from MH i2c: E2 [14:24:03]MH_I2C_Read... [14:24:03]Read from MH i2c: E2 03 00 [14:24:03]MH_I2C_Read... [14:24:03]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [14:24:03]RAPDU: 90 00 [14:24:03]wFMCommunicate OK [14:24:03]wFMCommunicate request_size=255 [14:24:03]MH_SAM_APDU [14:24: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 34 FF 03 08 00 03 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 82 23 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 FB 0B 01 00 35 04 06 00 FB [14:24:03]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 34 FF 03 08 00 03 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 82 23 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 FB 0B 01 00 35 04 06 00 FB 00 00 46 [14:24:03]Write i2c OK [14:24:03]MH_I2C_Read... [14:24:03]Read from MH i2c: E2 [14:24:03]MH_I2C_Read... [14:24:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:24:03]Read from MH i2c: E2 03 00 [14:24:03]MH_I2C_Read... [14:24:03]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [14:24:03]RAPDU: 90 00 [14:24:03]wFMCommunicate OK [14:24:03]wFMCommunicate request_size=10 [14:24:03]MH_SAM_APDU [14:24:03]CAPDU: 80 0D 02 02 05 82 40 F1 51 80 [14:24:03]Write to MH i2c: E2 0D 00 2E 00 80 0D 02 02 05 00 82 40 F1 51 80 00 00 36 [14:24:03]Write i2c OK [14:24:03]MH_I2C_Read... [14:24:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:24:03]Read from MH i2c: E2 [14:24:03]MH_I2C_Read... [14:24:03]Read from MH i2c: E2 03 00 [14:24:03]MH_I2C_Read... [14:24:03]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [14:24:03]RAPDU: 90 00 [14:24:03]wFMCommunicate OK [14:24:03]wFMCommunicate request_size=4 [14:24:03]MH_SAM_APDU [14:24:03]CAPDU: 80 0D 03 02 [14:24:03]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [14:24:03]Write i2c OK [14:24:03]MH_I2C_Read... [14:24:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:24:03]Read from MH i2c: E2 [14:24:03]MH_I2C_Read... [14:24:03]Read from MH i2c: E2 0B 00 [14:24:03]MH_I2C_Read... [14:24:03]Read from MH i2c: E2 0B 00 2F 00 00 20 D6 95 C1 4D F2 F0 B0 90 00 D6 [14:24:03]RAPDU: 20 D6 95 C1 4D F2 F0 B0 90 00 [14:24:03]wFMCommunicate OK [14:24:03]SAM_PROTO_SignData done [14:24:03]FM_MakeSignedData done [14:24:03]CreateOFDProtocolMessage [14:24:03]wFMCommunicate request_size=4 [14:24:03]MH_SAM_APDU [14:24:03]CAPDU: 80 11 00 00 [14:24:03]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [14:24:03]Write i2c OK [14:24:03]MH_I2C_Read... [14:24:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:24:03]Read from MH i2c: E2 [14:24:03]MH_I2C_Read... [14:24:03]Read from MH i2c: E2 17 00 [14:24:03]MH_I2C_Read... [14:24:03]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 F5 [14:24:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [14:24:03]wFMCommunicate OK [14:24:03]CreateOFDProtocolMessage done [14:24:03]OFDSenderStorePacket 68603 [14:24:03]StoreOFDPacket docnum=68603 [14:24:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 67 9C 07 01 A9 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 34 FF 03 08 00 03 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 82 23 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 FB 0B 01 00 35 04 06 00 FB 82 40 F1 51 80 20 D6 95 C1 4D F2 F0 B0 [14:24:03]CheckFolder [14:24:03]dirname=/storage/ofd_packets [14:24:03]CheckFolder done [14:24:03]ProducePacketName [14:24:03]name=ofd_packets/00068603 [14:24:03]NVStorageSaveData ofd_packets/00068603 [14:24:03]File name is /storage/ofd_packets/00068603 [14:24:03]Write 301 bytes [14:24:03]NVStorageSaveData done [14:24:03]OFDSenderStorePacket done [14:24:03]KKMCreateOFDPacket done [14:24:03]NVStorageSaveData kkm_last_timestamp [14:24:03]File name is /storage/kkm_last_timestamp [14:24:03]Write 4 bytes [14:24:03]NVStorageSaveData done [14:24:03]ExternCall_PrintAddStr [14:24:03]wPrintStart [14:24:03]Write to MH i2c: 01 00 00 31 00 31 [14:24:03]Write i2c OK [14:24:03]MH_I2C_Read... [14:24:03]Read from MH i2c: 01 [14:24:03]MH_I2C_Read... [14:24:03]Read from MH i2c: 01 07 00 [14:24:03]MH_I2C_Read... [14:24:03]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [14:24:03]RasterBufferAndPrint [14:24:03]line Счет N : (1)706733 [14:24:03]line ИНН: 02508201610067 [14:24:03]line Контрольно-Кассовый Чек [14:24:03]line ПРОДАЖА [14:24:03]line ТРК (МРК, ГНК) : 23 [14:24:03]line Товар: 2710124130 [14:24:03]line Аи-92-К-4 [14:24:03]line 2.250 * 66.90 [14:24:03]line = 150.53 [14:24:03]line НДС 12% НСП 1% [14:24:03]line > о реализуемом товаре [14:24:03]line ОКРУГЛЕНИЕ: -0.53 [14:24:03]line ИТОГО: 150.00 [14:24:03]line Внесено: 150.00 [14:24:03]line СДАЧА: 0.00 [14:24:03]line НСП 1% : 1.33 [14:24:03]line НДС 12% : 15.98 [14:24:03]line Наличными: 150.00 [14:24:03]line Безнал.: 0.00 [14:24:03]line Место: АЗС № 62 "Партнер Нефть" [14:24:03]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [14:24:03]line СНО: Общий режим [14:24:03]line Чек 101 04.06.2024 14:24 [14:24:03]line Смена: 325 ФФД: 1.0 [14:24:03]line ЗНМ: 0300000181 [14:24:03]line РНМ: 0000000000098096 [14:24:03]line Версия ККМ: 001 [14:24:03]line ФМ: 0000000000965400 [14:24:03]line ФД: 68603 [14:24:03]line ФПД: 276536853877120 [14:24:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T142402&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68603&fm=276536853877120&tin=02508201610067®Number=0000000000098096&sum=15000 [14:24:03]OFD Sender: Processing packet 68603 [packets to send 27, broken 26] [14:24:03]ProducePacketName [14:24:03]name=ofd_packets/00068603 [14:24:04]OFD Sender: To server: pG, [14:24:04]CommunicateWithHost lk.salyk.kg:30040 [14:24:04]ConnectInit lk.salyk.kg [14:24:04]written 0, free lines is 4095 [14:24:04]Connected sock=10 [14:24:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 67 9C 07 01 A9 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 34 FF 03 08 00 03 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 82 23 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 FB 0B 01 00 35 04 06 00 FB 82 40 F1 51 80 20 D6 95 C1 4D F2 F0 B0 [14:24:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 34 24 47 00 1F 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 39 36 35 34 30 30 10 04 04 00 FB 0B 01 00 F4 03 04 00 7A CA 5E 66 B6 04 01 00 00 BC AD 5A DE 30 B1 51 C7 [14:24:04]CommunicateWithHost err = 0 [14:24:04]CheckOFDResponse [14:24:04]1017 (14) - 77093643461234 [14:24:04]1041 (16) - 0000000000965400 [14:24:04]1040 (4) - 68603 [14:24:04]1012 (4) - 04.06.2024 08:04 [14:24:04]1206 (1) - 0 [14:24:04]OFD Sender: Remove packet 68603 [14:24:04]ProducePacketName [14:24:04]name=ofd_packets/00068603 [14:24:04]NVStorageDeleteData [14:24:04]Write to MH i2c: 01 00 00 5C 00 5C [14:24:04]Write i2c OK [14:24:04]MH_I2C_Read... [14:24:04]Read from MH i2c: 01 [14:24:04]MH_I2C_Read... [14:24:04]Read from MH i2c: 01 07 00 [14:24:04]MH_I2C_Read... [14:24:04]Read from MH i2c: 01 07 00 5C 00 00 00 00 00 00 EA 0C 59 [14:24:04]RasterBufferAndPrint [14:24:04]line [14:24:04]line [14:24:04]line [14:24:04]line [14:24:04]line [14:24:04]written 0, free lines is 3312 [14:24:04]MH_Cut [14:24:04]Write to MH i2c: D1 01 00 63 00 01 35 [14:24:04]Write i2c OK [14:24:04]MH_I2C_Read... [14:24:04]Read from MH i2c: D1 [14:24:04]MH_I2C_Read... [14:24:04]Read from MH i2c: D1 01 00 [14:24:04]MH_I2C_Read... [14:24:04]Read from MH i2c: D1 01 00 63 00 00 34 [14:24:04]Write to MH i2c: 01 00 00 64 00 64 [14:24:04]Write i2c OK [14:24:04]MH_I2C_Read... [14:24:05]OFD Sender: No OFD packet to send [14:24:05]*** Cut start [14:24:05]*** Partial cut [14:24:05]*** CUTSNS_PIN = 1 [14:24:05]*** CUTSNS_PIN = 0 [14:24:05]*** Brake cut motor [14:24:06]Read from MH i2c: 01 [14:24:06]MH_I2C_Read... [14:24:06]*** Stop cut motor [14:24:06]*** Cut end [14:24:06]Read from MH i2c: 01 07 00 [14:24:06]MH_I2C_Read... [14:24:06]Read from MH i2c: 01 07 00 64 00 00 00 00 00 00 FF 0F 79 [14:24:06]process_action close_receipt done [14:24:06]requested_data is exist [14:24:06]produce_requested_data [14:24:06]requested_item fm.sn is exist - process it [14:24:06]wFMCommunicate request_size=4 [14:24:06]MH_SAM_APDU [14:24:06]CAPDU: 80 11 00 00 [14:24:06]Write to MH i2c: E2 08 00 65 00 80 11 00 00 00 00 00 00 DF [14:24:06]Write i2c OK [14:24:06]MH_I2C_Read... [14:24:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:24:06]Read from MH i2c: E2 [14:24:06]MH_I2C_Read... [14:24:06]Read from MH i2c: E2 17 00 [14:24:06]MH_I2C_Read... [14:24:06]Read from MH i2c: E2 17 00 65 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 2A [14:24:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [14:24:06]wFMCommunicate OK [14:24:06]requested_item fd.num is exist - process it [14:24:06]SAM_PROTO_GetFieldsCounters [14:24:06]wFMCommunicate request_size=4 [14:24:06]MH_SAM_APDU [14:24:06]CAPDU: 80 13 00 00 [14:24:06]Write to MH i2c: E2 08 00 66 00 80 13 00 00 00 00 00 00 E2 [14:24:06]Write i2c OK [14:24:06]MH_I2C_Read... [14:24:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:24:06]Read from MH i2c: E2 [14:24:06]MH_I2C_Read... [14:24:06]Read from MH i2c: E2 62 00 [14:24:06]MH_I2C_Read... [14:24:06]Read from MH i2c: E2 62 00 66 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 FB 0B 01 00 0E 04 04 00 45 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 7E [14:24:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 FB 0B 01 00 0E 04 04 00 45 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 [14:24:06]wFMCommunicate OK [14:24:06]SAM_PROTO_GetFieldsCounters done [14:24:06]requested_item shift.num is exist - process it [14:24:06]requested_item shift.opened is exist - process it [14:24:06]req_shift_opened [14:24:06]FM_GetShiftState [14:24:06]SAM_PROTO_GetShiftState [14:24:06]wFMCommunicate request_size=4 [14:24:06]MH_SAM_APDU [14:24:06]CAPDU: 80 13 01 00 [14:24:06]Write to MH i2c: E2 08 00 67 00 80 13 01 00 00 00 00 00 E4 [14:24:06]Write i2c OK [14:24:06]MH_I2C_Read... [14:24:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:24:06]Read from MH i2c: E2 [14:24:06]MH_I2C_Read... [14:24:06]Read from MH i2c: E2 0E 00 [14:24:06]MH_I2C_Read... [14:24:06]Read from MH i2c: E2 0E 00 67 00 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 80 [14:24:06]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [14:24:06]wFMCommunicate OK [14:24:06]SAM_PROTO_GetShiftState done [14:24:06]FM_GetShiftState done [14:24:06]req_shift_opened done [14:24:06]requested_item shift.open_date is exist - process it [14:24:06]req_shift_open_date [14:24:06]req_shift_open_date done [14:24:06]produce_requested_data done [14:24:06]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68603,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [14:24:06]process_action_free close_receipt [14:24:06]json_value_free [14:24:06]json_value_free done [14:24:06]process_json_proto returns [14:24:06]Send response to host [14:24:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68603,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [14:24:06]free response buf [14:24:06]execute_script done [14:24:06]execute_script returns [14:24:06]free content buf [14:24:06]Sock 9.Close socket [14:24:06]Sock 9.Thread stoped [14:24:10]OFD Sender: No OFD packet to send [14:24:15]OFD Sender: No OFD packet to send [14:24:20]OFD Sender: No OFD packet to send [14:24:25]OFD Sender: No OFD packet to send [14:24:30]OFD Sender: No OFD packet to send [14:24:35]OFD Sender: No OFD packet to send [14:24:40]OFD Sender: No OFD packet to send [14:24:45]OFD Sender: No OFD packet to send [14:24:50]OFD Sender: No OFD packet to send [14:24:55]OFD Sender: No OFD packet to send [14:25:00]OFD Sender: No OFD packet to send [14:25:05]OFD Sender: No OFD packet to send [14:25:10]OFD Sender: No OFD packet to send [14:25:15]OFD Sender: No OFD packet to send [14:25:20]OFD Sender: No OFD packet to send [14:25:25]OFD Sender: No OFD packet to send [14:25:30]OFD Sender: No OFD packet to send [14:25:35]OFD Sender: No OFD packet to send [14:25:40]OFD Sender: No OFD packet to send [14:25:45]OFD Sender: No OFD packet to send [14:25:50]OFD Sender: No OFD packet to send [14:25:55]OFD Sender: No OFD packet to send [14:26:00]OFD Sender: No OFD packet to send [14:26:05]OFD Sender: No OFD packet to send [14:26:10]OFD Sender: No OFD packet to send [14:26:15]OFD Sender: No OFD packet to send [14:26:20]OFD Sender: No OFD packet to send [14:26:25]OFD Sender: No OFD packet to send [14:26:30]OFD Sender: No OFD packet to send [14:26:35]OFD Sender: No OFD packet to send [14:26:40]OFD Sender: No OFD packet to send [14:26:45]OFD Sender: No OFD packet to send [14:26:50]OFD Sender: No OFD packet to send [14:26:55]OFD Sender: No OFD packet to send [14:27:00]OFD Sender: No OFD packet to send [14:27:05]OFD Sender: No OFD packet to send [14:27:10]OFD Sender: No OFD packet to send [14:27:11]accept exits with 7 [14:27:11]New connection [14:27:11]New thread 3067153764 created [14:27:11]Thread 3067297124 joined [14:27:11]Waiting for new connection... [14:27:11] Sock 7.Parse request [14:27:11]Sock 7.Check first char [14:27:11]Sock 7.First char is OK [14:27:11]request: POST /json_proto HTTP/1.0 [14:27:11]Method: POST [14:27:11]URL: /json_proto [14:27:11]Method is POST - this is cgi request [14:27:11]url: /json_proto [14:27:11]query_string will be loaded in cgi processing [14:27:11]execute_cgi json_proto POST (null) [14:27:11]execute_cgi path=json_proto method=POST [14:27:11]POST find Content-Length [14:27:11]Host: 172.17.36.132:8080 [14:27:11]Content-Length: 677 [14:27:11]Content-Type: application/json [14:27:11] [14:27:11]POST finish read [14:27:11]Found Content-Length = 677 [14:27:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706734", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.790, "sum" : 320.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 320.00, "total" : 320.00, "payments": [ { "type": 0, "sum" : 320.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:27:11]execute_script... [14:27: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)706734", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.790, "sum" : 320.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 320.00, "total" : 320.00, "payments": [ { "type": 0, "sum" : 320.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:27:11]POST & json_proto [14:27:11]process_json_proto [14:27:11]json parsed OK: [14:27:11]protocol is kg_v1.0 [14:27:11]action value=close_receipt [14:27:11]process_action close_receipt [14:27:11]cmd_close_receipt [14:27:11]MH_GetDate [14:27:11]Write to MH i2c: F0 00 00 68 00 57 [14:27:11]Write i2c OK [14:27:11]MH_I2C_Read... [14:27:11]Read from MH i2c: F0 [14:27:11]MH_I2C_Read... [14:27:11]Read from MH i2c: F0 09 00 [14:27:11]MH_I2C_Read... [14:27:11]Read from MH i2c: F0 09 00 68 00 00 3F 24 5F 66 B2 22 B0 64 70 [14:27:11]GetLastDocTimeStamp 1717511042 [14:27:11]current date 1717511231 [14:27:11]FM_GetShiftState [14:27:11]SAM_PROTO_GetShiftState [14:27:11]wFMCommunicate request_size=4 [14:27:11]MH_SAM_APDU [14:27:11]CAPDU: 80 13 01 00 [14:27:11]Write to MH i2c: E2 08 00 69 00 80 13 01 00 00 00 00 00 E6 [14:27:11]Write i2c OK [14:27:11]MH_I2C_Read... [14:27:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:27:11]Read from MH i2c: E2 [14:27:11]MH_I2C_Read... [14:27:11]Read from MH i2c: E2 0E 00 [14:27:11]MH_I2C_Read... [14:27:11]Read from MH i2c: E2 0E 00 69 00 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 82 [14:27:11]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [14:27:11]wFMCommunicate OK [14:27:11]SAM_PROTO_GetShiftState done [14:27:11]FM_GetShiftState done [14:27:11]opened in 1717460590 [14:27:11]opened+sec_in_day 1717546990 [14:27:11]quantity*price = 32045 [14:27:11]sum+1 = 32046 [14:27:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 320.00 Внесено: 320.00 СДАЧА: 0.00 НСП 1% : 2.84 НДС 12% : 34.03 Наличными: 320.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 102 04.06.2024 14:27 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68604 ФПД: 85894105216694 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T142711&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68604&fm=85894105216694&tin=02508201610067®Number=0000000000098096&sum=32000 [14:27:12]StoreToDocumentArchive [14:27:12]shift 325 fd 68604 [14:27:12]save to /storage/0325/doc_00068604 [14:27:12]save last doc name /storage/0325/doc_00068604 to /storage/kkm_last_doc_name [14:27:12]save OK [14:27:12]Clear old archive folders... [14:27:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:27:12]tlvbuf is 00A605A0 [14:27:12]SAM_PROTO_ClearQueue [14:27:12]wFMCommunicate request_size=4 [14:27:12]MH_SAM_APDU [14:27:12]CAPDU: 80 09 00 00 [14:27:12]Write to MH i2c: E2 08 00 76 00 80 09 00 00 00 00 00 00 E8 [14:27:12]Write i2c OK [14:27:12]MH_I2C_Read... [14:27:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:27:12]Read from MH i2c: E2 [14:27:12]MH_I2C_Read... [14:27:12]Read from MH i2c: E2 03 00 [14:27:12]MH_I2C_Read... [14:27:12]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [14:27:12]RAPDU: 90 00 [14:27:12]wFMCommunicate OK [14:27:12]SAM_PROTO_ClearQueue done [14:27:12]KKMCreateOFDPacket [14:27:12]OFDProtocolAddRootSTLVToBuf [14:27:12]FM_MakeSignedData [14:27:12]FM_MakeSignedData [14:27:12]SAM_PROTO_SignData [14:27:12]wFMCommunicate request_size=4 [14:27:12]MH_SAM_APDU [14:27:12]CAPDU: 80 0D 01 02 [14:27:12]Write to MH i2c: E2 08 00 77 00 80 0D 01 02 00 00 00 00 F0 [14:27:12]Write i2c OK [14:27:12]MH_I2C_Read... [14:27:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:27:12]Read from MH i2c: E2 [14:27:12]MH_I2C_Read... [14:27:12]Read from MH i2c: E2 03 00 [14:27:12]MH_I2C_Read... [14:27:12]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [14:27:12]RAPDU: 90 00 [14:27:12]wFMCommunicate OK [14:27:12]wFMCommunicate request_size=255 [14:27:12]MH_SAM_APDU [14:27:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 B6 12 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 2D 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 3F 24 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 FC 0B 01 00 35 04 06 00 4E [14:27:12]Write to MH i2c: E2 02 01 78 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 B6 12 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 2D 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 3F 24 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 FC 0B 01 00 35 04 06 00 4E 00 00 3F [14:27:12]Write i2c OK [14:27:12]MH_I2C_Read... [14:27:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:27:12]Read from MH i2c: E2 [14:27:12]MH_I2C_Read... [14:27:12]Read from MH i2c: E2 03 00 [14:27:12]MH_I2C_Read... [14:27:12]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [14:27:12]RAPDU: 90 00 [14:27:12]wFMCommunicate OK [14:27:12]wFMCommunicate request_size=10 [14:27:12]MH_SAM_APDU [14:27:12]CAPDU: 80 0D 02 02 05 1E C7 A1 36 B6 [14:27:12]Write to MH i2c: E2 0D 00 79 00 80 0D 02 02 05 00 1E C7 A1 36 B6 00 00 6F [14:27:12]Write i2c OK [14:27:12]MH_I2C_Read... [14:27:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:27:12]Read from MH i2c: E2 [14:27:12]MH_I2C_Read... [14:27:12]Read from MH i2c: E2 03 00 [14:27:12]MH_I2C_Read... [14:27:12]Read from MH i2c: E2 03 00 79 00 00 90 00 ED [14:27:12]RAPDU: 90 00 [14:27:12]wFMCommunicate OK [14:27:12]wFMCommunicate request_size=4 [14:27:12]MH_SAM_APDU [14:27:12]CAPDU: 80 0D 03 02 [14:27:12]Write to MH i2c: E2 08 00 7A 00 80 0D 03 02 00 00 00 00 F5 [14:27:12]Write i2c OK [14:27:12]MH_I2C_Read... [14:27:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:27:12]Read from MH i2c: E2 [14:27:12]MH_I2C_Read... [14:27:12]Read from MH i2c: E2 0B 00 [14:27:12]MH_I2C_Read... [14:27:12]Read from MH i2c: E2 0B 00 7A 00 00 F8 B2 1A 11 FE 4E D3 CD 90 00 B7 [14:27:12]RAPDU: F8 B2 1A 11 FE 4E D3 CD 90 00 [14:27:12]wFMCommunicate OK [14:27:12]SAM_PROTO_SignData done [14:27:12]FM_MakeSignedData done [14:27:12]CreateOFDProtocolMessage [14:27:12]wFMCommunicate request_size=4 [14:27:12]MH_SAM_APDU [14:27:12]CAPDU: 80 11 00 00 [14:27:12]Write to MH i2c: E2 08 00 7B 00 80 11 00 00 00 00 00 00 F5 [14:27:12]Write i2c OK [14:27:12]MH_I2C_Read... [14:27:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:27:12]Read from MH i2c: E2 [14:27:12]MH_I2C_Read... [14:27:12]Read from MH i2c: E2 17 00 [14:27:12]MH_I2C_Read... [14:27:12]Read from MH i2c: E2 17 00 7B 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 40 [14:27:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [14:27:12]wFMCommunicate OK [14:27:12]CreateOFDProtocolMessage done [14:27:12]OFDSenderStorePacket 68604 [14:27:12]StoreOFDPacket docnum=68604 [14:27:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 39 A4 07 01 FA 90 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 B6 12 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 2D 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 3F 24 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 FC 0B 01 00 35 04 06 00 4E 1E C7 A1 36 B6 F8 B2 1A 11 FE 4E D3 CD [14:27:12]CheckFolder [14:27:12]dirname=/storage/ofd_packets [14:27:12]CheckFolder done [14:27:12]ProducePacketName [14:27:12]name=ofd_packets/00068604 [14:27:12]NVStorageSaveData ofd_packets/00068604 [14:27:12]File name is /storage/ofd_packets/00068604 [14:27:12]Write 301 bytes [14:27:12]NVStorageSaveData done [14:27:12]OFDSenderStorePacket done [14:27:12]KKMCreateOFDPacket done [14:27:12]NVStorageSaveData kkm_last_timestamp [14:27:12]File name is /storage/kkm_last_timestamp [14:27:12]Write 4 bytes [14:27:12]NVStorageSaveData done [14:27:12]ExternCall_PrintAddStr [14:27:12]wPrintStart [14:27:12]Write to MH i2c: 01 00 00 7C 00 7C [14:27:12]Write i2c OK [14:27:12]MH_I2C_Read... [14:27:12]Read from MH i2c: 01 [14:27:12]MH_I2C_Read... [14:27:12]Read from MH i2c: 01 07 00 [14:27:12]MH_I2C_Read... [14:27:12]Read from MH i2c: 01 07 00 7C 00 00 00 00 00 00 FF 0F 91 [14:27:12]RasterBufferAndPrint [14:27:12]line Счет N : (1)706734 [14:27:12]line ИНН: 02508201610067 [14:27:12]line Контрольно-Кассовый Чек [14:27:12]line ПРОДАЖА [14:27:12]line ТРК (МРК, ГНК) : 32 [14:27:12]line Товар: 2710124130 [14:27:12]line Аи-92-К-4 [14:27:12]line 4.790 * 66.90 [14:27:12]line = 320.45 [14:27:12]line НДС 12% НСП 1% [14:27:12]line > о реализуемом товаре [14:27:12]line ОКРУГЛЕНИЕ: -0.45 [14:27:12]line ИТОГО: 320.00 [14:27:12]line Внесено: 320.00 [14:27:12]line СДАЧА: 0.00 [14:27:12]line НСП 1% : 2.84 [14:27:12]line НДС 12% : 34.03 [14:27:12]line Наличными: 320.00 [14:27:12]line Безнал.: 0.00 [14:27:12]line Место: АЗС № 62 "Партнер Нефть" [14:27:12]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [14:27:12]line СНО: Общий режим [14:27:12]line Чек 102 04.06.2024 14:27 [14:27:12]line Смена: 325 ФФД: 1.0 [14:27:12]line ЗНМ: 0300000181 [14:27:12]line РНМ: 0000000000098096 [14:27:12]line Версия ККМ: 001 [14:27:12]line ФМ: 0000000000965400 [14:27:12]line ФД: 68604 [14:27:12]line ФПД: 85894105216694 [14:27:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T142711&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68604&fm=85894105216694&tin=02508201610067®Number=0000000000098096&sum=32000 [14:27:13]OFD Sender: Processing packet 68604 [packets to send 27, broken 26] [14:27:13]ProducePacketName [14:27:13]name=ofd_packets/00068604 [14:27:13]OFD Sender: To server: pG, [14:27:13]CommunicateWithHost lk.salyk.kg:30040 [14:27:13]ConnectInit lk.salyk.kg [14:27:13]written 0, free lines is 4095 [14:27:13]Connected sock=10 [14:27:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 39 A4 07 01 FA 90 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 B6 12 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 2D 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 3F 24 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 FC 0B 01 00 35 04 06 00 4E 1E C7 A1 36 B6 F8 B2 1A 11 FE 4E D3 CD [14:27:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 A7 B2 47 00 AA 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 39 36 35 34 30 30 10 04 04 00 FC 0B 01 00 F4 03 04 00 37 CB 5E 66 B6 04 01 00 00 F1 32 70 90 33 C7 0E A3 [14:27:13]CommunicateWithHost err = 0 [14:27:13]CheckOFDResponse [14:27:13]1017 (14) - 77093643461234 [14:27:13]1041 (16) - 0000000000965400 [14:27:13]1040 (4) - 68604 [14:27:13]1012 (4) - 04.06.2024 08:07 [14:27:13]1206 (1) - 0 [14:27:13]OFD Sender: Remove packet 68604 [14:27:13]ProducePacketName [14:27:13]name=ofd_packets/00068604 [14:27:13]NVStorageDeleteData [14:27:13]Write to MH i2c: 01 00 00 A7 00 A7 [14:27:13]Write i2c OK [14:27:13]MH_I2C_Read... [14:27:13]Read from MH i2c: 01 [14:27:13]MH_I2C_Read... [14:27:13]Read from MH i2c: 01 07 00 [14:27:13]MH_I2C_Read... [14:27:13]Read from MH i2c: 01 07 00 A7 00 00 00 00 00 00 E9 0C A3 [14:27:13]RasterBufferAndPrint [14:27:13]line [14:27:13]line [14:27:13]line [14:27:13]line [14:27:13]line [14:27:13]written 0, free lines is 3312 [14:27:13]MH_Cut [14:27:13]Write to MH i2c: D1 01 00 AE 00 01 80 [14:27:13]Write i2c OK [14:27:13]MH_I2C_Read... [14:27:13]Read from MH i2c: D1 [14:27:13]MH_I2C_Read... [14:27:13]Read from MH i2c: D1 01 00 [14:27:13]MH_I2C_Read... [14:27:13]Read from MH i2c: D1 01 00 AE 00 00 7F [14:27:13]Write to MH i2c: 01 00 00 AF 00 AF [14:27:13]Write i2c OK [14:27:13]MH_I2C_Read... [14:27:13]OFD Sender: No OFD packet to send [14:27:14]*** Cut start [14:27:14]*** Partial cut [14:27:14]*** CUTSNS_PIN = 1 [14:27:14]*** CUTSNS_PIN = 0 [14:27:14]*** Brake cut motor [14:27:15]Read from MH i2c: 01 [14:27:15]MH_I2C_Read... [14:27:15]*** Stop cut motor [14:27:15]*** Cut end [14:27:15]Read from MH i2c: 01 07 00 [14:27:15]MH_I2C_Read... [14:27:15]Read from MH i2c: 01 07 00 AF 00 00 00 00 00 00 FF 0F C4 [14:27:15]process_action close_receipt done [14:27:15]requested_data is exist [14:27:15]produce_requested_data [14:27:15]requested_item fm.sn is exist - process it [14:27:15]wFMCommunicate request_size=4 [14:27:15]MH_SAM_APDU [14:27:15]CAPDU: 80 11 00 00 [14:27:15]Write to MH i2c: E2 08 00 B0 00 80 11 00 00 00 00 00 00 2A [14:27:15]Write i2c OK [14:27:15]MH_I2C_Read... [14:27:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:27:15]Read from MH i2c: E2 [14:27:15]MH_I2C_Read... [14:27:15]Read from MH i2c: E2 17 00 [14:27:15]MH_I2C_Read... [14:27:15]Read from MH i2c: E2 17 00 B0 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 75 [14:27:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [14:27:15]wFMCommunicate OK [14:27:15]requested_item fd.num is exist - process it [14:27:15]SAM_PROTO_GetFieldsCounters [14:27:15]wFMCommunicate request_size=4 [14:27:15]MH_SAM_APDU [14:27:15]CAPDU: 80 13 00 00 [14:27:15]Write to MH i2c: E2 08 00 B1 00 80 13 00 00 00 00 00 00 2D [14:27:15]Write i2c OK [14:27:15]MH_I2C_Read... [14:27:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:27:15]Read from MH i2c: E2 [14:27:15]MH_I2C_Read... [14:27:15]Read from MH i2c: E2 62 00 [14:27:15]MH_I2C_Read... [14:27:15]Read from MH i2c: E2 62 00 B1 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 FC 0B 01 00 0E 04 04 00 45 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 CD [14:27:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 FC 0B 01 00 0E 04 04 00 45 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 [14:27:15]wFMCommunicate OK [14:27:15]SAM_PROTO_GetFieldsCounters done [14:27:15]requested_item shift.num is exist - process it [14:27:15]requested_item shift.opened is exist - process it [14:27:15]req_shift_opened [14:27:15]FM_GetShiftState [14:27:15]SAM_PROTO_GetShiftState [14:27:15]wFMCommunicate request_size=4 [14:27:15]MH_SAM_APDU [14:27:15]CAPDU: 80 13 01 00 [14:27:15]Write to MH i2c: E2 08 00 B2 00 80 13 01 00 00 00 00 00 2F [14:27:15]Write i2c OK [14:27:15]MH_I2C_Read... [14:27:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:27:15]Read from MH i2c: E2 [14:27:15]MH_I2C_Read... [14:27:15]Read from MH i2c: E2 0E 00 [14:27:15]MH_I2C_Read... [14:27:15]Read from MH i2c: E2 0E 00 B2 00 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 CB [14:27:15]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [14:27:15]wFMCommunicate OK [14:27:15]SAM_PROTO_GetShiftState done [14:27:15]FM_GetShiftState done [14:27:15]req_shift_opened done [14:27:15]requested_item shift.open_date is exist - process it [14:27:15]req_shift_open_date [14:27:15]req_shift_open_date done [14:27:15]produce_requested_data done [14:27:15]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68604,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [14:27:15]process_action_free close_receipt [14:27:15]json_value_free [14:27:15]json_value_free done [14:27:15]process_json_proto returns [14:27:15]Send response to host [14:27:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68604,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [14:27:15]free response buf [14:27:15]execute_script done [14:27:15]execute_script returns [14:27:15]free content buf [14:27:15]Sock 7.Close socket [14:27:15]Sock 7.Thread stoped [14:27:19]OFD Sender: No OFD packet to send [14:27:24]OFD Sender: No OFD packet to send [14:27:29]OFD Sender: No OFD packet to send [14:27:34]OFD Sender: No OFD packet to send [14:27:39]OFD Sender: No OFD packet to send [14:27:44]OFD Sender: No OFD packet to send [14:27:49]OFD Sender: No OFD packet to send [14:27:54]OFD Sender: No OFD packet to send [14:27:59]OFD Sender: No OFD packet to send [14:28:04]OFD Sender: No OFD packet to send [14:28:09]OFD Sender: No OFD packet to send [14:28:09]accept exits with 9 [14:28:09]New connection [14:28:09]New thread 3067297124 created [14:28:09]Thread 3067153764 joined [14:28:09]Waiting for new connection... [14:28:09] Sock 9.Parse request [14:28:09]Sock 9.Check first char [14:28:09]Sock 9.First char is OK [14:28:09]request: POST /json_proto HTTP/1.0 [14:28:09]Method: POST [14:28:09]URL: /json_proto [14:28:09]Method is POST - this is cgi request [14:28:09]url: /json_proto [14:28:09]query_string will be loaded in cgi processing [14:28:09]execute_cgi json_proto POST (null) [14:28:09]execute_cgi path=json_proto method=POST [14:28:09]POST find Content-Length [14:28:09]Host: 172.17.36.132:8080 [14:28:09]Content-Length: 836 [14:28:09]Content-Type: application/json [14:28:09] [14:28:09]POST finish read [14:28:09]Found Content-Length = 836 [14:28:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706735", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.90, "quantity" : 14.730, "sum" : 1000.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.17 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:28:09]execute_script... [14: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)706735", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.90, "quantity" : 14.730, "sum" : 1000.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.17 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:28:09]POST & json_proto [14:28:09]process_json_proto [14:28:09]json parsed OK: [14:28:09]protocol is kg_v1.0 [14:28:09]action value=close_receipt [14:28:09]process_action close_receipt [14:28:09]cmd_close_receipt [14:28:09]MH_GetDate [14:28:09]Write to MH i2c: F0 00 00 B3 00 A2 [14:28:09]Write i2c OK [14:28:09]MH_I2C_Read... [14:28:09]Read from MH i2c: F0 [14:28:09]MH_I2C_Read... [14:28:09]Read from MH i2c: F0 09 00 [14:28:09]MH_I2C_Read... [14:28:09]Read from MH i2c: F0 09 00 B3 00 00 7A 24 5F 66 B2 22 B0 64 F6 [14:28:09]GetLastDocTimeStamp 1717511231 [14:28:09]current date 1717511290 [14:28:09]FM_GetShiftState [14:28:09]SAM_PROTO_GetShiftState [14:28:09]wFMCommunicate request_size=4 [14:28:09]MH_SAM_APDU [14:28:09]CAPDU: 80 13 01 00 [14:28:09]Write to MH i2c: E2 08 00 B4 00 80 13 01 00 00 00 00 00 31 [14:28:09]Write i2c OK [14:28:09]MH_I2C_Read... [14:28:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:28:10]Read from MH i2c: E2 [14:28:10]MH_I2C_Read... [14:28:10]Read from MH i2c: E2 0E 00 [14:28:10]MH_I2C_Read... [14:28:10]Read from MH i2c: E2 0E 00 B4 00 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 CD [14:28:10]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [14:28:10]wFMCommunicate OK [14:28:10]SAM_PROTO_GetShiftState done [14:28:10]FM_GetShiftState done [14:28:10]opened in 1717460590 [14:28:10]opened+sec_in_day 1717546990 [14:28:10]quantity*price = 100016 [14:28:10]sum+1 = 100018 [14:28:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.17 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.17 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 103 04.06.2024 14:28 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000965400 ФД: 68605 ФПД: 23293964967673 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T142810&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68605&fm=23293964967673&tin=02508201610067®Number=0000000000098096&sum=100017 [14:28:11]StoreToDocumentArchive [14:28:11]shift 325 fd 68605 [14:28:11]save to /storage/0325/doc_00068605 [14:28:11]save last doc name /storage/0325/doc_00068605 to /storage/kkm_last_doc_name [14:28:11]save OK [14:28:11]Clear old archive folders... [14:28:11]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:28:11]tlvbuf is 00A59A40 [14:28:11]SAM_PROTO_ClearQueue [14:28:11]wFMCommunicate request_size=4 [14:28:11]MH_SAM_APDU [14:28:11]CAPDU: 80 09 00 00 [14:28:11]Write to MH i2c: E2 08 00 C1 00 80 09 00 00 00 00 00 00 33 [14:28:11]Write i2c OK [14:28:11]MH_I2C_Read... [14:28:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:28:11]Read from MH i2c: E2 [14:28:11]MH_I2C_Read... [14:28:11]Read from MH i2c: E2 03 00 [14:28:11]MH_I2C_Read... [14:28:11]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [14:28:11]RAPDU: 90 00 [14:28:11]wFMCommunicate OK [14:28:11]SAM_PROTO_ClearQueue done [14:28:11]KKMCreateOFDPacket [14:28:11]OFDProtocolAddRootSTLVToBuf [14:28:11]FM_MakeSignedData [14:28:11]FM_MakeSignedData [14:28:11]SAM_PROTO_SignData [14:28:11]wFMCommunicate request_size=4 [14:28:11]MH_SAM_APDU [14:28:11]CAPDU: 80 0D 01 02 [14:28:11]Write to MH i2c: E2 08 00 C2 00 80 0D 01 02 00 00 00 00 3B [14:28:11]Write i2c OK [14:28:11]MH_I2C_Read... [14:28:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:28:11]Read from MH i2c: E2 [14:28:11]MH_I2C_Read... [14:28:11]Read from MH i2c: E2 03 00 [14:28:11]MH_I2C_Read... [14:28:11]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [14:28:11]RAPDU: 90 00 [14:28:11]wFMCommunicate OK [14:28:11]wFMCommunicate request_size=255 [14:28:11]MH_SAM_APDU [14:28: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 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 39 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 B1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 B1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 7A 24 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 FD 0B 01 00 35 04 06 00 [14:28:11]Write to MH i2c: E2 02 01 C3 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 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 39 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 B1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 B1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 7A 24 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 FD 0B 01 00 35 04 06 00 00 00 B0 [14:28:11]Write i2c OK [14:28:11]MH_I2C_Read... [14:28:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:28:11]Read from MH i2c: E2 [14:28:11]MH_I2C_Read... [14:28:11]Read from MH i2c: E2 03 00 [14:28:11]MH_I2C_Read... [14:28:11]Read from MH i2c: E2 03 00 C3 00 00 90 00 37 [14:28:11]RAPDU: 90 00 [14:28:11]wFMCommunicate OK [14:28:11]wFMCommunicate request_size=11 [14:28:11]MH_SAM_APDU [14:28:11]CAPDU: 80 0D 02 02 06 15 2F 8C 81 DE F9 [14:28:11]Write to MH i2c: E2 0E 00 C4 00 80 0D 02 02 06 00 15 2F 8C 81 DE F9 00 00 72 [14:28:11]Write i2c OK [14:28:11]MH_I2C_Read... [14:28:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:28:11]Read from MH i2c: E2 [14:28:11]MH_I2C_Read... [14:28:11]Read from MH i2c: E2 03 00 [14:28:11]MH_I2C_Read... [14:28:11]Read from MH i2c: E2 03 00 C4 00 00 90 00 38 [14:28:11]RAPDU: 90 00 [14:28:11]wFMCommunicate OK [14:28:11]wFMCommunicate request_size=4 [14:28:11]MH_SAM_APDU [14:28:11]CAPDU: 80 0D 03 02 [14:28:11]Write to MH i2c: E2 08 00 C5 00 80 0D 03 02 00 00 00 00 40 [14:28:11]Write i2c OK [14:28:11]MH_I2C_Read... [14:28:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:28:11]Read from MH i2c: E2 [14:28:11]MH_I2C_Read... [14:28:11]Read from MH i2c: E2 0B 00 [14:28:11]MH_I2C_Read... [14:28:11]Read from MH i2c: E2 0B 00 C5 00 00 AC 7D D2 0E 56 70 B5 B5 90 00 7A [14:28:11]RAPDU: AC 7D D2 0E 56 70 B5 B5 90 00 [14:28:11]wFMCommunicate OK [14:28:11]SAM_PROTO_SignData done [14:28:11]FM_MakeSignedData done [14:28:11]CreateOFDProtocolMessage [14:28:11]wFMCommunicate request_size=4 [14:28:11]MH_SAM_APDU [14:28:11]CAPDU: 80 11 00 00 [14:28:11]Write to MH i2c: E2 08 00 C6 00 80 11 00 00 00 00 00 00 40 [14:28:11]Write i2c OK [14:28:11]MH_I2C_Read... [14:28:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:28:11]Read from MH i2c: E2 [14:28:11]MH_I2C_Read... [14:28:11]Read from MH i2c: E2 17 00 [14:28:11]MH_I2C_Read... [14:28:11]Read from MH i2c: E2 17 00 C6 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 8B [14:28:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [14:28:11]wFMCommunicate OK [14:28:11]CreateOFDProtocolMessage done [14:28:11]OFDSenderStorePacket 68605 [14:28:11]StoreOFDPacket docnum=68605 [14:28:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 B4 CF 08 01 02 EE 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 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 39 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 B1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 B1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 7A 24 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 FD 0B 01 00 35 04 06 00 15 2F 8C 81 DE F9 AC 7D D2 0E 56 70 B5 B5 [14:28:11]CheckFolder [14:28:11]dirname=/storage/ofd_packets [14:28:11]CheckFolder done [14:28:11]ProducePacketName [14:28:11]name=ofd_packets/00068605 [14:28:11]NVStorageSaveData ofd_packets/00068605 [14:28:11]File name is /storage/ofd_packets/00068605 [14:28:11]Write 302 bytes [14:28:11]NVStorageSaveData done [14:28:11]OFDSenderStorePacket done [14:28:11]KKMCreateOFDPacket done [14:28:11]NVStorageSaveData kkm_last_timestamp [14:28:11]File name is /storage/kkm_last_timestamp [14:28:11]Write 4 bytes [14:28:11]NVStorageSaveData done [14:28:11]ExternCall_PrintAddStr [14:28:11]wPrintStart [14:28:11]Write to MH i2c: 01 00 00 C7 00 C7 [14:28:11]Write i2c OK [14:28:11]MH_I2C_Read... [14:28:11]Read from MH i2c: 01 [14:28:11]MH_I2C_Read... [14:28:11]Read from MH i2c: 01 07 00 [14:28:11]MH_I2C_Read... [14:28:11]Read from MH i2c: 01 07 00 C7 00 00 00 00 00 00 FF 0F DC [14:28:11]RasterBufferAndPrint [14:28:11]line Счет N : (1)706735 [14:28:11]line ИНН: 02508201610067 [14:28:11]line Контрольно-Кассовый Чек [14:28:11]line ПРОДАЖА [14:28:11]line ТРК (МРК, ГНК) : 12 [14:28:11]line Товар: 2710124130 [14:28:11]line Super-92-К-5 [14:28:11]line 14.730 * 67.90 [14:28:11]line = 1000.17 [14:28:11]line НДС 12% НСП 1% [14:28:11]line > о реализуемом товаре [14:28:11]line ИТОГО: 1000.17 [14:28:11]line НСП 1% : 8.85 [14:28:11]line НДС 12% : 106.21 [14:28:11]line Наличными: 0.00 [14:28:11]line Безнал.: 1000.17 [14:28:11]line Место: АЗС № 62 "Партнер Нефть" [14:28:11]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [14:28:11]line СНО: Общий режим [14:28:11]line Чек 103 04.06.2024 14:28 [14:28:11]line Смена: 325 ФФД: 1.0 [14:28:11]line ЗНМ: 0300000181 [14:28:11]line РНМ: 0000000000098096 [14:28:11]line Версия ККМ: 001 [14:28:11]line Платежная система: АКБ Кыргызстан [14:28:11]line ФМ: 0000000000965400 [14:28:11]line ФД: 68605 [14:28:11]line ФПД: 23293964967673 [14:28:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T142810&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68605&fm=23293964967673&tin=02508201610067®Number=0000000000098096&sum=100017 [14:28:12]OFD Sender: Processing packet 68605 [packets to send 27, broken 26] [14:28:12]ProducePacketName [14:28:12]name=ofd_packets/00068605 [14:28:12]OFD Sender: To server: pG, [14:28:12]CommunicateWithHost lk.salyk.kg:30040 [14:28:12]ConnectInit lk.salyk.kg [14:28:12]written 0, free lines is 4095 [14:28:12]Connected sock=10 [14:28:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 B4 CF 08 01 02 EE 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 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 39 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 B1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 B1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 7A 24 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 FD 0B 01 00 35 04 06 00 15 2F 8C 81 DE F9 AC 7D D2 0E 56 70 B5 B5 [14:28:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 C7 87 47 00 02 F2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 FD 0B 01 00 F4 03 04 00 72 CB 5E 66 B6 04 01 00 00 FC 2F 13 EC 90 EB 40 D8 [14:28:12]CommunicateWithHost err = 0 [14:28:12]CheckOFDResponse [14:28:12]1017 (14) - 77093643461234 [14:28:12]1041 (16) - 0000000000965400 [14:28:12]1040 (4) - 68605 [14:28:12]1012 (4) - 04.06.2024 08:08 [14:28:12]1206 (1) - 0 [14:28:12]OFD Sender: Remove packet 68605 [14:28:12]ProducePacketName [14:28:12]name=ofd_packets/00068605 [14:28:12]NVStorageDeleteData [14:28:12]Write to MH i2c: 01 00 00 F1 00 F1 [14:28:12]Write i2c OK [14:28:12]MH_I2C_Read... [14:28:12]Read from MH i2c: 01 [14:28:12]MH_I2C_Read... [14:28:12]Read from MH i2c: 01 07 00 [14:28:12]MH_I2C_Read... [14:28:12]Read from MH i2c: 01 07 00 F1 00 00 00 00 00 00 FB 0C FF [14:28:12]RasterBufferAndPrint [14:28:12]line [14:28:12]line [14:28:12]line [14:28:12]line [14:28:12]line [14:28:12]written 0, free lines is 3329 [14:28:12]MH_Cut [14:28:12]Write to MH i2c: D1 01 00 F8 00 01 CA [14:28:12]Write i2c OK [14:28:12]MH_I2C_Read... [14:28:12]Read from MH i2c: D1 [14:28:12]MH_I2C_Read... [14:28:12]Read from MH i2c: D1 01 00 [14:28:12]MH_I2C_Read... [14:28:12]Read from MH i2c: D1 01 00 F8 00 00 C9 [14:28:12]Write to MH i2c: 01 00 00 F9 00 F9 [14:28:12]Write i2c OK [14:28:12]MH_I2C_Read... [14:28:12]OFD Sender: No OFD packet to send [14:28:13]*** Cut start [14:28:13]*** Partial cut [14:28:13]*** CUTSNS_PIN = 1 [14:28:13]*** CUTSNS_PIN = 0 [14:28:13]*** Brake cut motor [14:28:13]Read from MH i2c: 01 [14:28:13]MH_I2C_Read... [14:28:13]*** Stop cut motor [14:28:13]*** Cut end [14:28:13]Read from MH i2c: 01 07 00 [14:28:13]MH_I2C_Read... [14:28:13]Read from MH i2c: 01 07 00 F9 00 00 00 00 00 00 FF 0F 0E [14:28:13]process_action close_receipt done [14:28:13]requested_data is exist [14:28:13]produce_requested_data [14:28:13]requested_item fm.sn is exist - process it [14:28:13]wFMCommunicate request_size=4 [14:28:13]MH_SAM_APDU [14:28:13]CAPDU: 80 11 00 00 [14:28:13]Write to MH i2c: E2 08 00 FA 00 80 11 00 00 00 00 00 00 74 [14:28:13]Write i2c OK [14:28:13]MH_I2C_Read... [14:28:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:28:13]Read from MH i2c: E2 [14:28:13]MH_I2C_Read... [14:28:13]Read from MH i2c: E2 17 00 [14:28:13]MH_I2C_Read... [14:28:13]Read from MH i2c: E2 17 00 FA 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 BF [14:28:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [14:28:13]wFMCommunicate OK [14:28:13]requested_item fd.num is exist - process it [14:28:13]SAM_PROTO_GetFieldsCounters [14:28:13]wFMCommunicate request_size=4 [14:28:13]MH_SAM_APDU [14:28:13]CAPDU: 80 13 00 00 [14:28:13]Write to MH i2c: E2 08 00 FB 00 80 13 00 00 00 00 00 00 77 [14:28:13]Write i2c OK [14:28:13]MH_I2C_Read... [14:28:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:28:14]Read from MH i2c: E2 [14:28:14]MH_I2C_Read... [14:28:14]Read from MH i2c: E2 62 00 [14:28:14]MH_I2C_Read... [14:28:14]Read from MH i2c: E2 62 00 FB 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 FD 0B 01 00 0E 04 04 00 45 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 1B [14:28:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 FD 0B 01 00 0E 04 04 00 45 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 [14:28:14]wFMCommunicate OK [14:28:14]SAM_PROTO_GetFieldsCounters done [14:28:14]requested_item shift.num is exist - process it [14:28:14]requested_item shift.opened is exist - process it [14:28:14]req_shift_opened [14:28:14]FM_GetShiftState [14:28:14]SAM_PROTO_GetShiftState [14:28:14]wFMCommunicate request_size=4 [14:28:14]MH_SAM_APDU [14:28:14]CAPDU: 80 13 01 00 [14:28:14]Write to MH i2c: E2 08 00 FC 00 80 13 01 00 00 00 00 00 79 [14:28:14]Write i2c OK [14:28:14]MH_I2C_Read... [14:28:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:28:14]Read from MH i2c: E2 [14:28:14]MH_I2C_Read... [14:28:14]Read from MH i2c: E2 0E 00 [14:28:14]MH_I2C_Read... [14:28:14]Read from MH i2c: E2 0E 00 FC 00 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 15 [14:28:14]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [14:28:14]wFMCommunicate OK [14:28:14]SAM_PROTO_GetShiftState done [14:28:14]FM_GetShiftState done [14:28:14]req_shift_opened done [14:28:14]requested_item shift.open_date is exist - process it [14:28:14]req_shift_open_date [14:28:14]req_shift_open_date done [14:28:14]produce_requested_data done [14:28:14]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68605,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [14:28:14]process_action_free close_receipt [14:28:14]json_value_free [14:28:14]json_value_free done [14:28:14]process_json_proto returns [14:28:14]Send response to host [14:28:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68605,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [14:28:14]free response buf [14:28:14]execute_script done [14:28:14]execute_script returns [14:28:14]free content buf [14:28:14]Sock 9.Close socket [14:28:14]Sock 9.Thread stoped [14:28:17]OFD Sender: No OFD packet to send [14:28:22]OFD Sender: No OFD packet to send [14:28:27]OFD Sender: No OFD packet to send [14:28:32]OFD Sender: No OFD packet to send [14:28:37]OFD Sender: No OFD packet to send [14:28:42]OFD Sender: No OFD packet to send [14:28:47]OFD Sender: No OFD packet to send [14:28:52]OFD Sender: No OFD packet to send [14:28:57]OFD Sender: No OFD packet to send [14:29:02]OFD Sender: No OFD packet to send [14:29:07]OFD Sender: No OFD packet to send [14:29:12]OFD Sender: No OFD packet to send [14:29:17]OFD Sender: No OFD packet to send [14:29:22]OFD Sender: No OFD packet to send [14:29:27]OFD Sender: No OFD packet to send [14:29:32]OFD Sender: No OFD packet to send [14:29:37]OFD Sender: No OFD packet to send [14:29:42]OFD Sender: No OFD packet to send [14:29:47]OFD Sender: No OFD packet to send [14:29:52]OFD Sender: No OFD packet to send [14:29:57]OFD Sender: No OFD packet to send [14:30:02]OFD Sender: No OFD packet to send [14:30:07]OFD Sender: No OFD packet to send [14:30:12]OFD Sender: No OFD packet to send [14:30:17]OFD Sender: No OFD packet to send [14:30:22]OFD Sender: No OFD packet to send [14:30:27]OFD Sender: No OFD packet to send [14:30:32]OFD Sender: No OFD packet to send [14:30:37]OFD Sender: No OFD packet to send [14:30:42]OFD Sender: No OFD packet to send [14:30:47]OFD Sender: No OFD packet to send [14:30:52]OFD Sender: No OFD packet to send [14:30:57]OFD Sender: No OFD packet to send [14:31:02]OFD Sender: No OFD packet to send [14:31:07]OFD Sender: No OFD packet to send [14:31:12]OFD Sender: No OFD packet to send [14:31:17]OFD Sender: No OFD packet to send [14:31:22]OFD Sender: No OFD packet to send [14:31:27]OFD Sender: No OFD packet to send [14:31:32]OFD Sender: No OFD packet to send [14:31:37]OFD Sender: No OFD packet to send [14:31:42]OFD Sender: No OFD packet to send [14:31:47]OFD Sender: No OFD packet to send [14:31:53]OFD Sender: No OFD packet to send [14:31:58]OFD Sender: No OFD packet to send [14:32:03]OFD Sender: No OFD packet to send [14:32:08]OFD Sender: No OFD packet to send [14:32:13]OFD Sender: No OFD packet to send [14:32:16]accept exits with 7 [14:32:16]New connection [14:32:16]New thread 3067153764 created [14:32:16]Thread 3067297124 joined [14:32:16]Waiting for new connection... [14:32:16] Sock 7.Parse request [14:32:16]Sock 7.Check first char [14:32:16]Sock 7.First char is OK [14:32:16]request: POST /json_proto HTTP/1.0 [14:32:16]Method: POST [14:32:16]URL: /json_proto [14:32:16]Method is POST - this is cgi request [14:32:16]url: /json_proto [14:32:16]query_string will be loaded in cgi processing [14:32:16]execute_cgi json_proto POST (null) [14:32:16]execute_cgi path=json_proto method=POST [14:32:16]POST find Content-Length [14:32:16]Host: 172.17.36.132:8080 [14:32:16]Content-Length: 677 [14:32:16]Content-Type: application/json [14:32:16] [14:32:16]POST finish read [14:32:16]Found Content-Length = 677 [14:32:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706736", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:32:16]execute_script... [14:32: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)706736", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:32:16]POST & json_proto [14:32:16]process_json_proto [14:32:16]json parsed OK: [14:32:16]protocol is kg_v1.0 [14:32:16]action value=close_receipt [14:32:16]process_action close_receipt [14:32:16]cmd_close_receipt [14:32:16]MH_GetDate [14:32:16]Write to MH i2c: F0 00 00 FD 00 EC [14:32:16]Write i2c OK [14:32:16]MH_I2C_Read... [14:32:16]Read from MH i2c: F0 [14:32:16]MH_I2C_Read... [14:32:16]Read from MH i2c: F0 09 00 [14:32:16]MH_I2C_Read... [14:32:16]Read from MH i2c: F0 09 00 FD 00 00 71 25 5F 66 B2 22 B0 64 38 [14:32:16]GetLastDocTimeStamp 1717511290 [14:32:16]current date 1717511537 [14:32:16]FM_GetShiftState [14:32:16]SAM_PROTO_GetShiftState [14:32:16]wFMCommunicate request_size=4 [14:32:16]MH_SAM_APDU [14:32:16]CAPDU: 80 13 01 00 [14:32:16]Write to MH i2c: E2 08 00 FE 00 80 13 01 00 00 00 00 00 7B [14:32:16]Write i2c OK [14:32:16]MH_I2C_Read... [14:32:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:32:16]Read from MH i2c: E2 [14:32:16]MH_I2C_Read... [14:32:16]Read from MH i2c: E2 0E 00 [14:32:16]MH_I2C_Read... [14:32:16]Read from MH i2c: E2 0E 00 FE 00 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 17 [14:32:16]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [14:32:16]wFMCommunicate OK [14:32:16]SAM_PROTO_GetShiftState done [14:32:16]FM_GetShiftState done [14:32:16]opened in 1717460590 [14:32:16]opened+sec_in_day 1717546990 [14:32:16]quantity*price = 50041 [14:32:16]sum+1 = 50042 [14:32:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 104 04.06.2024 14:32 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68606 ФПД: 176157733672038 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T143217&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68606&fm=176157733672038&tin=02508201610067®Number=0000000000098096&sum=50000 [14:32:17]StoreToDocumentArchive [14:32:17]shift 325 fd 68606 [14:32:17]save to /storage/0325/doc_00068606 [14:32:17]save last doc name /storage/0325/doc_00068606 to /storage/kkm_last_doc_name [14:32:17]save OK [14:32:17]Clear old archive folders... [14:32:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:32:17]tlvbuf is 00A5DE20 [14:32:17]SAM_PROTO_ClearQueue [14:32:17]wFMCommunicate request_size=4 [14:32:17]MH_SAM_APDU [14:32:17]CAPDU: 80 09 00 00 [14:32:17]Write to MH i2c: E2 08 00 0B 01 80 09 00 00 00 00 00 00 7E [14:32:17]Write i2c OK [14:32:17]MH_I2C_Read... [14:32:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:32:17]Read from MH i2c: E2 [14:32:17]MH_I2C_Read... [14:32:17]Read from MH i2c: E2 03 00 [14:32:17]MH_I2C_Read... [14:32:17]Read from MH i2c: E2 03 00 0B 01 00 90 00 80 [14:32:17]RAPDU: 90 00 [14:32:17]wFMCommunicate OK [14:32:17]SAM_PROTO_ClearQueue done [14:32:17]KKMCreateOFDPacket [14:32:17]OFDProtocolAddRootSTLVToBuf [14:32:17]FM_MakeSignedData [14:32:17]FM_MakeSignedData [14:32:17]SAM_PROTO_SignData [14:32:17]wFMCommunicate request_size=4 [14:32:17]MH_SAM_APDU [14:32:17]CAPDU: 80 0D 01 02 [14:32:17]Write to MH i2c: E2 08 00 0C 01 80 0D 01 02 00 00 00 00 86 [14:32:17]Write i2c OK [14:32:17]MH_I2C_Read... [14:32:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:32:17]Read from MH i2c: E2 [14:32:17]MH_I2C_Read... [14:32:17]Read from MH i2c: E2 03 00 [14:32:17]MH_I2C_Read... [14:32:17]Read from MH i2c: E2 03 00 0C 01 00 90 00 81 [14:32:17]RAPDU: 90 00 [14:32:17]wFMCommunicate OK [14:32:17]wFMCommunicate request_size=255 [14:32:17]MH_SAM_APDU [14:32:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 71 25 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 FE 0B 01 00 35 04 06 00 A0 [14:32:17]Write to MH i2c: E2 02 01 0D 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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 71 25 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 FE 0B 01 00 35 04 06 00 A0 00 00 C6 [14:32:17]Write i2c OK [14:32:17]MH_I2C_Read... [14:32:18]OFD Sender: No OFD packet to send [14:32:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:32:18]Read from MH i2c: E2 [14:32:18]MH_I2C_Read... [14:32:18]Read from MH i2c: E2 03 00 [14:32:18]MH_I2C_Read... [14:32:18]Read from MH i2c: E2 03 00 0D 01 00 90 00 82 [14:32:18]RAPDU: 90 00 [14:32:18]wFMCommunicate OK [14:32:18]wFMCommunicate request_size=10 [14:32:18]MH_SAM_APDU [14:32:18]CAPDU: 80 0D 02 02 05 36 EB 23 D4 66 [14:32:18]Write to MH i2c: E2 0D 00 0E 01 80 0D 02 02 05 00 36 EB 23 D4 66 00 00 11 [14:32:18]Write i2c OK [14:32:18]MH_I2C_Read... [14:32:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:32:18]Read from MH i2c: E2 [14:32:18]MH_I2C_Read... [14:32:18]Read from MH i2c: E2 03 00 [14:32:18]MH_I2C_Read... [14:32:18]Read from MH i2c: E2 03 00 0E 01 00 90 00 83 [14:32:18]RAPDU: 90 00 [14:32:18]wFMCommunicate OK [14:32:18]wFMCommunicate request_size=4 [14:32:18]MH_SAM_APDU [14:32:18]CAPDU: 80 0D 03 02 [14:32:18]Write to MH i2c: E2 08 00 0F 01 80 0D 03 02 00 00 00 00 8B [14:32:18]Write i2c OK [14:32:18]MH_I2C_Read... [14:32:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:32:18]Read from MH i2c: E2 [14:32:18]MH_I2C_Read... [14:32:18]Read from MH i2c: E2 0B 00 [14:32:18]MH_I2C_Read... [14:32:18]Read from MH i2c: E2 0B 00 0F 01 00 DA F9 F0 42 BD 76 92 C0 90 00 16 [14:32:18]RAPDU: DA F9 F0 42 BD 76 92 C0 90 00 [14:32:18]wFMCommunicate OK [14:32:18]SAM_PROTO_SignData done [14:32:18]FM_MakeSignedData done [14:32:18]CreateOFDProtocolMessage [14:32:18]wFMCommunicate request_size=4 [14:32:18]MH_SAM_APDU [14:32:18]CAPDU: 80 11 00 00 [14:32:18]Write to MH i2c: E2 08 00 10 01 80 11 00 00 00 00 00 00 8B [14:32:18]Write i2c OK [14:32:18]MH_I2C_Read... [14:32:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:32:18]Read from MH i2c: E2 [14:32:18]MH_I2C_Read... [14:32:18]Read from MH i2c: E2 17 00 [14:32:18]MH_I2C_Read... [14:32:18]Read from MH i2c: E2 17 00 10 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 D6 [14:32:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [14:32:18]wFMCommunicate OK [14:32:18]CreateOFDProtocolMessage done [14:32:18]OFDSenderStorePacket 68606 [14:32:18]StoreOFDPacket docnum=68606 [14:32:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 C3 68 07 01 8E 07 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 71 25 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 FE 0B 01 00 35 04 06 00 A0 36 EB 23 D4 66 DA F9 F0 42 BD 76 92 C0 [14:32:18]CheckFolder [14:32:18]dirname=/storage/ofd_packets [14:32:18]CheckFolder done [14:32:18]ProducePacketName [14:32:18]name=ofd_packets/00068606 [14:32:18]NVStorageSaveData ofd_packets/00068606 [14:32:18]File name is /storage/ofd_packets/00068606 [14:32:18]Write 301 bytes [14:32:18]NVStorageSaveData done [14:32:18]OFDSenderStorePacket done [14:32:18]KKMCreateOFDPacket done [14:32:18]NVStorageSaveData kkm_last_timestamp [14:32:18]File name is /storage/kkm_last_timestamp [14:32:18]Write 4 bytes [14:32:18]NVStorageSaveData done [14:32:18]ExternCall_PrintAddStr [14:32:18]wPrintStart [14:32:18]Write to MH i2c: 01 00 00 11 01 12 [14:32:18]Write i2c OK [14:32:18]MH_I2C_Read... [14:32:18]Read from MH i2c: 01 [14:32:18]MH_I2C_Read... [14:32:18]Read from MH i2c: 01 07 00 [14:32:18]MH_I2C_Read... [14:32:18]Read from MH i2c: 01 07 00 11 01 00 00 00 00 00 FF 0F 27 [14:32:18]RasterBufferAndPrint [14:32:18]line Счет N : (1)706736 [14:32:18]line ИНН: 02508201610067 [14:32:18]line Контрольно-Кассовый Чек [14:32:18]line ПРОДАЖА [14:32:18]line ТРК (МРК, ГНК) : 42 [14:32:18]line Товар: 2710124130 [14:32:18]line Аи-92-К-4 [14:32:18]line 7.480 * 66.90 [14:32:18]line = 500.41 [14:32:18]line НДС 12% НСП 1% [14:32:18]line > о реализуемом товаре [14:32:18]line ОКРУГЛЕНИЕ: -0.41 [14:32:18]line ИТОГО: 500.00 [14:32:18]line Внесено: 500.00 [14:32:18]line СДАЧА: 0.00 [14:32:18]line НСП 1% : 4.43 [14:32:18]line НДС 12% : 53.14 [14:32:18]line Наличными: 500.00 [14:32:18]line Безнал.: 0.00 [14:32:18]line Место: АЗС № 62 "Партнер Нефть" [14:32:18]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [14:32:18]line СНО: Общий режим [14:32:18]line Чек 104 04.06.2024 14:32 [14:32:18]line Смена: 325 ФФД: 1.0 [14:32:18]line ЗНМ: 0300000181 [14:32:18]line РНМ: 0000000000098096 [14:32:18]line Версия ККМ: 001 [14:32:18]line ФМ: 0000000000965400 [14:32:18]line ФД: 68606 [14:32:18]line ФПД: 176157733672038 [14:32:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T143217&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68606&fm=176157733672038&tin=02508201610067®Number=0000000000098096&sum=50000 [14:32:18]OFD Sender: Processing packet 68606 [packets to send 27, broken 26] [14:32:18]ProducePacketName [14:32:18]name=ofd_packets/00068606 [14:32:18]OFD Sender: To server: pG, [14:32:18]CommunicateWithHost lk.salyk.kg:30040 [14:32:18]ConnectInit lk.salyk.kg [14:32:18]written 0, free lines is 4095 [14:32:18]Connected sock=10 [14:32:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 C3 68 07 01 8E 07 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 71 25 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 FE 0B 01 00 35 04 06 00 A0 36 EB 23 D4 66 DA F9 F0 42 BD 76 92 C0 [14:32:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 40 28 47 00 C1 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 39 36 35 34 30 30 10 04 04 00 FE 0B 01 00 F4 03 04 00 69 CC 5E 66 B6 04 01 00 00 FB 53 FC 16 1E A7 61 28 [14:32:19]CommunicateWithHost err = 0 [14:32:19]CheckOFDResponse [14:32:19]1017 (14) - 77093643461234 [14:32:19]1041 (16) - 0000000000965400 [14:32:19]1040 (4) - 68606 [14:32:19]1012 (4) - 04.06.2024 08:12 [14:32:19]1206 (1) - 0 [14:32:19]OFD Sender: Remove packet 68606 [14:32:19]ProducePacketName [14:32:19]name=ofd_packets/00068606 [14:32:19]NVStorageDeleteData [14:32:19]Write to MH i2c: 01 00 00 3C 01 3D [14:32:19]Write i2c OK [14:32:19]MH_I2C_Read... [14:32:19]Read from MH i2c: 01 [14:32:19]MH_I2C_Read... [14:32:19]Read from MH i2c: 01 07 00 [14:32:19]MH_I2C_Read... [14:32:19]Read from MH i2c: 01 07 00 3C 01 00 00 00 00 00 E1 0C 31 [14:32:19]RasterBufferAndPrint [14:32:19]line [14:32:19]line [14:32:19]line [14:32:19]line [14:32:19]line [14:32:19]written 0, free lines is 3303 [14:32:19]MH_Cut [14:32:19]Write to MH i2c: D1 01 00 43 01 01 16 [14:32:19]Write i2c OK [14:32:19]MH_I2C_Read... [14:32:19]Read from MH i2c: D1 [14:32:19]MH_I2C_Read... [14:32:19]Read from MH i2c: D1 01 00 [14:32:19]MH_I2C_Read... [14:32:19]Read from MH i2c: D1 01 00 43 01 00 15 [14:32:19]Write to MH i2c: 01 00 00 44 01 45 [14:32:19]Write i2c OK [14:32:19]MH_I2C_Read... [14:32:19]OFD Sender: No OFD packet to send [14:32:19]*** Cut start [14:32:19]*** Partial cut [14:32:19]*** CUTSNS_PIN = 1 [14:32:20]*** CUTSNS_PIN = 0 [14:32:20]*** Brake cut motor [14:32:20]Read from MH i2c: 01 [14:32:20]MH_I2C_Read... [14:32:20]*** Stop cut motor [14:32:20]*** Cut end [14:32:20]Read from MH i2c: 01 07 00 [14:32:20]MH_I2C_Read... [14:32:20]Read from MH i2c: 01 07 00 44 01 00 00 00 00 00 FF 0F 5A [14:32:20]process_action close_receipt done [14:32:20]requested_data is exist [14:32:20]produce_requested_data [14:32:20]requested_item fm.sn is exist - process it [14:32:20]wFMCommunicate request_size=4 [14:32:20]MH_SAM_APDU [14:32:20]CAPDU: 80 11 00 00 [14:32:20]Write to MH i2c: E2 08 00 45 01 80 11 00 00 00 00 00 00 C0 [14:32:20]Write i2c OK [14:32:20]MH_I2C_Read... [14:32:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:32:20]Read from MH i2c: E2 [14:32:20]MH_I2C_Read... [14:32:20]Read from MH i2c: E2 17 00 [14:32:20]MH_I2C_Read... [14:32:20]Read from MH i2c: E2 17 00 45 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 0B [14:32:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [14:32:20]wFMCommunicate OK [14:32:20]requested_item fd.num is exist - process it [14:32:20]SAM_PROTO_GetFieldsCounters [14:32:20]wFMCommunicate request_size=4 [14:32:20]MH_SAM_APDU [14:32:20]CAPDU: 80 13 00 00 [14:32:20]Write to MH i2c: E2 08 00 46 01 80 13 00 00 00 00 00 00 C3 [14:32:20]Write i2c OK [14:32:20]MH_I2C_Read... [14:32:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:32:20]Read from MH i2c: E2 [14:32:20]MH_I2C_Read... [14:32:20]Read from MH i2c: E2 62 00 [14:32:20]MH_I2C_Read... [14:32:20]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 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 FE 0B 01 00 0E 04 04 00 45 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 6B [14:32:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 FE 0B 01 00 0E 04 04 00 45 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 [14:32:20]wFMCommunicate OK [14:32:20]SAM_PROTO_GetFieldsCounters done [14:32:20]requested_item shift.num is exist - process it [14:32:20]requested_item shift.opened is exist - process it [14:32:20]req_shift_opened [14:32:20]FM_GetShiftState [14:32:20]SAM_PROTO_GetShiftState [14:32:20]wFMCommunicate request_size=4 [14:32:20]MH_SAM_APDU [14:32:20]CAPDU: 80 13 01 00 [14:32:20]Write to MH i2c: E2 08 00 47 01 80 13 01 00 00 00 00 00 C5 [14:32:20]Write i2c OK [14:32:20]MH_I2C_Read... [14:32:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:32:20]Read from MH i2c: E2 [14:32:20]MH_I2C_Read... [14:32:20]Read from MH i2c: E2 0E 00 [14:32:20]MH_I2C_Read... [14:32:20]Read from MH i2c: E2 0E 00 47 01 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 61 [14:32:20]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [14:32:20]wFMCommunicate OK [14:32:20]SAM_PROTO_GetShiftState done [14:32:20]FM_GetShiftState done [14:32:20]req_shift_opened done [14:32:20]requested_item shift.open_date is exist - process it [14:32:20]req_shift_open_date [14:32:20]req_shift_open_date done [14:32:20]produce_requested_data done [14:32:20]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68606,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [14:32:20]process_action_free close_receipt [14:32:20]json_value_free [14:32:20]json_value_free done [14:32:20]process_json_proto returns [14:32:20]Send response to host [14:32:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68606,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [14:32:20]free response buf [14:32:20]execute_script done [14:32:20]execute_script returns [14:32:20]free content buf [14:32:20]Sock 7.Close socket [14:32:20]Sock 7.Thread stoped [14:32:24]OFD Sender: No OFD packet to send [14:32:29]OFD Sender: No OFD packet to send [14:32:34]OFD Sender: No OFD packet to send [14:32:39]OFD Sender: No OFD packet to send [14:32:44]OFD Sender: No OFD packet to send [14:32:49]OFD Sender: No OFD packet to send [14:32:54]OFD Sender: No OFD packet to send [14:32:59]OFD Sender: No OFD packet to send [14:33:04]OFD Sender: No OFD packet to send [14:33:09]OFD Sender: No OFD packet to send [14:33:14]OFD Sender: No OFD packet to send [14:33:19]OFD Sender: No OFD packet to send [14:33:24]OFD Sender: No OFD packet to send [14:33:29]OFD Sender: No OFD packet to send [14:33:34]OFD Sender: No OFD packet to send [14:33:39]OFD Sender: No OFD packet to send [14:33:44]OFD Sender: No OFD packet to send [14:33:49]OFD Sender: No OFD packet to send [14:33:54]OFD Sender: No OFD packet to send [14:33:59]OFD Sender: No OFD packet to send [14:34:04]OFD Sender: No OFD packet to send [14:34:09]OFD Sender: No OFD packet to send [14:34:14]OFD Sender: No OFD packet to send [14:34:19]OFD Sender: No OFD packet to send [14:34:24]OFD Sender: No OFD packet to send [14:34:29]OFD Sender: No OFD packet to send [14:34:34]OFD Sender: No OFD packet to send [14:34:39]OFD Sender: No OFD packet to send [14:34:44]OFD Sender: No OFD packet to send [14:34:49]OFD Sender: No OFD packet to send [14:34:54]OFD Sender: No OFD packet to send [14:34:59]OFD Sender: No OFD packet to send [14:35:04]OFD Sender: No OFD packet to send [14:35:09]OFD Sender: No OFD packet to send [14:35:14]OFD Sender: No OFD packet to send [14:35:19]OFD Sender: No OFD packet to send [14:35:24]OFD Sender: No OFD packet to send [14:35:29]OFD Sender: No OFD packet to send [14:35:34]OFD Sender: No OFD packet to send [14:35:39]OFD Sender: No OFD packet to send [14:35:44]OFD Sender: No OFD packet to send [14:35:49]OFD Sender: No OFD packet to send [14:35:54]OFD Sender: No OFD packet to send [14:35:59]OFD Sender: No OFD packet to send [14:36:04]OFD Sender: No OFD packet to send [14:36:09]OFD Sender: No OFD packet to send [14:36:14]OFD Sender: No OFD packet to send [14:36:14]accept exits with 9 [14:36:14]New connection [14:36:14]New thread 3067297124 created [14:36:14]Thread 3067153764 joined [14:36:14]Waiting for new connection... [14:36:14] Sock 9.Parse request [14:36:14]Sock 9.Check first char [14:36:14]Sock 9.First char is OK [14:36:14]request: POST /json_proto HTTP/1.0 [14:36:14]Method: POST [14:36:14]URL: /json_proto [14:36:14]Method is POST - this is cgi request [14:36:14]url: /json_proto [14:36:14]query_string will be loaded in cgi processing [14:36:14]execute_cgi json_proto POST (null) [14:36:14]execute_cgi path=json_proto method=POST [14:36:14]POST find Content-Length [14:36:14]Host: 172.17.36.132:8080 [14:36:14]Content-Length: 1207 [14:36:14]Content-Type: application/json [14:36:14] [14:36:14]POST finish read [14:36:14]Found Content-Length = 1207 [14:36: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 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0418\u0441\u043C\u0430\u043D\u0430\u043B\u0438\u0435\u0432 \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)706737\u000A04.06.2024 14:13\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-4\u000A 50.000 x 66.90\u000A\u0418\u0422\u041E\u0413: 3345.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\u000A91330\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:36:14]execute_script... [14:36: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 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0418\u0441\u043C\u0430\u043D\u0430\u043B\u0438\u0435\u0432 \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)706737\u000A04.06.2024 14:13\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-4\u000A 50.000 x 66.90\u000A\u0418\u0422\u041E\u0413: 3345.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\u000A91330\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:36:14]POST & json_proto [14:36:14]process_json_proto [14:36:14]json parsed OK: [14:36:14]protocol is kg_v1.0 [14:36:14]action value=print_text [14:36:14]process_action print_text [14:36:14]cmd_print_text [14:36:14]ExternCall_PrintAddStr [14:36:14]wPrintStart [14:36:14]Write to MH i2c: 01 00 00 48 01 49 [14:36:14]Write i2c OK [14:36:14]MH_I2C_Read... [14:36:14]Read from MH i2c: 01 [14:36:14]MH_I2C_Read... [14:36:14]Read from MH i2c: 01 07 00 [14:36:14]MH_I2C_Read... [14:36:14]Read from MH i2c: 01 07 00 48 01 00 00 00 00 00 FF 0F 5E [14:36:14]RasterBufferAndPrint [14:36:14]line *****ТОВАРНЫЙ ЧЕК***** [14:36:14]line АЗС 62 [14:36:14]line Партнер нефть [14:36:14]line 02508201610067 [14:36:14]line Кассир : Исманалиев Д. [14:36:14]line Счет N : (1)706737 [14:36:14]line 04.06.2024 14:13 [14:36:14]line ПРОДАЖА [14:36:14]line ТРК (МРК, ГНК): 42 [14:36:14]line Вид ГСМ : 2710124130 [14:36:14]line Аи-92-К-4 [14:36:14]line 50.000 x 66.90 [14:36:14]line ИТОГ: 3345.00 [14:36:14]line Тип оплаты: Талоны: Топливная Карта [14:36:14]line 91330 [14:36:14]line ______________________ [14:36:14]line (подпись) [14:36:14]written 0, free lines is 4095 [14:36:15]Write to MH i2c: 01 00 00 5C 01 5D [14:36:15]Write i2c OK [14:36:15]MH_I2C_Read... [14:36:15]Read from MH i2c: 01 [14:36:15]MH_I2C_Read... [14:36:15]Read from MH i2c: 01 07 00 [14:36:15]MH_I2C_Read... [14:36:15]Read from MH i2c: 01 07 00 5C 01 00 00 00 00 00 12 0E 84 [14:36:15]RasterBufferAndPrint [14:36:15]line [14:36:15]line [14:36:15]line [14:36:15]line [14:36:15]line [14:36:15]written 0, free lines is 3604 [14:36:15]MH_Cut [14:36:15]Write to MH i2c: D1 01 00 63 01 01 36 [14:36:15]Write i2c OK [14:36:15]MH_I2C_Read... [14:36:15]Read from MH i2c: D1 [14:36:15]MH_I2C_Read... [14:36:15]Read from MH i2c: D1 01 00 [14:36:15]MH_I2C_Read... [14:36:15]Read from MH i2c: D1 01 00 63 01 00 35 [14:36:15]Write to MH i2c: 01 00 00 64 01 65 [14:36:15]Write i2c OK [14:36:15]MH_I2C_Read... [14:36:15]*** Cut start [14:36:15]*** Partial cut [14:36:15]*** CUTSNS_PIN = 1 [14:36:15]*** CUTSNS_PIN = 0 [14:36:15]*** Brake cut motor [14:36:16]Read from MH i2c: 01 [14:36:16]MH_I2C_Read... [14:36:16]*** Stop cut motor [14:36:16]*** Cut end [14:36:16]Read from MH i2c: 01 07 00 [14:36:16]MH_I2C_Read... [14:36:16]Read from MH i2c: 01 07 00 64 01 00 00 00 00 00 FF 0F 7A [14:36:16]process_action print_text done [14:36:16]requested_data is exist [14:36:16]produce_requested_data [14:36:16]requested_item fm.sn is exist - process it [14:36:16]wFMCommunicate request_size=4 [14:36:16]MH_SAM_APDU [14:36:16]CAPDU: 80 11 00 00 [14:36:16]Write to MH i2c: E2 08 00 65 01 80 11 00 00 00 00 00 00 E0 [14:36:16]Write i2c OK [14:36:16]MH_I2C_Read... [14:36:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:36:16]Read from MH i2c: E2 [14:36:16]MH_I2C_Read... [14:36:16]Read from MH i2c: E2 17 00 [14:36:16]MH_I2C_Read... [14:36:16]Read from MH i2c: E2 17 00 65 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 2B [14:36:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [14:36:16]wFMCommunicate OK [14:36:16]requested_item fd.num is exist - process it [14:36:16]SAM_PROTO_GetFieldsCounters [14:36:16]wFMCommunicate request_size=4 [14:36:16]MH_SAM_APDU [14:36:16]CAPDU: 80 13 00 00 [14:36:16]Write to MH i2c: E2 08 00 66 01 80 13 00 00 00 00 00 00 E3 [14:36:16]Write i2c OK [14:36:16]MH_I2C_Read... [14:36:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:36:16]Read from MH i2c: E2 [14:36:16]MH_I2C_Read... [14:36:16]Read from MH i2c: E2 62 00 [14:36:16]MH_I2C_Read... [14:36:16]Read from MH i2c: E2 62 00 66 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 FE 0B 01 00 0E 04 04 00 45 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 8B [14:36:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 FE 0B 01 00 0E 04 04 00 45 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 [14:36:16]wFMCommunicate OK [14:36:16]SAM_PROTO_GetFieldsCounters done [14:36:16]requested_item shift.num is exist - process it [14:36:16]requested_item shift.opened is exist - process it [14:36:16]req_shift_opened [14:36:16]FM_GetShiftState [14:36:16]SAM_PROTO_GetShiftState [14:36:16]wFMCommunicate request_size=4 [14:36:16]MH_SAM_APDU [14:36:16]CAPDU: 80 13 01 00 [14:36:16]Write to MH i2c: E2 08 00 67 01 80 13 01 00 00 00 00 00 E5 [14:36:16]Write i2c OK [14:36:16]MH_I2C_Read... [14:36:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:36:16]Read from MH i2c: E2 [14:36:16]MH_I2C_Read... [14:36:16]Read from MH i2c: E2 0E 00 [14:36:16]MH_I2C_Read... [14:36:16]Read from MH i2c: E2 0E 00 67 01 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 81 [14:36:16]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [14:36:16]wFMCommunicate OK [14:36:16]SAM_PROTO_GetShiftState done [14:36:16]FM_GetShiftState done [14:36:16]req_shift_opened done [14:36:16]requested_item shift.open_date is exist - process it [14:36:16]req_shift_open_date [14:36:16]req_shift_open_date done [14:36:16]produce_requested_data done [14:36:16]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68606,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [14:36:16]process_action_free print_text [14:36:16]json_value_free [14:36:16]json_value_free done [14:36:16]process_json_proto returns [14:36:16]Send response to host [14:36:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68606,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [14:36:16]free response buf [14:36:16]execute_script done [14:36:16]execute_script returns [14:36:16]free content buf [14:36:16]Sock 9.Close socket [14:36:16]Sock 9.Thread stoped [14:36:19]OFD Sender: No OFD packet to send [14:36:24]OFD Sender: No OFD packet to send [14:36:29]OFD Sender: No OFD packet to send [14:36:34]OFD Sender: No OFD packet to send [14:36:39]OFD Sender: No OFD packet to send [14:36:44]OFD Sender: No OFD packet to send [14:36:49]OFD Sender: No OFD packet to send [14:36:54]OFD Sender: No OFD packet to send [14:36:59]OFD Sender: No OFD packet to send [14:37:04]OFD Sender: No OFD packet to send [14:37:09]OFD Sender: No OFD packet to send [14:37:14]OFD Sender: No OFD packet to send [14:37:19]OFD Sender: No OFD packet to send [14:37:24]OFD Sender: No OFD packet to send [14:37:29]OFD Sender: No OFD packet to send [14:37:34]OFD Sender: No OFD packet to send [14:37:39]OFD Sender: No OFD packet to send [14:37:44]OFD Sender: No OFD packet to send [14:37:49]OFD Sender: No OFD packet to send [14:37:53]accept exits with 7 [14:37:53]New connection [14:37:53]New thread 3067153764 created [14:37:53]Thread 3067297124 joined [14:37:53]Waiting for new connection... [14:37:53] Sock 7.Parse request [14:37:53]Sock 7.Check first char [14:37:53]Sock 7.First char is OK [14:37:53]request: POST /json_proto HTTP/1.0 [14:37:53]Method: POST [14:37:53]URL: /json_proto [14:37:53]Method is POST - this is cgi request [14:37:53]url: /json_proto [14:37:53]query_string will be loaded in cgi processing [14:37:53]execute_cgi json_proto POST (null) [14:37:53]execute_cgi path=json_proto method=POST [14:37:53]POST find Content-Length [14:37:53]Host: 172.17.36.132:8080 [14:37:53]Content-Length: 675 [14:37:53]Content-Type: application/json [14:37:53] [14:37:53]POST finish read [14:37:53]Found Content-Length = 675 [14:37:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706739", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.90, "quantity" : 14.730, "sum" : 1000.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:37:53]execute_script... [14:37: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)706739", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.90, "quantity" : 14.730, "sum" : 1000.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:37:53]POST & json_proto [14:37:53]process_json_proto [14:37:53]json parsed OK: [14:37:53]protocol is kg_v1.0 [14:37:53]action value=close_receipt [14:37:53]process_action close_receipt [14:37:53]cmd_close_receipt [14:37:53]MH_GetDate [14:37:53]Write to MH i2c: F0 00 00 68 01 58 [14:37:53]Write i2c OK [14:37:53]MH_I2C_Read... [14:37:53]Read from MH i2c: F0 [14:37:53]MH_I2C_Read... [14:37:53]Read from MH i2c: F0 09 00 [14:37:53]MH_I2C_Read... [14:37:53]Read from MH i2c: F0 09 00 68 01 00 C1 26 5F 66 B2 22 B0 64 F5 [14:37:53]GetLastDocTimeStamp 1717511537 [14:37:53]current date 1717511873 [14:37:53]FM_GetShiftState [14:37:53]SAM_PROTO_GetShiftState [14:37:53]wFMCommunicate request_size=4 [14:37:53]MH_SAM_APDU [14:37:53]CAPDU: 80 13 01 00 [14:37:53]Write to MH i2c: E2 08 00 69 01 80 13 01 00 00 00 00 00 E7 [14:37:53]Write i2c OK [14:37:53]MH_I2C_Read... [14:37:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:37:53]Read from MH i2c: E2 [14:37:53]MH_I2C_Read... [14:37:53]Read from MH i2c: E2 0E 00 [14:37:53]MH_I2C_Read... [14:37:53]Read from MH i2c: E2 0E 00 69 01 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 83 [14:37:53]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [14:37:53]wFMCommunicate OK [14:37:53]SAM_PROTO_GetShiftState done [14:37:53]FM_GetShiftState done [14:37:53]opened in 1717460590 [14:37:53]opened+sec_in_day 1717546990 [14:37:53]quantity*price = 100016 [14:37:53]sum+1 = 100018 [14:37:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.17 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 105 04.06.2024 14:37 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68607 ФПД: 175185401145975 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T143753&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68607&fm=175185401145975&tin=02508201610067®Number=0000000000098096&sum=100000 [14:37:54]StoreToDocumentArchive [14:37:54]shift 325 fd 68607 [14:37:54]save to /storage/0325/doc_00068607 [14:37:54]save last doc name /storage/0325/doc_00068607 to /storage/kkm_last_doc_name [14:37:54]save OK [14:37:54]Clear old archive folders... [14:37:54]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:37:54]tlvbuf is 00A5F750 [14:37:54]SAM_PROTO_ClearQueue [14:37:54]wFMCommunicate request_size=4 [14:37:54]MH_SAM_APDU [14:37:54]CAPDU: 80 09 00 00 [14:37:54]Write to MH i2c: E2 08 00 76 01 80 09 00 00 00 00 00 00 E9 [14:37:54]Write i2c OK [14:37:54]MH_I2C_Read... [14:37:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:37:54]Read from MH i2c: E2 [14:37:54]MH_I2C_Read... [14:37:54]Read from MH i2c: E2 03 00 [14:37:54]MH_I2C_Read... [14:37:54]Read from MH i2c: E2 03 00 76 01 00 90 00 EB [14:37:54]RAPDU: 90 00 [14:37:54]wFMCommunicate OK [14:37:54]SAM_PROTO_ClearQueue done [14:37:54]KKMCreateOFDPacket [14:37:54]OFDProtocolAddRootSTLVToBuf [14:37:54]FM_MakeSignedData [14:37:54]FM_MakeSignedData [14:37:54]SAM_PROTO_SignData [14:37:54]wFMCommunicate request_size=4 [14:37:54]MH_SAM_APDU [14:37:54]CAPDU: 80 0D 01 02 [14:37:54]Write to MH i2c: E2 08 00 77 01 80 0D 01 02 00 00 00 00 F1 [14:37:54]Write i2c OK [14:37:54]MH_I2C_Read... [14:37:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:37:54]Read from MH i2c: E2 [14:37:54]MH_I2C_Read... [14:37:54]Read from MH i2c: E2 03 00 [14:37:54]MH_I2C_Read... [14:37:54]Read from MH i2c: E2 03 00 77 01 00 90 00 EC [14:37:54]RAPDU: 90 00 [14:37:54]wFMCommunicate OK [14:37:54]wFMCommunicate request_size=255 [14:37:54]MH_SAM_APDU [14:37: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 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 39 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 B1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 C1 26 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 FF 0B 01 00 35 04 06 00 [14:37:54]Write to MH i2c: E2 02 01 78 01 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 39 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 B1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 C1 26 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 FF 0B 01 00 35 04 06 00 00 00 91 [14:37:54]Write i2c OK [14:37:54]MH_I2C_Read... [14:37:54]Read from MH i2c: E2 [14:37:54]MH_I2C_Read... [14:37:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:37:54]Read from MH i2c: E2 03 00 [14:37:54]MH_I2C_Read... [14:37:54]Read from MH i2c: E2 03 00 78 01 00 90 00 ED [14:37:54]RAPDU: 90 00 [14:37:54]wFMCommunicate OK [14:37:54]wFMCommunicate request_size=11 [14:37:54]MH_SAM_APDU [14:37:54]CAPDU: 80 0D 02 02 06 9F 54 87 9A EA 77 [14:37:54]Write to MH i2c: E2 0E 00 79 01 80 0D 02 02 06 00 9F 54 87 9A EA 77 00 00 75 [14:37:54]Write i2c OK [14:37:54]MH_I2C_Read... [14:37:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:37:54]Read from MH i2c: E2 [14:37:54]MH_I2C_Read... [14:37:54]Read from MH i2c: E2 03 00 [14:37:54]MH_I2C_Read... [14:37:54]Read from MH i2c: E2 03 00 79 01 00 90 00 EE [14:37:54]RAPDU: 90 00 [14:37:54]wFMCommunicate OK [14:37:54]wFMCommunicate request_size=4 [14:37:54]MH_SAM_APDU [14:37:54]CAPDU: 80 0D 03 02 [14:37:54]Write to MH i2c: E2 08 00 7A 01 80 0D 03 02 00 00 00 00 F6 [14:37:54]Write i2c OK [14:37:54]MH_I2C_Read... [14:37:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:37:54]Read from MH i2c: E2 [14:37:54]MH_I2C_Read... [14:37:54]Read from MH i2c: E2 0B 00 [14:37:54]MH_I2C_Read... [14:37:54]Read from MH i2c: E2 0B 00 7A 01 00 59 7E 7B 44 5F D1 D7 B9 90 00 4D [14:37:54]RAPDU: 59 7E 7B 44 5F D1 D7 B9 90 00 [14:37:54]wFMCommunicate OK [14:37:54]SAM_PROTO_SignData done [14:37:54]FM_MakeSignedData done [14:37:54]CreateOFDProtocolMessage [14:37:54]wFMCommunicate request_size=4 [14:37:54]MH_SAM_APDU [14:37:54]CAPDU: 80 11 00 00 [14:37:54]Write to MH i2c: E2 08 00 7B 01 80 11 00 00 00 00 00 00 F6 [14:37:54]Write i2c OK [14:37:54]MH_I2C_Read... [14:37:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:37:54]Read from MH i2c: E2 [14:37:54]MH_I2C_Read... [14:37:54]Read from MH i2c: E2 17 00 [14:37:54]MH_I2C_Read... [14:37:54]Read from MH i2c: E2 17 00 7B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 41 [14:37:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [14:37:54]wFMCommunicate OK [14:37:54]CreateOFDProtocolMessage done [14:37:54]OFDSenderStorePacket 68607 [14:37:54]StoreOFDPacket docnum=68607 [14:37:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 8D D2 08 01 61 A1 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 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 39 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 B1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 C1 26 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 FF 0B 01 00 35 04 06 00 9F 54 87 9A EA 77 59 7E 7B 44 5F D1 D7 B9 [14:37:54]CheckFolder [14:37:54]dirname=/storage/ofd_packets [14:37:54]CheckFolder done [14:37:54]ProducePacketName [14:37:54]name=ofd_packets/00068607 [14:37:54]NVStorageSaveData ofd_packets/00068607 [14:37:54]File name is /storage/ofd_packets/00068607 [14:37:54]Write 302 bytes [14:37:54]NVStorageSaveData done [14:37:54]OFDSenderStorePacket done [14:37:54]KKMCreateOFDPacket done [14:37:54]NVStorageSaveData kkm_last_timestamp [14:37:54]File name is /storage/kkm_last_timestamp [14:37:54]Write 4 bytes [14:37:54]NVStorageSaveData done [14:37:54]OFD Sender: Processing packet 68607 [packets to send 27, broken 26] [14:37:54]ProducePacketName [14:37:54]name=ofd_packets/00068607 [14:37:54]OFD Sender: To server: pG, [14:37:54]CommunicateWithHost lk.salyk.kg:30040 [14:37:54]ConnectInit lk.salyk.kg [14:37:54]ExternCall_PrintAddStr [14:37:54]wPrintStart [14:37:54]Write to MH i2c: 01 00 00 7C 01 7D [14:37:54]Write i2c OK [14:37:54]MH_I2C_Read... [14:37:54]Read from MH i2c: 01 [14:37:54]MH_I2C_Read... [14:37:54]Read from MH i2c: 01 07 00 [14:37:54]MH_I2C_Read... [14:37:54]Read from MH i2c: 01 07 00 7C 01 00 00 00 00 00 FF 0F 92 [14:37:54]RasterBufferAndPrint [14:37:54]line Счет N : (1)706739 [14:37:54]line ИНН: 02508201610067 [14:37:54]line Контрольно-Кассовый Чек [14:37:54]line ПРОДАЖА [14:37:54]line ТРК (МРК, ГНК) : 22 [14:37:54]line Товар: 2710124130 [14:37:54]line Super-92-К-5 [14:37:54]line 14.730 * 67.90 [14:37:54]line = 1000.17 [14:37:54]line НДС 12% НСП 1% [14:37:54]line > о реализуемом товаре [14:37:54]line ОКРУГЛЕНИЕ: -0.17 [14:37:54]line ИТОГО: 1000.00 [14:37:54]line Внесено: 1000.00 [14:37:54]line СДАЧА: 0.00 [14:37:54]line НСП 1% : 8.85 [14:37:54]line НДС 12% : 106.21 [14:37:54]line Наличными: 1000.00 [14:37:54]line Безнал.: 0.00 [14:37:54]line Место: АЗС № 62 "Партнер Нефть" [14:37:54]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [14:37:54]line СНО: Общий режим [14:37:54]line Чек 105 04.06.2024 14:37 [14:37:54]line Смена: 325 ФФД: 1.0 [14:37:54]line ЗНМ: 0300000181 [14:37:55]line РНМ: 0000000000098096 [14:37:55]line Версия ККМ: 001 [14:37:55]line ФМ: 0000000000965400 [14:37:55]line ФД: 68607 [14:37:55]line ФПД: 175185401145975 [14:37:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T143753&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68607&fm=175185401145975&tin=02508201610067®Number=0000000000098096&sum=100000 [14:37:55]Connected sock=11 [14:37:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 8D D2 08 01 61 A1 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 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 39 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 B1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 C1 26 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 FF 0B 01 00 35 04 06 00 9F 54 87 9A EA 77 59 7E 7B 44 5F D1 D7 B9 [14:37:55]written 0, free lines is 4095 [14:37:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 29 BB 47 00 94 E9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 FF 0B 01 00 F4 03 04 00 B9 CD 5E 66 B6 04 01 00 00 02 01 FB D1 E0 0C BA D5 [14:37:55]CommunicateWithHost err = 0 [14:37:55]CheckOFDResponse [14:37:55]1017 (14) - 77093643461234 [14:37:55]1041 (16) - 0000000000965400 [14:37:55]1040 (4) - 68607 [14:37:55]1012 (4) - 04.06.2024 08:18 [14:37:55]1206 (1) - 0 [14:37:55]OFD Sender: Remove packet 68607 [14:37:55]ProducePacketName [14:37:55]name=ofd_packets/00068607 [14:37:55]NVStorageDeleteData [14:37:55]Write to MH i2c: 01 00 00 A7 01 A8 [14:37:55]Write i2c OK [14:37:55]MH_I2C_Read... [14:37:55]Read from MH i2c: 01 [14:37:55]MH_I2C_Read... [14:37:55]Read from MH i2c: 01 07 00 [14:37:55]MH_I2C_Read... [14:37:55]Read from MH i2c: 01 07 00 A7 01 00 00 00 00 00 D4 0C 8F [14:37:55]RasterBufferAndPrint [14:37:55]line [14:37:55]line [14:37:55]line [14:37:55]line [14:37:55]line [14:37:55]written 0, free lines is 3293 [14:37:55]MH_Cut [14:37:55]Write to MH i2c: D1 01 00 AE 01 01 81 [14:37:55]Write i2c OK [14:37:55]MH_I2C_Read... [14:37:55]Read from MH i2c: D1 [14:37:55]MH_I2C_Read... [14:37:55]Read from MH i2c: D1 01 00 [14:37:55]MH_I2C_Read... [14:37:55]Read from MH i2c: D1 01 00 AE 01 00 80 [14:37:55]Write to MH i2c: 01 00 00 AF 01 B0 [14:37:55]Write i2c OK [14:37:55]MH_I2C_Read... [14:37:55]OFD Sender: No OFD packet to send [14:37:56]*** Cut start [14:37:56]*** Partial cut [14:37:56]*** CUTSNS_PIN = 1 [14:37:56]*** CUTSNS_PIN = 0 [14:37:56]*** Brake cut motor [14:37:56]Read from MH i2c: 01 [14:37:56]MH_I2C_Read... [14:37:56]*** Stop cut motor [14:37:56]*** Cut end [14:37:56]Read from MH i2c: 01 07 00 [14:37:56]MH_I2C_Read... [14:37:56]Read from MH i2c: 01 07 00 AF 01 00 00 00 00 00 FF 0F C5 [14:37:56]process_action close_receipt done [14:37:56]requested_data is exist [14:37:56]produce_requested_data [14:37:56]requested_item fm.sn is exist - process it [14:37:56]wFMCommunicate request_size=4 [14:37:56]MH_SAM_APDU [14:37:56]CAPDU: 80 11 00 00 [14:37:56]Write to MH i2c: E2 08 00 B0 01 80 11 00 00 00 00 00 00 2B [14:37:56]Write i2c OK [14:37:56]MH_I2C_Read... [14:37:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:37:57]Read from MH i2c: E2 [14:37:57]MH_I2C_Read... [14:37:57]Read from MH i2c: E2 17 00 [14:37:57]MH_I2C_Read... [14:37:57]Read from MH i2c: E2 17 00 B0 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 76 [14:37:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [14:37:57]wFMCommunicate OK [14:37:57]requested_item fd.num is exist - process it [14:37:57]SAM_PROTO_GetFieldsCounters [14:37:57]wFMCommunicate request_size=4 [14:37:57]MH_SAM_APDU [14:37:57]CAPDU: 80 13 00 00 [14:37:57]Write to MH i2c: E2 08 00 B1 01 80 13 00 00 00 00 00 00 2E [14:37:57]Write i2c OK [14:37:57]MH_I2C_Read... [14:37:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:37:57]Read from MH i2c: E2 [14:37:57]MH_I2C_Read... [14:37:57]Read from MH i2c: E2 62 00 [14:37:57]MH_I2C_Read... [14:37:57]Read from MH i2c: E2 62 00 B1 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 FF 0B 01 00 0E 04 04 00 45 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 DA [14:37:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 FF 0B 01 00 0E 04 04 00 45 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:37:57]wFMCommunicate OK [14:37:57]SAM_PROTO_GetFieldsCounters done [14:37:57]requested_item shift.num is exist - process it [14:37:57]requested_item shift.opened is exist - process it [14:37:57]req_shift_opened [14:37:57]FM_GetShiftState [14:37:57]SAM_PROTO_GetShiftState [14:37:57]wFMCommunicate request_size=4 [14:37:57]MH_SAM_APDU [14:37:57]CAPDU: 80 13 01 00 [14:37:57]Write to MH i2c: E2 08 00 B2 01 80 13 01 00 00 00 00 00 30 [14:37:57]Write i2c OK [14:37:57]MH_I2C_Read... [14:37:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:37:57]Read from MH i2c: E2 [14:37:57]MH_I2C_Read... [14:37:57]Read from MH i2c: E2 0E 00 [14:37:57]MH_I2C_Read... [14:37:57]Read from MH i2c: E2 0E 00 B2 01 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 CC [14:37:57]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [14:37:57]wFMCommunicate OK [14:37:57]SAM_PROTO_GetShiftState done [14:37:57]FM_GetShiftState done [14:37:57]req_shift_opened done [14:37:57]requested_item shift.open_date is exist - process it [14:37:57]req_shift_open_date [14:37:57]req_shift_open_date done [14:37:57]produce_requested_data done [14:37:57]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68607,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [14:37:57]process_action_free close_receipt [14:37:57]json_value_free [14:37:57]json_value_free done [14:37:57]process_json_proto returns [14:37:57]Send response to host [14:37:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68607,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [14:37:57]free response buf [14:37:57]execute_script done [14:37:57]execute_script returns [14:37:57]free content buf [14:37:57]Sock 7.Close socket [14:37:57]Sock 7.Thread stoped [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]accept exits with 9 [14:38:30]New connection [14:38:30]New thread 3067297124 created [14:38:30]Thread 3067153764 joined [14:38:30]Waiting for new connection... [14:38:30] Sock 9.Parse request [14:38:30]Sock 9.Check first char [14:38:30]Sock 9.First char is OK [14:38:30]request: POST /json_proto HTTP/1.0 [14:38:30]Method: POST [14:38:30]URL: /json_proto [14:38:30]Method is POST - this is cgi request [14:38:30]url: /json_proto [14:38:30]query_string will be loaded in cgi processing [14:38:30]execute_cgi json_proto POST (null) [14:38:30]execute_cgi path=json_proto method=POST [14:38:30]POST find Content-Length [14:38:30]Host: 172.17.36.132:8080 [14:38:30]Content-Length: 1207 [14:38:30]Content-Type: application/json [14:38:30] [14:38:30]POST finish read [14:38:30]Found Content-Length = 1207 [14:38:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0418\u0441\u043C\u0430\u043D\u0430\u043B\u0438\u0435\u0432 \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)706738\u000A04.06.2024 14:15\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 53\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-4\u000A 15.000 x 66.90\u000A\u0418\u0422\u041E\u0413: 1003.50\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\u000A91330\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:38:30]execute_script... [14:38:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0418\u0441\u043C\u0430\u043D\u0430\u043B\u0438\u0435\u0432 \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)706738\u000A04.06.2024 14:15\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 53\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-4\u000A 15.000 x 66.90\u000A\u0418\u0422\u041E\u0413: 1003.50\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\u000A91330\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:38:30]POST & json_proto [14:38:30]process_json_proto [14:38:30]json parsed OK: [14:38:30]protocol is kg_v1.0 [14:38:30]action value=print_text [14:38:30]process_action print_text [14:38:30]cmd_print_text [14:38:30]ExternCall_PrintAddStr [14:38:30]wPrintStart [14:38:30]Write to MH i2c: 01 00 00 B3 01 B4 [14:38:30]Write i2c OK [14:38:30]MH_I2C_Read... [14:38:30]Read from MH i2c: 01 [14:38:30]MH_I2C_Read... [14:38:30]Read from MH i2c: 01 07 00 [14:38:30]MH_I2C_Read... [14:38:30]Read from MH i2c: 01 07 00 B3 01 00 00 00 00 00 FF 0F C9 [14:38:30]RasterBufferAndPrint [14:38:30]line *****ТОВАРНЫЙ ЧЕК***** [14:38:30]line АЗС 62 [14:38:30]line Партнер нефть [14:38:30]line 02508201610067 [14:38:30]line Кассир : Исманалиев Д. [14:38:30]line Счет N : (1)706738 [14:38:30]line 04.06.2024 14:15 [14:38:30]line ПРОДАЖА [14:38:30]line ТРК (МРК, ГНК): 53 [14:38:30]line Вид ГСМ : 2710124130 [14:38:30]line Аи-92-К-4 [14:38:30]line 15.000 x 66.90 [14:38:30]line ИТОГ: 1003.50 [14:38:30]line Тип оплаты: Талоны: Топливная Карта [14:38:30]line 91330 [14:38:30]line ______________________ [14:38:30]line (подпись) [14:38:30]written 0, free lines is 4095 [14:38:30]Write to MH i2c: 01 00 00 C7 01 C8 [14:38:30]Write i2c OK [14:38:30]MH_I2C_Read... [14:38:30]Read from MH i2c: 01 [14:38:30]MH_I2C_Read... [14:38:30]Read from MH i2c: 01 07 00 [14:38:30]MH_I2C_Read... [14:38:30]Read from MH i2c: 01 07 00 C7 01 00 00 00 00 00 12 0E EF [14:38:30]RasterBufferAndPrint [14:38:30]line [14:38:30]line [14:38:30]line [14:38:30]line [14:38:30]line [14:38:30]written 0, free lines is 3604 [14:38:30]MH_Cut [14:38:30]Write to MH i2c: D1 01 00 CE 01 01 A1 [14:38:30]Write i2c OK [14:38:30]MH_I2C_Read... [14:38:30]Read from MH i2c: D1 [14:38:30]MH_I2C_Read... [14:38:30]Read from MH i2c: D1 01 00 [14:38:30]MH_I2C_Read... [14:38:30]Read from MH i2c: D1 01 00 CE 01 00 A0 [14:38:30]Write to MH i2c: 01 00 00 CF 01 D0 [14:38:30]Write i2c OK [14:38:30]MH_I2C_Read... [14:38:30]*** Cut start [14:38:30]*** Partial cut [14:38:30]*** CUTSNS_PIN = 1 [14:38:30]OFD Sender: No OFD packet to send [14:38:30]*** CUTSNS_PIN = 0 [14:38:31]*** Brake cut motor [14:38:31]Read from MH i2c: 01 [14:38:31]MH_I2C_Read... [14:38:31]*** Stop cut motor [14:38:31]*** Cut end [14:38:31]Read from MH i2c: 01 07 00 [14:38:31]MH_I2C_Read... [14:38:31]Read from MH i2c: 01 07 00 CF 01 00 00 00 00 00 FF 0F E5 [14:38:31]process_action print_text done [14:38:31]requested_data is exist [14:38:31]produce_requested_data [14:38:31]requested_item fm.sn is exist - process it [14:38:31]wFMCommunicate request_size=4 [14:38:31]MH_SAM_APDU [14:38:31]CAPDU: 80 11 00 00 [14:38:31]Write to MH i2c: E2 08 00 D0 01 80 11 00 00 00 00 00 00 4B [14:38:31]Write i2c OK [14:38:31]MH_I2C_Read... [14:38:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:38:31]Read from MH i2c: E2 [14:38:31]MH_I2C_Read... [14:38:31]Read from MH i2c: E2 17 00 [14:38:31]MH_I2C_Read... [14:38:31]Read from MH i2c: E2 17 00 D0 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 96 [14:38:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [14:38:31]wFMCommunicate OK [14:38:31]requested_item fd.num is exist - process it [14:38:31]SAM_PROTO_GetFieldsCounters [14:38:31]wFMCommunicate request_size=4 [14:38:31]MH_SAM_APDU [14:38:31]CAPDU: 80 13 00 00 [14:38:31]Write to MH i2c: E2 08 00 D1 01 80 13 00 00 00 00 00 00 4E [14:38:31]Write i2c OK [14:38:31]MH_I2C_Read... [14:38:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:38:31]Read from MH i2c: E2 [14:38:31]MH_I2C_Read... [14:38:31]Read from MH i2c: E2 62 00 [14:38:31]MH_I2C_Read... [14:38:31]Read from MH i2c: E2 62 00 D1 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 FF 0B 01 00 0E 04 04 00 45 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 FA [14:38:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 FF 0B 01 00 0E 04 04 00 45 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:38:31]wFMCommunicate OK [14:38:31]SAM_PROTO_GetFieldsCounters done [14:38:31]requested_item shift.num is exist - process it [14:38:31]requested_item shift.opened is exist - process it [14:38:31]req_shift_opened [14:38:31]FM_GetShiftState [14:38:31]SAM_PROTO_GetShiftState [14:38:31]wFMCommunicate request_size=4 [14:38:31]MH_SAM_APDU [14:38:31]CAPDU: 80 13 01 00 [14:38:31]Write to MH i2c: E2 08 00 D2 01 80 13 01 00 00 00 00 00 50 [14:38:31]Write i2c OK [14:38:31]MH_I2C_Read... [14:38:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:38:31]Read from MH i2c: E2 [14:38:31]MH_I2C_Read... [14:38:31]Read from MH i2c: E2 0E 00 [14:38:31]MH_I2C_Read... [14:38:31]Read from MH i2c: E2 0E 00 D2 01 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 EC [14:38:31]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [14:38:31]wFMCommunicate OK [14:38:31]SAM_PROTO_GetShiftState done [14:38:31]FM_GetShiftState done [14:38:31]req_shift_opened done [14:38:31]requested_item shift.open_date is exist - process it [14:38:31]req_shift_open_date [14:38:31]req_shift_open_date done [14:38:31]produce_requested_data done [14:38:31]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68607,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [14:38:31]process_action_free print_text [14:38:31]json_value_free [14:38:31]json_value_free done [14:38:31]process_json_proto returns [14:38:31]Send response to host [14:38:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68607,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [14:38:31]free response buf [14:38:31]execute_script done [14:38:31]execute_script returns [14:38:31]free content buf [14:38:31]Sock 9.Close socket [14:38:31]Sock 9.Thread stoped [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:26]OFD Sender: No OFD packet to send [14:42:31]OFD Sender: No OFD packet to send [14:42:36]OFD Sender: No OFD packet to send [14:42:41]OFD Sender: No OFD packet to send [14:42:46]OFD Sender: No OFD packet to send [14:42:51]OFD Sender: No OFD packet to send [14:42:56]OFD Sender: No OFD packet to send [14:43:01]OFD Sender: No OFD packet to send [14:43:06]OFD Sender: No OFD packet to send [14:43:11]OFD Sender: No OFD packet to send [14:43:16]OFD Sender: No OFD packet to send [14:43:21]OFD Sender: No OFD packet to send [14:43:26]OFD Sender: No OFD packet to send [14:43:31]OFD Sender: No OFD packet to send [14:43:36]OFD Sender: No OFD packet to send [14:43:41]OFD Sender: No OFD packet to send [14:43:46]OFD Sender: No OFD packet to send [14:43:51]OFD Sender: No OFD packet to send [14:43:56]OFD Sender: No OFD packet to send [14:44:01]OFD Sender: No OFD packet to send [14:44:06]OFD Sender: No OFD packet to send [14:44:11]OFD Sender: No OFD packet to send [14:44:16]OFD Sender: No OFD packet to send [14:44:21]OFD Sender: No OFD packet to send [14:44:26]OFD Sender: No OFD packet to send [14:44:31]OFD Sender: No OFD packet to send [14:44:36]OFD Sender: No OFD packet to send [14:44:41]OFD Sender: No OFD packet to send [14:44:46]OFD Sender: No OFD packet to send [14:44:51]OFD Sender: No OFD packet to send [14:44:56]OFD Sender: No OFD packet to send [14:45:01]OFD Sender: No OFD packet to send [14:45:06]OFD Sender: No OFD packet to send [14:45:11]OFD Sender: No OFD packet to send [14:45:16]OFD Sender: No OFD packet to send [14:45:21]OFD Sender: No OFD packet to send [14:45:26]OFD Sender: No OFD packet to send [14:45:31]OFD Sender: No OFD packet to send [14:45:36]OFD Sender: No OFD packet to send [14:45:41]OFD Sender: No OFD packet to send [14:45:46]OFD Sender: No OFD packet to send [14: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:31]OFD Sender: No OFD packet to send [14:46:36]OFD Sender: No OFD packet to send [14:46:41]OFD Sender: No OFD packet to send [14:46:46]OFD Sender: No OFD packet to send [14:46:51]OFD Sender: No OFD packet to send [14:46:56]OFD Sender: No OFD packet to send [14:47:01]OFD Sender: No OFD packet to send [14:47:06]OFD Sender: No OFD packet to send [14:47:11]OFD Sender: No OFD packet to send [14:47:16]OFD Sender: No OFD packet to send [14:47:21]OFD Sender: No OFD packet to send [14:47:26]OFD Sender: No OFD packet to send [14:47:31]OFD Sender: No OFD packet to send [14:47:36]OFD Sender: No OFD packet to send [14:47:41]OFD Sender: No OFD packet to send [14:47:46]OFD Sender: No OFD packet to send [14:47:51]OFD Sender: No OFD packet to send [14:47:56]OFD Sender: No OFD packet to send [14:48:01]OFD Sender: No OFD packet to send [14:48:06]OFD Sender: No OFD packet to send [14:48:11]OFD Sender: No OFD packet to send [14:48:16]OFD Sender: No OFD packet to send [14:48:21]OFD Sender: No OFD packet to send [14:48:26]OFD Sender: No OFD packet to send [14:48:31]OFD Sender: No OFD packet to send [14:48:36]OFD Sender: No OFD packet to send [14:48:41]OFD Sender: No OFD packet to send [14:48:46]OFD Sender: No OFD packet to send [14:48:51]OFD Sender: No OFD packet to send [14:48:56]OFD Sender: No OFD packet to send [14:49:01]OFD Sender: No OFD packet to send [14:49:06]OFD Sender: No OFD packet to send [14:49:11]OFD Sender: No OFD packet to send [14:49:16]OFD Sender: No OFD packet to send [14:49:21]OFD Sender: No OFD packet to send [14:49:26]OFD Sender: No OFD packet to send [14:49:31]OFD Sender: No OFD packet to send [14:49:36]OFD Sender: No OFD packet to send [14:49:41]OFD Sender: No OFD packet to send [14:49:46]OFD Sender: No OFD packet to send [14:49:51]OFD Sender: No OFD packet to send [14:49:56]OFD Sender: No OFD packet to send [14:50:01]OFD Sender: No OFD packet to send [14:50:06]OFD Sender: No OFD packet to send [14:50:11]OFD Sender: No OFD packet to send [14:50:16]OFD Sender: No OFD packet to send [14:50:21]OFD Sender: No OFD packet to send [14:50:26]OFD Sender: No OFD packet to send [14:50:31]OFD Sender: No OFD packet to send [14:50:36]OFD Sender: No OFD packet to send [14:50:41]OFD Sender: No OFD packet to send [14:50:46]OFD Sender: No OFD packet to send [14:50:51]OFD Sender: No OFD packet to send [14:50:56]OFD Sender: No OFD packet to send [14:51:01]OFD Sender: No OFD packet to send [14:51:06]OFD Sender: No OFD packet to send [14:51:11]OFD Sender: No OFD packet to send [14:51:16]OFD Sender: No OFD packet to send [14:51:21]OFD Sender: No OFD packet to send [14:51:26]OFD Sender: No OFD packet to send [14:51:31]OFD Sender: No OFD packet to send [14:51:36]OFD Sender: No OFD packet to send [14:51:41]OFD Sender: No OFD packet to send [14:51:46]OFD Sender: No OFD packet to send [14:51:51]OFD Sender: No OFD packet to send [14:51:56]OFD Sender: No OFD packet to send [14:52:01]OFD Sender: No OFD packet to send [14:52:06]OFD Sender: No OFD packet to send [14:52:11]OFD Sender: No OFD packet to send [14:52:16]OFD Sender: No OFD packet to send [14:52:21]OFD Sender: No OFD packet to send [14:52:26]OFD Sender: No OFD packet to send [14:52:31]OFD Sender: No OFD packet to send [14:52:36]OFD Sender: No OFD packet to send [14:52: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:16]OFD Sender: No OFD packet to send [14:54:21]OFD Sender: No OFD packet to send [14:54:26]OFD Sender: No OFD packet to send [14:54:31]OFD Sender: No OFD packet to send [14:54:36]OFD Sender: No OFD packet to send [14:54:41]OFD Sender: No OFD packet to send [14:54:46]OFD Sender: No OFD packet to send [14:54:51]OFD Sender: No OFD packet to send [14:54:56]OFD Sender: No OFD packet to send [14:55:01]OFD Sender: No OFD packet to send [14:55:06]OFD Sender: No OFD packet to send [14:55:11]OFD Sender: No OFD packet to send [14:55:16]OFD Sender: No OFD packet to send [14:55:21]OFD Sender: No OFD packet to send [14:55:26]OFD Sender: No OFD packet to send [14:55:31]OFD Sender: No OFD packet to send [14:55:36]OFD Sender: No OFD packet to send [14:55:41]OFD Sender: No OFD packet to send [14:55:46]OFD Sender: No OFD packet to send [14:55:51]OFD Sender: No OFD packet to send [14:55:56]OFD Sender: No OFD packet to send [14:56:01]OFD Sender: No OFD packet to send [14:56:06]OFD Sender: No OFD packet to send [14:56:11]OFD Sender: No OFD packet to send [14:56:16]OFD Sender: No OFD packet to send [14:56:21]OFD Sender: No OFD packet to send [14:56:26]OFD Sender: No OFD packet to send [14:56:31]OFD Sender: No OFD packet to send [14:56:36]OFD Sender: No OFD packet to send [14:56:40]accept exits with 7 [14:56:40]New connection [14:56:40]New thread 3067153764 created [14:56:40]Thread 3067297124 joined [14:56:40]Waiting for new connection... [14:56:40] Sock 7.Parse request [14:56:40]Sock 7.Check first char [14:56:40]Sock 7.First char is OK [14:56:40]request: POST /json_proto HTTP/1.0 [14:56:40]Method: POST [14:56:40]URL: /json_proto [14:56:40]Method is POST - this is cgi request [14:56:40]url: /json_proto [14:56:40]query_string will be loaded in cgi processing [14:56:40]execute_cgi json_proto POST (null) [14:56:40]execute_cgi path=json_proto method=POST [14:56:40]POST find Content-Length [14:56:40]Host: 172.17.36.132:8080 [14:56:40]Content-Length: 808 [14:56:40]Content-Type: application/json [14:56:40] [14:56:40]POST finish read [14:56:40]Found Content-Length = 808 [14:56:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706740", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:56:40]execute_script... [14:56:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706740", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:56:40]POST & json_proto [14:56:40]process_json_proto [14:56:40]json parsed OK: [14:56:40]protocol is kg_v1.0 [14:56:40]action value=close_receipt [14:56:40]process_action close_receipt [14:56:40]cmd_close_receipt [14:56:40]MH_GetDate [14:56:40]Write to MH i2c: F0 00 00 D3 01 C3 [14:56:40]Write i2c OK [14:56:40]MH_I2C_Read... [14:56:40]Read from MH i2c: F0 [14:56:40]MH_I2C_Read... [14:56:40]Read from MH i2c: F0 09 00 [14:56:40]MH_I2C_Read... [14:56:40]Read from MH i2c: F0 09 00 D3 01 00 28 2B 5F 66 B2 22 B0 64 CC [14:56:40]GetLastDocTimeStamp 1717511873 [14:56:40]current date 1717513000 [14:56:40]FM_GetShiftState [14:56:40]SAM_PROTO_GetShiftState [14:56:40]wFMCommunicate request_size=4 [14:56:40]MH_SAM_APDU [14:56:40]CAPDU: 80 13 01 00 [14:56:40]Write to MH i2c: E2 08 00 D4 01 80 13 01 00 00 00 00 00 52 [14:56:40]Write i2c OK [14:56:40]MH_I2C_Read... [14:56:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:56:40]Read from MH i2c: E2 [14:56:40]MH_I2C_Read... [14:56:40]Read from MH i2c: E2 0E 00 [14:56:40]MH_I2C_Read... [14:56:40]Read from MH i2c: E2 0E 00 D4 01 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 EE [14:56:40]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [14:56:40]wFMCommunicate OK [14:56:40]SAM_PROTO_GetShiftState done [14:56:40]FM_GetShiftState done [14:56:40]opened in 1717460590 [14:56:40]opened+sec_in_day 1717546990 [14:56:40]quantity*price = 100018 [14:56:40]sum+1 = 100020 [14:56:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.19 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.19 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 106 04.06.2024 14:56 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000965400 ФД: 68608 ФПД: 42885157031938 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T145640&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68608&fm=42885157031938&tin=02508201610067®Number=0000000000098096&sum=100019 [14:56:41]StoreToDocumentArchive [14:56:41]shift 325 fd 68608 [14:56:41]save to /storage/0325/doc_00068608 [14:56:41]save last doc name /storage/0325/doc_00068608 to /storage/kkm_last_doc_name [14:56:41]save OK [14:56:41]Clear old archive folders... [14:56:41]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:56:41]tlvbuf is 00A58000 [14:56:41]SAM_PROTO_ClearQueue [14:56:41]wFMCommunicate request_size=4 [14:56:41]MH_SAM_APDU [14:56:41]CAPDU: 80 09 00 00 [14:56:41]Write to MH i2c: E2 08 00 E1 01 80 09 00 00 00 00 00 00 54 [14:56:41]Write i2c OK [14:56:41]MH_I2C_Read... [14:56:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:56:41]Read from MH i2c: E2 [14:56:41]MH_I2C_Read... [14:56:41]Read from MH i2c: E2 03 00 [14:56:41]MH_I2C_Read... [14:56:41]Read from MH i2c: E2 03 00 E1 01 00 90 00 56 [14:56:41]RAPDU: 90 00 [14:56:41]wFMCommunicate OK [14:56:41]SAM_PROTO_ClearQueue done [14:56:41]KKMCreateOFDPacket [14:56:41]OFDProtocolAddRootSTLVToBuf [14:56:41]FM_MakeSignedData [14:56:41]FM_MakeSignedData [14:56:41]SAM_PROTO_SignData [14:56:41]wFMCommunicate request_size=4 [14:56:41]MH_SAM_APDU [14:56:41]CAPDU: 80 0D 01 02 [14:56:41]Write to MH i2c: E2 08 00 E2 01 80 0D 01 02 00 00 00 00 5C [14:56:41]Write i2c OK [14:56:41]MH_I2C_Read... [14:56:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:56:41]Read from MH i2c: E2 [14:56:41]MH_I2C_Read... [14:56:41]Read from MH i2c: E2 03 00 [14:56:41]MH_I2C_Read... [14:56:41]Read from MH i2c: E2 03 00 E2 01 00 90 00 57 [14:56:41]RAPDU: 90 00 [14:56:41]wFMCommunicate OK [14:56:41]wFMCommunicate request_size=255 [14:56:41]MH_SAM_APDU [14:56:41]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 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 6A 00 00 00 F4 03 04 00 28 2B 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 00 0C 01 00 35 04 06 00 [14:56:41]Write to MH i2c: E2 02 01 E3 01 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 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 6A 00 00 00 F4 03 04 00 28 2B 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 00 0C 01 00 35 04 06 00 00 00 A3 [14:56:41]Write i2c OK [14:56:41]MH_I2C_Read... [14:56:41]OFD Sender: No OFD packet to send [14:56:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:56:41]Read from MH i2c: E2 [14:56:41]MH_I2C_Read... [14:56:41]Read from MH i2c: E2 03 00 [14:56:41]MH_I2C_Read... [14:56:41]Read from MH i2c: E2 03 00 E3 01 00 90 00 58 [14:56:41]RAPDU: 90 00 [14:56:41]wFMCommunicate OK [14:56:41]wFMCommunicate request_size=11 [14:56:41]MH_SAM_APDU [14:56:41]CAPDU: 80 0D 02 02 06 27 00 FA 8D 10 02 [14:56:41]Write to MH i2c: E2 0E 00 E4 01 80 0D 02 02 06 00 27 00 FA 8D 10 02 00 00 2B [14:56:41]Write i2c OK [14:56:41]MH_I2C_Read... [14:56:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:56:41]Read from MH i2c: E2 [14:56:41]MH_I2C_Read... [14:56:41]Read from MH i2c: E2 03 00 [14:56:41]MH_I2C_Read... [14:56:41]Read from MH i2c: E2 03 00 E4 01 00 90 00 59 [14:56:41]RAPDU: 90 00 [14:56:41]wFMCommunicate OK [14:56:41]wFMCommunicate request_size=4 [14:56:41]MH_SAM_APDU [14:56:41]CAPDU: 80 0D 03 02 [14:56:41]Write to MH i2c: E2 08 00 E5 01 80 0D 03 02 00 00 00 00 61 [14:56:41]Write i2c OK [14:56:41]MH_I2C_Read... [14:56:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:56:41]Read from MH i2c: E2 [14:56:41]MH_I2C_Read... [14:56:41]Read from MH i2c: E2 0B 00 [14:56:41]MH_I2C_Read... [14:56:41]Read from MH i2c: E2 0B 00 E5 01 00 E3 1D DD 08 E7 E2 95 EB 90 00 90 [14:56:41]RAPDU: E3 1D DD 08 E7 E2 95 EB 90 00 [14:56:41]wFMCommunicate OK [14:56:41]SAM_PROTO_SignData done [14:56:41]FM_MakeSignedData done [14:56:41]CreateOFDProtocolMessage [14:56:41]wFMCommunicate request_size=4 [14:56:41]MH_SAM_APDU [14:56:41]CAPDU: 80 11 00 00 [14:56:41]Write to MH i2c: E2 08 00 E6 01 80 11 00 00 00 00 00 00 61 [14:56:41]Write i2c OK [14:56:41]MH_I2C_Read... [14:56:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:56:41]Read from MH i2c: E2 [14:56:41]MH_I2C_Read... [14:56:41]Read from MH i2c: E2 17 00 [14:56:41]MH_I2C_Read... [14:56:41]Read from MH i2c: E2 17 00 E6 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 AC [14:56:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [14:56:41]wFMCommunicate OK [14:56:41]CreateOFDProtocolMessage done [14:56:41]OFDSenderStorePacket 68608 [14:56:41]StoreOFDPacket docnum=68608 [14:56:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 F1 91 08 01 5B E2 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 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 6A 00 00 00 F4 03 04 00 28 2B 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 00 0C 01 00 35 04 06 00 27 00 FA 8D 10 02 E3 1D DD 08 E7 E2 95 EB [14:56:41]CheckFolder [14:56:41]dirname=/storage/ofd_packets [14:56:41]CheckFolder done [14:56:41]ProducePacketName [14:56:41]name=ofd_packets/00068608 [14:56:41]NVStorageSaveData ofd_packets/00068608 [14:56:41]File name is /storage/ofd_packets/00068608 [14:56:41]Write 302 bytes [14:56:41]NVStorageSaveData done [14:56:41]OFDSenderStorePacket done [14:56:41]KKMCreateOFDPacket done [14:56:41]NVStorageSaveData kkm_last_timestamp [14:56:41]File name is /storage/kkm_last_timestamp [14:56:41]Write 4 bytes [14:56:41]NVStorageSaveData done [14:56:41]ExternCall_PrintAddStr [14:56:41]wPrintStart [14:56:41]Write to MH i2c: 01 00 00 E7 01 E8 [14:56:41]Write i2c OK [14:56:41]MH_I2C_Read... [14:56:41]Read from MH i2c: 01 [14:56:41]MH_I2C_Read... [14:56:41]Read from MH i2c: 01 07 00 [14:56:41]MH_I2C_Read... [14:56:41]Read from MH i2c: 01 07 00 E7 01 00 00 00 00 00 FF 0F FD [14:56:41]RasterBufferAndPrint [14:56:41]line Счет N : (1)706740 [14:56:41]line ИНН: 02508201610067 [14:56:41]line Контрольно-Кассовый Чек [14:56:41]line ПРОДАЖА [14:56:41]line ТРК (МРК, ГНК) : 21 [14:56:41]line Товар: 2710194210 [14:56:41]line ДТ(л)-К-4 [14:56:41]line 13.720 * 72.90 [14:56:41]line = 1000.19 [14:56:41]line НДС 12% НСП 1% [14:56:41]line > о реализуемом товаре [14:56:41]line ИТОГО: 1000.19 [14:56:41]line НСП 1% : 8.85 [14:56:41]line НДС 12% : 106.21 [14:56:41]line Наличными: 0.00 [14:56:41]line Безнал.: 1000.19 [14:56:41]line Место: АЗС № 62 "Партнер Нефть" [14:56:41]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [14:56:41]line СНО: Общий режим [14:56:41]line Чек 106 04.06.2024 14:56 [14:56:41]line Смена: 325 ФФД: 1.0 [14:56:41]line ЗНМ: 0300000181 [14:56:41]line РНМ: 0000000000098096 [14:56:41]line Версия ККМ: 001 [14:56:41]line Платежная система: O! деньги [14:56:41]line ФМ: 0000000000965400 [14:56:41]line ФД: 68608 [14:56:41]line ФПД: 42885157031938 [14:56:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T145640&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68608&fm=42885157031938&tin=02508201610067®Number=0000000000098096&sum=100019 [14:56:42]OFD Sender: Processing packet 68608 [packets to send 27, broken 26] [14:56:42]ProducePacketName [14:56:42]name=ofd_packets/00068608 [14:56:42]OFD Sender: To server: pG, [14:56:42]CommunicateWithHost lk.salyk.kg:30040 [14:56:42]ConnectInit lk.salyk.kg [14:56:42]written 0, free lines is 4095 [14:56:42]Connected sock=10 [14:56:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 F1 91 08 01 5B E2 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 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 6A 00 00 00 F4 03 04 00 28 2B 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 00 0C 01 00 35 04 06 00 27 00 FA 8D 10 02 E3 1D DD 08 E7 E2 95 EB [14:56:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 AE C5 47 00 90 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 39 36 35 34 30 30 10 04 04 00 00 0C 01 00 F4 03 04 00 21 D2 5E 66 B6 04 01 00 00 84 F4 F2 12 59 9C 6C 0C [14:56:42]CommunicateWithHost err = 0 [14:56:42]CheckOFDResponse [14:56:42]1017 (14) - 77093643461234 [14:56:42]1041 (16) - 0000000000965400 [14:56:42]1040 (4) - 68608 [14:56:42]1012 (4) - 04.06.2024 08:36 [14:56:42]1206 (1) - 0 [14:56:42]OFD Sender: Remove packet 68608 [14:56:42]ProducePacketName [14:56:42]name=ofd_packets/00068608 [14:56:42]NVStorageDeleteData [14:56:42]Write to MH i2c: 01 00 00 11 02 13 [14:56:42]Write i2c OK [14:56:42]MH_I2C_Read... [14:56:42]Read from MH i2c: 01 [14:56:42]MH_I2C_Read... [14:56:42]Read from MH i2c: 01 07 00 [14:56:42]MH_I2C_Read... [14:56:42]Read from MH i2c: 01 07 00 11 02 00 00 00 00 00 EB 0C 11 [14:56:42]RasterBufferAndPrint [14:56:42]line [14:56:42]line [14:56:42]line [14:56:42]line [14:56:42]line [14:56:42]written 0, free lines is 3314 [14:56:42]MH_Cut [14:56:42]Write to MH i2c: D1 01 00 18 02 01 EC [14:56:42]Write i2c OK [14:56:42]MH_I2C_Read... [14:56:42]Read from MH i2c: D1 [14:56:42]MH_I2C_Read... [14:56:42]Read from MH i2c: D1 01 00 [14:56:42]MH_I2C_Read... [14:56:42]Read from MH i2c: D1 01 00 18 02 00 EB [14:56:42]Write to MH i2c: 01 00 00 19 02 1B [14:56:42]Write i2c OK [14:56:42]MH_I2C_Read... [14:56:43]OFD Sender: No OFD packet to send [14:56:43]*** Cut start [14:56:43]*** Partial cut [14:56:43]*** CUTSNS_PIN = 1 [14:56:43]*** CUTSNS_PIN = 0 [14:56:43]*** Brake cut motor [14:56:44]Read from MH i2c: 01 [14:56:44]MH_I2C_Read... [14:56:44]*** Stop cut motor [14:56:44]*** Cut end [14:56:44]Read from MH i2c: 01 07 00 [14:56:44]MH_I2C_Read... [14:56:44]Read from MH i2c: 01 07 00 19 02 00 00 00 00 00 FF 0F 30 [14:56:44]process_action close_receipt done [14:56:44]requested_data is exist [14:56:44]produce_requested_data [14:56:44]requested_item fm.sn is exist - process it [14:56:44]wFMCommunicate request_size=4 [14:56:44]MH_SAM_APDU [14:56:44]CAPDU: 80 11 00 00 [14:56:44]Write to MH i2c: E2 08 00 1A 02 80 11 00 00 00 00 00 00 96 [14:56:44]Write i2c OK [14:56:44]MH_I2C_Read... [14:56:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:56:44]Read from MH i2c: E2 [14:56:44]MH_I2C_Read... [14:56:44]Read from MH i2c: E2 17 00 [14:56:44]MH_I2C_Read... [14:56:44]Read from MH i2c: E2 17 00 1A 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 E1 [14:56:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [14:56:44]wFMCommunicate OK [14:56:44]requested_item fd.num is exist - process it [14:56:44]SAM_PROTO_GetFieldsCounters [14:56:44]wFMCommunicate request_size=4 [14:56:44]MH_SAM_APDU [14:56:44]CAPDU: 80 13 00 00 [14:56:44]Write to MH i2c: E2 08 00 1B 02 80 13 00 00 00 00 00 00 99 [14:56:44]Write i2c OK [14:56:44]MH_I2C_Read... [14:56:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:56:44]Read from MH i2c: E2 [14:56:44]MH_I2C_Read... [14:56:44]Read from MH i2c: E2 62 00 [14:56:44]MH_I2C_Read... [14:56:44]Read from MH i2c: E2 62 00 1B 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 00 0C 01 00 0E 04 04 00 45 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 4A [14:56:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 00 0C 01 00 0E 04 04 00 45 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:56:44]wFMCommunicate OK [14:56:44]SAM_PROTO_GetFieldsCounters done [14:56:44]requested_item shift.num is exist - process it [14:56:44]requested_item shift.opened is exist - process it [14:56:44]req_shift_opened [14:56:44]FM_GetShiftState [14:56:44]SAM_PROTO_GetShiftState [14:56:44]wFMCommunicate request_size=4 [14:56:44]MH_SAM_APDU [14:56:44]CAPDU: 80 13 01 00 [14:56:44]Write to MH i2c: E2 08 00 1C 02 80 13 01 00 00 00 00 00 9B [14:56:44]Write i2c OK [14:56:44]MH_I2C_Read... [14:56:44]Read from MH i2c: E2 [14:56:44]MH_I2C_Read... [14:56:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:56:44]Read from MH i2c: E2 0E 00 [14:56:44]MH_I2C_Read... [14:56:44]Read from MH i2c: E2 0E 00 1C 02 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 37 [14:56:44]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [14:56:44]wFMCommunicate OK [14:56:44]SAM_PROTO_GetShiftState done [14:56:44]FM_GetShiftState done [14:56:44]req_shift_opened done [14:56:44]requested_item shift.open_date is exist - process it [14:56:44]req_shift_open_date [14:56:44]req_shift_open_date done [14:56:44]produce_requested_data done [14:56:44]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68608,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [14:56:44]process_action_free close_receipt [14:56:44]json_value_free [14:56:44]json_value_free done [14:56:44]process_json_proto returns [14:56:44]Send response to host [14:56:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68608,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [14:56:44]free response buf [14:56:44]execute_script done [14:56:44]execute_script returns [14:56:44]free content buf [14:56:44]Sock 7.Close socket [14:56:44]Sock 7.Thread stoped [14:56:48]OFD Sender: No OFD packet to send [14:56:51]accept exits with 9 [14:56:51]New connection [14:56:51]New thread 3067297124 created [14:56:51]Thread 3067153764 joined [14:56:51]Waiting for new connection... [14:56:51] Sock 9.Parse request [14:56:51]Sock 9.Check first char [14:56:51]Sock 9.First char is OK [14:56:51]request: POST /json_proto HTTP/1.0 [14:56:51]Method: POST [14:56:51]URL: /json_proto [14:56:51]Method is POST - this is cgi request [14:56:51]url: /json_proto [14:56:51]query_string will be loaded in cgi processing [14:56:51]execute_cgi json_proto POST (null) [14:56:51]execute_cgi path=json_proto method=POST [14:56:51]POST find Content-Length [14:56:51]Host: 172.17.36.132:8080 [14:56:51]Content-Length: 677 [14:56:51]Content-Type: application/json [14:56:51] [14:56:51]POST finish read [14:56:51]Found Content-Length = 677 [14:56:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706741", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:56:51]execute_script... [14:56: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)706741", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:56:51]POST & json_proto [14:56:51]process_json_proto [14:56:51]json parsed OK: [14:56:51]protocol is kg_v1.0 [14:56:51]action value=close_receipt [14:56:51]process_action close_receipt [14:56:51]cmd_close_receipt [14:56:51]MH_GetDate [14:56:51]Write to MH i2c: F0 00 00 1D 02 0E [14:56:51]Write i2c OK [14:56:51]MH_I2C_Read... [14:56:51]Read from MH i2c: F0 [14:56:51]MH_I2C_Read... [14:56:51]Read from MH i2c: F0 09 00 [14:56:51]MH_I2C_Read... [14:56:51]Read from MH i2c: F0 09 00 1D 02 00 33 2B 5F 66 B2 22 B0 64 22 [14:56:51]GetLastDocTimeStamp 1717513000 [14:56:51]current date 1717513011 [14:56:51]FM_GetShiftState [14:56:51]SAM_PROTO_GetShiftState [14:56:51]wFMCommunicate request_size=4 [14:56:51]MH_SAM_APDU [14:56:51]CAPDU: 80 13 01 00 [14:56:51]Write to MH i2c: E2 08 00 1E 02 80 13 01 00 00 00 00 00 9D [14:56:51]Write i2c OK [14:56:51]MH_I2C_Read... [14:56:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:56:51]Read from MH i2c: E2 [14:56:51]MH_I2C_Read... [14:56:51]Read from MH i2c: E2 0E 00 [14:56:51]MH_I2C_Read... [14:56:51]Read from MH i2c: E2 0E 00 1E 02 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 39 [14:56:51]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [14:56:51]wFMCommunicate OK [14:56:51]SAM_PROTO_GetShiftState done [14:56:51]FM_GetShiftState done [14:56:51]opened in 1717460590 [14:56:51]opened+sec_in_day 1717546990 [14:56:51]quantity*price = 40006 [14:56:51]sum+1 = 40007 [14:56:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 107 04.06.2024 14:56 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68609 ФПД: 220510846227137 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T145652&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68609&fm=220510846227137&tin=02508201610067®Number=0000000000098096&sum=40000 [14:56:52]StoreToDocumentArchive [14:56:52]shift 325 fd 68609 [14:56:52]save to /storage/0325/doc_00068609 [14:56:52]save last doc name /storage/0325/doc_00068609 to /storage/kkm_last_doc_name [14:56:52]save OK [14:56:52]Clear old archive folders... [14:56:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:56:52]tlvbuf is 00A66B30 [14:56:52]SAM_PROTO_ClearQueue [14:56:52]wFMCommunicate request_size=4 [14:56:52]MH_SAM_APDU [14:56:52]CAPDU: 80 09 00 00 [14:56:52]Write to MH i2c: E2 08 00 2B 02 80 09 00 00 00 00 00 00 9F [14:56:52]Write i2c OK [14:56:52]MH_I2C_Read... [14:56:52]Read from MH i2c: E2 [14:56:52]MH_I2C_Read... [14:56:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:56:52]Read from MH i2c: E2 03 00 [14:56:52]MH_I2C_Read... [14:56:52]Read from MH i2c: E2 03 00 2B 02 00 90 00 A1 [14:56:52]RAPDU: 90 00 [14:56:52]wFMCommunicate OK [14:56:52]SAM_PROTO_ClearQueue done [14:56:52]KKMCreateOFDPacket [14:56:52]OFDProtocolAddRootSTLVToBuf [14:56:52]FM_MakeSignedData [14:56:52]FM_MakeSignedData [14:56:52]SAM_PROTO_SignData [14:56:52]wFMCommunicate request_size=4 [14:56:52]MH_SAM_APDU [14:56:52]CAPDU: 80 0D 01 02 [14:56:52]Write to MH i2c: E2 08 00 2C 02 80 0D 01 02 00 00 00 00 A7 [14:56:52]Write i2c OK [14:56:52]MH_I2C_Read... [14:56:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:56:52]Read from MH i2c: E2 [14:56:52]MH_I2C_Read... [14:56:52]Read from MH i2c: E2 03 00 [14:56:52]MH_I2C_Read... [14:56:52]Read from MH i2c: E2 03 00 2C 02 00 90 00 A2 [14:56:52]RAPDU: 90 00 [14:56:52]wFMCommunicate OK [14:56:52]wFMCommunicate request_size=255 [14:56:52]MH_SAM_APDU [14:56:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 34 2B 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 01 0C 01 00 35 04 06 00 C8 [14:56:52]Write to MH i2c: E2 02 01 2D 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 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 34 2B 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 01 0C 01 00 35 04 06 00 C8 00 00 AE [14:56:52]Write i2c OK [14:56:52]MH_I2C_Read... [14:56:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:56:52]Read from MH i2c: E2 [14:56:52]MH_I2C_Read... [14:56:52]Read from MH i2c: E2 03 00 [14:56:52]MH_I2C_Read... [14:56:52]Read from MH i2c: E2 03 00 2D 02 00 90 00 A3 [14:56:52]RAPDU: 90 00 [14:56:52]wFMCommunicate OK [14:56:52]wFMCommunicate request_size=10 [14:56:52]MH_SAM_APDU [14:56:52]CAPDU: 80 0D 02 02 05 8D AE A8 92 C1 [14:56:52]Write to MH i2c: E2 0D 00 2E 02 80 0D 02 02 05 00 8D AE A8 92 C1 00 00 EA [14:56:52]Write i2c OK [14:56:52]MH_I2C_Read... [14:56:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:56:52]Read from MH i2c: E2 [14:56:52]MH_I2C_Read... [14:56:52]Read from MH i2c: E2 03 00 [14:56:52]MH_I2C_Read... [14:56:52]Read from MH i2c: E2 03 00 2E 02 00 90 00 A4 [14:56:52]RAPDU: 90 00 [14:56:52]wFMCommunicate OK [14:56:52]wFMCommunicate request_size=4 [14:56:52]MH_SAM_APDU [14:56:52]CAPDU: 80 0D 03 02 [14:56:52]Write to MH i2c: E2 08 00 2F 02 80 0D 03 02 00 00 00 00 AC [14:56:52]Write i2c OK [14:56:52]MH_I2C_Read... [14:56:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:56:53]Read from MH i2c: E2 [14:56:53]MH_I2C_Read... [14:56:53]Read from MH i2c: E2 0B 00 [14:56:53]MH_I2C_Read... [14:56:53]Read from MH i2c: E2 0B 00 2F 02 00 FF CB E6 1F 4D 8F 37 3B 90 00 CA [14:56:53]RAPDU: FF CB E6 1F 4D 8F 37 3B 90 00 [14:56:53]wFMCommunicate OK [14:56:53]SAM_PROTO_SignData done [14:56:53]FM_MakeSignedData done [14:56:53]CreateOFDProtocolMessage [14:56:53]wFMCommunicate request_size=4 [14:56:53]MH_SAM_APDU [14:56:53]CAPDU: 80 11 00 00 [14:56:53]Write to MH i2c: E2 08 00 30 02 80 11 00 00 00 00 00 00 AC [14:56:53]Write i2c OK [14:56:53]MH_I2C_Read... [14:56:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:56:53]Read from MH i2c: E2 [14:56:53]MH_I2C_Read... [14:56:53]Read from MH i2c: E2 17 00 [14:56:53]MH_I2C_Read... [14:56:53]Read from MH i2c: E2 17 00 30 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 F7 [14:56:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [14:56:53]wFMCommunicate OK [14:56:53]CreateOFDProtocolMessage done [14:56:53]OFDSenderStorePacket 68609 [14:56:53]StoreOFDPacket docnum=68609 [14:56:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 81 F2 07 01 F5 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 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 34 2B 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 01 0C 01 00 35 04 06 00 C8 8D AE A8 92 C1 FF CB E6 1F 4D 8F 37 3B [14:56:53]CheckFolder [14:56:53]dirname=/storage/ofd_packets [14:56:53]CheckFolder done [14:56:53]ProducePacketName [14:56:53]name=ofd_packets/00068609 [14:56:53]NVStorageSaveData ofd_packets/00068609 [14:56:53]File name is /storage/ofd_packets/00068609 [14:56:53]Write 301 bytes [14:56:53]NVStorageSaveData done [14:56:53]OFDSenderStorePacket done [14:56:53]KKMCreateOFDPacket done [14:56:53]NVStorageSaveData kkm_last_timestamp [14:56:53]File name is /storage/kkm_last_timestamp [14:56:53]Write 4 bytes [14:56:53]NVStorageSaveData done [14:56:53]ExternCall_PrintAddStr [14:56:53]wPrintStart [14:56:53]Write to MH i2c: 01 00 00 31 02 33 [14:56:53]Write i2c OK [14:56:53]MH_I2C_Read... [14:56:53]Read from MH i2c: 01 [14:56:53]MH_I2C_Read... [14:56:53]Read from MH i2c: 01 07 00 [14:56:53]MH_I2C_Read... [14:56:53]Read from MH i2c: 01 07 00 31 02 00 00 00 00 00 FF 0F 48 [14:56:53]RasterBufferAndPrint [14:56:53]line Счет N : (1)706741 [14:56:53]line ИНН: 02508201610067 [14:56:53]line Контрольно-Кассовый Чек [14:56:53]line ПРОДАЖА [14:56:53]line ТРК (МРК, ГНК) : 53 [14:56:53]line Товар: 2710124130 [14:56:53]line Аи-92-К-4 [14:56:53]line 5.980 * 66.90 [14:56:53]line = 400.06 [14:56:53]line НДС 12% НСП 1% [14:56:53]line > о реализуемом товаре [14:56:53]line ОКРУГЛЕНИЕ: -0.06 [14:56:53]line ИТОГО: 400.00 [14:56:53]line Внесено: 400.00 [14:56:53]line СДАЧА: 0.00 [14:56:53]line НСП 1% : 3.54 [14:56:53]line НДС 12% : 42.48 [14:56:53]line Наличными: 400.00 [14:56:53]line Безнал.: 0.00 [14:56:53]line Место: АЗС № 62 "Партнер Нефть" [14:56:53]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [14:56:53]line СНО: Общий режим [14:56:53]line Чек 107 04.06.2024 14:56 [14:56:53]line Смена: 325 ФФД: 1.0 [14:56:53]line ЗНМ: 0300000181 [14:56:53]line РНМ: 0000000000098096 [14:56:53]line Версия ККМ: 001 [14:56:53]line ФМ: 0000000000965400 [14:56:53]line ФД: 68609 [14:56:53]line ФПД: 220510846227137 [14:56:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T145652&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68609&fm=220510846227137&tin=02508201610067®Number=0000000000098096&sum=40000 [14:56:53]OFD Sender: Processing packet 68609 [packets to send 27, broken 26] [14:56:53]ProducePacketName [14:56:53]name=ofd_packets/00068609 [14:56:53]OFD Sender: To server: pG, [14:56:53]CommunicateWithHost lk.salyk.kg:30040 [14:56:53]ConnectInit lk.salyk.kg [14:56:53]written 0, free lines is 4095 [14:56:53]Connected sock=10 [14:56:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 81 F2 07 01 F5 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 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 34 2B 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 01 0C 01 00 35 04 06 00 C8 8D AE A8 92 C1 FF CB E6 1F 4D 8F 37 3B [14:56:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 F1 4D 47 00 57 C8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 01 0C 01 00 F4 03 04 00 2C D2 5E 66 B6 04 01 00 00 2A BF 91 BA A5 64 BE 06 [14:56:53]CommunicateWithHost err = 0 [14:56:53]CheckOFDResponse [14:56:53]1017 (14) - 77093643461234 [14:56:53]1041 (16) - 0000000000965400 [14:56:53]1040 (4) - 68609 [14:56:53]1012 (4) - 04.06.2024 08:37 [14:56:53]1206 (1) - 0 [14:56:53]OFD Sender: Remove packet 68609 [14:56:53]ProducePacketName [14:56:53]name=ofd_packets/00068609 [14:56:53]NVStorageDeleteData [14:56:53]Write to MH i2c: 01 00 00 5C 02 5E [14:56:53]Write i2c OK [14:56:53]MH_I2C_Read... [14:56:53]Read from MH i2c: 01 [14:56:53]MH_I2C_Read... [14:56:53]Read from MH i2c: 01 07 00 [14:56:53]MH_I2C_Read... [14:56:53]Read from MH i2c: 01 07 00 5C 02 00 00 00 00 00 DD 0C 4E [14:56:53]RasterBufferAndPrint [14:56:53]line [14:56:53]line [14:56:53]line [14:56:53]line [14:56:53]line [14:56:53]written 0, free lines is 3302 [14:56:53]MH_Cut [14:56:53]Write to MH i2c: D1 01 00 63 02 01 37 [14:56:53]Write i2c OK [14:56:53]MH_I2C_Read... [14:56:53]Read from MH i2c: D1 [14:56:53]MH_I2C_Read... [14:56:53]Read from MH i2c: D1 01 00 [14:56:53]MH_I2C_Read... [14:56:53]Read from MH i2c: D1 01 00 63 02 00 36 [14:56:53]Write to MH i2c: 01 00 00 64 02 66 [14:56:53]Write i2c OK [14:56:53]MH_I2C_Read... [14:56:54]OFD Sender: No OFD packet to send [14:56:54]*** Cut start [14:56:54]*** Partial cut [14:56:54]*** CUTSNS_PIN = 1 [14:56:54]*** CUTSNS_PIN = 0 [14:56:54]*** Brake cut motor [14:56:55]Read from MH i2c: 01 [14:56:55]MH_I2C_Read... [14:56:55]*** Stop cut motor [14:56:55]*** Cut end [14:56:55]Read from MH i2c: 01 07 00 [14:56:55]MH_I2C_Read... [14:56:55]Read from MH i2c: 01 07 00 64 02 00 00 00 00 00 FF 0F 7B [14:56:55]process_action close_receipt done [14:56:55]requested_data is exist [14:56:55]produce_requested_data [14:56:55]requested_item fm.sn is exist - process it [14:56:55]wFMCommunicate request_size=4 [14:56:55]MH_SAM_APDU [14:56:55]CAPDU: 80 11 00 00 [14:56:55]Write to MH i2c: E2 08 00 65 02 80 11 00 00 00 00 00 00 E1 [14:56:55]Write i2c OK [14:56:55]MH_I2C_Read... [14:56:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:56:55]Read from MH i2c: E2 [14:56:55]MH_I2C_Read... [14:56:55]Read from MH i2c: E2 17 00 [14:56:55]MH_I2C_Read... [14:56:55]Read from MH i2c: E2 17 00 65 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 2C [14:56:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [14:56:55]wFMCommunicate OK [14:56:55]requested_item fd.num is exist - process it [14:56:55]SAM_PROTO_GetFieldsCounters [14:56:55]wFMCommunicate request_size=4 [14:56:55]MH_SAM_APDU [14:56:55]CAPDU: 80 13 00 00 [14:56:55]Write to MH i2c: E2 08 00 66 02 80 13 00 00 00 00 00 00 E4 [14:56:55]Write i2c OK [14:56:55]MH_I2C_Read... [14:56:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:56:55]Read from MH i2c: E2 [14:56:55]MH_I2C_Read... [14:56:55]Read from MH i2c: E2 62 00 [14:56:55]MH_I2C_Read... [14:56:55]Read from MH i2c: E2 62 00 66 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 01 0C 01 00 0E 04 04 00 45 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 99 [14:56:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 01 0C 01 00 0E 04 04 00 45 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:56:55]wFMCommunicate OK [14:56:55]SAM_PROTO_GetFieldsCounters done [14:56:55]requested_item shift.num is exist - process it [14:56:55]requested_item shift.opened is exist - process it [14:56:55]req_shift_opened [14:56:55]FM_GetShiftState [14:56:55]SAM_PROTO_GetShiftState [14:56:55]wFMCommunicate request_size=4 [14:56:55]MH_SAM_APDU [14:56:55]CAPDU: 80 13 01 00 [14:56:55]Write to MH i2c: E2 08 00 67 02 80 13 01 00 00 00 00 00 E6 [14:56:55]Write i2c OK [14:56:55]MH_I2C_Read... [14:56:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:56:55]Read from MH i2c: E2 [14:56:55]MH_I2C_Read... [14:56:55]Read from MH i2c: E2 0E 00 [14:56:55]MH_I2C_Read... [14:56:55]Read from MH i2c: E2 0E 00 67 02 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 82 [14:56:55]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [14:56:55]wFMCommunicate OK [14:56:55]SAM_PROTO_GetShiftState done [14:56:55]FM_GetShiftState done [14:56:55]req_shift_opened done [14:56:55]requested_item shift.open_date is exist - process it [14:56:55]req_shift_open_date [14:56:55]req_shift_open_date done [14:56:55]produce_requested_data done [14:56:55]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68609,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [14:56:55]process_action_free close_receipt [14:56:55]json_value_free [14:56:55]json_value_free done [14:56:55]process_json_proto returns [14:56:55]Send response to host [14:56:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68609,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [14:56:55]free response buf [14:56:55]execute_script done [14:56:55]execute_script returns [14:56:55]free content buf [14:56:55]Sock 9.Close socket [14:56:55]Sock 9.Thread stoped [14:56:59]OFD Sender: No OFD packet to send [14:57:04]OFD Sender: No OFD packet to send [14:57:09]OFD Sender: No OFD packet to send [14:57:14]OFD Sender: No OFD packet to send [14:57:19]OFD Sender: No OFD packet to send [14:57:24]OFD Sender: No OFD packet to send [14:57:29]OFD Sender: No OFD packet to send [14:57:34]OFD Sender: No OFD packet to send [14:57:39]OFD Sender: No OFD packet to send [14:57:44]OFD Sender: No OFD packet to send [14:57:49]OFD Sender: No OFD packet to send [14:57:53]accept exits with 7 [14:57:53]New connection [14:57:53]New thread 3067153764 created [14:57:53]Thread 3067297124 joined [14:57:53]Waiting for new connection... [14:57:53] Sock 7.Parse request [14:57:53]Sock 7.Check first char [14:57:53]Sock 7.First char is OK [14:57:53]request: POST /json_proto HTTP/1.0 [14:57:53]Method: POST [14:57:53]URL: /json_proto [14:57:53]Method is POST - this is cgi request [14:57:53]url: /json_proto [14:57:53]query_string will be loaded in cgi processing [14:57:53]execute_cgi json_proto POST (null) [14:57:53]execute_cgi path=json_proto method=POST [14:57:53]POST find Content-Length [14:57:53]Host: 172.17.36.132:8080 [14:57:53]Content-Length: 687 [14:57:53]Content-Type: application/json [14:57:53] [14:57:53]POST finish read [14:57:53]Found Content-Length = 687 [14:57:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706742", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "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" ] } } [14:57:53]execute_script... [14:57: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)706742", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "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" ] } } [14:57:53]POST & json_proto [14:57:53]process_json_proto [14:57:53]json parsed OK: [14:57:53]protocol is kg_v1.0 [14:57:53]action value=close_receipt [14:57:53]process_action close_receipt [14:57:53]cmd_close_receipt [14:57:53]MH_GetDate [14:57:53]Write to MH i2c: F0 00 00 68 02 59 [14:57:53]Write i2c OK [14:57:53]MH_I2C_Read... [14:57:53]Read from MH i2c: F0 [14:57:53]MH_I2C_Read... [14:57:53]Read from MH i2c: F0 09 00 [14:57:53]MH_I2C_Read... [14:57:53]Read from MH i2c: F0 09 00 68 02 00 71 2B 5F 66 B2 22 B0 64 AB [14:57:53]GetLastDocTimeStamp 1717513012 [14:57:53]current date 1717513073 [14:57:53]FM_GetShiftState [14:57:53]SAM_PROTO_GetShiftState [14:57:53]wFMCommunicate request_size=4 [14:57:53]MH_SAM_APDU [14:57:53]CAPDU: 80 13 01 00 [14:57:53]Write to MH i2c: E2 08 00 69 02 80 13 01 00 00 00 00 00 E8 [14:57:53]Write i2c OK [14:57:53]MH_I2C_Read... [14:57:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:57:53]Read from MH i2c: E2 [14:57:53]MH_I2C_Read... [14:57:53]Read from MH i2c: E2 0E 00 [14:57:53]MH_I2C_Read... [14:57:53]Read from MH i2c: E2 0E 00 69 02 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 84 [14:57:53]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [14:57:53]wFMCommunicate OK [14:57:53]SAM_PROTO_GetShiftState done [14:57:53]FM_GetShiftState done [14:57:53]opened in 1717460590 [14:57:53]opened+sec_in_day 1717546990 [14:57:53]quantity*price = 200037 [14:57:53]sum+1 = 200039 [14:57:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 108 04.06.2024 14:57 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68610 ФПД: 25917114711314 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T145753&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68610&fm=25917114711314&tin=02508201610067®Number=0000000000098096&sum=200000 [14:57:54]StoreToDocumentArchive [14:57:54]shift 325 fd 68610 [14:57:54]save to /storage/0325/doc_00068610 [14:57:54]save last doc name /storage/0325/doc_00068610 to /storage/kkm_last_doc_name [14:57:54]save OK [14:57:54]Clear old archive folders... [14:57:54]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:57:54]tlvbuf is 00A7A0A0 [14:57:54]SAM_PROTO_ClearQueue [14:57:54]wFMCommunicate request_size=4 [14:57:54]MH_SAM_APDU [14:57:54]CAPDU: 80 09 00 00 [14:57:54]Write to MH i2c: E2 08 00 76 02 80 09 00 00 00 00 00 00 EA [14:57:54]Write i2c OK [14:57:54]MH_I2C_Read... [14:57:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:57:54]Read from MH i2c: E2 [14:57:54]MH_I2C_Read... [14:57:54]Read from MH i2c: E2 03 00 [14:57:54]MH_I2C_Read... [14:57:54]Read from MH i2c: E2 03 00 76 02 00 90 00 EC [14:57:54]RAPDU: 90 00 [14:57:54]wFMCommunicate OK [14:57:54]SAM_PROTO_ClearQueue done [14:57:54]KKMCreateOFDPacket [14:57:54]OFDProtocolAddRootSTLVToBuf [14:57:54]FM_MakeSignedData [14:57:54]FM_MakeSignedData [14:57:54]SAM_PROTO_SignData [14:57:54]wFMCommunicate request_size=4 [14:57:54]MH_SAM_APDU [14:57:54]CAPDU: 80 0D 01 02 [14:57:54]Write to MH i2c: E2 08 00 77 02 80 0D 01 02 00 00 00 00 F2 [14:57:54]Write i2c OK [14:57:54]MH_I2C_Read... [14:57:54]Read from MH i2c: E2 [14:57:54]MH_I2C_Read... [14:57:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:57:54]Read from MH i2c: E2 03 00 [14:57:54]MH_I2C_Read... [14:57:54]Read from MH i2c: E2 03 00 77 02 00 90 00 ED [14:57:54]RAPDU: 90 00 [14:57:54]wFMCommunicate OK [14:57:54]wFMCommunicate request_size=255 [14:57:54]MH_SAM_APDU [14:57: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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 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 6C 00 00 00 F4 03 04 00 71 2B 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 02 0C 01 00 35 04 06 00 [14:57:54]Write to MH i2c: E2 02 01 78 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 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 6C 00 00 00 F4 03 04 00 71 2B 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 02 0C 01 00 35 04 06 00 00 00 DB [14:57:54]Write i2c OK [14:57:54]MH_I2C_Read... [14:57:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:57:54]Read from MH i2c: E2 [14:57:54]MH_I2C_Read... [14:57:54]Read from MH i2c: E2 03 00 [14:57:54]MH_I2C_Read... [14:57:54]Read from MH i2c: E2 03 00 78 02 00 90 00 EE [14:57:54]RAPDU: 90 00 [14:57:54]wFMCommunicate OK [14:57:54]wFMCommunicate request_size=11 [14:57:54]MH_SAM_APDU [14:57:54]CAPDU: 80 0D 02 02 06 17 92 4C 6A 7D 12 [14:57:54]Write to MH i2c: E2 0E 00 79 02 80 0D 02 02 06 00 17 92 4C 6A 7D 12 00 00 EF [14:57:54]Write i2c OK [14:57:54]MH_I2C_Read... [14:57:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:57:54]Read from MH i2c: E2 [14:57:54]MH_I2C_Read... [14:57:54]Read from MH i2c: E2 03 00 [14:57:54]MH_I2C_Read... [14:57:54]Read from MH i2c: E2 03 00 79 02 00 90 00 EF [14:57:54]RAPDU: 90 00 [14:57:54]wFMCommunicate OK [14:57:54]wFMCommunicate request_size=4 [14:57:54]MH_SAM_APDU [14:57:54]CAPDU: 80 0D 03 02 [14:57:54]Write to MH i2c: E2 08 00 7A 02 80 0D 03 02 00 00 00 00 F7 [14:57:54]Write i2c OK [14:57:54]MH_I2C_Read... [14:57:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:57:54]Read from MH i2c: E2 [14:57:54]MH_I2C_Read... [14:57:54]Read from MH i2c: E2 0B 00 [14:57:54]MH_I2C_Read... [14:57:54]Read from MH i2c: E2 0B 00 7A 02 00 87 1B 00 21 E3 B0 BE 1C 90 00 28 [14:57:54]RAPDU: 87 1B 00 21 E3 B0 BE 1C 90 00 [14:57:54]wFMCommunicate OK [14:57:54]SAM_PROTO_SignData done [14:57:54]FM_MakeSignedData done [14:57:54]CreateOFDProtocolMessage [14:57:54]wFMCommunicate request_size=4 [14:57:54]MH_SAM_APDU [14:57:54]CAPDU: 80 11 00 00 [14:57:54]Write to MH i2c: E2 08 00 7B 02 80 11 00 00 00 00 00 00 F7 [14:57:54]Write i2c OK [14:57:54]MH_I2C_Read... [14:57:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:57:54]Read from MH i2c: E2 [14:57:54]MH_I2C_Read... [14:57:54]Read from MH i2c: E2 17 00 [14:57:54]MH_I2C_Read... [14:57:54]Read from MH i2c: E2 17 00 7B 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 42 [14:57:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [14:57:54]wFMCommunicate OK [14:57:54]CreateOFDProtocolMessage done [14:57:54]OFDSenderStorePacket 68610 [14:57:54]StoreOFDPacket docnum=68610 [14:57:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 6D 91 08 01 29 CE 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 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 6C 00 00 00 F4 03 04 00 71 2B 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 02 0C 01 00 35 04 06 00 17 92 4C 6A 7D 12 87 1B 00 21 E3 B0 BE 1C [14:57:54]CheckFolder [14:57:54]dirname=/storage/ofd_packets [14:57:54]CheckFolder done [14:57:54]ProducePacketName [14:57:54]name=ofd_packets/00068610 [14:57:54]NVStorageSaveData ofd_packets/00068610 [14:57:54]File name is /storage/ofd_packets/00068610 [14:57:54]Write 302 bytes [14:57:54]NVStorageSaveData done [14:57:54]OFDSenderStorePacket done [14:57:54]KKMCreateOFDPacket done [14:57:54]NVStorageSaveData kkm_last_timestamp [14:57:54]File name is /storage/kkm_last_timestamp [14:57:54]Write 4 bytes [14:57:54]NVStorageSaveData done [14:57:54]ExternCall_PrintAddStr [14:57:54]wPrintStart [14:57:54]Write to MH i2c: 01 00 00 7C 02 7E [14:57:54]Write i2c OK [14:57:54]MH_I2C_Read... [14:57:54]Read from MH i2c: 01 [14:57:54]MH_I2C_Read... [14:57:54]Read from MH i2c: 01 07 00 [14:57:54]MH_I2C_Read... [14:57:54]Read from MH i2c: 01 07 00 7C 02 00 00 00 00 00 FF 0F 93 [14:57:54]RasterBufferAndPrint [14:57:54]line Счет N : (1)706742 [14:57:54]line ИНН: 02508201610067 [14:57:54]line Контрольно-Кассовый Чек [14:57:54]line ПРОДАЖА [14:57:54]line ТРК (МРК, ГНК) : 21 [14:57:54]line Товар: 2710194210 [14:57:54]line ДТ(л)-К-4 [14:57:54]line 27.440 * 72.90 [14:57:54]line = 2000.38 [14:57:54]line НДС 12% НСП 1% [14:57:54]line > о реализуемом товаре [14:57:54]line ОКРУГЛЕНИЕ: -0.38 [14:57:54]line ИТОГО: 2000.00 [14:57:54]line Внесено: 2000.00 [14:57:54]line СДАЧА: 0.00 [14:57:54]line НСП 1% : 17.70 [14:57:54]line НДС 12% : 212.43 [14:57:54]line Наличными: 2000.00 [14:57:54]line Безнал.: 0.00 [14:57:54]line Место: АЗС № 62 "Партнер Нефть" [14:57:54]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [14:57:54]line СНО: Общий режим [14:57:54]line Чек 108 04.06.2024 14:57 [14:57:54]line Смена: 325 ФФД: 1.0 [14:57:54]line ЗНМ: 0300000181 [14:57:54]line РНМ: 0000000000098096 [14:57:55]line Версия ККМ: 001 [14:57:55]line ФМ: 0000000000965400 [14:57:55]line ФД: 68610 [14:57:55]line ФПД: 25917114711314 [14:57:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T145753&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68610&fm=25917114711314&tin=02508201610067®Number=0000000000098096&sum=200000 [14:57:55]OFD Sender: Processing packet 68610 [packets to send 27, broken 26] [14:57:55]ProducePacketName [14:57:55]name=ofd_packets/00068610 [14:57:55]OFD Sender: To server: pG, [14:57:55]CommunicateWithHost lk.salyk.kg:30040 [14:57:55]ConnectInit lk.salyk.kg [14:57:55]written 0, free lines is 4095 [14:57:55]Connected sock=10 [14:57:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 6D 91 08 01 29 CE 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 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 6C 00 00 00 F4 03 04 00 71 2B 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 02 0C 01 00 35 04 06 00 17 92 4C 6A 7D 12 87 1B 00 21 E3 B0 BE 1C [14:57:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 4D C1 47 00 8A 0C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 02 0C 01 00 F4 03 04 00 69 D2 5E 66 B6 04 01 00 00 DB 5D AB A1 42 39 2C A7 [14:57:55]CommunicateWithHost err = 0 [14:57:55]CheckOFDResponse [14:57:55]1017 (14) - 77093643461234 [14:57:55]1041 (16) - 0000000000965400 [14:57:55]1040 (4) - 68610 [14:57:55]1012 (4) - 04.06.2024 08:38 [14:57:55]1206 (1) - 0 [14:57:55]OFD Sender: Remove packet 68610 [14:57:55]ProducePacketName [14:57:55]name=ofd_packets/00068610 [14:57:55]NVStorageDeleteData [14:57:55]Write to MH i2c: 01 00 00 A7 02 A9 [14:57:55]Write i2c OK [14:57:55]MH_I2C_Read... [14:57:55]Read from MH i2c: 01 [14:57:55]MH_I2C_Read... [14:57:55]Read from MH i2c: 01 07 00 [14:57:55]MH_I2C_Read... [14:57:55]Read from MH i2c: 01 07 00 A7 02 00 00 00 00 00 E2 0C 9E [14:57:55]RasterBufferAndPrint [14:57:55]line [14:57:55]line [14:57:55]line [14:57:55]line [14:57:55]line [14:57:55]written 0, free lines is 3304 [14:57:55]MH_Cut [14:57:55]Write to MH i2c: D1 01 00 AE 02 01 82 [14:57:55]Write i2c OK [14:57:55]MH_I2C_Read... [14:57:55]Read from MH i2c: D1 [14:57:55]MH_I2C_Read... [14:57:55]Read from MH i2c: D1 01 00 [14:57:55]MH_I2C_Read... [14:57:55]Read from MH i2c: D1 01 00 AE 02 00 81 [14:57:55]Write to MH i2c: 01 00 00 AF 02 B1 [14:57:55]Write i2c OK [14:57:55]MH_I2C_Read... [14:57:55]OFD Sender: No OFD packet to send [14:57:56]*** Cut start [14:57:56]*** Partial cut [14:57:56]*** CUTSNS_PIN = 1 [14:57:56]*** CUTSNS_PIN = 0 [14:57:56]*** Brake cut motor [14:57:57]Read from MH i2c: 01 [14:57:57]MH_I2C_Read... [14:57:57]*** Stop cut motor [14:57:57]*** Cut end [14:57:57]Read from MH i2c: 01 07 00 [14:57:57]MH_I2C_Read... [14:57:57]Read from MH i2c: 01 07 00 AF 02 00 00 00 00 00 FF 0F C6 [14:57:57]process_action close_receipt done [14:57:57]requested_data is exist [14:57:57]produce_requested_data [14:57:57]requested_item fm.sn is exist - process it [14:57:57]wFMCommunicate request_size=4 [14:57:57]MH_SAM_APDU [14:57:57]CAPDU: 80 11 00 00 [14:57:57]Write to MH i2c: E2 08 00 B0 02 80 11 00 00 00 00 00 00 2C [14:57:57]Write i2c OK [14:57:57]MH_I2C_Read... [14:57:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:57:57]Read from MH i2c: E2 [14:57:57]MH_I2C_Read... [14:57:57]Read from MH i2c: E2 17 00 [14:57:57]MH_I2C_Read... [14:57:57]Read from MH i2c: E2 17 00 B0 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 77 [14:57:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [14:57:57]wFMCommunicate OK [14:57:57]requested_item fd.num is exist - process it [14:57:57]SAM_PROTO_GetFieldsCounters [14:57:57]wFMCommunicate request_size=4 [14:57:57]MH_SAM_APDU [14:57:57]CAPDU: 80 13 00 00 [14:57:57]Write to MH i2c: E2 08 00 B1 02 80 13 00 00 00 00 00 00 2F [14:57:57]Write i2c OK [14:57:57]MH_I2C_Read... [14:57:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:57:57]Read from MH i2c: E2 [14:57:57]MH_I2C_Read... [14:57:57]Read from MH i2c: E2 62 00 [14:57:57]MH_I2C_Read... [14:57:57]Read from MH i2c: E2 62 00 B1 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 02 0C 01 00 0E 04 04 00 45 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 E8 [14:57:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 02 0C 01 00 0E 04 04 00 45 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:57:57]wFMCommunicate OK [14:57:57]SAM_PROTO_GetFieldsCounters done [14:57:57]requested_item shift.num is exist - process it [14:57:57]requested_item shift.opened is exist - process it [14:57:57]req_shift_opened [14:57:57]FM_GetShiftState [14:57:57]SAM_PROTO_GetShiftState [14:57:57]wFMCommunicate request_size=4 [14:57:57]MH_SAM_APDU [14:57:57]CAPDU: 80 13 01 00 [14:57:57]Write to MH i2c: E2 08 00 B2 02 80 13 01 00 00 00 00 00 31 [14:57:57]Write i2c OK [14:57:57]MH_I2C_Read... [14:57:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:57:57]Read from MH i2c: E2 [14:57:57]MH_I2C_Read... [14:57:57]Read from MH i2c: E2 0E 00 [14:57:57]MH_I2C_Read... [14:57:57]Read from MH i2c: E2 0E 00 B2 02 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 CD [14:57:57]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [14:57:57]wFMCommunicate OK [14:57:57]SAM_PROTO_GetShiftState done [14:57:57]FM_GetShiftState done [14:57:57]req_shift_opened done [14:57:57]requested_item shift.open_date is exist - process it [14:57:57]req_shift_open_date [14:57:57]req_shift_open_date done [14:57:57]produce_requested_data done [14:57:57]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68610,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [14:57:57]process_action_free close_receipt [14:57:57]json_value_free [14:57:57]json_value_free done [14:57:57]process_json_proto returns [14:57:57]Send response to host [14:57:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68610,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [14:57:57]free response buf [14:57:57]execute_script done [14:57:57]execute_script returns [14:57:57]free content buf [14:57:57]Sock 7.Close socket [14:57:57]Sock 7.Thread stoped [14:58:00]OFD Sender: No OFD packet to send [14:58:05]OFD Sender: No OFD packet to send [14:58:10]OFD Sender: No OFD packet to send [14:58:15]OFD Sender: No OFD packet to send [14:58:20]OFD Sender: No OFD packet to send [14:58:25]OFD Sender: No OFD packet to send [14:58:30]OFD Sender: No OFD packet to send [14:58:35]OFD Sender: No OFD packet to send [14:58:40]OFD Sender: No OFD packet to send [14:58:45]OFD Sender: No OFD packet to send [14:58:50]OFD Sender: No OFD packet to send [14:58:55]OFD Sender: No OFD packet to send [14:59:00]OFD Sender: No OFD packet to send [14:59:05]OFD Sender: No OFD packet to send [14:59:10]OFD Sender: No OFD packet to send [14:59:16]OFD Sender: No OFD packet to send [14:59:21]OFD Sender: No OFD packet to send [14:59:26]OFD Sender: No OFD packet to send [14:59:31]OFD Sender: No OFD packet to send [14:59:36]OFD Sender: No OFD packet to send [14:59:41]OFD Sender: No OFD packet to send [14:59:46]OFD Sender: No OFD packet to send [14:59:51]OFD Sender: No OFD packet to send [14:59:56]OFD Sender: No OFD packet to send [15:00:01]OFD Sender: No OFD packet to send [15:00:06]OFD Sender: No OFD packet to send [15:00:11]OFD Sender: No OFD packet to send [15:00:16]OFD Sender: No OFD packet to send [15:00:21]OFD Sender: No OFD packet to send [15:00:26]OFD Sender: No OFD packet to send [15:00:31]OFD Sender: No OFD packet to send [15:00:36]OFD Sender: No OFD packet to send [15:00:41]OFD Sender: No OFD packet to send [15:00:46]OFD Sender: No OFD packet to send [15:00:51]OFD Sender: No OFD packet to send [15:00:56]OFD Sender: No OFD packet to send [15:01:01]OFD Sender: No OFD packet to send [15:01:06]OFD Sender: No OFD packet to send [15:01:11]OFD Sender: No OFD packet to send [15:01:16]OFD Sender: No OFD packet to send [15:01:21]OFD Sender: No OFD packet to send [15:01:26]OFD Sender: No OFD packet to send [15:01:31]OFD Sender: No OFD packet to send [15:01:36]OFD Sender: No OFD packet to send [15:01:41]OFD Sender: No OFD packet to send [15:01:46]OFD Sender: No OFD packet to send [15:01:51]OFD Sender: No OFD packet to send [15:01:56]OFD Sender: No OFD packet to send [15:02:01]OFD Sender: No OFD packet to send [15:02:06]OFD Sender: No OFD packet to send [15:02:11]OFD Sender: No OFD packet to send [15:02:16]OFD Sender: No OFD packet to send [15:02:21]OFD Sender: No OFD packet to send [15:02:26]OFD Sender: No OFD packet to send [15:02:31]OFD Sender: No OFD packet to send [15:02:36]OFD Sender: No OFD packet to send [15:02:41]OFD Sender: No OFD packet to send [15:02:46]OFD Sender: No OFD packet to send [15:02:51]OFD Sender: No OFD packet to send [15:02:56]OFD Sender: No OFD packet to send [15:03:01]OFD Sender: No OFD packet to send [15:03:06]OFD Sender: No OFD packet to send [15:03:11]OFD Sender: No OFD packet to send [15:03:16]OFD Sender: No OFD packet to send [15:03:21]OFD Sender: No OFD packet to send [15:03:26]OFD Sender: No OFD packet to send [15:03:31]OFD Sender: No OFD packet to send [15:03:36]OFD Sender: No OFD packet to send [15:03:41]OFD Sender: No OFD packet to send [15:03:45]accept exits with 9 [15:03:45]New connection [15:03:45]New thread 3067297124 created [15:03:45]Thread 3067153764 joined [15:03:45]Waiting for new connection... [15:03:45] Sock 9.Parse request [15:03:45]Sock 9.Check first char [15:03:45]Sock 9.First char is OK [15:03:45]request: POST /json_proto HTTP/1.0 [15:03:45]Method: POST [15:03:45]URL: /json_proto [15:03:45]Method is POST - this is cgi request [15:03:45]url: /json_proto [15:03:45]query_string will be loaded in cgi processing [15:03:45]execute_cgi json_proto POST (null) [15:03:45]execute_cgi path=json_proto method=POST [15:03:45]POST find Content-Length [15:03:45]Host: 172.17.36.132:8080 [15:03:45]Content-Length: 687 [15:03:45]Content-Type: application/json [15:03:45] [15:03:45]POST finish read [15:03:45]Found Content-Length = 687 [15:03:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706743", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:03:45]execute_script... [15:03: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)706743", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:03:45]POST & json_proto [15:03:45]process_json_proto [15:03:45]json parsed OK: [15:03:45]protocol is kg_v1.0 [15:03:45]action value=close_receipt [15:03:45]process_action close_receipt [15:03:45]cmd_close_receipt [15:03:45]MH_GetDate [15:03:45]Write to MH i2c: F0 00 00 B3 02 A4 [15:03:45]Write i2c OK [15:03:45]MH_I2C_Read... [15:03:45]Read from MH i2c: F0 [15:03:45]MH_I2C_Read... [15:03:45]Read from MH i2c: F0 09 00 [15:03:45]MH_I2C_Read... [15:03:45]Read from MH i2c: F0 09 00 B3 02 00 D2 2C 5F 66 B2 22 B0 64 58 [15:03:45]GetLastDocTimeStamp 1717513073 [15:03:45]current date 1717513426 [15:03:45]FM_GetShiftState [15:03:45]SAM_PROTO_GetShiftState [15:03:45]wFMCommunicate request_size=4 [15:03:45]MH_SAM_APDU [15:03:45]CAPDU: 80 13 01 00 [15:03:45]Write to MH i2c: E2 08 00 B4 02 80 13 01 00 00 00 00 00 33 [15:03:45]Write i2c OK [15:03:45]MH_I2C_Read... [15:03:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:03:45]Read from MH i2c: E2 [15:03:45]MH_I2C_Read... [15:03:45]Read from MH i2c: E2 0E 00 [15:03:45]MH_I2C_Read... [15:03:45]Read from MH i2c: E2 0E 00 B4 02 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 CF [15:03:45]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [15:03:45]wFMCommunicate OK [15:03:45]SAM_PROTO_GetShiftState done [15:03:45]FM_GetShiftState done [15:03:45]opened in 1717460590 [15:03:45]opened+sec_in_day 1717546990 [15:03:45]quantity*price = 100018 [15:03:45]sum+1 = 100020 [15:03:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 109 04.06.2024 15:03 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68611 ФПД: 74332591193327 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T150346&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68611&fm=74332591193327&tin=02508201610067®Number=0000000000098096&sum=100000 [15:03:47]StoreToDocumentArchive [15:03:47]shift 325 fd 68611 [15:03:47]save to /storage/0325/doc_00068611 [15:03:47]save last doc name /storage/0325/doc_00068611 to /storage/kkm_last_doc_name [15:03:47]save OK [15:03:47]Clear old archive folders... [15:03:47]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:03:47]tlvbuf is 00A63340 [15:03:47]SAM_PROTO_ClearQueue [15:03:47]wFMCommunicate request_size=4 [15:03:47]MH_SAM_APDU [15:03:47]CAPDU: 80 09 00 00 [15:03:47]Write to MH i2c: E2 08 00 C1 02 80 09 00 00 00 00 00 00 35 [15:03:47]Write i2c OK [15:03:47]MH_I2C_Read... [15:03:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:03:47]Read from MH i2c: E2 [15:03:47]MH_I2C_Read... [15:03:47]Read from MH i2c: E2 03 00 [15:03:47]MH_I2C_Read... [15:03:47]Read from MH i2c: E2 03 00 C1 02 00 90 00 37 [15:03:47]RAPDU: 90 00 [15:03:47]wFMCommunicate OK [15:03:47]SAM_PROTO_ClearQueue done [15:03:47]KKMCreateOFDPacket [15:03:47]OFDProtocolAddRootSTLVToBuf [15:03:47]FM_MakeSignedData [15:03:47]FM_MakeSignedData [15:03:47]SAM_PROTO_SignData [15:03:47]wFMCommunicate request_size=4 [15:03:47]MH_SAM_APDU [15:03:47]CAPDU: 80 0D 01 02 [15:03:47]Write to MH i2c: E2 08 00 C2 02 80 0D 01 02 00 00 00 00 3D [15:03:47]Write i2c OK [15:03:47]MH_I2C_Read... [15:03:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:03:47]Read from MH i2c: E2 [15:03:47]MH_I2C_Read... [15:03:47]Read from MH i2c: E2 03 00 [15:03:47]MH_I2C_Read... [15:03:47]Read from MH i2c: E2 03 00 C2 02 00 90 00 38 [15:03:47]RAPDU: 90 00 [15:03:47]wFMCommunicate OK [15:03:47]wFMCommunicate request_size=255 [15:03:47]MH_SAM_APDU [15:03:47]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 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 6D 00 00 00 F4 03 04 00 D2 2C 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 03 0C 01 00 35 04 06 00 [15:03:47]Write to MH i2c: E2 02 01 C3 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 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 6D 00 00 00 F4 03 04 00 D2 2C 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 03 0C 01 00 35 04 06 00 00 00 0F [15:03:47]Write i2c OK [15:03:47]MH_I2C_Read... [15:03:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:03:47]Read from MH i2c: E2 [15:03:47]MH_I2C_Read... [15:03:47]Read from MH i2c: E2 03 00 [15:03:47]MH_I2C_Read... [15:03:47]Read from MH i2c: E2 03 00 C3 02 00 90 00 39 [15:03:47]RAPDU: 90 00 [15:03:47]wFMCommunicate OK [15:03:47]wFMCommunicate request_size=11 [15:03:47]MH_SAM_APDU [15:03:47]CAPDU: 80 0D 02 02 06 43 9A E7 B1 7C EF [15:03:47]Write to MH i2c: E2 0E 00 C4 02 80 0D 02 02 06 00 43 9A E7 B1 7C EF 00 00 2C [15:03:47]Write i2c OK [15:03:47]MH_I2C_Read... [15:03:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:03:47]Read from MH i2c: E2 [15:03:47]MH_I2C_Read... [15:03:47]Read from MH i2c: E2 03 00 [15:03:47]MH_I2C_Read... [15:03:47]Read from MH i2c: E2 03 00 C4 02 00 90 00 3A [15:03:47]RAPDU: 90 00 [15:03:47]wFMCommunicate OK [15:03:47]wFMCommunicate request_size=4 [15:03:47]MH_SAM_APDU [15:03:47]CAPDU: 80 0D 03 02 [15:03:47]Write to MH i2c: E2 08 00 C5 02 80 0D 03 02 00 00 00 00 42 [15:03:47]Write i2c OK [15:03:47]MH_I2C_Read... [15:03:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:03:47]Read from MH i2c: E2 [15:03:47]MH_I2C_Read... [15:03:47]Read from MH i2c: E2 0B 00 [15:03:47]MH_I2C_Read... [15:03:47]Read from MH i2c: E2 0B 00 C5 02 00 E1 BD 92 14 D7 43 C8 01 90 00 6A [15:03:47]RAPDU: E1 BD 92 14 D7 43 C8 01 90 00 [15:03:47]wFMCommunicate OK [15:03:47]SAM_PROTO_SignData done [15:03:47]FM_MakeSignedData done [15:03:47]CreateOFDProtocolMessage [15:03:47]wFMCommunicate request_size=4 [15:03:47]MH_SAM_APDU [15:03:47]CAPDU: 80 11 00 00 [15:03:47]Write to MH i2c: E2 08 00 C6 02 80 11 00 00 00 00 00 00 42 [15:03:47]Write i2c OK [15:03:47]MH_I2C_Read... [15:03:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:03:47]Read from MH i2c: E2 [15:03:47]MH_I2C_Read... [15:03:47]Read from MH i2c: E2 17 00 [15:03:47]MH_I2C_Read... [15:03:47]Read from MH i2c: E2 17 00 C6 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 8D [15:03:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [15:03:47]wFMCommunicate OK [15:03:47]CreateOFDProtocolMessage done [15:03:47]OFDSenderStorePacket 68611 [15:03:47]StoreOFDPacket docnum=68611 [15:03:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 3F 0F 08 01 3E BF 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 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 6D 00 00 00 F4 03 04 00 D2 2C 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 03 0C 01 00 35 04 06 00 43 9A E7 B1 7C EF E1 BD 92 14 D7 43 C8 01 [15:03:47]CheckFolder [15:03:47]dirname=/storage/ofd_packets [15:03:47]CheckFolder done [15:03:47]ProducePacketName [15:03:47]name=ofd_packets/00068611 [15:03:47]NVStorageSaveData ofd_packets/00068611 [15:03:47]File name is /storage/ofd_packets/00068611 [15:03:47]Write 302 bytes [15:03:47]NVStorageSaveData done [15:03:47]OFDSenderStorePacket done [15:03:47]KKMCreateOFDPacket done [15:03:47]NVStorageSaveData kkm_last_timestamp [15:03:47]File name is /storage/kkm_last_timestamp [15:03:47]Write 4 bytes [15:03:47]NVStorageSaveData done [15:03:47]ExternCall_PrintAddStr [15:03:47]wPrintStart [15:03:47]Write to MH i2c: 01 00 00 C7 02 C9 [15:03:47]Write i2c OK [15:03:47]MH_I2C_Read... [15:03:47]Read from MH i2c: 01 [15:03:47]MH_I2C_Read... [15:03:47]Read from MH i2c: 01 07 00 [15:03:47]MH_I2C_Read... [15:03:47]Read from MH i2c: 01 07 00 C7 02 00 00 00 00 00 FF 0F DE [15:03:47]RasterBufferAndPrint [15:03:47]line Счет N : (1)706743 [15:03:47]line ИНН: 02508201610067 [15:03:47]line Контрольно-Кассовый Чек [15:03:47]line ПРОДАЖА [15:03:47]line ТРК (МРК, ГНК) : 61 [15:03:47]line Товар: 2710194210 [15:03:47]line ДТ(л)-К-4 [15:03:47]line 13.720 * 72.90 [15:03:47]line = 1000.19 [15:03:47]line НДС 12% НСП 1% [15:03:47]line > о реализуемом товаре [15:03:47]line ОКРУГЛЕНИЕ: -0.19 [15:03:47]line ИТОГО: 1000.00 [15:03:47]line Внесено: 1000.00 [15:03:47]line СДАЧА: 0.00 [15:03:47]line НСП 1% : 8.85 [15:03:47]line НДС 12% : 106.21 [15:03:47]line Наличными: 1000.00 [15:03:47]line Безнал.: 0.00 [15:03:47]line Место: АЗС № 62 "Партнер Нефть" [15:03:47]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [15:03:47]line СНО: Общий режим [15:03:47]line Чек 109 04.06.2024 15:03 [15:03:47]line Смена: 325 ФФД: 1.0 [15:03:47]line ЗНМ: 0300000181 [15:03:47]line РНМ: 0000000000098096 [15:03:47]line Версия ККМ: 001 [15:03:47]line ФМ: 0000000000965400 [15:03:47]line ФД: 68611 [15:03:47]line ФПД: 74332591193327 [15:03:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T150346&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68611&fm=74332591193327&tin=02508201610067®Number=0000000000098096&sum=100000 [15:03:47]OFD Sender: Processing packet 68611 [packets to send 27, broken 26] [15:03:47]ProducePacketName [15:03:47]name=ofd_packets/00068611 [15:03:47]OFD Sender: To server: pG, [15:03:47]CommunicateWithHost lk.salyk.kg:30040 [15:03:47]ConnectInit lk.salyk.kg [15:03:47]written 0, free lines is 4095 [15:03:48]Connected sock=10 [15:03:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 3F 0F 08 01 3E BF 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 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 6D 00 00 00 F4 03 04 00 D2 2C 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 03 0C 01 00 35 04 06 00 43 9A E7 B1 7C EF E1 BD 92 14 D7 43 C8 01 [15:03:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 30 E9 47 00 0D 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 39 36 35 34 30 30 10 04 04 00 03 0C 01 00 F4 03 04 00 CA D3 5E 66 B6 04 01 00 00 41 69 AA 9B 7D BE 51 95 [15:03:48]CommunicateWithHost err = 0 [15:03:48]CheckOFDResponse [15:03:48]1017 (14) - 77093643461234 [15:03:48]1041 (16) - 0000000000965400 [15:03:48]1040 (4) - 68611 [15:03:48]1012 (4) - 04.06.2024 08:43 [15:03:48]1206 (1) - 0 [15:03:48]OFD Sender: Remove packet 68611 [15:03:48]ProducePacketName [15:03:48]name=ofd_packets/00068611 [15:03:48]NVStorageDeleteData [15:03:48]Write to MH i2c: 01 00 00 F2 02 F4 [15:03:48]Write i2c OK [15:03:48]MH_I2C_Read... [15:03:48]Read from MH i2c: 01 [15:03:48]MH_I2C_Read... [15:03:48]Read from MH i2c: 01 07 00 [15:03:48]MH_I2C_Read... [15:03:48]Read from MH i2c: 01 07 00 F2 02 00 00 00 00 00 E4 0C EB [15:03:48]RasterBufferAndPrint [15:03:48]line [15:03:48]line [15:03:48]line [15:03:48]line [15:03:48]line [15:03:48]written 0, free lines is 3306 [15:03:48]MH_Cut [15:03:48]Write to MH i2c: D1 01 00 F9 02 01 CD [15:03:48]Write i2c OK [15:03:48]MH_I2C_Read... [15:03:48]Read from MH i2c: D1 [15:03:48]MH_I2C_Read... [15:03:48]Read from MH i2c: D1 01 00 [15:03:48]MH_I2C_Read... [15:03:48]Read from MH i2c: D1 01 00 F9 02 00 CC [15:03:48]Write to MH i2c: 01 00 00 FA 02 FC [15:03:48]Write i2c OK [15:03:48]MH_I2C_Read... [15:03:48]OFD Sender: No OFD packet to send [15:03:49]*** Cut start [15:03:49]*** Partial cut [15:03:49]*** CUTSNS_PIN = 1 [15:03:49]*** CUTSNS_PIN = 0 [15:03:49]*** Brake cut motor [15:03:49]Read from MH i2c: 01 [15:03:49]MH_I2C_Read... [15:03:49]*** Stop cut motor [15:03:49]*** Cut end [15:03:49]Read from MH i2c: 01 07 00 [15:03:49]MH_I2C_Read... [15:03:49]Read from MH i2c: 01 07 00 FA 02 00 00 00 00 00 FF 0F 11 [15:03:49]process_action close_receipt done [15:03:49]requested_data is exist [15:03:49]produce_requested_data [15:03:49]requested_item fm.sn is exist - process it [15:03:49]wFMCommunicate request_size=4 [15:03:49]MH_SAM_APDU [15:03:49]CAPDU: 80 11 00 00 [15:03:49]Write to MH i2c: E2 08 00 FB 02 80 11 00 00 00 00 00 00 77 [15:03:49]Write i2c OK [15:03:49]MH_I2C_Read... [15:03:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:03:49]Read from MH i2c: E2 [15:03:49]MH_I2C_Read... [15:03:49]Read from MH i2c: E2 17 00 [15:03:49]MH_I2C_Read... [15:03:49]Read from MH i2c: E2 17 00 FB 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 C2 [15:03:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [15:03:49]wFMCommunicate OK [15:03:49]requested_item fd.num is exist - process it [15:03:49]SAM_PROTO_GetFieldsCounters [15:03:49]wFMCommunicate request_size=4 [15:03:49]MH_SAM_APDU [15:03:49]CAPDU: 80 13 00 00 [15:03:49]Write to MH i2c: E2 08 00 FC 02 80 13 00 00 00 00 00 00 7A [15:03:49]Write i2c OK [15:03:49]MH_I2C_Read... [15:03:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:03:50]Read from MH i2c: E2 [15:03:50]MH_I2C_Read... [15:03:50]Read from MH i2c: E2 62 00 [15:03:50]MH_I2C_Read... [15:03:50]Read from MH i2c: E2 62 00 FC 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 03 0C 01 00 0E 04 04 00 45 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 37 [15:03:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 03 0C 01 00 0E 04 04 00 45 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 [15:03:50]wFMCommunicate OK [15:03:50]SAM_PROTO_GetFieldsCounters done [15:03:50]requested_item shift.num is exist - process it [15:03:50]requested_item shift.opened is exist - process it [15:03:50]req_shift_opened [15:03:50]FM_GetShiftState [15:03:50]SAM_PROTO_GetShiftState [15:03:50]wFMCommunicate request_size=4 [15:03:50]MH_SAM_APDU [15:03:50]CAPDU: 80 13 01 00 [15:03:50]Write to MH i2c: E2 08 00 FD 02 80 13 01 00 00 00 00 00 7C [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 13 01 00... Resp OK rsp.len_out = 11! [15:03:50]Read from MH i2c: E2 0E 00 [15:03:50]MH_I2C_Read... [15:03:50]Read from MH i2c: E2 0E 00 FD 02 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 18 [15:03:50]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [15:03:50]wFMCommunicate OK [15:03:50]SAM_PROTO_GetShiftState done [15:03:50]FM_GetShiftState done [15:03:50]req_shift_opened done [15:03:50]requested_item shift.open_date is exist - process it [15:03:50]req_shift_open_date [15:03:50]req_shift_open_date done [15:03:50]produce_requested_data done [15:03:50]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68611,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [15:03:50]process_action_free close_receipt [15:03:50]json_value_free [15:03:50]json_value_free done [15:03:50]process_json_proto returns [15:03:50]Send response to host [15:03:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68611,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [15:03:50]free response buf [15:03:50]execute_script done [15:03:50]execute_script returns [15:03:50]free content buf [15:03:50]Sock 9.Close socket [15:03:50]Sock 9.Thread stoped [15:03:53]OFD Sender: No OFD packet to send [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:44]OFD Sender: No OFD packet to send [15:09:49]OFD Sender: No OFD packet to send [15:09:54]OFD Sender: No OFD packet to send [15:09:59]OFD Sender: No OFD packet to send [15:10:04]OFD Sender: No OFD packet to send [15:10:09]OFD Sender: No OFD packet to send [15:10:14]OFD Sender: No OFD packet to send [15:10:19]OFD Sender: No OFD packet to send [15:10:24]OFD Sender: No OFD packet to send [15:10:29]OFD Sender: No OFD packet to send [15:10:34]OFD Sender: No OFD packet to send [15:10:39]OFD Sender: No OFD packet to send [15:10:44]OFD Sender: No OFD packet to send [15:10:49]OFD Sender: No OFD packet to send [15:10:52]accept exits with 7 [15:10:52]New connection [15:10:52]New thread 3067153764 created [15:10:52]Thread 3067297124 joined [15:10:52]Waiting for new connection... [15:10:52] Sock 7.Parse request [15:10:52]Sock 7.Check first char [15:10:52]Sock 7.First char is OK [15:10:52]request: POST /json_proto HTTP/1.0 [15:10:52]Method: POST [15:10:52]URL: /json_proto [15:10:52]Method is POST - this is cgi request [15:10:52]url: /json_proto [15:10:52]query_string will be loaded in cgi processing [15:10:52]execute_cgi json_proto POST (null) [15:10:52]execute_cgi path=json_proto method=POST [15:10:52]POST find Content-Length [15:10:52]Host: 172.17.36.132:8080 [15:10:52]Content-Length: 803 [15:10:52]Content-Type: application/json [15:10:52] [15:10:52]POST finish read [15:10:52]Found Content-Length = 803 [15:10:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706744", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:10:52]execute_script... [15:10: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)706744", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:10:52]POST & json_proto [15:10:52]process_json_proto [15:10:52]json parsed OK: [15:10:52]protocol is kg_v1.0 [15:10:52]action value=close_receipt [15:10:52]process_action close_receipt [15:10:52]cmd_close_receipt [15:10:52]MH_GetDate [15:10:52]Write to MH i2c: F0 00 00 FE 02 EF [15:10:52]Write i2c OK [15:10:52]MH_I2C_Read... [15:10:52]Read from MH i2c: F0 [15:10:52]MH_I2C_Read... [15:10:52]Read from MH i2c: F0 09 00 [15:10:52]MH_I2C_Read... [15:10:52]Read from MH i2c: F0 09 00 FE 02 00 7C 2E 5F 66 B2 22 B0 64 4F [15:10:52]GetLastDocTimeStamp 1717513426 [15:10:52]current date 1717513852 [15:10:52]FM_GetShiftState [15:10:52]SAM_PROTO_GetShiftState [15:10:52]wFMCommunicate request_size=4 [15:10:52]MH_SAM_APDU [15:10:52]CAPDU: 80 13 01 00 [15:10:52]Write to MH i2c: E2 08 00 FF 02 80 13 01 00 00 00 00 00 7E [15:10:52]Write i2c OK [15:10:52]MH_I2C_Read... [15:10:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:10:52]Read from MH i2c: E2 [15:10:52]MH_I2C_Read... [15:10:52]Read from MH i2c: E2 0E 00 [15:10:52]MH_I2C_Read... [15:10:52]Read from MH i2c: E2 0E 00 FF 02 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 1A [15:10:52]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [15:10:52]wFMCommunicate OK [15:10:52]SAM_PROTO_GetShiftState done [15:10:52]FM_GetShiftState done [15:10:52]opened in 1717460590 [15:10:52]opened+sec_in_day 1717546990 [15:10:52]quantity*price = 150056 [15:10:52]sum+1 = 150058 [15:10:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.57 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 0.00 Безнал.: 1500.57 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 110 04.06.2024 15:10 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000965400 ФД: 68612 ФПД: 254684758746592 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T151052&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68612&fm=254684758746592&tin=02508201610067®Number=0000000000098096&sum=150057 [15:10:53]StoreToDocumentArchive [15:10:53]shift 325 fd 68612 [15:10:53]save to /storage/0325/doc_00068612 [15:10:53]save last doc name /storage/0325/doc_00068612 to /storage/kkm_last_doc_name [15:10:53]save OK [15:10:53]Clear old archive folders... [15:10:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:10:53]tlvbuf is 00A5C370 [15:10:53]SAM_PROTO_ClearQueue [15:10:53]wFMCommunicate request_size=4 [15:10:53]MH_SAM_APDU [15:10:53]CAPDU: 80 09 00 00 [15:10:53]Write to MH i2c: E2 08 00 0C 03 80 09 00 00 00 00 00 00 81 [15:10:53]Write i2c OK [15:10:53]MH_I2C_Read... [15:10:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:10:53]Read from MH i2c: E2 [15:10:53]MH_I2C_Read... [15:10:53]Read from MH i2c: E2 03 00 [15:10:53]MH_I2C_Read... [15:10:53]Read from MH i2c: E2 03 00 0C 03 00 90 00 83 [15:10:53]RAPDU: 90 00 [15:10:53]wFMCommunicate OK [15:10:53]SAM_PROTO_ClearQueue done [15:10:53]KKMCreateOFDPacket [15:10:53]OFDProtocolAddRootSTLVToBuf [15:10:53]FM_MakeSignedData [15:10:53]FM_MakeSignedData [15:10:53]SAM_PROTO_SignData [15:10:53]wFMCommunicate request_size=4 [15:10:53]MH_SAM_APDU [15:10:53]CAPDU: 80 0D 01 02 [15:10:53]Write to MH i2c: E2 08 00 0D 03 80 0D 01 02 00 00 00 00 89 [15:10:53]Write i2c OK [15:10:53]MH_I2C_Read... [15:10:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:10:53]Read from MH i2c: E2 [15:10:53]MH_I2C_Read... [15:10:53]Read from MH i2c: E2 03 00 [15:10:53]MH_I2C_Read... [15:10:53]Read from MH i2c: E2 03 00 0D 03 00 90 00 84 [15:10:53]RAPDU: 90 00 [15:10:53]wFMCommunicate OK [15:10:53]wFMCommunicate request_size=255 [15:10:53]MH_SAM_APDU [15:10:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 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 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 7C 2E 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 04 0C 01 00 35 04 06 00 E7 [15:10:53]Write to MH i2c: E2 02 01 0E 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 34 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 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 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 7C 2E 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 04 0C 01 00 35 04 06 00 E7 00 00 EE [15:10:53]Write i2c OK [15:10:53]MH_I2C_Read... [15:10:53]Read from MH i2c: E2 [15:10:53]MH_I2C_Read... [15:10:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:10:53]Read from MH i2c: E2 03 00 [15:10:53]MH_I2C_Read... [15:10:53]Read from MH i2c: E2 03 00 0E 03 00 90 00 85 [15:10:53]RAPDU: 90 00 [15:10:53]wFMCommunicate OK [15:10:53]wFMCommunicate request_size=10 [15:10:53]MH_SAM_APDU [15:10:53]CAPDU: 80 0D 02 02 05 A2 6A 93 25 E0 [15:10:53]Write to MH i2c: E2 0D 00 0F 03 80 0D 02 02 05 00 A2 6A 93 25 E0 00 00 3A [15:10:53]Write i2c OK [15:10:53]MH_I2C_Read... [15:10:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:10:53]Read from MH i2c: E2 [15:10:53]MH_I2C_Read... [15:10:53]Read from MH i2c: E2 03 00 [15:10:53]MH_I2C_Read... [15:10:53]Read from MH i2c: E2 03 00 0F 03 00 90 00 86 [15:10:53]RAPDU: 90 00 [15:10:53]wFMCommunicate OK [15:10:53]wFMCommunicate request_size=4 [15:10:53]MH_SAM_APDU [15:10:53]CAPDU: 80 0D 03 02 [15:10:53]Write to MH i2c: E2 08 00 10 03 80 0D 03 02 00 00 00 00 8E [15:10:53]Write i2c OK [15:10:53]MH_I2C_Read... [15:10:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:10:53]Read from MH i2c: E2 [15:10:53]MH_I2C_Read... [15:10:53]Read from MH i2c: E2 0B 00 [15:10:53]MH_I2C_Read... [15:10:53]Read from MH i2c: E2 0B 00 10 03 00 37 DE 95 78 08 7D DB 90 90 00 A1 [15:10:53]RAPDU: 37 DE 95 78 08 7D DB 90 90 00 [15:10:53]wFMCommunicate OK [15:10:53]SAM_PROTO_SignData done [15:10:53]FM_MakeSignedData done [15:10:53]CreateOFDProtocolMessage [15:10:53]wFMCommunicate request_size=4 [15:10:53]MH_SAM_APDU [15:10:53]CAPDU: 80 11 00 00 [15:10:53]Write to MH i2c: E2 08 00 11 03 80 11 00 00 00 00 00 00 8E [15:10:53]Write i2c OK [15:10:53]MH_I2C_Read... [15:10:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:10:53]Read from MH i2c: E2 [15:10:53]MH_I2C_Read... [15:10:53]Read from MH i2c: E2 17 00 [15:10:53]MH_I2C_Read... [15:10:53]Read from MH i2c: E2 17 00 11 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 D9 [15:10:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [15:10:53]wFMCommunicate OK [15:10:53]CreateOFDProtocolMessage done [15:10:53]OFDSenderStorePacket 68612 [15:10:53]StoreOFDPacket docnum=68612 [15:10:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 1C 5A 07 01 07 4E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 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 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 7C 2E 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 04 0C 01 00 35 04 06 00 E7 A2 6A 93 25 E0 37 DE 95 78 08 7D DB 90 [15:10:53]CheckFolder [15:10:53]dirname=/storage/ofd_packets [15:10:53]CheckFolder done [15:10:53]ProducePacketName [15:10:53]name=ofd_packets/00068612 [15:10:53]NVStorageSaveData ofd_packets/00068612 [15:10:53]File name is /storage/ofd_packets/00068612 [15:10:53]Write 301 bytes [15:10:53]NVStorageSaveData done [15:10:53]OFDSenderStorePacket done [15:10:53]KKMCreateOFDPacket done [15:10:53]NVStorageSaveData kkm_last_timestamp [15:10:53]File name is /storage/kkm_last_timestamp [15:10:53]Write 4 bytes [15:10:53]NVStorageSaveData done [15:10:53]ExternCall_PrintAddStr [15:10:53]wPrintStart [15:10:53]Write to MH i2c: 01 00 00 12 03 15 [15:10:53]Write i2c OK [15:10:53]MH_I2C_Read... [15:10:53]Read from MH i2c: 01 [15:10:53]MH_I2C_Read... [15:10:53]Read from MH i2c: 01 07 00 [15:10:53]MH_I2C_Read... [15:10:53]Read from MH i2c: 01 07 00 12 03 00 00 00 00 00 FF 0F 2A [15:10:53]RasterBufferAndPrint [15:10:53]line Счет N : (1)706744 [15:10:53]line ИНН: 02508201610067 [15:10:53]line Контрольно-Кассовый Чек [15:10:53]line ПРОДАЖА [15:10:53]line ТРК (МРК, ГНК) : 32 [15:10:53]line Товар: 2710124130 [15:10:53]line Аи-92-К-4 [15:10:53]line 22.430 * 66.90 [15:10:53]line = 1500.57 [15:10:53]line НДС 12% НСП 1% [15:10:53]line > о реализуемом товаре [15:10:53]line ИТОГО: 1500.57 [15:10:53]line НСП 1% : 13.28 [15:10:53]line НДС 12% : 159.35 [15:10:53]line Наличными: 0.00 [15:10:53]line Безнал.: 1500.57 [15:10:53]line Место: АЗС № 62 "Партнер Нефть" [15:10:53]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [15:10:53]line СНО: Общий режим [15:10:53]line Чек 110 04.06.2024 15:10 [15:10:53]line Смена: 325 ФФД: 1.0 [15:10:53]line ЗНМ: 0300000181 [15:10:53]line РНМ: 0000000000098096 [15:10:53]line Версия ККМ: 001 [15:10:53]line Платежная система: O! деньги [15:10:53]line ФМ: 0000000000965400 [15:10:53]line ФД: 68612 [15:10:53]line ФПД: 254684758746592 [15:10:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T151052&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68612&fm=254684758746592&tin=02508201610067®Number=0000000000098096&sum=150057 [15:10:54]OFD Sender: Processing packet 68612 [packets to send 27, broken 26] [15:10:54]ProducePacketName [15:10:54]name=ofd_packets/00068612 [15:10:54]OFD Sender: To server: pG, [15:10:54]CommunicateWithHost lk.salyk.kg:30040 [15:10:54]ConnectInit lk.salyk.kg [15:10:54]written 0, free lines is 4095 [15:10:54]Connected sock=10 [15:10:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 1C 5A 07 01 07 4E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 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 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 7C 2E 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 04 0C 01 00 35 04 06 00 E7 A2 6A 93 25 E0 37 DE 95 78 08 7D DB 90 [15:10:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 DC D4 47 00 6A DA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 04 0C 01 00 F4 03 04 00 74 D5 5E 66 B6 04 01 00 00 F8 68 57 6C F9 F8 A7 76 [15:10:54]CommunicateWithHost err = 0 [15:10:54]CheckOFDResponse [15:10:54]1017 (14) - 77093643461234 [15:10:54]1041 (16) - 0000000000965400 [15:10:54]1040 (4) - 68612 [15:10:54]1012 (4) - 04.06.2024 08:51 [15:10:54]1206 (1) - 0 [15:10:54]OFD Sender: Remove packet 68612 [15:10:54]ProducePacketName [15:10:54]name=ofd_packets/00068612 [15:10:54]NVStorageDeleteData [15:10:54]Write to MH i2c: 01 00 00 3C 03 3F [15:10:54]Write i2c OK [15:10:54]MH_I2C_Read... [15:10:54]Read from MH i2c: 01 [15:10:54]MH_I2C_Read... [15:10:54]Read from MH i2c: 01 07 00 [15:10:54]MH_I2C_Read... [15:10:54]Read from MH i2c: 01 07 00 3C 03 00 00 00 00 00 F3 0C 45 [15:10:54]RasterBufferAndPrint [15:10:54]line [15:10:54]line [15:10:54]line [15:10:54]line [15:10:54]line [15:10:54]written 0, free lines is 3321 [15:10:54]MH_Cut [15:10:54]Write to MH i2c: D1 01 00 43 03 01 18 [15:10:54]Write i2c OK [15:10:54]MH_I2C_Read... [15:10:54]Read from MH i2c: D1 [15:10:54]MH_I2C_Read... [15:10:54]Read from MH i2c: D1 01 00 [15:10:54]MH_I2C_Read... [15:10:54]Read from MH i2c: D1 01 00 43 03 00 17 [15:10:54]Write to MH i2c: 01 00 00 44 03 47 [15:10:54]Write i2c OK [15:10:54]MH_I2C_Read... [15:10:54]OFD Sender: No OFD packet to send [15:10:55]*** Cut start [15:10:55]*** Partial cut [15:10:55]*** CUTSNS_PIN = 1 [15:10:55]*** CUTSNS_PIN = 0 [15:10:55]*** Brake cut motor [15:10:56]Read from MH i2c: 01 [15:10:56]MH_I2C_Read... [15:10:56]*** Stop cut motor [15:10:56]*** Cut end [15:10:56]Read from MH i2c: 01 07 00 [15:10:56]MH_I2C_Read... [15:10:56]Read from MH i2c: 01 07 00 44 03 00 00 00 00 00 FF 0F 5C [15:10:56]process_action close_receipt done [15:10:56]requested_data is exist [15:10:56]produce_requested_data [15:10:56]requested_item fm.sn is exist - process it [15:10:56]wFMCommunicate request_size=4 [15:10:56]MH_SAM_APDU [15:10:56]CAPDU: 80 11 00 00 [15:10:56]Write to MH i2c: E2 08 00 45 03 80 11 00 00 00 00 00 00 C2 [15:10:56]Write i2c OK [15:10:56]MH_I2C_Read... [15:10:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:10:56]Read from MH i2c: E2 [15:10:56]MH_I2C_Read... [15:10:56]Read from MH i2c: E2 17 00 [15:10:56]MH_I2C_Read... [15:10:56]Read from MH i2c: E2 17 00 45 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 0D [15:10:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [15:10:56]wFMCommunicate OK [15:10:56]requested_item fd.num is exist - process it [15:10:56]SAM_PROTO_GetFieldsCounters [15:10:56]wFMCommunicate request_size=4 [15:10:56]MH_SAM_APDU [15:10:56]CAPDU: 80 13 00 00 [15:10:56]Write to MH i2c: E2 08 00 46 03 80 13 00 00 00 00 00 00 C5 [15:10:56]Write i2c OK [15:10:56]MH_I2C_Read... [15:10:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:10:56]Read from MH i2c: E2 [15:10:56]MH_I2C_Read... [15:10:56]Read from MH i2c: E2 62 00 [15:10:56]MH_I2C_Read... [15:10:56]Read from MH i2c: E2 62 00 46 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 04 0C 01 00 0E 04 04 00 45 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 86 [15:10:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 04 0C 01 00 0E 04 04 00 45 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 [15:10:56]wFMCommunicate OK [15:10:56]SAM_PROTO_GetFieldsCounters done [15:10:56]requested_item shift.num is exist - process it [15:10:56]requested_item shift.opened is exist - process it [15:10:56]req_shift_opened [15:10:56]FM_GetShiftState [15:10:56]SAM_PROTO_GetShiftState [15:10:56]wFMCommunicate request_size=4 [15:10:56]MH_SAM_APDU [15:10:56]CAPDU: 80 13 01 00 [15:10:56]Write to MH i2c: E2 08 00 47 03 80 13 01 00 00 00 00 00 C7 [15:10:56]Write i2c OK [15:10:56]MH_I2C_Read... [15:10:56]Read from MH i2c: E2 [15:10:56]MH_I2C_Read... [15:10:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:10:56]Read from MH i2c: E2 0E 00 [15:10:56]MH_I2C_Read... [15:10:56]Read from MH i2c: E2 0E 00 47 03 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 63 [15:10:56]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [15:10:56]wFMCommunicate OK [15:10:56]SAM_PROTO_GetShiftState done [15:10:56]FM_GetShiftState done [15:10:56]req_shift_opened done [15:10:56]requested_item shift.open_date is exist - process it [15:10:56]req_shift_open_date [15:10:56]req_shift_open_date done [15:10:56]produce_requested_data done [15:10:56]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68612,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [15:10:56]process_action_free close_receipt [15:10:56]json_value_free [15:10:56]json_value_free done [15:10:56]process_json_proto returns [15:10:56]Send response to host [15:10:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68612,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [15:10:56]free response buf [15:10:56]execute_script done [15:10:56]execute_script returns [15:10:56]free content buf [15:10:56]Sock 7.Close socket [15:10:56]Sock 7.Thread stoped [15:10:59]OFD Sender: No OFD packet to send [15:11:04]OFD Sender: No OFD packet to send [15:11:09]OFD Sender: No OFD packet to send [15:11:13]accept exits with 9 [15:11:13]New connection [15:11:13]New thread 3067297124 created [15:11:13]Thread 3067153764 joined [15:11:13]Waiting for new connection... [15:11:13] Sock 9.Parse request [15:11:13]Sock 9.Check first char [15:11:13]Sock 9.First char is OK [15:11:13]request: POST /json_proto HTTP/1.0 [15:11:13]Method: POST [15:11:13]URL: /json_proto [15:11:13]Method is POST - this is cgi request [15:11:13]url: /json_proto [15:11:13]query_string will be loaded in cgi processing [15:11:13]execute_cgi json_proto POST (null) [15:11:13]execute_cgi path=json_proto method=POST [15:11:13]POST find Content-Length [15:11:13]Host: 172.17.36.132:8080 [15:11:13]Content-Length: 687 [15:11:13]Content-Type: application/json [15:11:13] [15:11:13]POST finish read [15:11:13]Found Content-Length = 687 [15:11:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706745", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "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" ] } } [15:11:13]execute_script... [15:11: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)706745", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "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" ] } } [15:11:13]POST & json_proto [15:11:13]process_json_proto [15:11:13]json parsed OK: [15:11:13]protocol is kg_v1.0 [15:11:13]action value=close_receipt [15:11:13]process_action close_receipt [15:11:13]cmd_close_receipt [15:11:13]MH_GetDate [15:11:13]Write to MH i2c: F0 00 00 48 03 3A [15:11:13]Write i2c OK [15:11:13]MH_I2C_Read... [15:11:13]Read from MH i2c: F0 [15:11:13]MH_I2C_Read... [15:11:13]Read from MH i2c: F0 09 00 [15:11:13]MH_I2C_Read... [15:11:13]Read from MH i2c: F0 09 00 48 03 00 92 2E 5F 66 B2 22 B0 64 B0 [15:11:13]GetLastDocTimeStamp 1717513852 [15:11:13]current date 1717513874 [15:11:13]FM_GetShiftState [15:11:13]SAM_PROTO_GetShiftState [15:11:13]wFMCommunicate request_size=4 [15:11:13]MH_SAM_APDU [15:11:13]CAPDU: 80 13 01 00 [15:11:13]Write to MH i2c: E2 08 00 49 03 80 13 01 00 00 00 00 00 C9 [15:11:13]Write i2c OK [15:11:13]MH_I2C_Read... [15:11:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:11:13]Read from MH i2c: E2 [15:11:13]MH_I2C_Read... [15:11:13]Read from MH i2c: E2 0E 00 [15:11:13]MH_I2C_Read... [15:11:13]Read from MH i2c: E2 0E 00 49 03 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 65 [15:11:13]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [15:11:13]wFMCommunicate OK [15:11:13]SAM_PROTO_GetShiftState done [15:11:13]FM_GetShiftState done [15:11:13]opened in 1717460590 [15:11:13]opened+sec_in_day 1717546990 [15:11:13]quantity*price = 150028 [15:11:13]sum+1 = 150029 [15:11:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.32 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 111 04.06.2024 15:11 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68613 ФПД: 264114833088427 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T151114&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68613&fm=264114833088427&tin=02508201610067®Number=0000000000098096&sum=150000 [15:11:14]StoreToDocumentArchive [15:11:14]shift 325 fd 68613 [15:11:14]save to /storage/0325/doc_00068613 [15:11:14]save last doc name /storage/0325/doc_00068613 to /storage/kkm_last_doc_name [15:11:14]save OK [15:11:14]Clear old archive folders... [15:11:14]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:11:14]tlvbuf is 00A5DD20 [15:11:14]SAM_PROTO_ClearQueue [15:11:14]wFMCommunicate request_size=4 [15:11:14]MH_SAM_APDU [15:11:14]CAPDU: 80 09 00 00 [15:11:14]Write to MH i2c: E2 08 00 56 03 80 09 00 00 00 00 00 00 CB [15:11:14]Write i2c OK [15:11:14]MH_I2C_Read... [15:11:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:11:14]Read from MH i2c: E2 [15:11:14]MH_I2C_Read... [15:11:14]Read from MH i2c: E2 03 00 [15:11:14]MH_I2C_Read... [15:11:14]Read from MH i2c: E2 03 00 56 03 00 90 00 CD [15:11:14]RAPDU: 90 00 [15:11:14]wFMCommunicate OK [15:11:14]SAM_PROTO_ClearQueue done [15:11:14]KKMCreateOFDPacket [15:11:14]OFDProtocolAddRootSTLVToBuf [15:11:14]FM_MakeSignedData [15:11:14]FM_MakeSignedData [15:11:14]SAM_PROTO_SignData [15:11:14]wFMCommunicate request_size=4 [15:11:14]MH_SAM_APDU [15:11:14]CAPDU: 80 0D 01 02 [15:11:14]Write to MH i2c: E2 08 00 57 03 80 0D 01 02 00 00 00 00 D3 [15:11:14]Write i2c OK [15:11:14]MH_I2C_Read... [15:11:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:11:14]Read from MH i2c: E2 [15:11:14]MH_I2C_Read... [15:11:14]Read from MH i2c: E2 03 00 [15:11:14]MH_I2C_Read... [15:11:14]Read from MH i2c: E2 03 00 57 03 00 90 00 CE [15:11:14]RAPDU: 90 00 [15:11:14]wFMCommunicate OK [15:11:14]wFMCommunicate request_size=255 [15:11:14]MH_SAM_APDU [15:11:14]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 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 6F 00 00 00 F4 03 04 00 92 2E 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 05 0C 01 00 35 04 06 00 [15:11:14]Write to MH i2c: E2 02 01 58 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 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 6F 00 00 00 F4 03 04 00 92 2E 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 05 0C 01 00 35 04 06 00 00 00 29 [15:11:14]Write i2c OK [15:11:14]MH_I2C_Read... [15:11:15]OFD Sender: No OFD packet to send [15:11:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:11:15]Read from MH i2c: E2 [15:11:15]MH_I2C_Read... [15:11:15]Read from MH i2c: E2 03 00 [15:11:15]MH_I2C_Read... [15:11:15]Read from MH i2c: E2 03 00 58 03 00 90 00 CF [15:11:15]RAPDU: 90 00 [15:11:15]wFMCommunicate OK [15:11:15]wFMCommunicate request_size=11 [15:11:15]MH_SAM_APDU [15:11:15]CAPDU: 80 0D 02 02 06 F0 36 06 CE 5F AB [15:11:15]Write to MH i2c: E2 0E 00 59 03 80 0D 02 02 06 00 F0 36 06 CE 5F AB 00 00 E6 [15:11:15]Write i2c OK [15:11:15]MH_I2C_Read... [15:11:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:11:15]Read from MH i2c: E2 [15:11:15]MH_I2C_Read... [15:11:15]Read from MH i2c: E2 03 00 [15:11:15]MH_I2C_Read... [15:11:15]Read from MH i2c: E2 03 00 59 03 00 90 00 D0 [15:11:15]RAPDU: 90 00 [15:11:15]wFMCommunicate OK [15:11:15]wFMCommunicate request_size=4 [15:11:15]MH_SAM_APDU [15:11:15]CAPDU: 80 0D 03 02 [15:11:15]Write to MH i2c: E2 08 00 5A 03 80 0D 03 02 00 00 00 00 D8 [15:11:15]Write i2c OK [15:11:15]MH_I2C_Read... [15:11:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:11:15]Read from MH i2c: E2 [15:11:15]MH_I2C_Read... [15:11:15]Read from MH i2c: E2 0B 00 [15:11:15]MH_I2C_Read... [15:11:15]Read from MH i2c: E2 0B 00 5A 03 00 A2 30 81 40 BB FF D4 8C 90 00 86 [15:11:15]RAPDU: A2 30 81 40 BB FF D4 8C 90 00 [15:11:15]wFMCommunicate OK [15:11:15]SAM_PROTO_SignData done [15:11:15]FM_MakeSignedData done [15:11:15]CreateOFDProtocolMessage [15:11:15]wFMCommunicate request_size=4 [15:11:15]MH_SAM_APDU [15:11:15]CAPDU: 80 11 00 00 [15:11:15]Write to MH i2c: E2 08 00 5B 03 80 11 00 00 00 00 00 00 D8 [15:11:15]Write i2c OK [15:11:15]MH_I2C_Read... [15:11:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:11:15]Read from MH i2c: E2 [15:11:15]MH_I2C_Read... [15:11:15]Read from MH i2c: E2 17 00 [15:11:15]MH_I2C_Read... [15:11:15]Read from MH i2c: E2 17 00 5B 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 23 [15:11:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [15:11:15]wFMCommunicate OK [15:11:15]CreateOFDProtocolMessage done [15:11:15]OFDSenderStorePacket 68613 [15:11:15]StoreOFDPacket docnum=68613 [15:11:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 D1 DE 08 01 E2 7F 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 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 6F 00 00 00 F4 03 04 00 92 2E 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 05 0C 01 00 35 04 06 00 F0 36 06 CE 5F AB A2 30 81 40 BB FF D4 8C [15:11:15]CheckFolder [15:11:15]dirname=/storage/ofd_packets [15:11:15]CheckFolder done [15:11:15]ProducePacketName [15:11:15]name=ofd_packets/00068613 [15:11:15]NVStorageSaveData ofd_packets/00068613 [15:11:15]File name is /storage/ofd_packets/00068613 [15:11:15]Write 302 bytes [15:11:15]NVStorageSaveData done [15:11:15]OFDSenderStorePacket done [15:11:15]KKMCreateOFDPacket done [15:11:15]NVStorageSaveData kkm_last_timestamp [15:11:15]File name is /storage/kkm_last_timestamp [15:11:15]Write 4 bytes [15:11:15]NVStorageSaveData done [15:11:15]ExternCall_PrintAddStr [15:11:15]wPrintStart [15:11:15]Write to MH i2c: 01 00 00 5C 03 5F [15:11:15]Write i2c OK [15:11:15]MH_I2C_Read... [15:11:15]Read from MH i2c: 01 [15:11:15]MH_I2C_Read... [15:11:15]Read from MH i2c: 01 07 00 [15:11:15]MH_I2C_Read... [15:11:15]Read from MH i2c: 01 07 00 5C 03 00 00 00 00 00 FF 0F 74 [15:11:15]RasterBufferAndPrint [15:11:15]line Счет N : (1)706745 [15:11:15]line ИНН: 02508201610067 [15:11:15]line Контрольно-Кассовый Чек [15:11:15]line ПРОДАЖА [15:11:15]line ТРК (МРК, ГНК) : 51 [15:11:15]line Товар: 2710194210 [15:11:15]line ДТ(л)-К-4 [15:11:15]line 20.580 * 72.90 [15:11:15]line = 1500.28 [15:11:15]line НДС 12% НСП 1% [15:11:15]line > о реализуемом товаре [15:11:15]line ОКРУГЛЕНИЕ: -0.28 [15:11:15]line ИТОГО: 1500.00 [15:11:15]line Внесено: 1500.00 [15:11:15]line СДАЧА: 0.00 [15:11:15]line НСП 1% : 13.28 [15:11:15]line НДС 12% : 159.32 [15:11:15]line Наличными: 1500.00 [15:11:15]line Безнал.: 0.00 [15:11:15]line Место: АЗС № 62 "Партнер Нефть" [15:11:15]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [15:11:15]line СНО: Общий режим [15:11:15]line Чек 111 04.06.2024 15:11 [15:11:15]line Смена: 325 ФФД: 1.0 [15:11:15]line ЗНМ: 0300000181 [15:11:15]line РНМ: 0000000000098096 [15:11:15]line Версия ККМ: 001 [15:11:15]line ФМ: 0000000000965400 [15:11:15]line ФД: 68613 [15:11:15]line ФПД: 264114833088427 [15:11:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T151114&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68613&fm=264114833088427&tin=02508201610067®Number=0000000000098096&sum=150000 [15:11:15]OFD Sender: Processing packet 68613 [packets to send 27, broken 26] [15:11:15]ProducePacketName [15:11:15]name=ofd_packets/00068613 [15:11:15]OFD Sender: To server: pG, [15:11:15]CommunicateWithHost lk.salyk.kg:30040 [15:11:15]ConnectInit lk.salyk.kg [15:11:15]written 0, free lines is 4095 [15:11:15]Connected sock=10 [15:11:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 D1 DE 08 01 E2 7F 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 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 6F 00 00 00 F4 03 04 00 92 2E 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 05 0C 01 00 35 04 06 00 F0 36 06 CE 5F AB A2 30 81 40 BB FF D4 8C [15:11:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 1E 38 47 00 50 47 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 05 0C 01 00 F4 03 04 00 8A D5 5E 66 B6 04 01 00 00 4D 93 DB 9D 03 FE 5A 25 [15:11:15]CommunicateWithHost err = 0 [15:11:15]CheckOFDResponse [15:11:15]1017 (14) - 77093643461234 [15:11:15]1041 (16) - 0000000000965400 [15:11:15]1040 (4) - 68613 [15:11:15]1012 (4) - 04.06.2024 08:51 [15:11:15]1206 (1) - 0 [15:11:15]OFD Sender: Remove packet 68613 [15:11:15]ProducePacketName [15:11:15]name=ofd_packets/00068613 [15:11:15]NVStorageDeleteData [15:11:16]Write to MH i2c: 01 00 00 87 03 8A [15:11:16]Write i2c OK [15:11:16]MH_I2C_Read... [15:11:16]Read from MH i2c: 01 [15:11:16]MH_I2C_Read... [15:11:16]Read from MH i2c: 01 07 00 [15:11:16]MH_I2C_Read... [15:11:16]Read from MH i2c: 01 07 00 87 03 00 00 00 00 00 E1 0C 7E [15:11:16]RasterBufferAndPrint [15:11:16]line [15:11:16]line [15:11:16]line [15:11:16]line [15:11:16]line [15:11:16]written 0, free lines is 3306 [15:11:16]MH_Cut [15:11:16]Write to MH i2c: D1 01 00 8E 03 01 63 [15:11:16]Write i2c OK [15:11:16]MH_I2C_Read... [15:11:16]Read from MH i2c: D1 [15:11:16]MH_I2C_Read... [15:11:16]Read from MH i2c: D1 01 00 [15:11:16]MH_I2C_Read... [15:11:16]Read from MH i2c: D1 01 00 8E 03 00 62 [15:11:16]Write to MH i2c: 01 00 00 8F 03 92 [15:11:16]Write i2c OK [15:11:16]MH_I2C_Read... [15:11:16]OFD Sender: No OFD packet to send [15:11:16]*** Cut start [15:11:16]*** Partial cut [15:11:16]*** CUTSNS_PIN = 1 [15:11:16]*** CUTSNS_PIN = 0 [15:11:17]*** Brake cut motor [15:11:17]Read from MH i2c: 01 [15:11:17]MH_I2C_Read... [15:11:17]*** Stop cut motor [15:11:17]*** Cut end [15:11:17]Read from MH i2c: 01 07 00 [15:11:17]MH_I2C_Read... [15:11:17]Read from MH i2c: 01 07 00 8F 03 00 00 00 00 00 FF 0F A7 [15:11:17]process_action close_receipt done [15:11:17]requested_data is exist [15:11:17]produce_requested_data [15:11:17]requested_item fm.sn is exist - process it [15:11:17]wFMCommunicate request_size=4 [15:11:17]MH_SAM_APDU [15:11:17]CAPDU: 80 11 00 00 [15:11:17]Write to MH i2c: E2 08 00 90 03 80 11 00 00 00 00 00 00 0D [15:11:17]Write i2c OK [15:11:17]MH_I2C_Read... [15:11:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:11:17]Read from MH i2c: E2 [15:11:17]MH_I2C_Read... [15:11:17]Read from MH i2c: E2 17 00 [15:11:17]MH_I2C_Read... [15:11: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 39 36 35 34 30 30 90 00 58 [15:11:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [15:11:17]wFMCommunicate OK [15:11:17]requested_item fd.num is exist - process it [15:11:17]SAM_PROTO_GetFieldsCounters [15:11:17]wFMCommunicate request_size=4 [15:11:17]MH_SAM_APDU [15:11:17]CAPDU: 80 13 00 00 [15:11:17]Write to MH i2c: E2 08 00 91 03 80 13 00 00 00 00 00 00 10 [15:11:17]Write i2c OK [15:11:17]MH_I2C_Read... [15:11:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:11:17]Read from MH i2c: E2 [15:11:17]MH_I2C_Read... [15:11:17]Read from MH i2c: E2 62 00 [15:11:17]MH_I2C_Read... [15:11:17]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 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 05 0C 01 00 0E 04 04 00 45 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 D5 [15:11:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 05 0C 01 00 0E 04 04 00 45 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 [15:11:17]wFMCommunicate OK [15:11:17]SAM_PROTO_GetFieldsCounters done [15:11:17]requested_item shift.num is exist - process it [15:11:17]requested_item shift.opened is exist - process it [15:11:17]req_shift_opened [15:11:17]FM_GetShiftState [15:11:17]SAM_PROTO_GetShiftState [15:11:17]wFMCommunicate request_size=4 [15:11:17]MH_SAM_APDU [15:11:17]CAPDU: 80 13 01 00 [15:11:17]Write to MH i2c: E2 08 00 92 03 80 13 01 00 00 00 00 00 12 [15:11:17]Write i2c OK [15:11:17]MH_I2C_Read... [15:11:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:11:17]Read from MH i2c: E2 [15:11:17]MH_I2C_Read... [15:11:17]Read from MH i2c: E2 0E 00 [15:11:17]MH_I2C_Read... [15:11:17]Read from MH i2c: E2 0E 00 92 03 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 AE [15:11:17]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [15:11:17]wFMCommunicate OK [15:11:17]SAM_PROTO_GetShiftState done [15:11:17]FM_GetShiftState done [15:11:17]req_shift_opened done [15:11:17]requested_item shift.open_date is exist - process it [15:11:17]req_shift_open_date [15:11:17]req_shift_open_date done [15:11:17]produce_requested_data done [15:11:17]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68613,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [15:11:17]process_action_free close_receipt [15:11:17]json_value_free [15:11:17]json_value_free done [15:11:17]process_json_proto returns [15:11:17]Send response to host [15:11:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68613,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [15:11:17]free response buf [15:11:17]execute_script done [15:11:17]execute_script returns [15:11:17]free content buf [15:11:17]Sock 9.Close socket [15:11:17]Sock 9.Thread stoped [15:11:21]OFD Sender: No OFD packet to send [15:11:24]accept exits with 7 [15:11:24]New connection [15:11:24]New thread 3067153764 created [15:11:24]Thread 3067297124 joined [15:11:24]Waiting for new connection... [15:11:24] Sock 7.Parse request [15:11:24]Sock 7.Check first char [15:11:24]Sock 7.First char is OK [15:11:24]request: POST /json_proto HTTP/1.0 [15:11:24]Method: POST [15:11:24]URL: /json_proto [15:11:24]Method is POST - this is cgi request [15:11:24]url: /json_proto [15:11:24]query_string will be loaded in cgi processing [15:11:24]execute_cgi json_proto POST (null) [15:11:24]execute_cgi path=json_proto method=POST [15:11:24]POST find Content-Length [15:11:24]Host: 172.17.36.132:8080 [15:11:24]Content-Length: 682 [15:11:24]Content-Type: application/json [15:11:24] [15:11:24]POST finish read [15:11:24]Found Content-Length = 682 [15:11:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706746", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:11:24]execute_script... [15:11: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)706746", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:11:24]POST & json_proto [15:11:24]process_json_proto [15:11:24]json parsed OK: [15:11:24]protocol is kg_v1.0 [15:11:24]action value=close_receipt [15:11:24]process_action close_receipt [15:11:24]cmd_close_receipt [15:11:24]MH_GetDate [15:11:24]Write to MH i2c: F0 00 00 93 03 85 [15:11:24]Write i2c OK [15:11:24]MH_I2C_Read... [15:11:24]Read from MH i2c: F0 [15:11:24]MH_I2C_Read... [15:11:24]Read from MH i2c: F0 09 00 [15:11:24]MH_I2C_Read... [15:11:24]Read from MH i2c: F0 09 00 93 03 00 9D 2E 5F 66 B2 22 B0 64 06 [15:11:24]GetLastDocTimeStamp 1717513874 [15:11:24]current date 1717513885 [15:11:24]FM_GetShiftState [15:11:24]SAM_PROTO_GetShiftState [15:11:24]wFMCommunicate request_size=4 [15:11:24]MH_SAM_APDU [15:11:24]CAPDU: 80 13 01 00 [15:11:24]Write to MH i2c: E2 08 00 94 03 80 13 01 00 00 00 00 00 14 [15:11:24]Write i2c OK [15:11:24]MH_I2C_Read... [15:11:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:11:24]Read from MH i2c: E2 [15:11:24]MH_I2C_Read... [15:11:24]Read from MH i2c: E2 0E 00 [15:11:24]MH_I2C_Read... [15:11:24]Read from MH i2c: E2 0E 00 94 03 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 B0 [15:11:24]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [15:11:24]wFMCommunicate OK [15:11:24]SAM_PROTO_GetShiftState done [15:11:24]FM_GetShiftState done [15:11:24]opened in 1717460590 [15:11:24]opened+sec_in_day 1717546990 [15:11:24]quantity*price = 50009 [15:11:24]sum+1 = 50010 [15:11:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 112 04.06.2024 15:11 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68614 ФПД: 35470712912042 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T151125&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68614&fm=35470712912042&tin=02508201610067®Number=0000000000098096&sum=50000 [15:11:25]StoreToDocumentArchive [15:11:25]shift 325 fd 68614 [15:11:25]save to /storage/0325/doc_00068614 [15:11:25]save last doc name /storage/0325/doc_00068614 to /storage/kkm_last_doc_name [15:11:25]save OK [15:11:25]Clear old archive folders... [15:11:25]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:11:25]tlvbuf is 00A697A0 [15:11:25]SAM_PROTO_ClearQueue [15:11:25]wFMCommunicate request_size=4 [15:11:25]MH_SAM_APDU [15:11:25]CAPDU: 80 09 00 00 [15:11:25]Write to MH i2c: E2 08 00 A1 03 80 09 00 00 00 00 00 00 16 [15:11:25]Write i2c OK [15:11:25]MH_I2C_Read... [15:11:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:11:25]Read from MH i2c: E2 [15:11:25]MH_I2C_Read... [15:11:25]Read from MH i2c: E2 03 00 [15:11:25]MH_I2C_Read... [15:11:25]Read from MH i2c: E2 03 00 A1 03 00 90 00 18 [15:11:25]RAPDU: 90 00 [15:11:25]wFMCommunicate OK [15:11:25]SAM_PROTO_ClearQueue done [15:11:25]KKMCreateOFDPacket [15:11:25]OFDProtocolAddRootSTLVToBuf [15:11:25]FM_MakeSignedData [15:11:25]FM_MakeSignedData [15:11:25]SAM_PROTO_SignData [15:11:25]wFMCommunicate request_size=4 [15:11:25]MH_SAM_APDU [15:11:25]CAPDU: 80 0D 01 02 [15:11:25]Write to MH i2c: E2 08 00 A2 03 80 0D 01 02 00 00 00 00 1E [15:11:25]Write i2c OK [15:11:25]MH_I2C_Read... [15:11:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:11:25]Read from MH i2c: E2 [15:11:25]MH_I2C_Read... [15:11:25]Read from MH i2c: E2 03 00 [15:11:25]MH_I2C_Read... [15:11:25]Read from MH i2c: E2 03 00 A2 03 00 90 00 19 [15:11:25]RAPDU: 90 00 [15:11:25]wFMCommunicate OK [15:11:25]wFMCommunicate request_size=255 [15:11:25]MH_SAM_APDU [15:11:25]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 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 70 00 00 00 F4 03 04 00 9D 2E 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 06 0C 01 00 35 04 06 00 [15:11:25]Write to MH i2c: E2 02 01 A3 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 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 70 00 00 00 F4 03 04 00 9D 2E 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 06 0C 01 00 35 04 06 00 00 00 07 [15:11:25]Write i2c OK [15:11:25]MH_I2C_Read... [15:11:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:11:26]Read from MH i2c: E2 [15:11:26]MH_I2C_Read... [15:11:26]Read from MH i2c: E2 03 00 [15:11:26]MH_I2C_Read... [15:11:26]Read from MH i2c: E2 03 00 A3 03 00 90 00 1A [15:11:26]RAPDU: 90 00 [15:11:26]wFMCommunicate OK [15:11:26]wFMCommunicate request_size=11 [15:11:26]MH_SAM_APDU [15:11:26]CAPDU: 80 0D 02 02 06 20 42 AB 3E 38 AA [15:11:26]Write to MH i2c: E2 0E 00 A4 03 80 0D 02 02 06 00 20 42 AB 3E 38 AA 00 00 5A [15:11:26]Write i2c OK [15:11:26]MH_I2C_Read... [15:11:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:11:26]Read from MH i2c: E2 [15:11:26]MH_I2C_Read... [15:11:26]Read from MH i2c: E2 03 00 [15:11:26]MH_I2C_Read... [15:11:26]Read from MH i2c: E2 03 00 A4 03 00 90 00 1B [15:11:26]RAPDU: 90 00 [15:11:26]wFMCommunicate OK [15:11:26]wFMCommunicate request_size=4 [15:11:26]MH_SAM_APDU [15:11:26]CAPDU: 80 0D 03 02 [15:11:26]Write to MH i2c: E2 08 00 A5 03 80 0D 03 02 00 00 00 00 23 [15:11:26]Write i2c OK [15:11:26]MH_I2C_Read... [15:11:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:11:26]Read from MH i2c: E2 [15:11:26]MH_I2C_Read... [15:11:26]Read from MH i2c: E2 0B 00 [15:11:26]MH_I2C_Read... [15:11:26]Read from MH i2c: E2 0B 00 A5 03 00 6F AF B0 0E 5F 90 CB 07 90 00 C1 [15:11:26]RAPDU: 6F AF B0 0E 5F 90 CB 07 90 00 [15:11:26]wFMCommunicate OK [15:11:26]SAM_PROTO_SignData done [15:11:26]FM_MakeSignedData done [15:11:26]CreateOFDProtocolMessage [15:11:26]wFMCommunicate request_size=4 [15:11:26]MH_SAM_APDU [15:11:26]CAPDU: 80 11 00 00 [15:11:26]Write to MH i2c: E2 08 00 A6 03 80 11 00 00 00 00 00 00 23 [15:11:26]Write i2c OK [15:11:26]MH_I2C_Read... [15:11:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:11:26]Read from MH i2c: E2 [15:11:26]MH_I2C_Read... [15:11:26]Read from MH i2c: E2 17 00 [15:11:26]MH_I2C_Read... [15:11:26]Read from MH i2c: E2 17 00 A6 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 6E [15:11:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [15:11:26]wFMCommunicate OK [15:11:26]CreateOFDProtocolMessage done [15:11:26]OFDSenderStorePacket 68614 [15:11:26]StoreOFDPacket docnum=68614 [15:11:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 95 9F 08 01 5B E0 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 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 70 00 00 00 F4 03 04 00 9D 2E 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 06 0C 01 00 35 04 06 00 20 42 AB 3E 38 AA 6F AF B0 0E 5F 90 CB 07 [15:11:26]CheckFolder [15:11:26]dirname=/storage/ofd_packets [15:11:26]CheckFolder done [15:11:26]ProducePacketName [15:11:26]name=ofd_packets/00068614 [15:11:26]NVStorageSaveData ofd_packets/00068614 [15:11:26]File name is /storage/ofd_packets/00068614 [15:11:26]Write 302 bytes [15:11:26]NVStorageSaveData done [15:11:26]OFDSenderStorePacket done [15:11:26]KKMCreateOFDPacket done [15:11:26]NVStorageSaveData kkm_last_timestamp [15:11:26]File name is /storage/kkm_last_timestamp [15:11:26]Write 4 bytes [15:11:26]NVStorageSaveData done [15:11:26]ExternCall_PrintAddStr [15:11:26]wPrintStart [15:11:26]Write to MH i2c: 01 00 00 A7 03 AA [15:11:26]Write i2c OK [15:11:26]MH_I2C_Read... [15:11:26]Read from MH i2c: 01 [15:11:26]MH_I2C_Read... [15:11:26]Read from MH i2c: 01 07 00 [15:11:26]MH_I2C_Read... [15:11:26]Read from MH i2c: 01 07 00 A7 03 00 00 00 00 00 FF 0F BF [15:11:26]RasterBufferAndPrint [15:11:26]line Счет N : (1)706746 [15:11:26]line ИНН: 02508201610067 [15:11:26]line Контрольно-Кассовый Чек [15:11:26]line ПРОДАЖА [15:11:26]line ТРК (МРК, ГНК) : 11 [15:11:26]line Товар: 2710194210 [15:11:26]line ДТ(л)-К-4 [15:11:26]line 6.860 * 72.90 [15:11:26]line = 500.09 [15:11:26]line НДС 12% НСП 1% [15:11:26]line > о реализуемом товаре [15:11:26]line ОКРУГЛЕНИЕ: -0.09 [15:11:26]line ИТОГО: 500.00 [15:11:26]line Внесено: 500.00 [15:11:26]line СДАЧА: 0.00 [15:11:26]line НСП 1% : 4.43 [15:11:26]line НДС 12% : 53.11 [15:11:26]line Наличными: 500.00 [15:11:26]line Безнал.: 0.00 [15:11:26]line Место: АЗС № 62 "Партнер Нефть" [15:11:26]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [15:11:26]line СНО: Общий режим [15:11:26]line Чек 112 04.06.2024 15:11 [15:11:26]line Смена: 325 ФФД: 1.0 [15:11:26]line ЗНМ: 0300000181 [15:11:26]line РНМ: 0000000000098096 [15:11:26]line Версия ККМ: 001 [15:11:26]line ФМ: 0000000000965400 [15:11:26]line ФД: 68614 [15:11:26]line ФПД: 35470712912042 [15:11:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T151125&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68614&fm=35470712912042&tin=02508201610067®Number=0000000000098096&sum=50000 [15:11:26]OFD Sender: Processing packet 68614 [packets to send 27, broken 26] [15:11:26]ProducePacketName [15:11:26]name=ofd_packets/00068614 [15:11:26]OFD Sender: To server: pG, [15:11:26]CommunicateWithHost lk.salyk.kg:30040 [15:11:26]ConnectInit lk.salyk.kg [15:11:26]written 0, free lines is 4095 [15:11:26]Connected sock=10 [15:11:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 95 9F 08 01 5B E0 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 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 70 00 00 00 F4 03 04 00 9D 2E 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 06 0C 01 00 35 04 06 00 20 42 AB 3E 38 AA 6F AF B0 0E 5F 90 CB 07 [15:11:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 DD 43 47 00 B6 53 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 06 0C 01 00 F4 03 04 00 95 D5 5E 66 B6 04 01 00 00 9F DB 01 F2 E0 71 FD 8F [15:11:26]CommunicateWithHost err = 0 [15:11:26]CheckOFDResponse [15:11:26]1017 (14) - 77093643461234 [15:11:26]1041 (16) - 0000000000965400 [15:11:26]1040 (4) - 68614 [15:11:26]1012 (4) - 04.06.2024 08:51 [15:11:26]1206 (1) - 0 [15:11:26]OFD Sender: Remove packet 68614 [15:11:26]ProducePacketName [15:11:26]name=ofd_packets/00068614 [15:11:26]NVStorageDeleteData [15:11:27]Write to MH i2c: 01 00 00 D2 03 D5 [15:11:27]Write i2c OK [15:11:27]MH_I2C_Read... [15:11:27]Read from MH i2c: 01 [15:11:27]MH_I2C_Read... [15:11:27]Read from MH i2c: 01 07 00 [15:11:27]MH_I2C_Read... [15:11:27]Read from MH i2c: 01 07 00 D2 03 00 00 00 00 00 E2 0C CA [15:11:27]RasterBufferAndPrint [15:11:27]line [15:11:27]line [15:11:27]line [15:11:27]line [15:11:27]line [15:11:27]written 0, free lines is 3309 [15:11:27]MH_Cut [15:11:27]Write to MH i2c: D1 01 00 D9 03 01 AE [15:11:27]Write i2c OK [15:11:27]MH_I2C_Read... [15:11:27]Read from MH i2c: D1 [15:11:27]MH_I2C_Read... [15:11:27]Read from MH i2c: D1 01 00 [15:11:27]MH_I2C_Read... [15:11:27]Read from MH i2c: D1 01 00 D9 03 00 AD [15:11:27]Write to MH i2c: 01 00 00 DA 03 DD [15:11:27]Write i2c OK [15:11:27]MH_I2C_Read... [15:11:27]OFD Sender: No OFD packet to send [15:11:27]*** Cut start [15:11:27]*** Partial cut [15:11:27]*** CUTSNS_PIN = 1 [15:11:27]*** CUTSNS_PIN = 0 [15:11:28]*** Brake cut motor [15:11:28]Read from MH i2c: 01 [15:11:28]MH_I2C_Read... [15:11:28]*** Stop cut motor [15:11:28]*** Cut end [15:11:28]Read from MH i2c: 01 07 00 [15:11:28]MH_I2C_Read... [15:11:28]Read from MH i2c: 01 07 00 DA 03 00 00 00 00 00 FF 0F F2 [15:11:28]process_action close_receipt done [15:11:28]requested_data is exist [15:11:28]produce_requested_data [15:11:28]requested_item fm.sn is exist - process it [15:11:28]wFMCommunicate request_size=4 [15:11:28]MH_SAM_APDU [15:11:28]CAPDU: 80 11 00 00 [15:11:28]Write to MH i2c: E2 08 00 DB 03 80 11 00 00 00 00 00 00 58 [15:11:28]Write i2c OK [15:11:28]MH_I2C_Read... [15:11:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:11:28]Read from MH i2c: E2 [15:11:28]MH_I2C_Read... [15:11:28]Read from MH i2c: E2 17 00 [15:11:28]MH_I2C_Read... [15:11:28]Read from MH i2c: E2 17 00 DB 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 A3 [15:11:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [15:11:28]wFMCommunicate OK [15:11:28]requested_item fd.num is exist - process it [15:11:28]SAM_PROTO_GetFieldsCounters [15:11:28]wFMCommunicate request_size=4 [15:11:28]MH_SAM_APDU [15:11:28]CAPDU: 80 13 00 00 [15:11:28]Write to MH i2c: E2 08 00 DC 03 80 13 00 00 00 00 00 00 5B [15:11:28]Write i2c OK [15:11:28]MH_I2C_Read... [15:11:28]Read from MH i2c: E2 [15:11:28]MH_I2C_Read... [15:11:28]Read from MH i2c: E2 62 00 [15:11:28]MH_I2C_Read... [15:11:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:11:28]Read from MH i2c: E2 62 00 DC 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 06 0C 01 00 0E 04 04 00 45 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 24 [15:11:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 06 0C 01 00 0E 04 04 00 45 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 [15:11:28]wFMCommunicate OK [15:11:28]SAM_PROTO_GetFieldsCounters done [15:11:28]requested_item shift.num is exist - process it [15:11:28]requested_item shift.opened is exist - process it [15:11:28]req_shift_opened [15:11:28]FM_GetShiftState [15:11:28]SAM_PROTO_GetShiftState [15:11:28]wFMCommunicate request_size=4 [15:11:28]MH_SAM_APDU [15:11:28]CAPDU: 80 13 01 00 [15:11:28]Write to MH i2c: E2 08 00 DD 03 80 13 01 00 00 00 00 00 5D [15:11:28]Write i2c OK [15:11:28]MH_I2C_Read... [15:11:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:11:28]Read from MH i2c: E2 [15:11:28]MH_I2C_Read... [15:11:28]Read from MH i2c: E2 0E 00 [15:11:28]MH_I2C_Read... [15:11:28]Read from MH i2c: E2 0E 00 DD 03 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 F9 [15:11:28]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [15:11:28]wFMCommunicate OK [15:11:28]SAM_PROTO_GetShiftState done [15:11:28]FM_GetShiftState done [15:11:28]req_shift_opened done [15:11:28]requested_item shift.open_date is exist - process it [15:11:28]req_shift_open_date [15:11:28]req_shift_open_date done [15:11:28]produce_requested_data done [15:11:28]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68614,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [15:11:28]process_action_free close_receipt [15:11:28]json_value_free [15:11:28]json_value_free done [15:11:28]process_json_proto returns [15:11:28]Send response to host [15:11:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68614,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [15:11:28]free response buf [15:11:28]execute_script done [15:11:28]execute_script returns [15:11:28]free content buf [15:11:28]Sock 7.Close socket [15:11:28]Sock 7.Thread stoped [15:11:32]OFD Sender: No OFD packet to send [15:11:37]OFD Sender: No OFD packet to send [15:11:42]OFD Sender: No OFD packet to send [15:11:47]OFD Sender: No OFD packet to send [15:11:52]OFD Sender: No OFD packet to send [15:11:57]OFD Sender: No OFD packet to send [15:12:02]OFD Sender: No OFD packet to send [15:12:07]OFD Sender: No OFD packet to send [15:12:12]OFD Sender: No OFD packet to send [15:12:17]OFD Sender: No OFD packet to send [15:12:22]OFD Sender: No OFD packet to send [15:12:27]OFD Sender: No OFD packet to send [15:12:32]OFD Sender: No OFD packet to send [15:12:37]OFD Sender: No OFD packet to send [15:12:42]OFD Sender: No OFD packet to send [15:12:47]OFD Sender: No OFD packet to send [15:12:52]OFD Sender: No OFD packet to send [15:12:57]OFD Sender: No OFD packet to send [15:13:02]OFD Sender: No OFD packet to send [15:13:07]OFD Sender: No OFD packet to send [15:13:12]OFD Sender: No OFD packet to send [15:13:17]OFD Sender: No OFD packet to send [15:13:22]OFD Sender: No OFD packet to send [15:13:27]OFD Sender: No OFD packet to send [15:13:32]OFD Sender: No OFD packet to send [15:13:37]OFD Sender: No OFD packet to send [15:13:42]OFD Sender: No OFD packet to send [15:13:47]OFD Sender: No OFD packet to send [15:13:52]OFD Sender: No OFD packet to send [15:13:57]OFD Sender: No OFD packet to send [15:14:02]OFD Sender: No OFD packet to send [15:14:07]OFD Sender: No OFD packet to send [15:14:12]OFD Sender: No OFD packet to send [15:14:17]OFD Sender: No OFD packet to send [15:14:22]OFD Sender: No OFD packet to send [15:14:27]OFD Sender: No OFD packet to send [15:14:32]OFD Sender: No OFD packet to send [15:14:37]OFD Sender: No OFD packet to send [15:14:42]OFD Sender: No OFD packet to send [15:14:47]OFD Sender: No OFD packet to send [15:14:52]OFD Sender: No OFD packet to send [15:14:57]OFD Sender: No OFD packet to send [15:15:02]OFD Sender: No OFD packet to send [15:15:07]OFD Sender: No OFD packet to send [15:15:12]OFD Sender: No OFD packet to send [15:15:17]OFD Sender: No OFD packet to send [15:15:22]OFD Sender: No OFD packet to send [15:15:27]OFD Sender: No OFD packet to send [15:15:32]OFD Sender: No OFD packet to send [15:15:37]OFD Sender: No OFD packet to send [15:15:42]OFD Sender: No OFD packet to send [15:15:47]OFD Sender: No OFD packet to send [15:15:52]OFD Sender: No OFD packet to send [15:15:57]OFD Sender: No OFD packet to send [15:16:02]OFD Sender: No OFD packet to send [15:16:07]OFD Sender: No OFD packet to send [15:16:12]OFD Sender: No OFD packet to send [15:16:17]OFD Sender: No OFD packet to send [15:16:22]OFD Sender: No OFD packet to send [15:16:27]OFD Sender: No OFD packet to send [15:16:32]OFD Sender: No OFD packet to send [15:16:37]OFD Sender: No OFD packet to send [15:16:42]OFD Sender: No OFD packet to send [15:16:47]OFD Sender: No OFD packet to send [15:16:52]OFD Sender: No OFD packet to send [15:16:57]OFD Sender: No OFD packet to send [15:17:02]OFD Sender: No OFD packet to send [15:17:07]OFD Sender: No OFD packet to send [15:17:12]OFD Sender: No OFD packet to send [15:17:17]OFD Sender: No OFD packet to send [15:17:22]OFD Sender: No OFD packet to send [15:17:27]OFD Sender: No OFD packet to send [15:17:32]OFD Sender: No OFD packet to send [15:17:37]OFD Sender: No OFD packet to send [15:17:42]OFD Sender: No OFD packet to send [15:17:47]OFD Sender: No OFD packet to send [15:17:52]OFD Sender: No OFD packet to send [15:17:57]OFD Sender: No OFD packet to send [15:18:02]OFD Sender: No OFD packet to send [15:18:07]OFD Sender: No OFD packet to send [15:18:12]OFD Sender: No OFD packet to send [15:18:17]OFD Sender: No OFD packet to send [15:18:22]OFD Sender: No OFD packet to send [15:18:27]OFD Sender: No OFD packet to send [15:18:32]OFD Sender: No OFD packet to send [15:18:37]OFD Sender: No OFD packet to send [15:18:42]OFD Sender: No OFD packet to send [15:18:47]OFD Sender: No OFD packet to send [15:18:52]OFD Sender: No OFD packet to send [15:18:54]accept exits with 9 [15:18:54]New connection [15:18:54]New thread 3067297124 created [15:18:54]Thread 3067153764 joined [15:18:54]Waiting for new connection... [15:18:54] Sock 9.Parse request [15:18:54]Sock 9.Check first char [15:18:54]Sock 9.First char is OK [15:18:54]request: POST /json_proto HTTP/1.0 [15:18:54]Method: POST [15:18:54]URL: /json_proto [15:18:54]Method is POST - this is cgi request [15:18:54]url: /json_proto [15:18:54]query_string will be loaded in cgi processing [15:18:54]execute_cgi json_proto POST (null) [15:18:54]execute_cgi path=json_proto method=POST [15:18:54]POST find Content-Length [15:18:54]Host: 172.17.36.132:8080 [15:18:54]Content-Length: 687 [15:18:54]Content-Type: application/json [15:18:54] [15:18:54]POST finish read [15:18:54]Found Content-Length = 687 [15:18:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706747", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 27.440, "sum" : 2000.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:18:54]execute_script... [15:18: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)706747", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 27.440, "sum" : 2000.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:18:54]POST & json_proto [15:18:54]process_json_proto [15:18:54]json parsed OK: [15:18:54]protocol is kg_v1.0 [15:18:54]action value=close_receipt [15:18:54]process_action close_receipt [15:18:54]cmd_close_receipt [15:18:54]MH_GetDate [15:18:54]Write to MH i2c: F0 00 00 DE 03 D0 [15:18:54]Write i2c OK [15:18:54]MH_I2C_Read... [15:18:54]Read from MH i2c: F0 [15:18:54]MH_I2C_Read... [15:18:54]Read from MH i2c: F0 09 00 [15:18:54]MH_I2C_Read... [15:18:54]Read from MH i2c: F0 09 00 DE 03 00 5E 30 5F 66 B2 22 B0 64 14 [15:18:54]GetLastDocTimeStamp 1717513885 [15:18:54]current date 1717514334 [15:18:54]FM_GetShiftState [15:18:54]SAM_PROTO_GetShiftState [15:18:54]wFMCommunicate request_size=4 [15:18:54]MH_SAM_APDU [15:18:54]CAPDU: 80 13 01 00 [15:18:54]Write to MH i2c: E2 08 00 DF 03 80 13 01 00 00 00 00 00 5F [15:18:54]Write i2c OK [15:18:54]MH_I2C_Read... [15:18:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:18:54]Read from MH i2c: E2 [15:18:54]MH_I2C_Read... [15:18:54]Read from MH i2c: E2 0E 00 [15:18:54]MH_I2C_Read... [15:18:54]Read from MH i2c: E2 0E 00 DF 03 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 FB [15:18:54]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [15:18:54]wFMCommunicate OK [15:18:54]SAM_PROTO_GetShiftState done [15:18:54]FM_GetShiftState done [15:18:54]opened in 1717460590 [15:18:54]opened+sec_in_day 1717546990 [15:18:54]quantity*price = 200037 [15:18:54]sum+1 = 200039 [15:18:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 113 04.06.2024 15:18 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68615 ФПД: 259694278482760 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T151854&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68615&fm=259694278482760&tin=02508201610067®Number=0000000000098096&sum=200000 [15:18:55]StoreToDocumentArchive [15:18:55]shift 325 fd 68615 [15:18:55]save to /storage/0325/doc_00068615 [15:18:55]save last doc name /storage/0325/doc_00068615 to /storage/kkm_last_doc_name [15:18:55]save OK [15:18:55]Clear old archive folders... [15:18:55]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:18:55]tlvbuf is 00A6CF30 [15:18:55]SAM_PROTO_ClearQueue [15:18:55]wFMCommunicate request_size=4 [15:18:55]MH_SAM_APDU [15:18:55]CAPDU: 80 09 00 00 [15:18:55]Write to MH i2c: E2 08 00 EC 03 80 09 00 00 00 00 00 00 61 [15:18:55]Write i2c OK [15:18:55]MH_I2C_Read... [15:18:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:18:55]Read from MH i2c: E2 [15:18:55]MH_I2C_Read... [15:18:55]Read from MH i2c: E2 03 00 [15:18:55]MH_I2C_Read... [15:18:55]Read from MH i2c: E2 03 00 EC 03 00 90 00 63 [15:18:55]RAPDU: 90 00 [15:18:55]wFMCommunicate OK [15:18:55]SAM_PROTO_ClearQueue done [15:18:55]KKMCreateOFDPacket [15:18:55]OFDProtocolAddRootSTLVToBuf [15:18:55]FM_MakeSignedData [15:18:55]FM_MakeSignedData [15:18:55]SAM_PROTO_SignData [15:18:55]wFMCommunicate request_size=4 [15:18:55]MH_SAM_APDU [15:18:55]CAPDU: 80 0D 01 02 [15:18:55]Write to MH i2c: E2 08 00 ED 03 80 0D 01 02 00 00 00 00 69 [15:18:55]Write i2c OK [15:18:55]MH_I2C_Read... [15:18:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:18:55]Read from MH i2c: E2 [15:18:55]MH_I2C_Read... [15:18:55]Read from MH i2c: E2 03 00 [15:18:55]MH_I2C_Read... [15:18:55]Read from MH i2c: E2 03 00 ED 03 00 90 00 64 [15:18:55]RAPDU: 90 00 [15:18:55]wFMCommunicate OK [15:18:55]wFMCommunicate request_size=255 [15:18:55]MH_SAM_APDU [15:18:55]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 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 71 00 00 00 F4 03 04 00 5E 30 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 07 0C 01 00 35 04 06 00 [15:18:55]Write to MH i2c: E2 02 01 EE 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 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 71 00 00 00 F4 03 04 00 5E 30 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 07 0C 01 00 35 04 06 00 00 00 4E [15:18:55]Write i2c OK [15:18:55]MH_I2C_Read... [15:18:55]Read from MH i2c: E2 [15:18:55]MH_I2C_Read... [15:18:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:18:55]Read from MH i2c: E2 03 00 [15:18:55]MH_I2C_Read... [15:18:55]Read from MH i2c: E2 03 00 EE 03 00 90 00 65 [15:18:55]RAPDU: 90 00 [15:18:55]wFMCommunicate OK [15:18:55]wFMCommunicate request_size=11 [15:18:55]MH_SAM_APDU [15:18:55]CAPDU: 80 0D 02 02 06 EC 30 C9 38 1B 48 [15:18:55]Write to MH i2c: E2 0E 00 EF 03 80 0D 02 02 06 00 EC 30 C9 38 1B 48 00 00 F8 [15:18:55]Write i2c OK [15:18:55]MH_I2C_Read... [15:18:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:18:55]Read from MH i2c: E2 [15:18:55]MH_I2C_Read... [15:18:55]Read from MH i2c: E2 03 00 [15:18:55]MH_I2C_Read... [15:18:55]Read from MH i2c: E2 03 00 EF 03 00 90 00 66 [15:18:55]RAPDU: 90 00 [15:18:55]wFMCommunicate OK [15:18:55]wFMCommunicate request_size=4 [15:18:55]MH_SAM_APDU [15:18:55]CAPDU: 80 0D 03 02 [15:18:55]Write to MH i2c: E2 08 00 F0 03 80 0D 03 02 00 00 00 00 6E [15:18:55]Write i2c OK [15:18:55]MH_I2C_Read... [15:18:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:18:55]Read from MH i2c: E2 [15:18:55]MH_I2C_Read... [15:18:55]Read from MH i2c: E2 0B 00 [15:18:55]MH_I2C_Read... [15:18:55]Read from MH i2c: E2 0B 00 F0 03 00 93 9B EA 76 B9 B0 72 EE 90 00 C6 [15:18:55]RAPDU: 93 9B EA 76 B9 B0 72 EE 90 00 [15:18:55]wFMCommunicate OK [15:18:55]SAM_PROTO_SignData done [15:18:55]FM_MakeSignedData done [15:18:55]CreateOFDProtocolMessage [15:18:55]wFMCommunicate request_size=4 [15:18:55]MH_SAM_APDU [15:18:55]CAPDU: 80 11 00 00 [15:18:55]Write to MH i2c: E2 08 00 F1 03 80 11 00 00 00 00 00 00 6E [15:18:55]Write i2c OK [15:18:55]MH_I2C_Read... [15:18:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:18:55]Read from MH i2c: E2 [15:18:55]MH_I2C_Read... [15:18:55]Read from MH i2c: E2 17 00 [15:18:55]MH_I2C_Read... [15:18:55]Read from MH i2c: E2 17 00 F1 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 B9 [15:18:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [15:18:55]wFMCommunicate OK [15:18:55]CreateOFDProtocolMessage done [15:18:55]OFDSenderStorePacket 68615 [15:18:55]StoreOFDPacket docnum=68615 [15:18:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 81 EE 08 01 48 C4 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 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 71 00 00 00 F4 03 04 00 5E 30 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 07 0C 01 00 35 04 06 00 EC 30 C9 38 1B 48 93 9B EA 76 B9 B0 72 EE [15:18:55]CheckFolder [15:18:55]dirname=/storage/ofd_packets [15:18:55]CheckFolder done [15:18:55]ProducePacketName [15:18:55]name=ofd_packets/00068615 [15:18:55]NVStorageSaveData ofd_packets/00068615 [15:18:55]File name is /storage/ofd_packets/00068615 [15:18:55]Write 302 bytes [15:18:55]NVStorageSaveData done [15:18:55]OFDSenderStorePacket done [15:18:55]KKMCreateOFDPacket done [15:18:55]NVStorageSaveData kkm_last_timestamp [15:18:55]File name is /storage/kkm_last_timestamp [15:18:55]Write 4 bytes [15:18:55]NVStorageSaveData done [15:18:55]ExternCall_PrintAddStr [15:18:55]wPrintStart [15:18:55]Write to MH i2c: 01 00 00 F2 03 F5 [15:18:55]Write i2c OK [15:18:55]MH_I2C_Read... [15:18:55]Read from MH i2c: 01 [15:18:55]MH_I2C_Read... [15:18:55]Read from MH i2c: 01 07 00 [15:18:55]MH_I2C_Read... [15:18:55]Read from MH i2c: 01 07 00 F2 03 00 00 00 00 00 FF 0F 0A [15:18:55]RasterBufferAndPrint [15:18:55]line Счет N : (1)706747 [15:18:55]line ИНН: 02508201610067 [15:18:55]line Контрольно-Кассовый Чек [15:18:55]line ПРОДАЖА [15:18:55]line ТРК (МРК, ГНК) : 11 [15:18:55]line Товар: 2710194210 [15:18:55]line ДТ(л)-К-4 [15:18:55]line 27.440 * 72.90 [15:18:55]line = 2000.38 [15:18:55]line НДС 12% НСП 1% [15:18:55]line > о реализуемом товаре [15:18:55]line ОКРУГЛЕНИЕ: -0.38 [15:18:55]line ИТОГО: 2000.00 [15:18:55]line Внесено: 2000.00 [15:18:55]line СДАЧА: 0.00 [15:18:55]line НСП 1% : 17.70 [15:18:55]line НДС 12% : 212.43 [15:18:55]line Наличными: 2000.00 [15:18:55]line Безнал.: 0.00 [15:18:55]line Место: АЗС № 62 "Партнер Нефть" [15:18:55]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [15:18:55]line СНО: Общий режим [15:18:55]line Чек 113 04.06.2024 15:18 [15:18:55]line Смена: 325 ФФД: 1.0 [15:18:55]line ЗНМ: 0300000181 [15:18:55]line РНМ: 0000000000098096 [15:18:55]line Версия ККМ: 001 [15:18:55]line ФМ: 0000000000965400 [15:18:55]line ФД: 68615 [15:18:55]line ФПД: 259694278482760 [15:18:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T151854&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68615&fm=259694278482760&tin=02508201610067®Number=0000000000098096&sum=200000 [15:18:56]OFD Sender: Processing packet 68615 [packets to send 27, broken 26] [15:18:56]ProducePacketName [15:18:56]name=ofd_packets/00068615 [15:18:56]OFD Sender: To server: pG, [15:18:56]CommunicateWithHost lk.salyk.kg:30040 [15:18:56]ConnectInit lk.salyk.kg [15:18:56]written 0, free lines is 4095 [15:18:56]Connected sock=10 [15:18:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 81 EE 08 01 48 C4 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 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 71 00 00 00 F4 03 04 00 5E 30 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 07 0C 01 00 35 04 06 00 EC 30 C9 38 1B 48 93 9B EA 76 B9 B0 72 EE [15:18:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 7D 5D 47 00 CB C0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 07 0C 01 00 F4 03 04 00 57 D7 5E 66 B6 04 01 00 00 55 45 9E B5 CE 8C 40 D8 [15:18:56]CommunicateWithHost err = 0 [15:18:56]CheckOFDResponse [15:18:56]1017 (14) - 77093643461234 [15:18:56]1041 (16) - 0000000000965400 [15:18:56]1040 (4) - 68615 [15:18:56]1012 (4) - 04.06.2024 08:59 [15:18:56]1206 (1) - 0 [15:18:56]OFD Sender: Remove packet 68615 [15:18:56]ProducePacketName [15:18:56]name=ofd_packets/00068615 [15:18:56]NVStorageDeleteData [15:18:56]Write to MH i2c: 01 00 00 1D 04 21 [15:18:56]Write i2c OK [15:18:56]MH_I2C_Read... [15:18:56]Read from MH i2c: 01 [15:18:56]MH_I2C_Read... [15:18:56]Read from MH i2c: 01 07 00 [15:18:56]MH_I2C_Read... [15:18:56]Read from MH i2c: 01 07 00 1D 04 00 00 00 00 00 F0 0C 24 [15:18:56]RasterBufferAndPrint [15:18:56]line [15:18:56]line [15:18:56]line [15:18:56]line [15:18:56]line [15:18:56]written 0, free lines is 3318 [15:18:56]MH_Cut [15:18:56]Write to MH i2c: D1 01 00 24 04 01 FA [15:18:56]Write i2c OK [15:18:56]MH_I2C_Read... [15:18:56]Read from MH i2c: D1 [15:18:56]MH_I2C_Read... [15:18:56]Read from MH i2c: D1 01 00 [15:18:56]MH_I2C_Read... [15:18:56]Read from MH i2c: D1 01 00 24 04 00 F9 [15:18:56]Write to MH i2c: 01 00 00 25 04 29 [15:18:56]Write i2c OK [15:18:56]MH_I2C_Read... [15:18:57]OFD Sender: No OFD packet to send [15:18:57]*** Cut start [15:18:57]*** Partial cut [15:18:57]*** CUTSNS_PIN = 1 [15:18:57]*** CUTSNS_PIN = 0 [15:18:57]*** Brake cut motor [15:18:58]Read from MH i2c: 01 [15:18:58]MH_I2C_Read... [15:18:58]*** Stop cut motor [15:18:58]*** Cut end [15:18:58]Read from MH i2c: 01 07 00 [15:18:58]MH_I2C_Read... [15:18:58]Read from MH i2c: 01 07 00 25 04 00 00 00 00 00 FF 0F 3E [15:18:58]process_action close_receipt done [15:18:58]requested_data is exist [15:18:58]produce_requested_data [15:18:58]requested_item fm.sn is exist - process it [15:18:58]wFMCommunicate request_size=4 [15:18:58]MH_SAM_APDU [15:18:58]CAPDU: 80 11 00 00 [15:18:58]Write to MH i2c: E2 08 00 26 04 80 11 00 00 00 00 00 00 A4 [15:18:58]Write i2c OK [15:18:58]MH_I2C_Read... [15:18:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:18:58]Read from MH i2c: E2 [15:18:58]MH_I2C_Read... [15:18:58]Read from MH i2c: E2 17 00 [15:18:58]MH_I2C_Read... [15:18:58]Read from MH i2c: E2 17 00 26 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 EF [15:18:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [15:18:58]wFMCommunicate OK [15:18:58]requested_item fd.num is exist - process it [15:18:58]SAM_PROTO_GetFieldsCounters [15:18:58]wFMCommunicate request_size=4 [15:18:58]MH_SAM_APDU [15:18:58]CAPDU: 80 13 00 00 [15:18:58]Write to MH i2c: E2 08 00 27 04 80 13 00 00 00 00 00 00 A7 [15:18:58]Write i2c OK [15:18:58]MH_I2C_Read... [15:18:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:18:58]Read from MH i2c: E2 [15:18:58]MH_I2C_Read... [15:18:58]Read from MH i2c: E2 62 00 [15:18:58]MH_I2C_Read... [15:18:58]Read from MH i2c: E2 62 00 27 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 07 0C 01 00 0E 04 04 00 45 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 74 [15:18:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 07 0C 01 00 0E 04 04 00 45 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 [15:18:58]wFMCommunicate OK [15:18:58]SAM_PROTO_GetFieldsCounters done [15:18:58]requested_item shift.num is exist - process it [15:18:58]requested_item shift.opened is exist - process it [15:18:58]req_shift_opened [15:18:58]FM_GetShiftState [15:18:58]SAM_PROTO_GetShiftState [15:18:58]wFMCommunicate request_size=4 [15:18:58]MH_SAM_APDU [15:18:58]CAPDU: 80 13 01 00 [15:18:58]Write to MH i2c: E2 08 00 28 04 80 13 01 00 00 00 00 00 A9 [15:18:58]Write i2c OK [15:18:58]MH_I2C_Read... [15:18:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:18:58]Read from MH i2c: E2 [15:18:58]MH_I2C_Read... [15:18:58]Read from MH i2c: E2 0E 00 [15:18:58]MH_I2C_Read... [15:18:58]Read from MH i2c: E2 0E 00 28 04 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 45 [15:18:58]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [15:18:58]wFMCommunicate OK [15:18:58]SAM_PROTO_GetShiftState done [15:18:58]FM_GetShiftState done [15:18:58]req_shift_opened done [15:18:58]requested_item shift.open_date is exist - process it [15:18:58]req_shift_open_date [15:18:58]req_shift_open_date done [15:18:58]produce_requested_data done [15:18:58]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68615,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [15:18:58]process_action_free close_receipt [15:18:58]json_value_free [15:18:58]json_value_free done [15:18:58]process_json_proto returns [15:18:58]Send response to host [15:18:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68615,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [15:18:58]free response buf [15:18:58]execute_script done [15:18:58]execute_script returns [15:18:58]free content buf [15:18:58]Sock 9.Close socket [15:18:58]Sock 9.Thread stoped [15:19:02]OFD Sender: No OFD packet to send [15:19:07]OFD Sender: No OFD packet to send [15:19:12]OFD Sender: No OFD packet to send [15:19:17]OFD Sender: No OFD packet to send [15:19:22]OFD Sender: No OFD packet to send [15:19:27]OFD Sender: No OFD packet to send [15:19:32]OFD Sender: No OFD packet to send [15:19:37]OFD Sender: No OFD packet to send [15:19:42]OFD Sender: No OFD packet to send [15:19:47]OFD Sender: No OFD packet to send [15:19:52]OFD Sender: No OFD packet to send [15:19:57]OFD Sender: No OFD packet to send [15:20:02]OFD Sender: No OFD packet to send [15:20:07]OFD Sender: No OFD packet to send [15:20:12]OFD Sender: No OFD packet to send [15:20:17]OFD Sender: No OFD packet to send [15:20:22]OFD Sender: No OFD packet to send [15:20:27]OFD Sender: No OFD packet to send [15:20:32]OFD Sender: No OFD packet to send [15:20:37]OFD Sender: No OFD packet to send [15:20:42]OFD Sender: No OFD packet to send [15:20:47]OFD Sender: No OFD packet to send [15:20:52]OFD Sender: No OFD packet to send [15:20:57]OFD Sender: No OFD packet to send [15:21:02]OFD Sender: No OFD packet to send [15:21:07]OFD Sender: No OFD packet to send [15:21:12]OFD Sender: No OFD packet to send [15:21:17]OFD Sender: No OFD packet to send [15:21:22]OFD Sender: No OFD packet to send [15:21:27]OFD Sender: No OFD packet to send [15:21:32]OFD Sender: No OFD packet to send [15:21:37]OFD Sender: No OFD packet to send [15:21:42]OFD Sender: No OFD packet to send [15:21:47]OFD Sender: No OFD packet to send [15:21:52]OFD Sender: No OFD packet to send [15:21:57]OFD Sender: No OFD packet to send [15:22:02]OFD Sender: No OFD packet to send [15:22:07]OFD Sender: No OFD packet to send [15:22:12]OFD Sender: No OFD packet to send [15:22:17]OFD Sender: No OFD packet to send [15:22:20]accept exits with 7 [15:22:20]New connection [15:22:20]New thread 3067153764 created [15:22:20]Thread 3067297124 joined [15:22:20]Waiting for new connection... [15:22:20] Sock 7.Parse request [15:22:20]Sock 7.Check first char [15:22:20]Sock 7.First char is OK [15:22:20]request: POST /json_proto HTTP/1.0 [15:22:20]Method: POST [15:22:20]URL: /json_proto [15:22:20]Method is POST - this is cgi request [15:22:20]url: /json_proto [15:22:20]query_string will be loaded in cgi processing [15:22:20]execute_cgi json_proto POST (null) [15:22:20]execute_cgi path=json_proto method=POST [15:22:20]POST find Content-Length [15:22:20]Host: 172.17.36.132:8080 [15:22:20]Content-Length: 682 [15:22:20]Content-Type: application/json [15:22:20] [15:22:20]POST finish read [15:22:20]Found Content-Length = 682 [15:22:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706748", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:22:20]execute_script... [15:22: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)706748", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:22:20]POST & json_proto [15:22:20]process_json_proto [15:22:20]json parsed OK: [15:22:20]protocol is kg_v1.0 [15:22:20]action value=close_receipt [15:22:20]process_action close_receipt [15:22:20]cmd_close_receipt [15:22:20]MH_GetDate [15:22:20]Write to MH i2c: F0 00 00 29 04 1C [15:22:20]Write i2c OK [15:22:20]MH_I2C_Read... [15:22:20]Read from MH i2c: F0 [15:22:20]MH_I2C_Read... [15:22:20]Read from MH i2c: F0 09 00 [15:22:20]MH_I2C_Read... [15:22:20]Read from MH i2c: F0 09 00 29 04 00 2C 31 5F 66 B2 22 B0 64 2F [15:22:20]GetLastDocTimeStamp 1717514334 [15:22:20]current date 1717514540 [15:22:20]FM_GetShiftState [15:22:20]SAM_PROTO_GetShiftState [15:22:20]wFMCommunicate request_size=4 [15:22:20]MH_SAM_APDU [15:22:20]CAPDU: 80 13 01 00 [15:22:20]Write to MH i2c: E2 08 00 2A 04 80 13 01 00 00 00 00 00 AB [15:22:20]Write i2c OK [15:22:20]MH_I2C_Read... [15:22:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:22:20]Read from MH i2c: E2 [15:22:20]MH_I2C_Read... [15:22:20]Read from MH i2c: E2 0E 00 [15:22:20]MH_I2C_Read... [15:22:20]Read from MH i2c: E2 0E 00 2A 04 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 47 [15:22:20]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [15:22:20]wFMCommunicate OK [15:22:20]SAM_PROTO_GetShiftState done [15:22:20]FM_GetShiftState done [15:22:20]opened in 1717460590 [15:22:20]opened+sec_in_day 1717546990 [15:22:20]quantity*price = 100015 [15:22:20]sum+1 = 100017 [15:22:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 114 04.06.2024 15:22 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68616 ФПД: 172942120931381 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T152220&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68616&fm=172942120931381&tin=02508201610067®Number=0000000000098096&sum=100000 [15:22:21]StoreToDocumentArchive [15:22:21]shift 325 fd 68616 [15:22:21]save to /storage/0325/doc_00068616 [15:22:21]save last doc name /storage/0325/doc_00068616 to /storage/kkm_last_doc_name [15:22:21]save OK [15:22:21]Clear old archive folders... [15:22:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:22:21]tlvbuf is 00A63B10 [15:22:21]SAM_PROTO_ClearQueue [15:22:21]wFMCommunicate request_size=4 [15:22:21]MH_SAM_APDU [15:22:21]CAPDU: 80 09 00 00 [15:22:21]Write to MH i2c: E2 08 00 37 04 80 09 00 00 00 00 00 00 AD [15:22:21]Write i2c OK [15:22:21]MH_I2C_Read... [15:22:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:22:21]Read from MH i2c: E2 [15:22:21]MH_I2C_Read... [15:22:21]Read from MH i2c: E2 03 00 [15:22:21]MH_I2C_Read... [15:22:21]Read from MH i2c: E2 03 00 37 04 00 90 00 AF [15:22:21]RAPDU: 90 00 [15:22:21]wFMCommunicate OK [15:22:21]SAM_PROTO_ClearQueue done [15:22:21]KKMCreateOFDPacket [15:22:21]OFDProtocolAddRootSTLVToBuf [15:22:21]FM_MakeSignedData [15:22:21]FM_MakeSignedData [15:22:21]SAM_PROTO_SignData [15:22:21]wFMCommunicate request_size=4 [15:22:21]MH_SAM_APDU [15:22:21]CAPDU: 80 0D 01 02 [15:22:21]Write to MH i2c: E2 08 00 38 04 80 0D 01 02 00 00 00 00 B5 [15:22:21]Write i2c OK [15:22:21]MH_I2C_Read... [15:22:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:22:21]Read from MH i2c: E2 [15:22:21]MH_I2C_Read... [15:22:21]Read from MH i2c: E2 03 00 [15:22:21]MH_I2C_Read... [15:22:21]Read from MH i2c: E2 03 00 38 04 00 90 00 B0 [15:22:21]RAPDU: 90 00 [15:22:21]wFMCommunicate OK [15:22:21]wFMCommunicate request_size=255 [15:22:21]MH_SAM_APDU [15:22: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 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 2C 31 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 08 0C 01 00 35 04 06 00 9D [15:22:21]Write to MH i2c: E2 02 01 39 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 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 2C 31 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 08 0C 01 00 35 04 06 00 9D 00 00 C8 [15:22:21]Write i2c OK [15:22:21]MH_I2C_Read... [15:22:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:22:21]Read from MH i2c: E2 [15:22:21]MH_I2C_Read... [15:22:21]Read from MH i2c: E2 03 00 [15:22:21]MH_I2C_Read... [15:22:21]Read from MH i2c: E2 03 00 39 04 00 90 00 B1 [15:22:21]RAPDU: 90 00 [15:22:21]wFMCommunicate OK [15:22:21]wFMCommunicate request_size=10 [15:22:21]MH_SAM_APDU [15:22:21]CAPDU: 80 0D 02 02 05 4A 39 AF 50 35 [15:22:21]Write to MH i2c: E2 0D 00 3A 04 80 0D 02 02 05 00 4A 39 AF 50 35 00 00 79 [15:22:21]Write i2c OK [15:22:21]MH_I2C_Read... [15:22:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:22:21]Read from MH i2c: E2 [15:22:21]MH_I2C_Read... [15:22:21]Read from MH i2c: E2 03 00 [15:22:21]MH_I2C_Read... [15:22:21]Read from MH i2c: E2 03 00 3A 04 00 90 00 B2 [15:22:21]RAPDU: 90 00 [15:22:21]wFMCommunicate OK [15:22:21]wFMCommunicate request_size=4 [15:22:21]MH_SAM_APDU [15:22:21]CAPDU: 80 0D 03 02 [15:22:21]Write to MH i2c: E2 08 00 3B 04 80 0D 03 02 00 00 00 00 BA [15:22:21]Write i2c OK [15:22:21]MH_I2C_Read... [15:22:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:22:21]Read from MH i2c: E2 [15:22:21]MH_I2C_Read... [15:22:21]Read from MH i2c: E2 0B 00 [15:22:21]MH_I2C_Read... [15:22:21]Read from MH i2c: E2 0B 00 3B 04 00 C7 17 53 9D E7 28 80 9F 90 00 B7 [15:22:21]RAPDU: C7 17 53 9D E7 28 80 9F 90 00 [15:22:21]wFMCommunicate OK [15:22:21]SAM_PROTO_SignData done [15:22:21]FM_MakeSignedData done [15:22:21]CreateOFDProtocolMessage [15:22:21]wFMCommunicate request_size=4 [15:22:21]MH_SAM_APDU [15:22:21]CAPDU: 80 11 00 00 [15:22:21]Write to MH i2c: E2 08 00 3C 04 80 11 00 00 00 00 00 00 BA [15:22:21]Write i2c OK [15:22:21]MH_I2C_Read... [15:22:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:22:21]Read from MH i2c: E2 [15:22:21]MH_I2C_Read... [15:22:21]Read from MH i2c: E2 17 00 [15:22:21]MH_I2C_Read... [15:22:21]Read from MH i2c: E2 17 00 3C 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 05 [15:22:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [15:22:21]wFMCommunicate OK [15:22:21]CreateOFDProtocolMessage done [15:22:21]OFDSenderStorePacket 68616 [15:22:21]StoreOFDPacket docnum=68616 [15:22:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 D4 0E 07 01 0A ED 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 2C 31 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 08 0C 01 00 35 04 06 00 9D 4A 39 AF 50 35 C7 17 53 9D E7 28 80 9F [15:22:21]CheckFolder [15:22:21]dirname=/storage/ofd_packets [15:22:21]CheckFolder done [15:22:21]ProducePacketName [15:22:21]name=ofd_packets/00068616 [15:22:21]NVStorageSaveData ofd_packets/00068616 [15:22:21]File name is /storage/ofd_packets/00068616 [15:22:21]Write 301 bytes [15:22:21]NVStorageSaveData done [15:22:21]OFDSenderStorePacket done [15:22:21]KKMCreateOFDPacket done [15:22:21]NVStorageSaveData kkm_last_timestamp [15:22:21]File name is /storage/kkm_last_timestamp [15:22:21]Write 4 bytes [15:22:21]NVStorageSaveData done [15:22:21]ExternCall_PrintAddStr [15:22:21]wPrintStart [15:22:21]Write to MH i2c: 01 00 00 3D 04 41 [15:22:21]Write i2c OK [15:22:21]MH_I2C_Read... [15:22:21]Read from MH i2c: 01 [15:22:21]MH_I2C_Read... [15:22:21]Read from MH i2c: 01 07 00 [15:22:21]MH_I2C_Read... [15:22:21]Read from MH i2c: 01 07 00 3D 04 00 00 00 00 00 FF 0F 56 [15:22:21]RasterBufferAndPrint [15:22:21]line Счет N : (1)706748 [15:22:21]line ИНН: 02508201610067 [15:22:21]line Контрольно-Кассовый Чек [15:22:21]line ПРОДАЖА [15:22:21]line ТРК (МРК, ГНК) : 63 [15:22:21]line Товар: 2710124130 [15:22:21]line Аи-92-К-4 [15:22:21]line 14.950 * 66.90 [15:22:21]line = 1000.16 [15:22:21]line НДС 12% НСП 1% [15:22:21]line > о реализуемом товаре [15:22:21]line ОКРУГЛЕНИЕ: -0.16 [15:22:21]line ИТОГО: 1000.00 [15:22:21]line Внесено: 1000.00 [15:22:21]line СДАЧА: 0.00 [15:22:21]line НСП 1% : 8.85 [15:22:21]line НДС 12% : 106.21 [15:22:21]line Наличными: 1000.00 [15:22:21]line Безнал.: 0.00 [15:22:21]line Место: АЗС № 62 "Партнер Нефть" [15:22:21]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [15:22:21]line СНО: Общий режим [15:22:21]line Чек 114 04.06.2024 15:22 [15:22:21]line Смена: 325 ФФД: 1.0 [15:22:21]line ЗНМ: 0300000181 [15:22:21]line РНМ: 0000000000098096 [15:22:21]line Версия ККМ: 001 [15:22:21]line ФМ: 0000000000965400 [15:22:22]line ФД: 68616 [15:22:22]line ФПД: 172942120931381 [15:22:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T152220&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68616&fm=172942120931381&tin=02508201610067®Number=0000000000098096&sum=100000 [15:22:22]OFD Sender: Processing packet 68616 [packets to send 27, broken 26] [15:22:22]ProducePacketName [15:22:22]name=ofd_packets/00068616 [15:22:22]OFD Sender: To server: pG, [15:22:22]CommunicateWithHost lk.salyk.kg:30040 [15:22:22]ConnectInit lk.salyk.kg [15:22:22]written 0, free lines is 4095 [15:22:22]Connected sock=10 [15:22:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 D4 0E 07 01 0A ED 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 2C 31 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 08 0C 01 00 35 04 06 00 9D 4A 39 AF 50 35 C7 17 53 9D E7 28 80 9F [15:22:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 59 BF 47 00 F4 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 39 36 35 34 30 30 10 04 04 00 08 0C 01 00 F4 03 04 00 25 D8 5E 66 B6 04 01 00 00 47 D5 1C 05 D4 C6 CF D9 [15:22:22]CommunicateWithHost err = 0 [15:22:22]CheckOFDResponse [15:22:22]1017 (14) - 77093643461234 [15:22:22]1041 (16) - 0000000000965400 [15:22:22]1040 (4) - 68616 [15:22:22]1012 (4) - 04.06.2024 09:02 [15:22:22]1206 (1) - 0 [15:22:22]OFD Sender: Remove packet 68616 [15:22:22]ProducePacketName [15:22:22]name=ofd_packets/00068616 [15:22:22]NVStorageDeleteData [15:22:22]Write to MH i2c: 01 00 00 68 04 6C [15:22:22]Write i2c OK [15:22:22]MH_I2C_Read... [15:22:22]Read from MH i2c: 01 [15:22:22]MH_I2C_Read... [15:22:22]Read from MH i2c: 01 07 00 [15:22:22]MH_I2C_Read... [15:22:22]Read from MH i2c: 01 07 00 68 04 00 00 00 00 00 D9 0C 58 [15:22:22]RasterBufferAndPrint [15:22:22]line [15:22:22]line [15:22:22]line [15:22:22]line [15:22:22]line [15:22:22]written 0, free lines is 3298 [15:22:22]MH_Cut [15:22:22]Write to MH i2c: D1 01 00 6F 04 01 45 [15:22:22]Write i2c OK [15:22:22]MH_I2C_Read... [15:22:22]Read from MH i2c: D1 [15:22:22]MH_I2C_Read... [15:22:22]Read from MH i2c: D1 01 00 [15:22:22]MH_I2C_Read... [15:22:22]Read from MH i2c: D1 01 00 6F 04 00 44 [15:22:22]Write to MH i2c: 01 00 00 70 04 74 [15:22:22]Write i2c OK [15:22:22]MH_I2C_Read... [15:22:23]OFD Sender: No OFD packet to send [15:22:23]*** Cut start [15:22:23]*** Partial cut [15:22:23]*** CUTSNS_PIN = 1 [15:22:23]*** CUTSNS_PIN = 0 [15:22:23]*** Brake cut motor [15:22:24]Read from MH i2c: 01 [15:22:24]MH_I2C_Read... [15:22:24]*** Stop cut motor [15:22:24]*** Cut end [15:22:24]Read from MH i2c: 01 07 00 [15:22:24]MH_I2C_Read... [15:22:24]Read from MH i2c: 01 07 00 70 04 00 00 00 00 00 FF 0F 89 [15:22:24]process_action close_receipt done [15:22:24]requested_data is exist [15:22:24]produce_requested_data [15:22:24]requested_item fm.sn is exist - process it [15:22:24]wFMCommunicate request_size=4 [15:22:24]MH_SAM_APDU [15:22:24]CAPDU: 80 11 00 00 [15:22:24]Write to MH i2c: E2 08 00 71 04 80 11 00 00 00 00 00 00 EF [15:22:24]Write i2c OK [15:22:24]MH_I2C_Read... [15:22:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:22:24]Read from MH i2c: E2 [15:22:24]MH_I2C_Read... [15:22:24]Read from MH i2c: E2 17 00 [15:22:24]MH_I2C_Read... [15:22:24]Read from MH i2c: E2 17 00 71 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 3A [15:22:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [15:22:24]wFMCommunicate OK [15:22:24]requested_item fd.num is exist - process it [15:22:24]SAM_PROTO_GetFieldsCounters [15:22:24]wFMCommunicate request_size=4 [15:22:24]MH_SAM_APDU [15:22:24]CAPDU: 80 13 00 00 [15:22:24]Write to MH i2c: E2 08 00 72 04 80 13 00 00 00 00 00 00 F2 [15:22:24]Write i2c OK [15:22:24]MH_I2C_Read... [15:22:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:22:24]Read from MH i2c: E2 [15:22:24]MH_I2C_Read... [15:22:24]Read from MH i2c: E2 62 00 [15:22:24]MH_I2C_Read... [15:22:24]Read from MH i2c: E2 62 00 72 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 08 0C 01 00 0E 04 04 00 45 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 C3 [15:22:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 08 0C 01 00 0E 04 04 00 45 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 [15:22:24]wFMCommunicate OK [15:22:24]SAM_PROTO_GetFieldsCounters done [15:22:24]requested_item shift.num is exist - process it [15:22:24]requested_item shift.opened is exist - process it [15:22:24]req_shift_opened [15:22:24]FM_GetShiftState [15:22:24]SAM_PROTO_GetShiftState [15:22:24]wFMCommunicate request_size=4 [15:22:24]MH_SAM_APDU [15:22:24]CAPDU: 80 13 01 00 [15:22:24]Write to MH i2c: E2 08 00 73 04 80 13 01 00 00 00 00 00 F4 [15:22:24]Write i2c OK [15:22:24]MH_I2C_Read... [15:22:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:22:24]Read from MH i2c: E2 [15:22:24]MH_I2C_Read... [15:22:24]Read from MH i2c: E2 0E 00 [15:22:24]MH_I2C_Read... [15:22:24]Read from MH i2c: E2 0E 00 73 04 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 90 [15:22:24]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [15:22:24]wFMCommunicate OK [15:22:24]SAM_PROTO_GetShiftState done [15:22:24]FM_GetShiftState done [15:22:24]req_shift_opened done [15:22:24]requested_item shift.open_date is exist - process it [15:22:24]req_shift_open_date [15:22:24]req_shift_open_date done [15:22:24]produce_requested_data done [15:22:24]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68616,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [15:22:24]process_action_free close_receipt [15:22:24]json_value_free [15:22:24]json_value_free done [15:22:24]process_json_proto returns [15:22:24]Send response to host [15:22:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68616,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [15:22:24]free response buf [15:22:24]execute_script done [15:22:24]execute_script returns [15:22:24]free content buf [15:22:24]Sock 7.Close socket [15:22:24]Sock 7.Thread stoped [15:22:28]OFD Sender: No OFD packet to send [15:22:33]OFD Sender: No OFD packet to send [15:22:38]OFD Sender: No OFD packet to send [15:22:43]OFD Sender: No OFD packet to send [15:22:48]OFD Sender: No OFD packet to send [15:22:53]OFD Sender: No OFD packet to send [15:22:58]OFD Sender: No OFD packet to send [15:23:03]OFD Sender: No OFD packet to send [15:23:08]OFD Sender: No OFD packet to send [15:23:13]OFD Sender: No OFD packet to send [15:23:15]accept exits with 9 [15:23:15]New connection [15:23:15]New thread 3067297124 created [15:23:15]Thread 3067153764 joined [15:23:15]Waiting for new connection... [15:23:15] Sock 9.Parse request [15:23:15]Sock 9.Check first char [15:23:15]Sock 9.First char is OK [15:23:15]request: POST /json_proto HTTP/1.0 [15:23:15]Method: POST [15:23:15]URL: /json_proto [15:23:15]Method is POST - this is cgi request [15:23:15]url: /json_proto [15:23:15]query_string will be loaded in cgi processing [15:23:15]execute_cgi json_proto POST (null) [15:23:15]execute_cgi path=json_proto method=POST [15:23:15]POST find Content-Length [15:23:15]Host: 172.17.36.132:8080 [15:23:15]Content-Length: 677 [15:23:15]Content-Type: application/json [15:23:15] [15:23:15]POST finish read [15:23:15]Found Content-Length = 677 [15:23:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706749", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:23:15]execute_script... [15:23: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)706749", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:23:15]POST & json_proto [15:23:15]process_json_proto [15:23:15]json parsed OK: [15:23:15]protocol is kg_v1.0 [15:23:15]action value=close_receipt [15:23:15]process_action close_receipt [15:23:15]cmd_close_receipt [15:23:15]MH_GetDate [15:23:15]Write to MH i2c: F0 00 00 74 04 67 [15:23:15]Write i2c OK [15:23:15]MH_I2C_Read... [15:23:15]Read from MH i2c: F0 [15:23:15]MH_I2C_Read... [15:23:15]Read from MH i2c: F0 09 00 [15:23:15]MH_I2C_Read... [15:23:15]Read from MH i2c: F0 09 00 74 04 00 63 31 5F 66 B2 22 B0 64 B1 [15:23:15]GetLastDocTimeStamp 1717514540 [15:23:15]current date 1717514595 [15:23:15]FM_GetShiftState [15:23:15]SAM_PROTO_GetShiftState [15:23:15]wFMCommunicate request_size=4 [15:23:15]MH_SAM_APDU [15:23:15]CAPDU: 80 13 01 00 [15:23:15]Write to MH i2c: E2 08 00 75 04 80 13 01 00 00 00 00 00 F6 [15:23:15]Write i2c OK [15:23:15]MH_I2C_Read... [15:23:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:23:15]Read from MH i2c: E2 [15:23:15]MH_I2C_Read... [15:23:15]Read from MH i2c: E2 0E 00 [15:23:15]MH_I2C_Read... [15:23:15]Read from MH i2c: E2 0E 00 75 04 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 92 [15:23:15]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [15:23:15]wFMCommunicate OK [15:23:15]SAM_PROTO_GetShiftState done [15:23:15]FM_GetShiftState done [15:23:15]opened in 1717460590 [15:23:15]opened+sec_in_day 1717546990 [15:23:15]quantity*price = 50041 [15:23:15]sum+1 = 50042 [15:23:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 115 04.06.2024 15:23 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68617 ФПД: 96987955979837 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T152315&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68617&fm=96987955979837&tin=02508201610067®Number=0000000000098096&sum=50000 [15:23:16]StoreToDocumentArchive [15:23:16]shift 325 fd 68617 [15:23:16]save to /storage/0325/doc_00068617 [15:23:16]save last doc name /storage/0325/doc_00068617 to /storage/kkm_last_doc_name [15:23:16]save OK [15:23:16]Clear old archive folders... [15:23:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:23:16]tlvbuf is 00A54AF0 [15:23:16]SAM_PROTO_ClearQueue [15:23:16]wFMCommunicate request_size=4 [15:23:16]MH_SAM_APDU [15:23:16]CAPDU: 80 09 00 00 [15:23:16]Write to MH i2c: E2 08 00 82 04 80 09 00 00 00 00 00 00 F8 [15:23:16]Write i2c OK [15:23:16]MH_I2C_Read... [15:23:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:23:16]Read from MH i2c: E2 [15:23:16]MH_I2C_Read... [15:23:16]Read from MH i2c: E2 03 00 [15:23:16]MH_I2C_Read... [15:23:16]Read from MH i2c: E2 03 00 82 04 00 90 00 FA [15:23:16]RAPDU: 90 00 [15:23:16]wFMCommunicate OK [15:23:16]SAM_PROTO_ClearQueue done [15:23:16]KKMCreateOFDPacket [15:23:16]OFDProtocolAddRootSTLVToBuf [15:23:16]FM_MakeSignedData [15:23:16]FM_MakeSignedData [15:23:16]SAM_PROTO_SignData [15:23:16]wFMCommunicate request_size=4 [15:23:16]MH_SAM_APDU [15:23:16]CAPDU: 80 0D 01 02 [15:23:16]Write to MH i2c: E2 08 00 83 04 80 0D 01 02 00 00 00 00 00 [15:23:16]Write i2c OK [15:23:16]MH_I2C_Read... [15:23:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:23:16]Read from MH i2c: E2 [15:23:16]MH_I2C_Read... [15:23:16]Read from MH i2c: E2 03 00 [15:23:16]MH_I2C_Read... [15:23:16]Read from MH i2c: E2 03 00 83 04 00 90 00 FB [15:23:16]RAPDU: 90 00 [15:23:16]wFMCommunicate OK [15:23:16]wFMCommunicate request_size=255 [15:23:16]MH_SAM_APDU [15:23:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 63 31 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 09 0C 01 00 35 04 06 00 58 [15:23:16]Write to MH i2c: E2 02 01 84 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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 63 31 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 09 0C 01 00 35 04 06 00 58 00 00 0D [15:23:16]Write i2c OK [15:23:16]MH_I2C_Read... [15:23:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:23:16]Read from MH i2c: E2 [15:23:16]MH_I2C_Read... [15:23:16]Read from MH i2c: E2 03 00 [15:23:16]MH_I2C_Read... [15:23:16]Read from MH i2c: E2 03 00 84 04 00 90 00 FC [15:23:16]RAPDU: 90 00 [15:23:16]wFMCommunicate OK [15:23:16]wFMCommunicate request_size=10 [15:23:16]MH_SAM_APDU [15:23:16]CAPDU: 80 0D 02 02 05 35 C4 A9 E6 3D [15:23:16]Write to MH i2c: E2 0D 00 85 04 80 0D 02 02 05 00 35 C4 A9 E6 3D 00 00 D2 [15:23:16]Write i2c OK [15:23:16]MH_I2C_Read... [15:23:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:23:16]Read from MH i2c: E2 [15:23:16]MH_I2C_Read... [15:23:16]Read from MH i2c: E2 03 00 [15:23:16]MH_I2C_Read... [15:23:16]Read from MH i2c: E2 03 00 85 04 00 90 00 FD [15:23:16]RAPDU: 90 00 [15:23:16]wFMCommunicate OK [15:23:16]wFMCommunicate request_size=4 [15:23:16]MH_SAM_APDU [15:23:16]CAPDU: 80 0D 03 02 [15:23:16]Write to MH i2c: E2 08 00 86 04 80 0D 03 02 00 00 00 00 05 [15:23:16]Write i2c OK [15:23:16]MH_I2C_Read... [15:23:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:23:16]Read from MH i2c: E2 [15:23:16]MH_I2C_Read... [15:23:16]Read from MH i2c: E2 0B 00 [15:23:16]MH_I2C_Read... [15:23:16]Read from MH i2c: E2 0B 00 86 04 00 E1 80 CD CA 4F 06 79 FB 90 00 C7 [15:23:16]RAPDU: E1 80 CD CA 4F 06 79 FB 90 00 [15:23:16]wFMCommunicate OK [15:23:16]SAM_PROTO_SignData done [15:23:16]FM_MakeSignedData done [15:23:16]CreateOFDProtocolMessage [15:23:16]wFMCommunicate request_size=4 [15:23:16]MH_SAM_APDU [15:23:16]CAPDU: 80 11 00 00 [15:23:16]Write to MH i2c: E2 08 00 87 04 80 11 00 00 00 00 00 00 05 [15:23:16]Write i2c OK [15:23:16]MH_I2C_Read... [15:23:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:23:16]Read from MH i2c: E2 [15:23:16]MH_I2C_Read... [15:23:16]Read from MH i2c: E2 17 00 [15:23:16]MH_I2C_Read... [15:23:16]Read from MH i2c: E2 17 00 87 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 50 [15:23:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [15:23:16]wFMCommunicate OK [15:23:16]CreateOFDProtocolMessage done [15:23:16]OFDSenderStorePacket 68617 [15:23:16]StoreOFDPacket docnum=68617 [15:23:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 B2 5B 07 01 C4 7C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 63 31 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 09 0C 01 00 35 04 06 00 58 35 C4 A9 E6 3D E1 80 CD CA 4F 06 79 FB [15:23:16]CheckFolder [15:23:16]dirname=/storage/ofd_packets [15:23:16]CheckFolder done [15:23:16]ProducePacketName [15:23:16]name=ofd_packets/00068617 [15:23:16]NVStorageSaveData ofd_packets/00068617 [15:23:16]File name is /storage/ofd_packets/00068617 [15:23:16]Write 301 bytes [15:23:16]NVStorageSaveData done [15:23:16]OFDSenderStorePacket done [15:23:16]KKMCreateOFDPacket done [15:23:16]NVStorageSaveData kkm_last_timestamp [15:23:16]File name is /storage/kkm_last_timestamp [15:23:16]Write 4 bytes [15:23:16]NVStorageSaveData done [15:23:16]ExternCall_PrintAddStr [15:23:16]wPrintStart [15:23:16]Write to MH i2c: 01 00 00 88 04 8C [15:23:16]Write i2c OK [15:23:16]MH_I2C_Read... [15:23:16]Read from MH i2c: 01 [15:23:16]MH_I2C_Read... [15:23:16]Read from MH i2c: 01 07 00 [15:23:16]MH_I2C_Read... [15:23:16]Read from MH i2c: 01 07 00 88 04 00 00 00 00 00 FF 0F A1 [15:23:16]RasterBufferAndPrint [15:23:16]line Счет N : (1)706749 [15:23:16]line ИНН: 02508201610067 [15:23:16]line Контрольно-Кассовый Чек [15:23:16]line ПРОДАЖА [15:23:16]line ТРК (МРК, ГНК) : 42 [15:23:16]line Товар: 2710124130 [15:23:16]line Аи-92-К-4 [15:23:16]line 7.480 * 66.90 [15:23:16]line = 500.41 [15:23:16]line НДС 12% НСП 1% [15:23:16]line > о реализуемом товаре [15:23:16]line ОКРУГЛЕНИЕ: -0.41 [15:23:16]line ИТОГО: 500.00 [15:23:16]line Внесено: 500.00 [15:23:16]line СДАЧА: 0.00 [15:23:16]line НСП 1% : 4.43 [15:23:16]line НДС 12% : 53.14 [15:23:16]line Наличными: 500.00 [15:23:16]line Безнал.: 0.00 [15:23:16]line Место: АЗС № 62 "Партнер Нефть" [15:23:16]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [15:23:16]line СНО: Общий режим [15:23:16]line Чек 115 04.06.2024 15:23 [15:23:16]line Смена: 325 ФФД: 1.0 [15:23:16]line ЗНМ: 0300000181 [15:23:16]line РНМ: 0000000000098096 [15:23:16]line Версия ККМ: 001 [15:23:16]line ФМ: 0000000000965400 [15:23:16]line ФД: 68617 [15:23:16]line ФПД: 96987955979837 [15:23:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T152315&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68617&fm=96987955979837&tin=02508201610067®Number=0000000000098096&sum=50000 [15:23:17]OFD Sender: Processing packet 68617 [packets to send 27, broken 26] [15:23:17]ProducePacketName [15:23:17]name=ofd_packets/00068617 [15:23:17]OFD Sender: To server: pG, [15:23:17]CommunicateWithHost lk.salyk.kg:30040 [15:23:17]ConnectInit lk.salyk.kg [15:23:17]written 0, free lines is 4095 [15:23:17]Connected sock=10 [15:23:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 B2 5B 07 01 C4 7C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 63 31 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 09 0C 01 00 35 04 06 00 58 35 C4 A9 E6 3D E1 80 CD CA 4F 06 79 FB [15:23:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 5C 8A 47 00 68 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 39 36 35 34 30 30 10 04 04 00 09 0C 01 00 F4 03 04 00 5B D8 5E 66 B6 04 01 00 00 56 FD 22 43 89 BA 79 60 [15:23:17]CommunicateWithHost err = 0 [15:23:17]CheckOFDResponse [15:23:17]1017 (14) - 77093643461234 [15:23:17]1041 (16) - 0000000000965400 [15:23:17]1040 (4) - 68617 [15:23:17]1012 (4) - 04.06.2024 09:03 [15:23:17]1206 (1) - 0 [15:23:17]OFD Sender: Remove packet 68617 [15:23:17]ProducePacketName [15:23:17]name=ofd_packets/00068617 [15:23:17]NVStorageDeleteData [15:23:17]Write to MH i2c: 01 00 00 B3 04 B7 [15:23:17]Write i2c OK [15:23:17]MH_I2C_Read... [15:23:17]Read from MH i2c: 01 [15:23:17]MH_I2C_Read... [15:23:17]Read from MH i2c: 01 07 00 [15:23:17]MH_I2C_Read... [15:23:17]Read from MH i2c: 01 07 00 B3 04 00 00 00 00 00 E6 0C B0 [15:23:17]RasterBufferAndPrint [15:23:17]line [15:23:17]line [15:23:17]line [15:23:17]line [15:23:17]line [15:23:17]written 0, free lines is 3308 [15:23:17]MH_Cut [15:23:17]Write to MH i2c: D1 01 00 BA 04 01 90 [15:23:17]Write i2c OK [15:23:17]MH_I2C_Read... [15:23:17]Read from MH i2c: D1 [15:23:17]MH_I2C_Read... [15:23:17]Read from MH i2c: D1 01 00 [15:23:17]MH_I2C_Read... [15:23:17]Read from MH i2c: D1 01 00 BA 04 00 8F [15:23:17]Write to MH i2c: 01 00 00 BB 04 BF [15:23:17]Write i2c OK [15:23:17]MH_I2C_Read... [15:23:17]OFD Sender: No OFD packet to send [15:23:18]*** Cut start [15:23:18]*** Partial cut [15:23:18]*** CUTSNS_PIN = 1 [15:23:18]*** CUTSNS_PIN = 0 [15:23:18]*** Brake cut motor [15:23:18]Read from MH i2c: 01 [15:23:18]MH_I2C_Read... [15:23:18]*** Stop cut motor [15:23:18]*** Cut end [15:23:18]Read from MH i2c: 01 07 00 [15:23:18]MH_I2C_Read... [15:23:18]Read from MH i2c: 01 07 00 BB 04 00 00 00 00 00 FF 0F D4 [15:23:18]process_action close_receipt done [15:23:18]requested_data is exist [15:23:18]produce_requested_data [15:23:18]requested_item fm.sn is exist - process it [15:23:18]wFMCommunicate request_size=4 [15:23:18]MH_SAM_APDU [15:23:18]CAPDU: 80 11 00 00 [15:23:18]Write to MH i2c: E2 08 00 BC 04 80 11 00 00 00 00 00 00 3A [15:23:18]Write i2c OK [15:23:18]MH_I2C_Read... [15:23:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:23:19]Read from MH i2c: E2 [15:23:19]MH_I2C_Read... [15:23:19]Read from MH i2c: E2 17 00 [15:23:19]MH_I2C_Read... [15:23:19]Read from MH i2c: E2 17 00 BC 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 85 [15:23:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [15:23:19]wFMCommunicate OK [15:23:19]requested_item fd.num is exist - process it [15:23:19]SAM_PROTO_GetFieldsCounters [15:23:19]wFMCommunicate request_size=4 [15:23:19]MH_SAM_APDU [15:23:19]CAPDU: 80 13 00 00 [15:23:19]Write to MH i2c: E2 08 00 BD 04 80 13 00 00 00 00 00 00 3D [15:23:19]Write i2c OK [15:23:19]MH_I2C_Read... [15:23:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:23:19]Read from MH i2c: E2 [15:23:19]MH_I2C_Read... [15:23:19]Read from MH i2c: E2 62 00 [15:23:19]MH_I2C_Read... [15:23:19]Read from MH i2c: E2 62 00 BD 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 09 0C 01 00 0E 04 04 00 45 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 12 [15:23:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 09 0C 01 00 0E 04 04 00 45 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 [15:23:19]wFMCommunicate OK [15:23:19]SAM_PROTO_GetFieldsCounters done [15:23:19]requested_item shift.num is exist - process it [15:23:19]requested_item shift.opened is exist - process it [15:23:19]req_shift_opened [15:23:19]FM_GetShiftState [15:23:19]SAM_PROTO_GetShiftState [15:23:19]wFMCommunicate request_size=4 [15:23:19]MH_SAM_APDU [15:23:19]CAPDU: 80 13 01 00 [15:23:19]Write to MH i2c: E2 08 00 BE 04 80 13 01 00 00 00 00 00 3F [15:23:19]Write i2c OK [15:23:19]MH_I2C_Read... [15:23:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:23:19]Read from MH i2c: E2 [15:23:19]MH_I2C_Read... [15:23:19]Read from MH i2c: E2 0E 00 [15:23:19]MH_I2C_Read... [15:23:19]Read from MH i2c: E2 0E 00 BE 04 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 DB [15:23:19]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [15:23:19]wFMCommunicate OK [15:23:19]SAM_PROTO_GetShiftState done [15:23:19]FM_GetShiftState done [15:23:19]req_shift_opened done [15:23:19]requested_item shift.open_date is exist - process it [15:23:19]req_shift_open_date [15:23:19]req_shift_open_date done [15:23:19]produce_requested_data done [15:23:19]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68617,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [15:23:19]process_action_free close_receipt [15:23:19]json_value_free [15:23:19]json_value_free done [15:23:19]process_json_proto returns [15:23:19]Send response to host [15:23:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68617,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [15:23:19]free response buf [15:23:19]execute_script done [15:23:19]execute_script returns [15:23:19]free content buf [15:23:19]Sock 9.Close socket [15:23:19]Sock 9.Thread stoped [15:23:22]OFD Sender: No OFD packet to send [15:23:27]OFD Sender: No OFD packet to send [15:23:32]OFD Sender: No OFD packet to send [15:23:37]OFD Sender: No OFD packet to send [15:23:42]OFD Sender: No OFD packet to send [15:23:47]OFD Sender: No OFD packet to send [15:23:52]OFD Sender: No OFD packet to send [15:23:57]OFD Sender: No OFD packet to send [15:24:02]OFD Sender: No OFD packet to send [15:24:07]OFD Sender: No OFD packet to send [15:24:12]OFD Sender: No OFD packet to send [15:24:17]OFD Sender: No OFD packet to send [15:24:22]OFD Sender: No OFD packet to send [15:24:27]OFD Sender: No OFD packet to send [15:24:32]OFD Sender: No OFD packet to send [15:24:37]OFD Sender: No OFD packet to send [15:24:42]OFD Sender: No OFD packet to send [15:24:47]OFD Sender: No OFD packet to send [15:24:52]OFD Sender: No OFD packet to send [15:24:57]OFD Sender: No OFD packet to send [15:25:02]OFD Sender: No OFD packet to send [15:25:07]OFD Sender: No OFD packet to send [15:25:12]OFD Sender: No OFD packet to send [15:25:17]OFD Sender: No OFD packet to send [15:25:22]OFD Sender: No OFD packet to send [15:25:27]OFD Sender: No OFD packet to send [15:25:32]OFD Sender: No OFD packet to send [15:25:38]OFD Sender: No OFD packet to send [15:25:43]OFD Sender: No OFD packet to send [15:25:48]OFD Sender: No OFD packet to send [15:25:53]OFD Sender: No OFD packet to send [15:25:58]OFD Sender: No OFD packet to send [15:26:03]OFD Sender: No OFD packet to send [15:26:08]OFD Sender: No OFD packet to send [15:26:13]OFD Sender: No OFD packet to send [15:26:18]OFD Sender: No OFD packet to send [15:26:23]OFD Sender: No OFD packet to send [15:26:28]OFD Sender: No OFD packet to send [15:26:33]OFD Sender: No OFD packet to send [15:26:38]OFD Sender: No OFD packet to send [15:26:43]OFD Sender: No OFD packet to send [15:26:48]OFD Sender: No OFD packet to send [15:26:53]OFD Sender: No OFD packet to send [15:26:58]OFD Sender: No OFD packet to send [15:27:03]OFD Sender: No OFD packet to send [15:27:08]OFD Sender: No OFD packet to send [15:27:13]OFD Sender: No OFD packet to send [15:27:18]OFD Sender: No OFD packet to send [15:27:23]OFD Sender: No OFD packet to send [15:27:28]OFD Sender: No OFD packet to send [15:27:33]OFD Sender: No OFD packet to send [15:27:38]OFD Sender: No OFD packet to send [15:27:43]OFD Sender: No OFD packet to send [15:27:48]OFD Sender: No OFD packet to send [15:27:53]OFD Sender: No OFD packet to send [15:27:58]OFD Sender: No OFD packet to send [15:28:03]OFD Sender: No OFD packet to send [15:28:08]OFD Sender: No OFD packet to send [15:28:13]OFD Sender: No OFD packet to send [15:28:18]OFD Sender: No OFD packet to send [15:28:23]OFD Sender: No OFD packet to send [15:28:28]OFD Sender: No OFD packet to send [15:28:33]OFD Sender: No OFD packet to send [15:28:38]OFD Sender: No OFD packet to send [15:28:43]OFD Sender: No OFD packet to send [15:28:48]OFD Sender: No OFD packet to send [15:28:53]OFD Sender: No OFD packet to send [15:28:58]OFD Sender: No OFD packet to send [15:29:03]OFD Sender: No OFD packet to send [15:29:08]OFD Sender: No OFD packet to send [15:29:13]OFD Sender: No OFD packet to send [15:29:18]OFD Sender: No OFD packet to send [15:29:23]OFD Sender: No OFD packet to send [15:29:28]OFD Sender: No OFD packet to send [15:29:33]OFD Sender: No OFD packet to send [15:29:38]OFD Sender: No OFD packet to send [15:29:43]OFD Sender: No OFD packet to send [15:29:48]OFD Sender: No OFD packet to send [15:29:53]OFD Sender: No OFD packet to send [15:29:58]OFD Sender: No OFD packet to send [15:30:03]OFD Sender: No OFD packet to send [15:30:08]OFD Sender: No OFD packet to send [15:30:13]OFD Sender: No OFD packet to send [15:30:18]OFD Sender: No OFD packet to send [15:30:23]OFD Sender: No OFD packet to send [15:30:28]OFD Sender: No OFD packet to send [15:30:33]OFD Sender: No OFD packet to send [15:30:38]OFD Sender: No OFD packet to send [15:30:43]OFD Sender: No OFD packet to send [15:30:48]OFD Sender: No OFD packet to send [15:30:53]OFD Sender: No OFD packet to send [15:30:58]OFD Sender: No OFD packet to send [15:31:03]OFD Sender: No OFD packet to send [15:31:08]OFD Sender: No OFD packet to send [15:31:13]OFD Sender: No OFD packet to send [15:31:18]OFD Sender: No OFD packet to send [15:31:23]OFD Sender: No OFD packet to send [15:31:28]OFD Sender: No OFD packet to send [15:31:33]OFD Sender: No OFD packet to send [15:31:38]OFD Sender: No OFD packet to send [15:31:43]OFD Sender: No OFD packet to send [15:31:48]OFD Sender: No OFD packet to send [15:31:53]OFD Sender: No OFD packet to send [15:31:58]OFD Sender: No OFD packet to send [15:32:03]OFD Sender: No OFD packet to send [15:32:08]OFD Sender: No OFD packet to send [15:32:13]OFD Sender: No OFD packet to send [15:32:18]OFD Sender: No OFD packet to send [15:32:23]OFD Sender: No OFD packet to send [15:32:28]OFD Sender: No OFD packet to send [15:32:33]OFD Sender: No OFD packet to send [15:32:38]OFD Sender: No OFD packet to send [15:32:43]OFD Sender: No OFD packet to send [15:32:48]OFD Sender: No OFD packet to send [15:32:53]OFD Sender: No OFD packet to send [15:32:58]OFD Sender: No OFD packet to send [15:33:03]OFD Sender: No OFD packet to send [15:33:08]OFD Sender: No OFD packet to send [15:33:13]OFD Sender: No OFD packet to send [15:33:18]OFD Sender: No OFD packet to send [15:33:23]OFD Sender: No OFD packet to send [15:33:28]OFD Sender: No OFD packet to send [15:33:33]OFD Sender: No OFD packet to send [15:33:38]OFD Sender: No OFD packet to send [15:33:43]OFD Sender: No OFD packet to send [15:33:48]OFD Sender: No OFD packet to send [15:33:53]OFD Sender: No OFD packet to send [15:33:58]OFD Sender: No OFD packet to send [15:34:03]OFD Sender: No OFD packet to send [15:34:08]OFD Sender: No OFD packet to send [15:34:13]OFD Sender: No OFD packet to send [15:34:18]OFD Sender: No OFD packet to send [15:34:23]OFD Sender: No OFD packet to send [15:34:28]OFD Sender: No OFD packet to send [15:34:33]OFD Sender: No OFD packet to send [15:34:38]OFD Sender: No OFD packet to send [15:34:43]OFD Sender: No OFD packet to send [15:34:48]OFD Sender: No OFD packet to send [15:34:53]OFD Sender: No OFD packet to send [15:34:58]OFD Sender: No OFD packet to send [15:35:03]OFD Sender: No OFD packet to send [15:35:08]OFD Sender: No OFD packet to send [15:35:13]OFD Sender: No OFD packet to send [15:35:18]OFD Sender: No OFD packet to send [15:35:23]OFD Sender: No OFD packet to send [15:35:28]OFD Sender: No OFD packet to send [15:35:33]OFD Sender: No OFD packet to send [15:35:38]OFD Sender: No OFD packet to send [15:35:40]accept exits with 7 [15:35:40]New connection [15:35:40]New thread 3067153764 created [15:35:40]Thread 3067297124 joined [15:35:40]Waiting for new connection... [15:35:40] Sock 7.Parse request [15:35:40]Sock 7.Check first char [15:35:40]Sock 7.First char is OK [15:35:40]request: POST /json_proto HTTP/1.0 [15:35:40]Method: POST [15:35:40]URL: /json_proto [15:35:40]Method is POST - this is cgi request [15:35:40]url: /json_proto [15:35:40]query_string will be loaded in cgi processing [15:35:40]execute_cgi json_proto POST (null) [15:35:40]execute_cgi path=json_proto method=POST [15:35:40]POST find Content-Length [15:35:40]Host: 172.17.36.132:8080 [15:35:40]Content-Length: 678 [15:35:40]Content-Type: application/json [15:35:40] [15:35:40]POST finish read [15:35:40]Found Content-Length = 678 [15:35:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706750", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 12.110, "sum" : 810.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 810.00, "total" : 810.00, "payments": [ { "type": 0, "sum" : 810.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:35:40]execute_script... [15:35: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)706750", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 12.110, "sum" : 810.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 810.00, "total" : 810.00, "payments": [ { "type": 0, "sum" : 810.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:35:40]POST & json_proto [15:35:40]process_json_proto [15:35:40]json parsed OK: [15:35:40]protocol is kg_v1.0 [15:35:40]action value=close_receipt [15:35:40]process_action close_receipt [15:35:40]cmd_close_receipt [15:35:40]MH_GetDate [15:35:40]Write to MH i2c: F0 00 00 BF 04 B2 [15:35:40]Write i2c OK [15:35:40]MH_I2C_Read... [15:35:40]Read from MH i2c: F0 [15:35:40]MH_I2C_Read... [15:35:40]Read from MH i2c: F0 09 00 [15:35:40]MH_I2C_Read... [15:35:40]Read from MH i2c: F0 09 00 BF 04 00 4D 34 5F 66 B2 22 B0 64 E9 [15:35:40]GetLastDocTimeStamp 1717514595 [15:35:40]current date 1717515341 [15:35:40]FM_GetShiftState [15:35:40]SAM_PROTO_GetShiftState [15:35:40]wFMCommunicate request_size=4 [15:35:40]MH_SAM_APDU [15:35:40]CAPDU: 80 13 01 00 [15:35:40]Write to MH i2c: E2 08 00 C0 04 80 13 01 00 00 00 00 00 41 [15:35:40]Write i2c OK [15:35:40]MH_I2C_Read... [15:35:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:35:40]Read from MH i2c: E2 [15:35:40]MH_I2C_Read... [15:35:40]Read from MH i2c: E2 0E 00 [15:35:40]MH_I2C_Read... [15:35:40]Read from MH i2c: E2 0E 00 C0 04 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 DD [15:35:40]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [15:35:40]wFMCommunicate OK [15:35:40]SAM_PROTO_GetShiftState done [15:35:40]FM_GetShiftState done [15:35:40]opened in 1717460590 [15:35:40]opened+sec_in_day 1717546990 [15:35:40]quantity*price = 81015 [15:35:40]sum+1 = 81017 [15:35:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 810.00 Внесено: 810.00 СДАЧА: 0.00 НСП 1% : 7.17 НДС 12% : 86.03 Наличными: 810.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 116 04.06.2024 15:35 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68618 ФПД: 261845870137738 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T153541&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68618&fm=261845870137738&tin=02508201610067®Number=0000000000098096&sum=81000 [15:35:41]StoreToDocumentArchive [15:35:41]shift 325 fd 68618 [15:35:41]save to /storage/0325/doc_00068618 [15:35:41]save last doc name /storage/0325/doc_00068618 to /storage/kkm_last_doc_name [15:35:41]save OK [15:35:41]Clear old archive folders... [15:35:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:35:41]tlvbuf is 00A68420 [15:35:41]SAM_PROTO_ClearQueue [15:35:41]wFMCommunicate request_size=4 [15:35:41]MH_SAM_APDU [15:35:41]CAPDU: 80 09 00 00 [15:35:41]Write to MH i2c: E2 08 00 CD 04 80 09 00 00 00 00 00 00 43 [15:35:41]Write i2c OK [15:35:41]MH_I2C_Read... [15:35:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:35:41]Read from MH i2c: E2 [15:35:41]MH_I2C_Read... [15:35:41]Read from MH i2c: E2 03 00 [15:35:41]MH_I2C_Read... [15:35:41]Read from MH i2c: E2 03 00 CD 04 00 90 00 45 [15:35:41]RAPDU: 90 00 [15:35:41]wFMCommunicate OK [15:35:41]SAM_PROTO_ClearQueue done [15:35:41]KKMCreateOFDPacket [15:35:41]OFDProtocolAddRootSTLVToBuf [15:35:41]FM_MakeSignedData [15:35:41]FM_MakeSignedData [15:35:41]SAM_PROTO_SignData [15:35:41]wFMCommunicate request_size=4 [15:35:41]MH_SAM_APDU [15:35:41]CAPDU: 80 0D 01 02 [15:35:41]Write to MH i2c: E2 08 00 CE 04 80 0D 01 02 00 00 00 00 4B [15:35:41]Write i2c OK [15:35:41]MH_I2C_Read... [15:35:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:35:41]Read from MH i2c: E2 [15:35:41]MH_I2C_Read... [15:35:41]Read from MH i2c: E2 03 00 [15:35:41]MH_I2C_Read... [15:35:41]Read from MH i2c: E2 03 00 CE 04 00 90 00 46 [15:35:41]RAPDU: 90 00 [15:35:41]wFMCommunicate OK [15:35:41]wFMCommunicate request_size=255 [15:35:41]MH_SAM_APDU [15:35: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 34 FF 03 08 00 03 4E 2F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 78 3C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 3C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 21 00 00 00 00 07 04 06 00 68 3C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 4D 34 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 0A 0C 01 00 35 04 06 00 EE [15:35:41]Write to MH i2c: E2 02 01 CF 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 34 FF 03 08 00 03 4E 2F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 78 3C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 3C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 21 00 00 00 00 07 04 06 00 68 3C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 4D 34 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 0A 0C 01 00 35 04 06 00 EE 00 00 9B [15:35:41]Write i2c OK [15:35:41]MH_I2C_Read... [15:35:42]Read from MH i2c: E2 [15:35:42]MH_I2C_Read... [15:35:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:35:42]Read from MH i2c: E2 03 00 [15:35:42]MH_I2C_Read... [15:35:42]Read from MH i2c: E2 03 00 CF 04 00 90 00 47 [15:35:42]RAPDU: 90 00 [15:35:42]wFMCommunicate OK [15:35:42]wFMCommunicate request_size=10 [15:35:42]MH_SAM_APDU [15:35:42]CAPDU: 80 0D 02 02 05 25 BE 13 51 8A [15:35:42]Write to MH i2c: E2 0D 00 D0 04 80 0D 02 02 05 00 25 BE 13 51 8A 00 00 29 [15:35:42]Write i2c OK [15:35:42]MH_I2C_Read... [15:35:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:35:42]Read from MH i2c: E2 [15:35:42]MH_I2C_Read... [15:35:42]Read from MH i2c: E2 03 00 [15:35:42]MH_I2C_Read... [15:35:42]Read from MH i2c: E2 03 00 D0 04 00 90 00 48 [15:35:42]RAPDU: 90 00 [15:35:42]wFMCommunicate OK [15:35:42]wFMCommunicate request_size=4 [15:35:42]MH_SAM_APDU [15:35:42]CAPDU: 80 0D 03 02 [15:35:42]Write to MH i2c: E2 08 00 D1 04 80 0D 03 02 00 00 00 00 50 [15:35:42]Write i2c OK [15:35:42]MH_I2C_Read... [15:35:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:35:42]Read from MH i2c: E2 [15:35:42]MH_I2C_Read... [15:35:42]Read from MH i2c: E2 0B 00 [15:35:42]MH_I2C_Read... [15:35:42]Read from MH i2c: E2 0B 00 D1 04 00 07 5B 08 E7 B2 1E 41 7C 90 00 2F [15:35:42]RAPDU: 07 5B 08 E7 B2 1E 41 7C 90 00 [15:35:42]wFMCommunicate OK [15:35:42]SAM_PROTO_SignData done [15:35:42]FM_MakeSignedData done [15:35:42]CreateOFDProtocolMessage [15:35:42]wFMCommunicate request_size=4 [15:35:42]MH_SAM_APDU [15:35:42]CAPDU: 80 11 00 00 [15:35:42]Write to MH i2c: E2 08 00 D2 04 80 11 00 00 00 00 00 00 50 [15:35:42]Write i2c OK [15:35:42]MH_I2C_Read... [15:35:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:35:42]Read from MH i2c: E2 [15:35:42]MH_I2C_Read... [15:35:42]Read from MH i2c: E2 17 00 [15:35:42]MH_I2C_Read... [15:35:42]Read from MH i2c: E2 17 00 D2 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 9B [15:35:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [15:35:42]wFMCommunicate OK [15:35:42]CreateOFDProtocolMessage done [15:35:42]OFDSenderStorePacket 68618 [15:35:42]StoreOFDPacket docnum=68618 [15:35:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 EE 2C 07 01 FF A4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 2F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 78 3C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 3C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 21 00 00 00 00 07 04 06 00 68 3C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 4D 34 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 0A 0C 01 00 35 04 06 00 EE 25 BE 13 51 8A 07 5B 08 E7 B2 1E 41 7C [15:35:42]CheckFolder [15:35:42]dirname=/storage/ofd_packets [15:35:42]CheckFolder done [15:35:42]ProducePacketName [15:35:42]name=ofd_packets/00068618 [15:35:42]NVStorageSaveData ofd_packets/00068618 [15:35:42]File name is /storage/ofd_packets/00068618 [15:35:42]Write 301 bytes [15:35:42]NVStorageSaveData done [15:35:42]OFDSenderStorePacket done [15:35:42]KKMCreateOFDPacket done [15:35:42]NVStorageSaveData kkm_last_timestamp [15:35:42]File name is /storage/kkm_last_timestamp [15:35:42]Write 4 bytes [15:35:42]NVStorageSaveData done [15:35:42]ExternCall_PrintAddStr [15:35:42]wPrintStart [15:35:42]Write to MH i2c: 01 00 00 D3 04 D7 [15:35:42]Write i2c OK [15:35:42]MH_I2C_Read... [15:35:42]Read from MH i2c: 01 [15:35:42]MH_I2C_Read... [15:35:42]Read from MH i2c: 01 07 00 [15:35:42]MH_I2C_Read... [15:35:42]Read from MH i2c: 01 07 00 D3 04 00 00 00 00 00 FF 0F EC [15:35:42]RasterBufferAndPrint [15:35:42]line Счет N : (1)706750 [15:35:42]line ИНН: 02508201610067 [15:35:42]line Контрольно-Кассовый Чек [15:35:42]line ПРОДАЖА [15:35:42]line ТРК (МРК, ГНК) : 42 [15:35:42]line Товар: 2710124130 [15:35:42]line Аи-92-К-4 [15:35:42]line 12.110 * 66.90 [15:35:42]line = 810.16 [15:35:42]line НДС 12% НСП 1% [15:35:42]line > о реализуемом товаре [15:35:42]line ОКРУГЛЕНИЕ: -0.16 [15:35:42]line ИТОГО: 810.00 [15:35:42]line Внесено: 810.00 [15:35:42]line СДАЧА: 0.00 [15:35:42]line НСП 1% : 7.17 [15:35:42]line НДС 12% : 86.03 [15:35:42]line Наличными: 810.00 [15:35:42]line Безнал.: 0.00 [15:35:42]line Место: АЗС № 62 "Партнер Нефть" [15:35:42]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [15:35:42]line СНО: Общий режим [15:35:42]line Чек 116 04.06.2024 15:35 [15:35:42]line Смена: 325 ФФД: 1.0 [15:35:42]line ЗНМ: 0300000181 [15:35:42]line РНМ: 0000000000098096 [15:35:42]line Версия ККМ: 001 [15:35:42]line ФМ: 0000000000965400 [15:35:42]line ФД: 68618 [15:35:42]line ФПД: 261845870137738 [15:35:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T153541&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68618&fm=261845870137738&tin=02508201610067®Number=0000000000098096&sum=81000 [15:35:42]OFD Sender: Processing packet 68618 [packets to send 27, broken 26] [15:35:42]ProducePacketName [15:35:42]name=ofd_packets/00068618 [15:35:42]OFD Sender: To server: pG, [15:35:42]CommunicateWithHost lk.salyk.kg:30040 [15:35:42]ConnectInit lk.salyk.kg [15:35:42]written 0, free lines is 4095 [15:35:42]Connected sock=10 [15:35:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 EE 2C 07 01 FF A4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 2F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 78 3C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 3C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 21 00 00 00 00 07 04 06 00 68 3C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 4D 34 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 0A 0C 01 00 35 04 06 00 EE 25 BE 13 51 8A 07 5B 08 E7 B2 1E 41 7C [15:35:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 D1 6E 47 00 27 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 39 36 35 34 30 30 10 04 04 00 0A 0C 01 00 F4 03 04 00 45 DB 5E 66 B6 04 01 00 00 AE 40 E1 0F 0F 55 92 BD [15:35:43]CommunicateWithHost err = 0 [15:35:43]CheckOFDResponse [15:35:43]1017 (14) - 77093643461234 [15:35:43]1041 (16) - 0000000000965400 [15:35:43]1040 (4) - 68618 [15:35:43]1012 (4) - 04.06.2024 09:15 [15:35:43]1206 (1) - 0 [15:35:43]OFD Sender: Remove packet 68618 [15:35:43]ProducePacketName [15:35:43]name=ofd_packets/00068618 [15:35:43]NVStorageDeleteData [15:35:43]Write to MH i2c: 01 00 00 FE 04 02 [15:35:43]Write i2c OK [15:35:43]MH_I2C_Read... [15:35:43]Read from MH i2c: 01 [15:35:43]MH_I2C_Read... [15:35:43]Read from MH i2c: 01 07 00 [15:35:43]MH_I2C_Read... [15:35:43]Read from MH i2c: 01 07 00 FE 04 00 00 00 00 00 F1 0C 06 [15:35:43]RasterBufferAndPrint [15:35:43]line [15:35:43]line [15:35:43]line [15:35:43]line [15:35:43]line [15:35:43]written 0, free lines is 3319 [15:35:43]MH_Cut [15:35:43]Write to MH i2c: D1 01 00 05 05 01 DC [15:35:43]Write i2c OK [15:35:43]MH_I2C_Read... [15:35:43]Read from MH i2c: D1 [15:35:43]MH_I2C_Read... [15:35:43]Read from MH i2c: D1 01 00 [15:35:43]MH_I2C_Read... [15:35:43]Read from MH i2c: D1 01 00 05 05 00 DB [15:35:43]Write to MH i2c: 01 00 00 06 05 0B [15:35:43]Write i2c OK [15:35:43]MH_I2C_Read... [15:35:43]OFD Sender: No OFD packet to send [15:35:43]*** Cut start [15:35:43]*** Partial cut [15:35:43]*** CUTSNS_PIN = 1 [15:35:44]*** CUTSNS_PIN = 0 [15:35:44]*** Brake cut motor [15:35:44]Read from MH i2c: 01 [15:35:44]MH_I2C_Read... [15:35:44]*** Stop cut motor [15:35:44]*** Cut end [15:35:44]Read from MH i2c: 01 07 00 [15:35:44]MH_I2C_Read... [15:35:44]Read from MH i2c: 01 07 00 06 05 00 00 00 00 00 FF 0F 20 [15:35:44]process_action close_receipt done [15:35:44]requested_data is exist [15:35:44]produce_requested_data [15:35:44]requested_item fm.sn is exist - process it [15:35:44]wFMCommunicate request_size=4 [15:35:44]MH_SAM_APDU [15:35:44]CAPDU: 80 11 00 00 [15:35:44]Write to MH i2c: E2 08 00 07 05 80 11 00 00 00 00 00 00 86 [15:35:44]Write i2c OK [15:35:44]MH_I2C_Read... [15:35:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:35:44]Read from MH i2c: E2 [15:35:44]MH_I2C_Read... [15:35:44]Read from MH i2c: E2 17 00 [15:35:44]MH_I2C_Read... [15:35:44]Read from MH i2c: E2 17 00 07 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 D1 [15:35:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [15:35:44]wFMCommunicate OK [15:35:44]requested_item fd.num is exist - process it [15:35:44]SAM_PROTO_GetFieldsCounters [15:35:44]wFMCommunicate request_size=4 [15:35:44]MH_SAM_APDU [15:35:44]CAPDU: 80 13 00 00 [15:35:44]Write to MH i2c: E2 08 00 08 05 80 13 00 00 00 00 00 00 89 [15:35:44]Write i2c OK [15:35:44]MH_I2C_Read... [15:35:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:35:44]Read from MH i2c: E2 [15:35:44]MH_I2C_Read... [15:35:44]Read from MH i2c: E2 62 00 [15:35:44]MH_I2C_Read... [15:35:44]Read from MH i2c: E2 62 00 08 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 0A 0C 01 00 0E 04 04 00 45 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 62 [15:35:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 0A 0C 01 00 0E 04 04 00 45 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 [15:35:44]wFMCommunicate OK [15:35:44]SAM_PROTO_GetFieldsCounters done [15:35:44]requested_item shift.num is exist - process it [15:35:44]requested_item shift.opened is exist - process it [15:35:44]req_shift_opened [15:35:44]FM_GetShiftState [15:35:44]SAM_PROTO_GetShiftState [15:35:44]wFMCommunicate request_size=4 [15:35:44]MH_SAM_APDU [15:35:44]CAPDU: 80 13 01 00 [15:35:44]Write to MH i2c: E2 08 00 09 05 80 13 01 00 00 00 00 00 8B [15:35:44]Write i2c OK [15:35:44]MH_I2C_Read... [15:35:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:35:44]Read from MH i2c: E2 [15:35:44]MH_I2C_Read... [15:35:44]Read from MH i2c: E2 0E 00 [15:35:44]MH_I2C_Read... [15:35:44]Read from MH i2c: E2 0E 00 09 05 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 27 [15:35:44]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [15:35:44]wFMCommunicate OK [15:35:44]SAM_PROTO_GetShiftState done [15:35:44]FM_GetShiftState done [15:35:44]req_shift_opened done [15:35:44]requested_item shift.open_date is exist - process it [15:35:44]req_shift_open_date [15:35:44]req_shift_open_date done [15:35:44]produce_requested_data done [15:35:44]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68618,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [15:35:44]process_action_free close_receipt [15:35:44]json_value_free [15:35:44]json_value_free done [15:35:44]process_json_proto returns [15:35:44]Send response to host [15:35:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68618,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [15:35:44]free response buf [15:35:44]execute_script done [15:35:44]execute_script returns [15:35:44]free content buf [15:35:44]Sock 7.Close socket [15:35:44]Sock 7.Thread stoped [15:35:48]OFD Sender: No OFD packet to send [15:35:53]OFD Sender: No OFD packet to send [15:35:58]OFD Sender: No OFD packet to send [15:36:03]OFD Sender: No OFD packet to send [15:36:08]OFD Sender: No OFD packet to send [15:36:13]OFD Sender: No OFD packet to send [15:36:18]OFD Sender: No OFD packet to send [15:36:23]OFD Sender: No OFD packet to send [15:36:28]OFD Sender: No OFD packet to send [15:36:33]OFD Sender: No OFD packet to send [15:36:38]OFD Sender: No OFD packet to send [15:36:43]OFD Sender: No OFD packet to send [15:36:48]OFD Sender: No OFD packet to send [15:36:53]OFD Sender: No OFD packet to send [15:36:58]OFD Sender: No OFD packet to send [15:37:03]OFD Sender: No OFD packet to send [15:37:08]OFD Sender: No OFD packet to send [15:37:13]OFD Sender: No OFD packet to send [15:37:18]OFD Sender: No OFD packet to send [15:37:23]OFD Sender: No OFD packet to send [15:37:25]accept exits with 9 [15:37:25]New connection [15:37:25]New thread 3067297124 created [15:37:25]Thread 3067153764 joined [15:37:25]Waiting for new connection... [15:37:25] Sock 9.Parse request [15:37:25]Sock 9.Check first char [15:37:25]Sock 9.First char is OK [15:37:25]request: POST /json_proto HTTP/1.0 [15:37:25]Method: POST [15:37:25]URL: /json_proto [15:37:25]Method is POST - this is cgi request [15:37:25]url: /json_proto [15:37:25]query_string will be loaded in cgi processing [15:37:25]execute_cgi json_proto POST (null) [15:37:25]execute_cgi path=json_proto method=POST [15:37:25]POST find Content-Length [15:37:25]Host: 172.17.36.132:8080 [15:37:25]Content-Length: 682 [15:37:25]Content-Type: application/json [15:37:25] [15:37:25]POST finish read [15:37:25]Found Content-Length = 682 [15:37:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706752", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:37:25]execute_script... [15:37: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)706752", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:37:25]POST & json_proto [15:37:25]process_json_proto [15:37:25]json parsed OK: [15:37:25]protocol is kg_v1.0 [15:37:25]action value=close_receipt [15:37:25]process_action close_receipt [15:37:25]cmd_close_receipt [15:37:25]MH_GetDate [15:37:25]Write to MH i2c: F0 00 00 0A 05 FE [15:37:25]Write i2c OK [15:37:25]MH_I2C_Read... [15:37:25]Read from MH i2c: F0 [15:37:25]MH_I2C_Read... [15:37:25]Read from MH i2c: F0 09 00 [15:37:25]MH_I2C_Read... [15:37:25]Read from MH i2c: F0 09 00 0A 05 00 B5 34 5F 66 B2 22 B0 64 9D [15:37:25]GetLastDocTimeStamp 1717515341 [15:37:25]current date 1717515445 [15:37:25]FM_GetShiftState [15:37:25]SAM_PROTO_GetShiftState [15:37:25]wFMCommunicate request_size=4 [15:37:25]MH_SAM_APDU [15:37:25]CAPDU: 80 13 01 00 [15:37:25]Write to MH i2c: E2 08 00 0B 05 80 13 01 00 00 00 00 00 8D [15:37:25]Write i2c OK [15:37:25]MH_I2C_Read... [15:37:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:37:25]Read from MH i2c: E2 [15:37:25]MH_I2C_Read... [15:37:25]Read from MH i2c: E2 0E 00 [15:37:25]MH_I2C_Read... [15:37:25]Read from MH i2c: E2 0E 00 0B 05 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 29 [15:37:25]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [15:37:25]wFMCommunicate OK [15:37:25]SAM_PROTO_GetShiftState done [15:37:25]FM_GetShiftState done [15:37:25]opened in 1717460590 [15:37:25]opened+sec_in_day 1717546990 [15:37:25]quantity*price = 100015 [15:37:25]sum+1 = 100017 [15:37:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 117 04.06.2024 15:37 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68619 ФПД: 104486751042313 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T153725&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68619&fm=104486751042313&tin=02508201610067®Number=0000000000098096&sum=100000 [15:37:26]StoreToDocumentArchive [15:37:26]shift 325 fd 68619 [15:37:26]save to /storage/0325/doc_00068619 [15:37:26]save last doc name /storage/0325/doc_00068619 to /storage/kkm_last_doc_name [15:37:26]save OK [15:37:26]Clear old archive folders... [15:37:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:37:26]tlvbuf is 00A53E50 [15:37:26]SAM_PROTO_ClearQueue [15:37:26]wFMCommunicate request_size=4 [15:37:26]MH_SAM_APDU [15:37:26]CAPDU: 80 09 00 00 [15:37:26]Write to MH i2c: E2 08 00 18 05 80 09 00 00 00 00 00 00 8F [15:37:26]Write i2c OK [15:37:26]MH_I2C_Read... [15:37:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:37:26]Read from MH i2c: E2 [15:37:26]MH_I2C_Read... [15:37:26]Read from MH i2c: E2 03 00 [15:37:26]MH_I2C_Read... [15:37:26]Read from MH i2c: E2 03 00 18 05 00 90 00 91 [15:37:26]RAPDU: 90 00 [15:37:26]wFMCommunicate OK [15:37:26]SAM_PROTO_ClearQueue done [15:37:26]KKMCreateOFDPacket [15:37:26]OFDProtocolAddRootSTLVToBuf [15:37:26]FM_MakeSignedData [15:37:26]FM_MakeSignedData [15:37:26]SAM_PROTO_SignData [15:37:26]wFMCommunicate request_size=4 [15:37:26]MH_SAM_APDU [15:37:26]CAPDU: 80 0D 01 02 [15:37:26]Write to MH i2c: E2 08 00 19 05 80 0D 01 02 00 00 00 00 97 [15:37:26]Write i2c OK [15:37:26]MH_I2C_Read... [15:37:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:37:26]Read from MH i2c: E2 [15:37:26]MH_I2C_Read... [15:37:26]Read from MH i2c: E2 03 00 [15:37:26]MH_I2C_Read... [15:37:26]Read from MH i2c: E2 03 00 19 05 00 90 00 92 [15:37:26]RAPDU: 90 00 [15:37:26]wFMCommunicate OK [15:37:26]wFMCommunicate request_size=255 [15:37:26]MH_SAM_APDU [15:37: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 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 B5 34 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 0B 0C 01 00 35 04 06 00 5F [15:37:26]Write to MH i2c: E2 02 01 1A 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 B5 34 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 0B 0C 01 00 35 04 06 00 5F 00 00 FE [15:37:26]Write i2c OK [15:37:26]MH_I2C_Read... [15:37:26]Read from MH i2c: E2 [15:37:26]MH_I2C_Read... [15:37:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:37:26]Read from MH i2c: E2 03 00 [15:37:26]MH_I2C_Read... [15:37:26]Read from MH i2c: E2 03 00 1A 05 00 90 00 93 [15:37:26]RAPDU: 90 00 [15:37:26]wFMCommunicate OK [15:37:26]wFMCommunicate request_size=10 [15:37:26]MH_SAM_APDU [15:37:26]CAPDU: 80 0D 02 02 05 07 B7 AD FB 09 [15:37:26]Write to MH i2c: E2 0D 00 1B 05 80 0D 02 02 05 00 07 B7 AD FB 09 00 00 13 [15:37:26]Write i2c OK [15:37:26]MH_I2C_Read... [15:37:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:37:26]Read from MH i2c: E2 [15:37:26]MH_I2C_Read... [15:37:26]Read from MH i2c: E2 03 00 [15:37:26]MH_I2C_Read... [15:37:26]Read from MH i2c: E2 03 00 1B 05 00 90 00 94 [15:37:26]RAPDU: 90 00 [15:37:26]wFMCommunicate OK [15:37:26]wFMCommunicate request_size=4 [15:37:26]MH_SAM_APDU [15:37:26]CAPDU: 80 0D 03 02 [15:37:26]Write to MH i2c: E2 08 00 1C 05 80 0D 03 02 00 00 00 00 9C [15:37:26]Write i2c OK [15:37:26]MH_I2C_Read... [15:37:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:37:26]Read from MH i2c: E2 [15:37:26]MH_I2C_Read... [15:37:26]Read from MH i2c: E2 0B 00 [15:37:26]MH_I2C_Read... [15:37:26]Read from MH i2c: E2 0B 00 1C 05 00 11 0D DD 4F C0 B2 92 21 90 00 0C [15:37:26]RAPDU: 11 0D DD 4F C0 B2 92 21 90 00 [15:37:26]wFMCommunicate OK [15:37:26]SAM_PROTO_SignData done [15:37:26]FM_MakeSignedData done [15:37:26]CreateOFDProtocolMessage [15:37:26]wFMCommunicate request_size=4 [15:37:26]MH_SAM_APDU [15:37:26]CAPDU: 80 11 00 00 [15:37:26]Write to MH i2c: E2 08 00 1D 05 80 11 00 00 00 00 00 00 9C [15:37:26]Write i2c OK [15:37:26]MH_I2C_Read... [15:37:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:37:26]Read from MH i2c: E2 [15:37:26]MH_I2C_Read... [15:37:26]Read from MH i2c: E2 17 00 [15:37:26]MH_I2C_Read... [15:37:26]Read from MH i2c: E2 17 00 1D 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 E7 [15:37:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [15:37:26]wFMCommunicate OK [15:37:26]CreateOFDProtocolMessage done [15:37:26]OFDSenderStorePacket 68619 [15:37:26]StoreOFDPacket docnum=68619 [15:37:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 B1 2C 07 01 92 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 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 B5 34 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 0B 0C 01 00 35 04 06 00 5F 07 B7 AD FB 09 11 0D DD 4F C0 B2 92 21 [15:37:26]CheckFolder [15:37:26]dirname=/storage/ofd_packets [15:37:26]CheckFolder done [15:37:26]ProducePacketName [15:37:26]name=ofd_packets/00068619 [15:37:26]NVStorageSaveData ofd_packets/00068619 [15:37:26]File name is /storage/ofd_packets/00068619 [15:37:26]Write 301 bytes [15:37:26]NVStorageSaveData done [15:37:26]OFDSenderStorePacket done [15:37:26]KKMCreateOFDPacket done [15:37:26]NVStorageSaveData kkm_last_timestamp [15:37:26]File name is /storage/kkm_last_timestamp [15:37:26]Write 4 bytes [15:37:26]NVStorageSaveData done [15:37:26]ExternCall_PrintAddStr [15:37:26]wPrintStart [15:37:26]Write to MH i2c: 01 00 00 1E 05 23 [15:37:26]Write i2c OK [15:37:26]MH_I2C_Read... [15:37:26]Read from MH i2c: 01 [15:37:26]MH_I2C_Read... [15:37:26]Read from MH i2c: 01 07 00 [15:37:26]MH_I2C_Read... [15:37:26]Read from MH i2c: 01 07 00 1E 05 00 00 00 00 00 FF 0F 38 [15:37:26]RasterBufferAndPrint [15:37:26]line Счет N : (1)706752 [15:37:26]line ИНН: 02508201610067 [15:37:26]line Контрольно-Кассовый Чек [15:37:26]line ПРОДАЖА [15:37:26]line ТРК (МРК, ГНК) : 53 [15:37:26]line Товар: 2710124130 [15:37:26]line Аи-92-К-4 [15:37:26]line 14.950 * 66.90 [15:37:26]line = 1000.16 [15:37:26]line НДС 12% НСП 1% [15:37:26]line > о реализуемом товаре [15:37:26]line ОКРУГЛЕНИЕ: -0.16 [15:37:26]line ИТОГО: 1000.00 [15:37:26]line Внесено: 1000.00 [15:37:26]line СДАЧА: 0.00 [15:37:26]line НСП 1% : 8.85 [15:37:26]line НДС 12% : 106.21 [15:37:26]line Наличными: 1000.00 [15:37:26]line Безнал.: 0.00 [15:37:26]line Место: АЗС № 62 "Партнер Нефть" [15:37:26]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [15:37:26]line СНО: Общий режим [15:37:26]line Чек 117 04.06.2024 15:37 [15:37:26]line Смена: 325 ФФД: 1.0 [15:37:26]line ЗНМ: 0300000181 [15:37:26]line РНМ: 0000000000098096 [15:37:26]line Версия ККМ: 001 [15:37:26]line ФМ: 0000000000965400 [15:37:26]line ФД: 68619 [15:37:26]line ФПД: 104486751042313 [15:37:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T153725&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68619&fm=104486751042313&tin=02508201610067®Number=0000000000098096&sum=100000 [15:37:27]OFD Sender: Processing packet 68619 [packets to send 27, broken 26] [15:37:27]ProducePacketName [15:37:27]name=ofd_packets/00068619 [15:37:27]OFD Sender: To server: pG, [15:37:27]CommunicateWithHost lk.salyk.kg:30040 [15:37:27]ConnectInit lk.salyk.kg [15:37:27]written 0, free lines is 4095 [15:37:27]Connected sock=10 [15:37:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 B1 2C 07 01 92 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 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 B5 34 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 0B 0C 01 00 35 04 06 00 5F 07 B7 AD FB 09 11 0D DD 4F C0 B2 92 21 [15:37:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 A8 CC 47 00 DF 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 39 36 35 34 30 30 10 04 04 00 0B 0C 01 00 F4 03 04 00 AD DB 5E 66 B6 04 01 00 00 25 BC F7 DB B2 9D CF D7 [15:37:27]CommunicateWithHost err = 0 [15:37:27]CheckOFDResponse [15:37:27]1017 (14) - 77093643461234 [15:37:27]1041 (16) - 0000000000965400 [15:37:27]1040 (4) - 68619 [15:37:27]1012 (4) - 04.06.2024 09:17 [15:37:27]1206 (1) - 0 [15:37:27]OFD Sender: Remove packet 68619 [15:37:27]ProducePacketName [15:37:27]name=ofd_packets/00068619 [15:37:27]NVStorageDeleteData [15:37:27]Write to MH i2c: 01 00 00 49 05 4E [15:37:27]Write i2c OK [15:37:27]MH_I2C_Read... [15:37:27]Read from MH i2c: 01 [15:37:27]MH_I2C_Read... [15:37:27]Read from MH i2c: 01 07 00 [15:37:27]MH_I2C_Read... [15:37:27]Read from MH i2c: 01 07 00 49 05 00 00 00 00 00 D9 0C 3A [15:37:27]RasterBufferAndPrint [15:37:27]line [15:37:27]line [15:37:27]line [15:37:27]line [15:37:27]line [15:37:27]written 0, free lines is 3296 [15:37:27]MH_Cut [15:37:27]Write to MH i2c: D1 01 00 50 05 01 27 [15:37:27]Write i2c OK [15:37:27]MH_I2C_Read... [15:37:27]Read from MH i2c: D1 [15:37:27]MH_I2C_Read... [15:37:27]Read from MH i2c: D1 01 00 [15:37:27]MH_I2C_Read... [15:37:27]Read from MH i2c: D1 01 00 50 05 00 26 [15:37:27]Write to MH i2c: 01 00 00 51 05 56 [15:37:27]Write i2c OK [15:37:27]MH_I2C_Read... [15:37:27]OFD Sender: No OFD packet to send [15:37:28]*** Cut start [15:37:28]*** Partial cut [15:37:28]*** CUTSNS_PIN = 1 [15:37:28]*** CUTSNS_PIN = 0 [15:37:28]*** Brake cut motor [15:37:28]Read from MH i2c: 01 [15:37:28]MH_I2C_Read... [15:37:28]*** Stop cut motor [15:37:28]*** Cut end [15:37:28]Read from MH i2c: 01 07 00 [15:37:28]MH_I2C_Read... [15:37:28]Read from MH i2c: 01 07 00 51 05 00 00 00 00 00 FF 0F 6B [15:37:28]process_action close_receipt done [15:37:28]requested_data is exist [15:37:28]produce_requested_data [15:37:28]requested_item fm.sn is exist - process it [15:37:28]wFMCommunicate request_size=4 [15:37:28]MH_SAM_APDU [15:37:28]CAPDU: 80 11 00 00 [15:37:28]Write to MH i2c: E2 08 00 52 05 80 11 00 00 00 00 00 00 D1 [15:37:28]Write i2c OK [15:37:28]MH_I2C_Read... [15:37:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:37:29]Read from MH i2c: E2 [15:37:29]MH_I2C_Read... [15:37:29]Read from MH i2c: E2 17 00 [15:37:29]MH_I2C_Read... [15:37:29]Read from MH i2c: E2 17 00 52 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 1C [15:37:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [15:37:29]wFMCommunicate OK [15:37:29]requested_item fd.num is exist - process it [15:37:29]SAM_PROTO_GetFieldsCounters [15:37:29]wFMCommunicate request_size=4 [15:37:29]MH_SAM_APDU [15:37:29]CAPDU: 80 13 00 00 [15:37:29]Write to MH i2c: E2 08 00 53 05 80 13 00 00 00 00 00 00 D4 [15:37:29]Write i2c OK [15:37:29]MH_I2C_Read... [15:37:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:37:29]Read from MH i2c: E2 [15:37:29]MH_I2C_Read... [15:37:29]Read from MH i2c: E2 62 00 [15:37:29]MH_I2C_Read... [15:37:29]Read from MH i2c: E2 62 00 53 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 0B 0C 01 00 0E 04 04 00 45 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 B1 [15:37:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 0B 0C 01 00 0E 04 04 00 45 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:37:29]wFMCommunicate OK [15:37:29]SAM_PROTO_GetFieldsCounters done [15:37:29]requested_item shift.num is exist - process it [15:37:29]requested_item shift.opened is exist - process it [15:37:29]req_shift_opened [15:37:29]FM_GetShiftState [15:37:29]SAM_PROTO_GetShiftState [15:37:29]wFMCommunicate request_size=4 [15:37:29]MH_SAM_APDU [15:37:29]CAPDU: 80 13 01 00 [15:37:29]Write to MH i2c: E2 08 00 54 05 80 13 01 00 00 00 00 00 D6 [15:37:29]Write i2c OK [15:37:29]MH_I2C_Read... [15:37:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:37:29]Read from MH i2c: E2 [15:37:29]MH_I2C_Read... [15:37:29]Read from MH i2c: E2 0E 00 [15:37:29]MH_I2C_Read... [15:37:29]Read from MH i2c: E2 0E 00 54 05 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 72 [15:37:29]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [15:37:29]wFMCommunicate OK [15:37:29]SAM_PROTO_GetShiftState done [15:37:29]FM_GetShiftState done [15:37:29]req_shift_opened done [15:37:29]requested_item shift.open_date is exist - process it [15:37:29]req_shift_open_date [15:37:29]req_shift_open_date done [15:37:29]produce_requested_data done [15:37:29]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68619,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [15:37:29]process_action_free close_receipt [15:37:29]json_value_free [15:37:29]json_value_free done [15:37:29]process_json_proto returns [15:37:29]Send response to host [15:37:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68619,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [15:37:29]free response buf [15:37:29]execute_script done [15:37:29]execute_script returns [15:37:29]free content buf [15:37:29]Sock 9.Close socket [15:37:29]Sock 9.Thread stoped [15:37:32]OFD Sender: No OFD packet to send [15:37:37]OFD Sender: No OFD packet to send [15:37:42]OFD Sender: No OFD packet to send [15:37:47]OFD Sender: No OFD packet to send [15:37:49]accept exits with 7 [15:37:49]New connection [15:37:49]New thread 3067153764 created [15:37:49]Thread 3067297124 joined [15:37:49]Waiting for new connection... [15:37:49] Sock 7.Parse request [15:37:49]Sock 7.Check first char [15:37:49]Sock 7.First char is OK [15:37:49]request: POST /json_proto HTTP/1.0 [15:37:49]Method: POST [15:37:49]URL: /json_proto [15:37:49]Method is POST - this is cgi request [15:37:49]url: /json_proto [15:37:49]query_string will be loaded in cgi processing [15:37:49]execute_cgi json_proto POST (null) [15:37:49]execute_cgi path=json_proto method=POST [15:37:49]POST find Content-Length [15:37:49]Host: 172.17.36.132:8080 [15:37:49]Content-Length: 678 [15:37:49]Content-Type: application/json [15:37:49] [15:37:49]POST finish read [15:37:49]Found Content-Length = 678 [15:37:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706751", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:37:49]execute_script... [15:37:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706751", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:37:49]POST & json_proto [15:37:49]process_json_proto [15:37:49]json parsed OK: [15:37:49]protocol is kg_v1.0 [15:37:49]action value=close_receipt [15:37:49]process_action close_receipt [15:37:49]cmd_close_receipt [15:37:49]MH_GetDate [15:37:49]Write to MH i2c: F0 00 00 55 05 49 [15:37:49]Write i2c OK [15:37:49]MH_I2C_Read... [15:37:49]Read from MH i2c: F0 [15:37:49]MH_I2C_Read... [15:37:49]Read from MH i2c: F0 09 00 [15:37:49]MH_I2C_Read... [15:37:49]Read from MH i2c: F0 09 00 55 05 00 CD 34 5F 66 B2 22 B0 64 00 [15:37:49]GetLastDocTimeStamp 1717515445 [15:37:49]current date 1717515469 [15:37:49]FM_GetShiftState [15:37:49]SAM_PROTO_GetShiftState [15:37:49]wFMCommunicate request_size=4 [15:37:49]MH_SAM_APDU [15:37:49]CAPDU: 80 13 01 00 [15:37:49]Write to MH i2c: E2 08 00 56 05 80 13 01 00 00 00 00 00 D8 [15:37:49]Write i2c OK [15:37:49]MH_I2C_Read... [15:37:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:37:49]Read from MH i2c: E2 [15:37:49]MH_I2C_Read... [15:37:49]Read from MH i2c: E2 0E 00 [15:37:49]MH_I2C_Read... [15:37:49]Read from MH i2c: E2 0E 00 56 05 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 74 [15:37:49]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [15:37:49]wFMCommunicate OK [15:37:49]SAM_PROTO_GetShiftState done [15:37:49]FM_GetShiftState done [15:37:49]opened in 1717460590 [15:37:49]opened+sec_in_day 1717546990 [15:37:49]quantity*price = 80012 [15:37:49]sum+1 = 80013 [15:37:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 118 04.06.2024 15:37 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68620 ФПД: 110912358656888 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T153750&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68620&fm=110912358656888&tin=02508201610067®Number=0000000000098096&sum=80000 [15:37:50]StoreToDocumentArchive [15:37:50]shift 325 fd 68620 [15:37:50]save to /storage/0325/doc_00068620 [15:37:50]save last doc name /storage/0325/doc_00068620 to /storage/kkm_last_doc_name [15:37:50]save OK [15:37:50]Clear old archive folders... [15:37:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:37:50]tlvbuf is B6FA9930 [15:37:50]SAM_PROTO_ClearQueue [15:37:50]wFMCommunicate request_size=4 [15:37:50]MH_SAM_APDU [15:37:50]CAPDU: 80 09 00 00 [15:37:50]Write to MH i2c: E2 08 00 63 05 80 09 00 00 00 00 00 00 DA [15:37:50]Write i2c OK [15:37:50]MH_I2C_Read... [15:37:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:37:50]Read from MH i2c: E2 [15:37:50]MH_I2C_Read... [15:37:50]Read from MH i2c: E2 03 00 [15:37:50]MH_I2C_Read... [15:37:50]Read from MH i2c: E2 03 00 63 05 00 90 00 DC [15:37:50]RAPDU: 90 00 [15:37:50]wFMCommunicate OK [15:37:50]SAM_PROTO_ClearQueue done [15:37:50]KKMCreateOFDPacket [15:37:50]OFDProtocolAddRootSTLVToBuf [15:37:50]FM_MakeSignedData [15:37:50]FM_MakeSignedData [15:37:50]SAM_PROTO_SignData [15:37:50]wFMCommunicate request_size=4 [15:37:50]MH_SAM_APDU [15:37:50]CAPDU: 80 0D 01 02 [15:37:50]Write to MH i2c: E2 08 00 64 05 80 0D 01 02 00 00 00 00 E2 [15:37:50]Write i2c OK [15:37:50]MH_I2C_Read... [15:37:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:37:50]Read from MH i2c: E2 [15:37:50]MH_I2C_Read... [15:37:50]Read from MH i2c: E2 03 00 [15:37:50]MH_I2C_Read... [15:37:50]Read from MH i2c: E2 03 00 64 05 00 90 00 DD [15:37:50]RAPDU: 90 00 [15:37:50]wFMCommunicate OK [15:37:50]wFMCommunicate request_size=255 [15:37:50]MH_SAM_APDU [15:37:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 CE 34 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 0C 0C 01 00 35 04 06 00 64 [15:37:50]Write to MH i2c: E2 02 01 65 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 CE 34 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 0C 0C 01 00 35 04 06 00 64 00 00 5B [15:37:50]Write i2c OK [15:37:50]MH_I2C_Read... [15:37:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:37:50]Read from MH i2c: E2 [15:37:50]MH_I2C_Read... [15:37:50]Read from MH i2c: E2 03 00 [15:37:50]MH_I2C_Read... [15:37:50]Read from MH i2c: E2 03 00 65 05 00 90 00 DE [15:37:50]RAPDU: 90 00 [15:37:50]wFMCommunicate OK [15:37:50]wFMCommunicate request_size=10 [15:37:50]MH_SAM_APDU [15:37:50]CAPDU: 80 0D 02 02 05 DF CB BD 2B 78 [15:37:50]Write to MH i2c: E2 0D 00 66 05 80 0D 02 02 05 00 DF CB BD 2B 78 00 00 F9 [15:37:50]Write i2c OK [15:37:50]MH_I2C_Read... [15:37:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:37:50]Read from MH i2c: E2 [15:37:50]MH_I2C_Read... [15:37:50]Read from MH i2c: E2 03 00 [15:37:50]MH_I2C_Read... [15:37:50]Read from MH i2c: E2 03 00 66 05 00 90 00 DF [15:37:50]RAPDU: 90 00 [15:37:50]wFMCommunicate OK [15:37:50]wFMCommunicate request_size=4 [15:37:50]MH_SAM_APDU [15:37:50]CAPDU: 80 0D 03 02 [15:37:50]Write to MH i2c: E2 08 00 67 05 80 0D 03 02 00 00 00 00 E7 [15:37:50]Write i2c OK [15:37:50]MH_I2C_Read... [15:37:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:37:50]Read from MH i2c: E2 [15:37:50]MH_I2C_Read... [15:37:50]Read from MH i2c: E2 0B 00 [15:37:50]MH_I2C_Read... [15:37:50]Read from MH i2c: E2 0B 00 67 05 00 E9 71 A0 66 BF 1D F0 F6 90 00 0A [15:37:50]RAPDU: E9 71 A0 66 BF 1D F0 F6 90 00 [15:37:50]wFMCommunicate OK [15:37:50]SAM_PROTO_SignData done [15:37:50]FM_MakeSignedData done [15:37:50]CreateOFDProtocolMessage [15:37:50]wFMCommunicate request_size=4 [15:37:50]MH_SAM_APDU [15:37:50]CAPDU: 80 11 00 00 [15:37:50]Write to MH i2c: E2 08 00 68 05 80 11 00 00 00 00 00 00 E7 [15:37:50]Write i2c OK [15:37:50]MH_I2C_Read... [15:37:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:37:50]Read from MH i2c: E2 [15:37:50]MH_I2C_Read... [15:37:50]Read from MH i2c: E2 17 00 [15:37:50]MH_I2C_Read... [15:37:50]Read from MH i2c: E2 17 00 68 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 32 [15:37:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [15:37:50]wFMCommunicate OK [15:37:50]CreateOFDProtocolMessage done [15:37:50]OFDSenderStorePacket 68620 [15:37:50]StoreOFDPacket docnum=68620 [15:37:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 01 1B 07 01 92 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 34 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 CE 34 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 0C 0C 01 00 35 04 06 00 64 DF CB BD 2B 78 E9 71 A0 66 BF 1D F0 F6 [15:37:50]CheckFolder [15:37:50]dirname=/storage/ofd_packets [15:37:50]CheckFolder done [15:37:50]ProducePacketName [15:37:50]name=ofd_packets/00068620 [15:37:50]NVStorageSaveData ofd_packets/00068620 [15:37:50]File name is /storage/ofd_packets/00068620 [15:37:50]Write 301 bytes [15:37:50]NVStorageSaveData done [15:37:50]OFDSenderStorePacket done [15:37:50]KKMCreateOFDPacket done [15:37:50]NVStorageSaveData kkm_last_timestamp [15:37:50]File name is /storage/kkm_last_timestamp [15:37:50]Write 4 bytes [15:37:50]NVStorageSaveData done [15:37:50]ExternCall_PrintAddStr [15:37:50]wPrintStart [15:37:50]Write to MH i2c: 01 00 00 69 05 6E [15:37:50]Write i2c OK [15:37:50]MH_I2C_Read... [15:37:50]Read from MH i2c: 01 [15:37:50]MH_I2C_Read... [15:37:50]Read from MH i2c: 01 07 00 [15:37:50]MH_I2C_Read... [15:37:50]Read from MH i2c: 01 07 00 69 05 00 00 00 00 00 FF 0F 83 [15:37:50]RasterBufferAndPrint [15:37:50]line Счет N : (1)706751 [15:37:50]line ИНН: 02508201610067 [15:37:50]line Контрольно-Кассовый Чек [15:37:50]line ПРОДАЖА [15:37:50]line ТРК (МРК, ГНК) : 42 [15:37:50]line Товар: 2710124130 [15:37:50]line Аи-92-К-4 [15:37:50]line 11.960 * 66.90 [15:37:50]line = 800.12 [15:37:50]line НДС 12% НСП 1% [15:37:50]line > о реализуемом товаре [15:37:50]line ОКРУГЛЕНИЕ: -0.12 [15:37:50]line ИТОГО: 800.00 [15:37:50]line Внесено: 800.00 [15:37:50]line СДАЧА: 0.00 [15:37:50]line НСП 1% : 7.08 [15:37:50]line НДС 12% : 84.97 [15:37:50]line Наличными: 800.00 [15:37:50]line Безнал.: 0.00 [15:37:50]line Место: АЗС № 62 "Партнер Нефть" [15:37:50]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [15:37:50]line СНО: Общий режим [15:37:50]line Чек 118 04.06.2024 15:37 [15:37:50]line Смена: 325 ФФД: 1.0 [15:37:50]line ЗНМ: 0300000181 [15:37:50]line РНМ: 0000000000098096 [15:37:50]line Версия ККМ: 001 [15:37:50]line ФМ: 0000000000965400 [15:37:50]line ФД: 68620 [15:37:50]line ФПД: 110912358656888 [15:37:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T153750&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68620&fm=110912358656888&tin=02508201610067®Number=0000000000098096&sum=80000 [15:37:51]OFD Sender: Processing packet 68620 [packets to send 27, broken 26] [15:37:51]ProducePacketName [15:37:51]name=ofd_packets/00068620 [15:37:51]OFD Sender: To server: pG, [15:37:51]CommunicateWithHost lk.salyk.kg:30040 [15:37:51]ConnectInit lk.salyk.kg [15:37:51]written 0, free lines is 4095 [15:37:51]Connected sock=10 [15:37:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 01 1B 07 01 92 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 34 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 CE 34 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 0C 0C 01 00 35 04 06 00 64 DF CB BD 2B 78 E9 71 A0 66 BF 1D F0 F6 [15:37:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 E3 22 47 00 16 72 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 0C 0C 01 00 F4 03 04 00 C6 DB 5E 66 B6 04 01 00 00 5D 31 08 82 2E 99 FE 30 [15:37:51]CommunicateWithHost err = 0 [15:37:51]CheckOFDResponse [15:37:51]1017 (14) - 77093643461234 [15:37:51]1041 (16) - 0000000000965400 [15:37:51]1040 (4) - 68620 [15:37:51]1012 (4) - 04.06.2024 09:17 [15:37:51]1206 (1) - 0 [15:37:51]OFD Sender: Remove packet 68620 [15:37:51]ProducePacketName [15:37:51]name=ofd_packets/00068620 [15:37:51]NVStorageDeleteData [15:37:51]Write to MH i2c: 01 00 00 94 05 99 [15:37:51]Write i2c OK [15:37:51]MH_I2C_Read... [15:37:51]Read from MH i2c: 01 [15:37:51]MH_I2C_Read... [15:37:51]Read from MH i2c: 01 07 00 [15:37:51]MH_I2C_Read... [15:37:51]Read from MH i2c: 01 07 00 94 05 00 00 00 00 00 E6 0C 92 [15:37:51]RasterBufferAndPrint [15:37:51]line [15:37:51]line [15:37:51]line [15:37:51]line [15:37:51]line [15:37:51]written 0, free lines is 3308 [15:37:51]MH_Cut [15:37:51]Write to MH i2c: D1 01 00 9B 05 01 72 [15:37:51]Write i2c OK [15:37:51]MH_I2C_Read... [15:37:51]Read from MH i2c: D1 [15:37:51]MH_I2C_Read... [15:37:51]Read from MH i2c: D1 01 00 [15:37:51]MH_I2C_Read... [15:37:51]Read from MH i2c: D1 01 00 9B 05 00 71 [15:37:51]Write to MH i2c: 01 00 00 9C 05 A1 [15:37:51]Write i2c OK [15:37:51]MH_I2C_Read... [15:37:52]OFD Sender: No OFD packet to send [15:37:52]*** Cut start [15:37:52]*** Partial cut [15:37:52]*** CUTSNS_PIN = 1 [15:37:52]*** CUTSNS_PIN = 0 [15:37:52]*** Brake cut motor [15:37:53]Read from MH i2c: 01 [15:37:53]MH_I2C_Read... [15:37:53]*** Stop cut motor [15:37:53]*** Cut end [15:37:53]Read from MH i2c: 01 07 00 [15:37:53]MH_I2C_Read... [15:37:53]Read from MH i2c: 01 07 00 9C 05 00 00 00 00 00 FF 0F B6 [15:37:53]process_action close_receipt done [15:37:53]requested_data is exist [15:37:53]produce_requested_data [15:37:53]requested_item fm.sn is exist - process it [15:37:53]wFMCommunicate request_size=4 [15:37:53]MH_SAM_APDU [15:37:53]CAPDU: 80 11 00 00 [15:37:53]Write to MH i2c: E2 08 00 9D 05 80 11 00 00 00 00 00 00 1C [15:37:53]Write i2c OK [15:37:53]MH_I2C_Read... [15:37:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:37:53]Read from MH i2c: E2 [15:37:53]MH_I2C_Read... [15:37:53]Read from MH i2c: E2 17 00 [15:37:53]MH_I2C_Read... [15:37:53]Read from MH i2c: E2 17 00 9D 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 67 [15:37:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [15:37:53]wFMCommunicate OK [15:37:53]requested_item fd.num is exist - process it [15:37:53]SAM_PROTO_GetFieldsCounters [15:37:53]wFMCommunicate request_size=4 [15:37:53]MH_SAM_APDU [15:37:53]CAPDU: 80 13 00 00 [15:37:53]Write to MH i2c: E2 08 00 9E 05 80 13 00 00 00 00 00 00 1F [15:37:53]Write i2c OK [15:37:53]MH_I2C_Read... [15:37:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:37:53]Read from MH i2c: E2 [15:37:53]MH_I2C_Read... [15:37:53]Read from MH i2c: E2 62 00 [15:37:53]MH_I2C_Read... [15:37:53]Read from MH i2c: E2 62 00 9E 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 0C 0C 01 00 0E 04 04 00 45 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 00 [15:37:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 0C 0C 01 00 0E 04 04 00 45 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:37:53]wFMCommunicate OK [15:37:53]SAM_PROTO_GetFieldsCounters done [15:37:53]requested_item shift.num is exist - process it [15:37:53]requested_item shift.opened is exist - process it [15:37:53]req_shift_opened [15:37:53]FM_GetShiftState [15:37:53]SAM_PROTO_GetShiftState [15:37:53]wFMCommunicate request_size=4 [15:37:53]MH_SAM_APDU [15:37:53]CAPDU: 80 13 01 00 [15:37:53]Write to MH i2c: E2 08 00 9F 05 80 13 01 00 00 00 00 00 21 [15:37:53]Write i2c OK [15:37:53]MH_I2C_Read... [15:37:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:37:53]Read from MH i2c: E2 [15:37:53]MH_I2C_Read... [15:37:53]Read from MH i2c: E2 0E 00 [15:37:53]MH_I2C_Read... [15:37:53]Read from MH i2c: E2 0E 00 9F 05 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 BD [15:37:53]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [15:37:53]wFMCommunicate OK [15:37:53]SAM_PROTO_GetShiftState done [15:37:53]FM_GetShiftState done [15:37:53]req_shift_opened done [15:37:53]requested_item shift.open_date is exist - process it [15:37:53]req_shift_open_date [15:37:53]req_shift_open_date done [15:37:53]produce_requested_data done [15:37:53]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68620,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [15:37:53]process_action_free close_receipt [15:37:53]json_value_free [15:37:53]json_value_free done [15:37:53]process_json_proto returns [15:37:53]Send response to host [15:37:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68620,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [15:37:53]free response buf [15:37:53]execute_script done [15:37:53]execute_script returns [15:37:53]free content buf [15:37:53]Sock 7.Close socket [15:37:53]Sock 7.Thread stoped [15:37:57]OFD Sender: No OFD packet to send [15:38:02]OFD Sender: No OFD packet to send [15:38:07]OFD Sender: No OFD packet to send [15:38:12]OFD Sender: No OFD packet to send [15:38:17]OFD Sender: No OFD packet to send [15:38:22]OFD Sender: No OFD packet to send [15:38:27]OFD Sender: No OFD packet to send [15:38:32]OFD Sender: No OFD packet to send [15:38:37]OFD Sender: No OFD packet to send [15:38:42]OFD Sender: No OFD packet to send [15:38:47]OFD Sender: No OFD packet to send [15:38:52]OFD Sender: No OFD packet to send [15:38:57]OFD Sender: No OFD packet to send [15:39:02]OFD Sender: No OFD packet to send [15:39:07]OFD Sender: No OFD packet to send [15:39:12]OFD Sender: No OFD packet to send [15:39:17]OFD Sender: No OFD packet to send [15:39:22]OFD Sender: No OFD packet to send [15:39:27]OFD Sender: No OFD packet to send [15:39:32]OFD Sender: No OFD packet to send [15:39:37]OFD Sender: No OFD packet to send [15:39:42]OFD Sender: No OFD packet to send [15:39:47]OFD Sender: No OFD packet to send [15:39:52]OFD Sender: No OFD packet to send [15:39:57]OFD Sender: No OFD packet to send [15:40:02]OFD Sender: No OFD packet to send [15:40:07]OFD Sender: No OFD packet to send [15:40:10]accept exits with 9 [15:40:10]New connection [15:40:10]New thread 3067297124 created [15:40:10]Thread 3067153764 joined [15:40:10]Waiting for new connection... [15:40:10] Sock 9.Parse request [15:40:10]Sock 9.Check first char [15:40:10]Sock 9.First char is OK [15:40:10]request: POST /json_proto HTTP/1.0 [15:40:10]Method: POST [15:40:10]URL: /json_proto [15:40:10]Method is POST - this is cgi request [15:40:10]url: /json_proto [15:40:10]query_string will be loaded in cgi processing [15:40:10]execute_cgi json_proto POST (null) [15:40:10]execute_cgi path=json_proto method=POST [15:40:10]POST find Content-Length [15:40:10]Host: 172.17.36.132:8080 [15:40:10]Content-Length: 1196 [15:40:10]Content-Type: application/json [15:40:10] [15:40:10]POST finish read [15:40:10]Found Content-Length = 1196 [15:40:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0418\u0441\u043C\u0430\u043D\u0430\u043B\u0438\u0435\u0432 \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)706753\u000A04.06.2024 15:17\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 63\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-4\u000A 10.000 x 66.90\u000A\u0418\u0422\u041E\u0413: 669.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\u000A3887887\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:40:10]execute_script... [15:40:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0418\u0441\u043C\u0430\u043D\u0430\u043B\u0438\u0435\u0432 \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)706753\u000A04.06.2024 15:17\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 63\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-4\u000A 10.000 x 66.90\u000A\u0418\u0422\u041E\u0413: 669.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\u000A3887887\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:40:10]POST & json_proto [15:40:10]process_json_proto [15:40:10]json parsed OK: [15:40:10]protocol is kg_v1.0 [15:40:10]action value=print_text [15:40:10]process_action print_text [15:40:10]cmd_print_text [15:40:10]ExternCall_PrintAddStr [15:40:10]wPrintStart [15:40:10]Write to MH i2c: 01 00 00 A0 05 A5 [15:40:10]Write i2c OK [15:40:10]MH_I2C_Read... [15:40:10]Read from MH i2c: 01 [15:40:10]MH_I2C_Read... [15:40:10]Read from MH i2c: 01 07 00 [15:40:10]MH_I2C_Read... [15:40:10]Read from MH i2c: 01 07 00 A0 05 00 00 00 00 00 FF 0F BA [15:40:10]RasterBufferAndPrint [15:40:10]line *****ТОВАРНЫЙ ЧЕК***** [15:40:10]line АЗС 62 [15:40:10]line Партнер нефть [15:40:10]line 02508201610067 [15:40:10]line Кассир : Исманалиев Д. [15:40:10]line Счет N : (1)706753 [15:40:10]line 04.06.2024 15:17 [15:40:10]line ПРОДАЖА [15:40:10]line ТРК (МРК, ГНК): 63 [15:40:10]line Вид ГСМ : 2710124130 [15:40:10]line Аи-92-К-4 [15:40:10]line 10.000 x 66.90 [15:40:10]line ИТОГ: 669.00 [15:40:10]line Тип оплаты: Талоны: Партнер нефть [15:40:10]line 3887887 [15:40:10]line ______________________ [15:40:10]line (подпись) [15:40:10]written 0, free lines is 4095 [15:40:10]Write to MH i2c: 01 00 00 B4 05 B9 [15:40:10]Write i2c OK [15:40:10]MH_I2C_Read... [15:40:10]Read from MH i2c: 01 [15:40:10]MH_I2C_Read... [15:40:10]Read from MH i2c: 01 07 00 [15:40:10]MH_I2C_Read... [15:40:10]Read from MH i2c: 01 07 00 B4 05 00 00 00 00 00 14 0E E2 [15:40:10]RasterBufferAndPrint [15:40:10]line [15:40:10]line [15:40:10]line [15:40:10]line [15:40:10]line [15:40:10]written 0, free lines is 3606 [15:40:10]MH_Cut [15:40:10]Write to MH i2c: D1 01 00 BB 05 01 92 [15:40:10]Write i2c OK [15:40:10]MH_I2C_Read... [15:40:10]Read from MH i2c: D1 [15:40:10]MH_I2C_Read... [15:40:10]Read from MH i2c: D1 01 00 [15:40:10]MH_I2C_Read... [15:40:10]Read from MH i2c: D1 01 00 BB 05 00 91 [15:40:10]Write to MH i2c: 01 00 00 BC 05 C1 [15:40:10]Write i2c OK [15:40:10]MH_I2C_Read... [15:40:11]*** Cut start [15:40:11]*** Partial cut [15:40:11]*** CUTSNS_PIN = 1 [15:40:11]*** CUTSNS_PIN = 0 [15:40:11]*** Brake cut motor [15:40:11]Read from MH i2c: 01 [15:40:11]MH_I2C_Read... [15:40:11]*** Stop cut motor [15:40:11]*** Cut end [15:40:11]Read from MH i2c: 01 07 00 [15:40:11]MH_I2C_Read... [15:40:11]Read from MH i2c: 01 07 00 BC 05 00 00 00 00 00 FF 0F D6 [15:40:11]process_action print_text done [15:40:11]requested_data is exist [15:40:11]produce_requested_data [15:40:11]requested_item fm.sn is exist - process it [15:40:11]wFMCommunicate request_size=4 [15:40:11]MH_SAM_APDU [15:40:11]CAPDU: 80 11 00 00 [15:40:11]Write to MH i2c: E2 08 00 BD 05 80 11 00 00 00 00 00 00 3C [15:40:11]Write i2c OK [15:40:11]MH_I2C_Read... [15:40:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:40:11]Read from MH i2c: E2 [15:40:11]MH_I2C_Read... [15:40:11]Read from MH i2c: E2 17 00 [15:40:11]MH_I2C_Read... [15:40:11]Read from MH i2c: E2 17 00 BD 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 87 [15:40:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [15:40:11]wFMCommunicate OK [15:40:11]requested_item fd.num is exist - process it [15:40:11]SAM_PROTO_GetFieldsCounters [15:40:11]wFMCommunicate request_size=4 [15:40:11]MH_SAM_APDU [15:40:11]CAPDU: 80 13 00 00 [15:40:11]Write to MH i2c: E2 08 00 BE 05 80 13 00 00 00 00 00 00 3F [15:40:11]Write i2c OK [15:40:11]MH_I2C_Read... [15:40:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:40:11]Read from MH i2c: E2 [15:40:11]MH_I2C_Read... [15:40:11]Read from MH i2c: E2 62 00 [15:40:11]MH_I2C_Read... [15:40:11]Read from MH i2c: E2 62 00 BE 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 0C 0C 01 00 0E 04 04 00 45 01 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 20 [15:40:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 0C 0C 01 00 0E 04 04 00 45 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:40:11]wFMCommunicate OK [15:40:11]SAM_PROTO_GetFieldsCounters done [15:40:11]requested_item shift.num is exist - process it [15:40:11]requested_item shift.opened is exist - process it [15:40:11]req_shift_opened [15:40:11]FM_GetShiftState [15:40:11]SAM_PROTO_GetShiftState [15:40:11]wFMCommunicate request_size=4 [15:40:11]MH_SAM_APDU [15:40:11]CAPDU: 80 13 01 00 [15:40:11]Write to MH i2c: E2 08 00 BF 05 80 13 01 00 00 00 00 00 41 [15:40:11]Write i2c OK [15:40:11]MH_I2C_Read... [15:40:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:40:11]Read from MH i2c: E2 [15:40:11]MH_I2C_Read... [15:40:11]Read from MH i2c: E2 0E 00 [15:40:11]MH_I2C_Read... [15:40:11]Read from MH i2c: E2 0E 00 BF 05 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 DD [15:40:11]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [15:40:11]wFMCommunicate OK [15:40:11]SAM_PROTO_GetShiftState done [15:40:11]FM_GetShiftState done [15:40:11]req_shift_opened done [15:40:11]requested_item shift.open_date is exist - process it [15:40:11]req_shift_open_date [15:40:11]req_shift_open_date done [15:40:11]produce_requested_data done [15:40:11]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68620,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [15:40:11]process_action_free print_text [15:40:11]json_value_free [15:40:11]json_value_free done [15:40:11]process_json_proto returns [15:40:11]Send response to host [15:40:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68620,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [15:40:11]free response buf [15:40:11]execute_script done [15:40:11]execute_script returns [15:40:11]free content buf [15:40:11]Sock 9.Close socket [15:40:11]Sock 9.Thread stoped [15:40:12]OFD Sender: No OFD packet to send [15:40:17]OFD Sender: No OFD packet to send [15:40:22]OFD Sender: No OFD packet to send [15:40:27]OFD Sender: No OFD packet to send [15:40:32]OFD Sender: No OFD packet to send [15:40:37]OFD Sender: No OFD packet to send [15:40:42]OFD Sender: No OFD packet to send [15:40:47]OFD Sender: No OFD packet to send [15:40:52]OFD Sender: No OFD packet to send [15:40:57]OFD Sender: No OFD packet to send [15:41:02]OFD Sender: No OFD packet to send [15:41:07]OFD Sender: No OFD packet to send [15:41:12]OFD Sender: No OFD packet to send [15:41:17]OFD Sender: No OFD packet to send [15:41:22]OFD Sender: No OFD packet to send [15:41:27]OFD Sender: No OFD packet to send [15:41:32]OFD Sender: No OFD packet to send [15:41:37]OFD Sender: No OFD packet to send [15:41:42]OFD Sender: No OFD packet to send [15:41:47]OFD Sender: No OFD packet to send [15:41:52]OFD Sender: No OFD packet to send [15:41:57]OFD Sender: No OFD packet to send [15:42:02]OFD Sender: No OFD packet to send [15:42:07]OFD Sender: No OFD packet to send [15:42:12]OFD Sender: No OFD packet to send [15:42:17]OFD Sender: No OFD packet to send [15:42:22]OFD Sender: No OFD packet to send [15:42:27]OFD Sender: No OFD packet to send [15:42:32]OFD Sender: No OFD packet to send [15:42:37]OFD Sender: No OFD packet to send [15:42:42]OFD Sender: No OFD packet to send [15:42:47]OFD Sender: No OFD packet to send [15:42:52]OFD Sender: No OFD packet to send [15:42:57]OFD Sender: No OFD packet to send [15:43:02]OFD Sender: No OFD packet to send [15:43:07]OFD Sender: No OFD packet to send [15:43:12]OFD Sender: No OFD packet to send [15:43:17]OFD Sender: No OFD packet to send [15:43:22]OFD Sender: No OFD packet to send [15:43:27]OFD Sender: No OFD packet to send [15:43:32]OFD Sender: No OFD packet to send [15:43:37]OFD Sender: No OFD packet to send [15:43:42]OFD Sender: No OFD packet to send [15:43:47]OFD Sender: No OFD packet to send [15:43:52]OFD Sender: No OFD packet to send [15:43:57]OFD Sender: No OFD packet to send [15:44:02]OFD Sender: No OFD packet to send [15:44:07]OFD Sender: No OFD packet to send [15:44:12]OFD Sender: No OFD packet to send [15:44:17]OFD Sender: No OFD packet to send [15:44:22]OFD Sender: No OFD packet to send [15:44:27]OFD Sender: No OFD packet to send [15:44:32]OFD Sender: No OFD packet to send [15:44:37]OFD Sender: No OFD packet to send [15:44:42]OFD Sender: No OFD packet to send [15:44:47]OFD Sender: No OFD packet to send [15:44:52]OFD Sender: No OFD packet to send [15:44:57]OFD Sender: No OFD packet to send [15:45:02]OFD Sender: No OFD packet to send [15:45:07]OFD Sender: No OFD packet to send [15:45:12]OFD Sender: No OFD packet to send [15:45:17]OFD Sender: No OFD packet to send [15:45:22]OFD Sender: No OFD packet to send [15:45:27]OFD Sender: No OFD packet to send [15:45:32]OFD Sender: No OFD packet to send [15:45:37]OFD Sender: No OFD packet to send [15:45:42]OFD Sender: No OFD packet to send [15:45:47]OFD Sender: No OFD packet to send [15:45:52]OFD Sender: No OFD packet to send [15:45:57]OFD Sender: No OFD packet to send [15:46:02]OFD Sender: No OFD packet to send [15:46:07]OFD Sender: No OFD packet to send [15:46:12]OFD Sender: No OFD packet to send [15:46:17]OFD Sender: No OFD packet to send [15:46:22]OFD Sender: No OFD packet to send [15:46:27]OFD Sender: No OFD packet to send [15:46:32]OFD Sender: No OFD packet to send [15:46:37]OFD Sender: No OFD packet to send [15:46:42]OFD Sender: No OFD packet to send [15:46:47]OFD Sender: No OFD packet to send [15:46:52]OFD Sender: No OFD packet to send [15:46:57]OFD Sender: No OFD packet to send [15:47:02]OFD Sender: No OFD packet to send [15:47:07]OFD Sender: No OFD packet to send [15:47:12]OFD Sender: No OFD packet to send [15:47:17]OFD Sender: No OFD packet to send [15:47:21]accept exits with 7 [15:47:21]New connection [15:47:21]New thread 3067153764 created [15:47:21]Thread 3067297124 joined [15:47:21]Waiting for new connection... [15:47:21] Sock 7.Parse request [15:47:21]Sock 7.Check first char [15:47:21]Sock 7.First char is OK [15:47:21]request: POST /json_proto HTTP/1.0 [15:47:21]Method: POST [15:47:21]URL: /json_proto [15:47:21]Method is POST - this is cgi request [15:47:21]url: /json_proto [15:47:21]query_string will be loaded in cgi processing [15:47:21]execute_cgi json_proto POST (null) [15:47:21]execute_cgi path=json_proto method=POST [15:47:21]POST find Content-Length [15:47:21]Host: 172.17.36.132:8080 [15:47:21]Content-Length: 677 [15:47:21]Content-Type: application/json [15:47:21] [15:47:21]POST finish read [15:47:21]Found Content-Length = 677 [15:47:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706754", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:47:21]execute_script... [15:47: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)706754", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:47:21]POST & json_proto [15:47:21]process_json_proto [15:47:21]json parsed OK: [15:47:21]protocol is kg_v1.0 [15:47:21]action value=close_receipt [15:47:21]process_action close_receipt [15:47:21]cmd_close_receipt [15:47:21]MH_GetDate [15:47:21]Write to MH i2c: F0 00 00 C0 05 B4 [15:47:21]Write i2c OK [15:47:21]MH_I2C_Read... [15:47:21]Read from MH i2c: F0 [15:47:21]MH_I2C_Read... [15:47:21]Read from MH i2c: F0 09 00 [15:47:21]MH_I2C_Read... [15:47:21]Read from MH i2c: F0 09 00 C0 05 00 0A 37 5F 66 B2 22 B0 64 AB [15:47:21]GetLastDocTimeStamp 1717515470 [15:47:21]current date 1717516042 [15:47:21]FM_GetShiftState [15:47:21]SAM_PROTO_GetShiftState [15:47:21]wFMCommunicate request_size=4 [15:47:21]MH_SAM_APDU [15:47:21]CAPDU: 80 13 01 00 [15:47:21]Write to MH i2c: E2 08 00 C1 05 80 13 01 00 00 00 00 00 43 [15:47:21]Write i2c OK [15:47:21]MH_I2C_Read... [15:47:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:47:21]Read from MH i2c: E2 [15:47:21]MH_I2C_Read... [15:47:21]Read from MH i2c: E2 0E 00 [15:47:21]MH_I2C_Read... [15:47:21]Read from MH i2c: E2 0E 00 C1 05 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 DF [15:47:21]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [15:47:21]wFMCommunicate OK [15:47:21]SAM_PROTO_GetShiftState done [15:47:21]FM_GetShiftState done [15:47:21]opened in 1717460590 [15:47:21]opened+sec_in_day 1717546990 [15:47:21]quantity*price = 50041 [15:47:21]sum+1 = 50042 [15:47:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 119 04.06.2024 15:47 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68621 ФПД: 236321497946581 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T154722&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68621&fm=236321497946581&tin=02508201610067®Number=0000000000098096&sum=50000 [15:47:22]StoreToDocumentArchive [15:47:22]shift 325 fd 68621 [15:47:22]save to /storage/0325/doc_00068621 [15:47:22]save last doc name /storage/0325/doc_00068621 to /storage/kkm_last_doc_name [15:47:22]save OK [15:47:22]Clear old archive folders... [15:47:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:47:22]tlvbuf is 00A6D9D0 [15:47:22]SAM_PROTO_ClearQueue [15:47:22]wFMCommunicate request_size=4 [15:47:22]MH_SAM_APDU [15:47:22]CAPDU: 80 09 00 00 [15:47:22]Write to MH i2c: E2 08 00 CE 05 80 09 00 00 00 00 00 00 45 [15:47:22]Write i2c OK [15:47:22]MH_I2C_Read... [15:47:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:47:22]Read from MH i2c: E2 [15:47:22]MH_I2C_Read... [15:47:22]Read from MH i2c: E2 03 00 [15:47:22]MH_I2C_Read... [15:47:22]Read from MH i2c: E2 03 00 CE 05 00 90 00 47 [15:47:22]RAPDU: 90 00 [15:47:22]wFMCommunicate OK [15:47:22]SAM_PROTO_ClearQueue done [15:47:22]KKMCreateOFDPacket [15:47:22]OFDProtocolAddRootSTLVToBuf [15:47:22]FM_MakeSignedData [15:47:22]FM_MakeSignedData [15:47:22]SAM_PROTO_SignData [15:47:22]wFMCommunicate request_size=4 [15:47:22]MH_SAM_APDU [15:47:22]CAPDU: 80 0D 01 02 [15:47:22]Write to MH i2c: E2 08 00 CF 05 80 0D 01 02 00 00 00 00 4D [15:47:22]Write i2c OK [15:47:22]MH_I2C_Read... [15:47:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:47:22]Read from MH i2c: E2 [15:47:22]MH_I2C_Read... [15:47:22]Read from MH i2c: E2 03 00 [15:47:22]MH_I2C_Read... [15:47:22]Read from MH i2c: E2 03 00 CF 05 00 90 00 48 [15:47:22]RAPDU: 90 00 [15:47:22]wFMCommunicate OK [15:47:22]wFMCommunicate request_size=255 [15:47:22]MH_SAM_APDU [15:47: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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 0A 37 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 0D 0C 01 00 35 04 06 00 D6 [15:47:22]Write to MH i2c: E2 02 01 D0 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 0A 37 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 0D 0C 01 00 35 04 06 00 D6 00 00 8D [15:47:22]Write i2c OK [15:47:22]MH_I2C_Read... [15:47:22]Read from MH i2c: E2 [15:47:22]MH_I2C_Read... [15:47:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:47:22]Read from MH i2c: E2 03 00 [15:47:22]MH_I2C_Read... [15:47:22]Read from MH i2c: E2 03 00 D0 05 00 90 00 49 [15:47:22]RAPDU: 90 00 [15:47:22]wFMCommunicate OK [15:47:22]wFMCommunicate request_size=10 [15:47:22]MH_SAM_APDU [15:47:22]CAPDU: 80 0D 02 02 05 EE E2 F0 19 D5 [15:47:22]Write to MH i2c: E2 0D 00 D1 05 80 0D 02 02 05 00 EE E2 F0 19 D5 00 00 08 [15:47:22]Write i2c OK [15:47:22]MH_I2C_Read... [15:47:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:47:22]Read from MH i2c: E2 [15:47:22]MH_I2C_Read... [15:47:22]Read from MH i2c: E2 03 00 [15:47:22]MH_I2C_Read... [15:47:22]Read from MH i2c: E2 03 00 D1 05 00 90 00 4A [15:47:22]RAPDU: 90 00 [15:47:22]wFMCommunicate OK [15:47:22]wFMCommunicate request_size=4 [15:47:22]MH_SAM_APDU [15:47:22]CAPDU: 80 0D 03 02 [15:47:22]Write to MH i2c: E2 08 00 D2 05 80 0D 03 02 00 00 00 00 52 [15:47:22]Write i2c OK [15:47:22]MH_I2C_Read... [15:47:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:47:23]Read from MH i2c: E2 [15:47:23]MH_I2C_Read... [15:47:23]Read from MH i2c: E2 0B 00 [15:47:23]MH_I2C_Read... [15:47:23]Read from MH i2c: E2 0B 00 D2 05 00 BA 36 15 D5 BF 7D 52 41 90 00 FC [15:47:23]RAPDU: BA 36 15 D5 BF 7D 52 41 90 00 [15:47:23]wFMCommunicate OK [15:47:23]SAM_PROTO_SignData done [15:47:23]FM_MakeSignedData done [15:47:23]CreateOFDProtocolMessage [15:47:23]wFMCommunicate request_size=4 [15:47:23]MH_SAM_APDU [15:47:23]CAPDU: 80 11 00 00 [15:47:23]Write to MH i2c: E2 08 00 D3 05 80 11 00 00 00 00 00 00 52 [15:47:23]Write i2c OK [15:47:23]MH_I2C_Read... [15:47:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:47:23]Read from MH i2c: E2 [15:47:23]MH_I2C_Read... [15:47:23]Read from MH i2c: E2 17 00 [15:47:23]MH_I2C_Read... [15:47:23]Read from MH i2c: E2 17 00 D3 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 9D [15:47:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [15:47:23]wFMCommunicate OK [15:47:23]CreateOFDProtocolMessage done [15:47:23]OFDSenderStorePacket 68621 [15:47:23]StoreOFDPacket docnum=68621 [15:47:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 16 30 07 01 26 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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 0A 37 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 0D 0C 01 00 35 04 06 00 D6 EE E2 F0 19 D5 BA 36 15 D5 BF 7D 52 41 [15:47:23]CheckFolder [15:47:23]dirname=/storage/ofd_packets [15:47:23]CheckFolder done [15:47:23]ProducePacketName [15:47:23]name=ofd_packets/00068621 [15:47:23]NVStorageSaveData ofd_packets/00068621 [15:47:23]File name is /storage/ofd_packets/00068621 [15:47:23]Write 301 bytes [15:47:23]NVStorageSaveData done [15:47:23]OFDSenderStorePacket done [15:47:23]KKMCreateOFDPacket done [15:47:23]NVStorageSaveData kkm_last_timestamp [15:47:23]File name is /storage/kkm_last_timestamp [15:47:23]Write 4 bytes [15:47:23]NVStorageSaveData done [15:47:23]ExternCall_PrintAddStr [15:47:23]wPrintStart [15:47:23]Write to MH i2c: 01 00 00 D4 05 D9 [15:47:23]Write i2c OK [15:47:23]MH_I2C_Read... [15:47:23]Read from MH i2c: 01 [15:47:23]MH_I2C_Read... [15:47:23]Read from MH i2c: 01 07 00 [15:47:23]MH_I2C_Read... [15:47:23]Read from MH i2c: 01 07 00 D4 05 00 00 00 00 00 FF 0F EE [15:47:23]RasterBufferAndPrint [15:47:23]line Счет N : (1)706754 [15:47:23]line ИНН: 02508201610067 [15:47:23]line Контрольно-Кассовый Чек [15:47:23]line ПРОДАЖА [15:47:23]line ТРК (МРК, ГНК) : 63 [15:47:23]line Товар: 2710124130 [15:47:23]line Аи-92-К-4 [15:47:23]line 7.480 * 66.90 [15:47:23]line = 500.41 [15:47:23]line НДС 12% НСП 1% [15:47:23]line > о реализуемом товаре [15:47:23]line ОКРУГЛЕНИЕ: -0.41 [15:47:23]line ИТОГО: 500.00 [15:47:23]line Внесено: 500.00 [15:47:23]line СДАЧА: 0.00 [15:47:23]line НСП 1% : 4.43 [15:47:23]line НДС 12% : 53.14 [15:47:23]line Наличными: 500.00 [15:47:23]line Безнал.: 0.00 [15:47:23]line Место: АЗС № 62 "Партнер Нефть" [15:47:23]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [15:47:23]line СНО: Общий режим [15:47:23]line Чек 119 04.06.2024 15:47 [15:47:23]line Смена: 325 ФФД: 1.0 [15:47:23]line ЗНМ: 0300000181 [15:47:23]line РНМ: 0000000000098096 [15:47:23]line Версия ККМ: 001 [15:47:23]line ФМ: 0000000000965400 [15:47:23]line ФД: 68621 [15:47:23]line ФПД: 236321497946581 [15:47:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T154722&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68621&fm=236321497946581&tin=02508201610067®Number=0000000000098096&sum=50000 [15:47:23]OFD Sender: Processing packet 68621 [packets to send 27, broken 26] [15:47:23]ProducePacketName [15:47:23]name=ofd_packets/00068621 [15:47:23]OFD Sender: To server: pG, [15:47:23]CommunicateWithHost lk.salyk.kg:30040 [15:47:23]ConnectInit lk.salyk.kg [15:47:23]written 0, free lines is 4095 [15:47:23]Connected sock=11 [15:47:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 16 30 07 01 26 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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 0A 37 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 0D 0C 01 00 35 04 06 00 D6 EE E2 F0 19 D5 BA 36 15 D5 BF 7D 52 41 [15:47:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 8A F9 47 00 A4 EB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 0D 0C 01 00 F4 03 04 00 02 DE 5E 66 B6 04 01 00 00 28 8F 4D 78 5C D6 7D 82 [15:47:23]CommunicateWithHost err = 0 [15:47:23]CheckOFDResponse [15:47:23]1017 (14) - 77093643461234 [15:47:23]1041 (16) - 0000000000965400 [15:47:23]1040 (4) - 68621 [15:47:23]1012 (4) - 04.06.2024 09:27 [15:47:23]1206 (1) - 0 [15:47:23]OFD Sender: Remove packet 68621 [15:47:23]ProducePacketName [15:47:23]name=ofd_packets/00068621 [15:47:23]NVStorageDeleteData [15:47:23]Write to MH i2c: 01 00 00 FF 05 04 [15:47:23]Write i2c OK [15:47:23]MH_I2C_Read... [15:47:23]Read from MH i2c: 01 [15:47:23]MH_I2C_Read... [15:47:23]Read from MH i2c: 01 07 00 [15:47:23]MH_I2C_Read... [15:47:23]Read from MH i2c: 01 07 00 FF 05 00 00 00 00 00 E1 0C F8 [15:47:23]RasterBufferAndPrint [15:47:23]line [15:47:23]line [15:47:23]line [15:47:23]line [15:47:23]line [15:47:23]written 0, free lines is 3302 [15:47:23]MH_Cut [15:47:23]Write to MH i2c: D1 01 00 06 06 01 DE [15:47:23]Write i2c OK [15:47:23]MH_I2C_Read... [15:47:23]Read from MH i2c: D1 [15:47:23]MH_I2C_Read... [15:47:23]Read from MH i2c: D1 01 00 [15:47:23]MH_I2C_Read... [15:47:23]Read from MH i2c: D1 01 00 06 06 00 DD [15:47:23]Write to MH i2c: 01 00 00 07 06 0D [15:47:23]Write i2c OK [15:47:23]MH_I2C_Read... [15:47:24]OFD Sender: No OFD packet to send [15:47:24]*** Cut start [15:47:24]*** Partial cut [15:47:24]*** CUTSNS_PIN = 1 [15:47:24]*** CUTSNS_PIN = 0 [15:47:24]*** Brake cut motor [15:47:25]Read from MH i2c: 01 [15:47:25]MH_I2C_Read... [15:47:25]*** Stop cut motor [15:47:25]*** Cut end [15:47:25]Read from MH i2c: 01 07 00 [15:47:25]MH_I2C_Read... [15:47:25]Read from MH i2c: 01 07 00 07 06 00 00 00 00 00 FF 0F 22 [15:47:25]process_action close_receipt done [15:47:25]requested_data is exist [15:47:25]produce_requested_data [15:47:25]requested_item fm.sn is exist - process it [15:47:25]wFMCommunicate request_size=4 [15:47:25]MH_SAM_APDU [15:47:25]CAPDU: 80 11 00 00 [15:47:25]Write to MH i2c: E2 08 00 08 06 80 11 00 00 00 00 00 00 88 [15:47:25]Write i2c OK [15:47:25]MH_I2C_Read... [15:47:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:47:25]Read from MH i2c: E2 [15:47:25]MH_I2C_Read... [15:47:25]Read from MH i2c: E2 17 00 [15:47:25]MH_I2C_Read... [15:47:25]Read from MH i2c: E2 17 00 08 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 D3 [15:47:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [15:47:25]wFMCommunicate OK [15:47:25]requested_item fd.num is exist - process it [15:47:25]SAM_PROTO_GetFieldsCounters [15:47:25]wFMCommunicate request_size=4 [15:47:25]MH_SAM_APDU [15:47:25]CAPDU: 80 13 00 00 [15:47:25]Write to MH i2c: E2 08 00 09 06 80 13 00 00 00 00 00 00 8B [15:47:25]Write i2c OK [15:47:25]MH_I2C_Read... [15:47:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:47:25]Read from MH i2c: E2 [15:47:25]MH_I2C_Read... [15:47:25]Read from MH i2c: E2 62 00 [15:47:25]MH_I2C_Read... [15:47:25]Read from MH i2c: E2 62 00 09 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 0D 0C 01 00 0E 04 04 00 45 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 70 [15:47:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 0D 0C 01 00 0E 04 04 00 45 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:47:25]wFMCommunicate OK [15:47:25]SAM_PROTO_GetFieldsCounters done [15:47:25]requested_item shift.num is exist - process it [15:47:25]requested_item shift.opened is exist - process it [15:47:25]req_shift_opened [15:47:25]FM_GetShiftState [15:47:25]SAM_PROTO_GetShiftState [15:47:25]wFMCommunicate request_size=4 [15:47:25]MH_SAM_APDU [15:47:25]CAPDU: 80 13 01 00 [15:47:25]Write to MH i2c: E2 08 00 0A 06 80 13 01 00 00 00 00 00 8D [15:47:25]Write i2c OK [15:47:25]MH_I2C_Read... [15:47:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:47:25]Read from MH i2c: E2 [15:47:25]MH_I2C_Read... [15:47:25]Read from MH i2c: E2 0E 00 [15:47:25]MH_I2C_Read... [15:47:25]Read from MH i2c: E2 0E 00 0A 06 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 29 [15:47:25]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [15:47:25]wFMCommunicate OK [15:47:25]SAM_PROTO_GetShiftState done [15:47:25]FM_GetShiftState done [15:47:25]req_shift_opened done [15:47:25]requested_item shift.open_date is exist - process it [15:47:25]req_shift_open_date [15:47:25]req_shift_open_date done [15:47:25]produce_requested_data done [15:47:25]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68621,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [15:47:25]process_action_free close_receipt [15:47:25]json_value_free [15:47:25]json_value_free done [15:47:25]process_json_proto returns [15:47:25]Send response to host [15:47:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68621,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [15:47:25]free response buf [15:47:25]execute_script done [15:47:25]execute_script returns [15:47:25]free content buf [15:47:25]Sock 7.Close socket [15:47:25]Sock 7.Thread stoped [15:47:29]OFD Sender: No OFD packet to send [15:47:34]OFD Sender: No OFD packet to send [15:47:39]OFD Sender: No OFD packet to send [15:47:44]OFD Sender: No OFD packet to send [15:47:49]OFD Sender: No OFD packet to send [15:47:54]OFD Sender: No OFD packet to send [15:47:59]OFD Sender: No OFD packet to send [15:48:04]OFD Sender: No OFD packet to send [15:48:09]OFD Sender: No OFD packet to send [15:48:14]OFD Sender: No OFD packet to send [15:48:19]OFD Sender: No OFD packet to send [15:48:24]OFD Sender: No OFD packet to send [15:48:29]OFD Sender: No OFD packet to send [15:48:34]OFD Sender: No OFD packet to send [15:48:36]accept exits with 9 [15:48:36]New connection [15:48:36]New thread 3067297124 created [15:48:36]Thread 3067153764 joined [15:48:36]Waiting for new connection... [15:48:36] Sock 9.Parse request [15:48:36]Sock 9.Check first char [15:48:36]Sock 9.First char is OK [15:48:36]request: POST /json_proto HTTP/1.0 [15:48:36]Method: POST [15:48:36]URL: /json_proto [15:48:36]Method is POST - this is cgi request [15:48:36]url: /json_proto [15:48:36]query_string will be loaded in cgi processing [15:48:36]execute_cgi json_proto POST (null) [15:48:36]execute_cgi path=json_proto method=POST [15:48:36]POST find Content-Length [15:48:36]Host: 172.17.36.132:8080 [15:48:36]Content-Length: 678 [15:48:36]Content-Type: application/json [15:48:36] [15:48:36]POST finish read [15:48:36]Found Content-Length = 678 [15:48:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706755", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:48:36]execute_script... [15:48:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706755", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:48:36]POST & json_proto [15:48:36]process_json_proto [15:48:36]json parsed OK: [15:48:36]protocol is kg_v1.0 [15:48:36]action value=close_receipt [15:48:36]process_action close_receipt [15:48:36]cmd_close_receipt [15:48:36]MH_GetDate [15:48:36]Write to MH i2c: F0 00 00 0B 06 00 [15:48:36]Write i2c OK [15:48:36]MH_I2C_Read... [15:48:36]Read from MH i2c: F0 [15:48:36]MH_I2C_Read... [15:48:36]Read from MH i2c: F0 09 00 [15:48:36]MH_I2C_Read... [15:48:36]Read from MH i2c: F0 09 00 0B 06 00 55 37 5F 66 B2 22 B0 64 42 [15:48:36]GetLastDocTimeStamp 1717516042 [15:48:36]current date 1717516117 [15:48:36]FM_GetShiftState [15:48:36]SAM_PROTO_GetShiftState [15:48:36]wFMCommunicate request_size=4 [15:48:36]MH_SAM_APDU [15:48:36]CAPDU: 80 13 01 00 [15:48:36]Write to MH i2c: E2 08 00 0C 06 80 13 01 00 00 00 00 00 8F [15:48:36]Write i2c OK [15:48:36]MH_I2C_Read... [15:48:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:48:36]Read from MH i2c: E2 [15:48:36]MH_I2C_Read... [15:48:36]Read from MH i2c: E2 0E 00 [15:48:36]MH_I2C_Read... [15:48:36]Read from MH i2c: E2 0E 00 0C 06 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 2B [15:48:36]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [15:48:36]wFMCommunicate OK [15:48:36]SAM_PROTO_GetShiftState done [15:48:36]FM_GetShiftState done [15:48:36]opened in 1717460590 [15:48:36]opened+sec_in_day 1717546990 [15:48:36]quantity*price = 80012 [15:48:36]sum+1 = 80013 [15:48:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 120 04.06.2024 15:48 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68622 ФПД: 232727241001720 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T154837&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68622&fm=232727241001720&tin=02508201610067®Number=0000000000098096&sum=80000 [15:48:37]StoreToDocumentArchive [15:48:37]shift 325 fd 68622 [15:48:37]save to /storage/0325/doc_00068622 [15:48:37]save last doc name /storage/0325/doc_00068622 to /storage/kkm_last_doc_name [15:48:37]save OK [15:48:37]Clear old archive folders... [15:48:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:48:37]tlvbuf is B6FA9A60 [15:48:37]SAM_PROTO_ClearQueue [15:48:37]wFMCommunicate request_size=4 [15:48:37]MH_SAM_APDU [15:48:37]CAPDU: 80 09 00 00 [15:48:37]Write to MH i2c: E2 08 00 19 06 80 09 00 00 00 00 00 00 91 [15:48:37]Write i2c OK [15:48:37]MH_I2C_Read... [15:48:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:48:38]Read from MH i2c: E2 [15:48:38]MH_I2C_Read... [15:48:38]Read from MH i2c: E2 03 00 [15:48:38]MH_I2C_Read... [15:48:38]Read from MH i2c: E2 03 00 19 06 00 90 00 93 [15:48:38]RAPDU: 90 00 [15:48:38]wFMCommunicate OK [15:48:38]SAM_PROTO_ClearQueue done [15:48:38]KKMCreateOFDPacket [15:48:38]OFDProtocolAddRootSTLVToBuf [15:48:38]FM_MakeSignedData [15:48:38]FM_MakeSignedData [15:48:38]SAM_PROTO_SignData [15:48:38]wFMCommunicate request_size=4 [15:48:38]MH_SAM_APDU [15:48:38]CAPDU: 80 0D 01 02 [15:48:38]Write to MH i2c: E2 08 00 1A 06 80 0D 01 02 00 00 00 00 99 [15:48:38]Write i2c OK [15:48:38]MH_I2C_Read... [15:48:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:48:38]Read from MH i2c: E2 [15:48:38]MH_I2C_Read... [15:48:38]Read from MH i2c: E2 03 00 [15:48:38]MH_I2C_Read... [15:48:38]Read from MH i2c: E2 03 00 1A 06 00 90 00 94 [15:48:38]RAPDU: 90 00 [15:48:38]wFMCommunicate OK [15:48:38]wFMCommunicate request_size=255 [15:48:38]MH_SAM_APDU [15: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 34 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 55 37 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 0E 0C 01 00 35 04 06 00 D3 [15:48:38]Write to MH i2c: E2 02 01 1B 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 34 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 55 37 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 0E 0C 01 00 35 04 06 00 D3 00 00 0F [15:48:38]Write i2c OK [15:48:38]MH_I2C_Read... [15:48:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:48:38]Read from MH i2c: E2 [15:48:38]MH_I2C_Read... [15:48:38]Read from MH i2c: E2 03 00 [15:48:38]MH_I2C_Read... [15:48:38]Read from MH i2c: E2 03 00 1B 06 00 90 00 95 [15:48:38]RAPDU: 90 00 [15:48:38]wFMCommunicate OK [15:48:38]wFMCommunicate request_size=10 [15:48:38]MH_SAM_APDU [15:48:38]CAPDU: 80 0D 02 02 05 AA 08 87 8A F8 [15:48:38]Write to MH i2c: E2 0D 00 1C 06 80 0D 02 02 05 00 AA 08 87 8A F8 00 00 61 [15:48:38]Write i2c OK [15:48:38]MH_I2C_Read... [15:48:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:48:38]Read from MH i2c: E2 [15:48:38]MH_I2C_Read... [15:48:38]Read from MH i2c: E2 03 00 [15:48:38]MH_I2C_Read... [15:48:38]Read from MH i2c: E2 03 00 1C 06 00 90 00 96 [15:48:38]RAPDU: 90 00 [15:48:38]wFMCommunicate OK [15:48:38]wFMCommunicate request_size=4 [15:48:38]MH_SAM_APDU [15:48:38]CAPDU: 80 0D 03 02 [15:48:38]Write to MH i2c: E2 08 00 1D 06 80 0D 03 02 00 00 00 00 9E [15:48:38]Write i2c OK [15:48:38]MH_I2C_Read... [15:48:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:48:38]Read from MH i2c: E2 [15:48:38]MH_I2C_Read... [15:48:38]Read from MH i2c: E2 0B 00 [15:48:38]MH_I2C_Read... [15:48:38]Read from MH i2c: E2 0B 00 1D 06 00 13 4F 59 FF 57 4F F2 4A 90 00 3B [15:48:38]RAPDU: 13 4F 59 FF 57 4F F2 4A 90 00 [15:48:38]wFMCommunicate OK [15:48:38]SAM_PROTO_SignData done [15:48:38]FM_MakeSignedData done [15:48:38]CreateOFDProtocolMessage [15:48:38]wFMCommunicate request_size=4 [15:48:38]MH_SAM_APDU [15:48:38]CAPDU: 80 11 00 00 [15:48:38]Write to MH i2c: E2 08 00 1E 06 80 11 00 00 00 00 00 00 9E [15:48:38]Write i2c OK [15:48:38]MH_I2C_Read... [15:48:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:48:38]Read from MH i2c: E2 [15:48:38]MH_I2C_Read... [15:48:38]Read from MH i2c: E2 17 00 [15:48:38]MH_I2C_Read... [15:48:38]Read from MH i2c: E2 17 00 1E 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 E9 [15:48:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [15:48:38]wFMCommunicate OK [15:48:38]CreateOFDProtocolMessage done [15:48:38]OFDSenderStorePacket 68622 [15:48:38]StoreOFDPacket docnum=68622 [15:48:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 AC 86 07 01 71 29 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 55 37 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 0E 0C 01 00 35 04 06 00 D3 AA 08 87 8A F8 13 4F 59 FF 57 4F F2 4A [15:48:38]CheckFolder [15:48:38]dirname=/storage/ofd_packets [15:48:38]CheckFolder done [15:48:38]ProducePacketName [15:48:38]name=ofd_packets/00068622 [15:48:38]NVStorageSaveData ofd_packets/00068622 [15:48:38]File name is /storage/ofd_packets/00068622 [15:48:38]Write 301 bytes [15:48:38]NVStorageSaveData done [15:48:38]OFDSenderStorePacket done [15:48:38]KKMCreateOFDPacket done [15:48:38]NVStorageSaveData kkm_last_timestamp [15:48:38]File name is /storage/kkm_last_timestamp [15:48:38]Write 4 bytes [15:48:38]NVStorageSaveData done [15:48:38]ExternCall_PrintAddStr [15:48:38]wPrintStart [15:48:38]Write to MH i2c: 01 00 00 1F 06 25 [15:48:38]Write i2c OK [15:48:38]MH_I2C_Read... [15:48:38]Read from MH i2c: 01 [15:48:38]MH_I2C_Read... [15:48:38]Read from MH i2c: 01 07 00 [15:48:38]MH_I2C_Read... [15:48:38]Read from MH i2c: 01 07 00 1F 06 00 00 00 00 00 FF 0F 3A [15:48:38]RasterBufferAndPrint [15:48:38]line Счет N : (1)706755 [15:48:38]line ИНН: 02508201610067 [15:48:38]line Контрольно-Кассовый Чек [15:48:38]line ПРОДАЖА [15:48:38]line ТРК (МРК, ГНК) : 42 [15:48:38]line Товар: 2710124130 [15:48:38]line Аи-92-К-4 [15:48:38]line 11.960 * 66.90 [15:48:38]line = 800.12 [15:48:38]line НДС 12% НСП 1% [15:48:38]line > о реализуемом товаре [15:48:38]line ОКРУГЛЕНИЕ: -0.12 [15:48:38]line ИТОГО: 800.00 [15:48:38]line Внесено: 800.00 [15:48:38]line СДАЧА: 0.00 [15:48:38]line НСП 1% : 7.08 [15:48:38]line НДС 12% : 84.97 [15:48:38]line Наличными: 800.00 [15:48:38]line Безнал.: 0.00 [15:48:38]line Место: АЗС № 62 "Партнер Нефть" [15:48:38]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [15:48:38]line СНО: Общий режим [15:48:38]line Чек 120 04.06.2024 15:48 [15:48:38]line Смена: 325 ФФД: 1.0 [15:48:38]line ЗНМ: 0300000181 [15:48:38]line РНМ: 0000000000098096 [15:48:38]line Версия ККМ: 001 [15:48:38]line ФМ: 0000000000965400 [15:48:38]line ФД: 68622 [15:48:38]line ФПД: 232727241001720 [15:48:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T154837&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68622&fm=232727241001720&tin=02508201610067®Number=0000000000098096&sum=80000 [15:48:38]OFD Sender: Processing packet 68622 [packets to send 27, broken 26] [15:48:38]ProducePacketName [15:48:38]name=ofd_packets/00068622 [15:48:38]OFD Sender: To server: pG, [15:48:38]CommunicateWithHost lk.salyk.kg:30040 [15:48:38]ConnectInit lk.salyk.kg [15:48:38]written 0, free lines is 4095 [15:48:38]Connected sock=10 [15:48:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 AC 86 07 01 71 29 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 55 37 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 0E 0C 01 00 35 04 06 00 D3 AA 08 87 8A F8 13 4F 59 FF 57 4F F2 4A [15:48:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 03 C8 47 00 89 BE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 0E 0C 01 00 F4 03 04 00 4D DE 5E 66 B6 04 01 00 00 02 78 87 57 20 D4 45 85 [15:48:39]CommunicateWithHost err = 0 [15:48:39]CheckOFDResponse [15:48:39]1017 (14) - 77093643461234 [15:48:39]1041 (16) - 0000000000965400 [15:48:39]1040 (4) - 68622 [15:48:39]1012 (4) - 04.06.2024 09:28 [15:48:39]1206 (1) - 0 [15:48:39]OFD Sender: Remove packet 68622 [15:48:39]ProducePacketName [15:48:39]name=ofd_packets/00068622 [15:48:39]NVStorageDeleteData [15:48:39]Write to MH i2c: 01 00 00 4A 06 50 [15:48:39]Write i2c OK [15:48:39]MH_I2C_Read... [15:48:39]Read from MH i2c: 01 [15:48:39]MH_I2C_Read... [15:48:39]Read from MH i2c: 01 07 00 [15:48:39]MH_I2C_Read... [15:48:39]Read from MH i2c: 01 07 00 4A 06 00 00 00 00 00 DA 0C 3D [15:48:39]RasterBufferAndPrint [15:48:39]line [15:48:39]line [15:48:39]line [15:48:39]line [15:48:39]line [15:48:39]written 0, free lines is 3297 [15:48:39]MH_Cut [15:48:39]Write to MH i2c: D1 01 00 51 06 01 29 [15:48:39]Write i2c OK [15:48:39]MH_I2C_Read... [15:48:39]Read from MH i2c: D1 [15:48:39]MH_I2C_Read... [15:48:39]Read from MH i2c: D1 01 00 [15:48:39]MH_I2C_Read... [15:48:39]Read from MH i2c: D1 01 00 51 06 00 28 [15:48:39]Write to MH i2c: 01 00 00 52 06 58 [15:48:39]Write i2c OK [15:48:39]MH_I2C_Read... [15:48:39]OFD Sender: No OFD packet to send [15:48:40]*** Cut start [15:48:40]*** Partial cut [15:48:40]*** CUTSNS_PIN = 1 [15:48:40]*** CUTSNS_PIN = 0 [15:48:40]*** Brake cut motor [15:48:40]Read from MH i2c: 01 [15:48:40]MH_I2C_Read... [15:48:40]*** Stop cut motor [15:48:40]*** Cut end [15:48:40]Read from MH i2c: 01 07 00 [15:48:40]MH_I2C_Read... [15:48:40]Read from MH i2c: 01 07 00 52 06 00 00 00 00 00 FF 0F 6D [15:48:40]process_action close_receipt done [15:48:40]requested_data is exist [15:48:40]produce_requested_data [15:48:40]requested_item fm.sn is exist - process it [15:48:40]wFMCommunicate request_size=4 [15:48:40]MH_SAM_APDU [15:48:40]CAPDU: 80 11 00 00 [15:48:40]Write to MH i2c: E2 08 00 53 06 80 11 00 00 00 00 00 00 D3 [15:48:40]Write i2c OK [15:48:40]MH_I2C_Read... [15:48:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:48:40]Read from MH i2c: E2 [15:48:40]MH_I2C_Read... [15:48:40]Read from MH i2c: E2 17 00 [15:48:40]MH_I2C_Read... [15:48:40]Read from MH i2c: E2 17 00 53 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 1E [15:48:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [15:48:40]wFMCommunicate OK [15:48:40]requested_item fd.num is exist - process it [15:48:40]SAM_PROTO_GetFieldsCounters [15:48:40]wFMCommunicate request_size=4 [15:48:40]MH_SAM_APDU [15:48:40]CAPDU: 80 13 00 00 [15:48:40]Write to MH i2c: E2 08 00 54 06 80 13 00 00 00 00 00 00 D6 [15:48:40]Write i2c OK [15:48:40]MH_I2C_Read... [15:48:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:48:40]Read from MH i2c: E2 [15:48:40]MH_I2C_Read... [15:48:40]Read from MH i2c: E2 62 00 [15:48:40]MH_I2C_Read... [15:48:40]Read from MH i2c: E2 62 00 54 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 0E 0C 01 00 0E 04 04 00 45 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 BF [15:48:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 0E 0C 01 00 0E 04 04 00 45 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:48:40]wFMCommunicate OK [15:48:40]SAM_PROTO_GetFieldsCounters done [15:48:40]requested_item shift.num is exist - process it [15:48:40]requested_item shift.opened is exist - process it [15:48:40]req_shift_opened [15:48:40]FM_GetShiftState [15:48:40]SAM_PROTO_GetShiftState [15:48:40]wFMCommunicate request_size=4 [15:48:40]MH_SAM_APDU [15:48:40]CAPDU: 80 13 01 00 [15:48:40]Write to MH i2c: E2 08 00 55 06 80 13 01 00 00 00 00 00 D8 [15:48:40]Write i2c OK [15:48:40]MH_I2C_Read... [15:48:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:48:40]Read from MH i2c: E2 [15:48:40]MH_I2C_Read... [15:48:40]Read from MH i2c: E2 0E 00 [15:48:40]MH_I2C_Read... [15:48:40]Read from MH i2c: E2 0E 00 55 06 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 74 [15:48:40]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [15:48:40]wFMCommunicate OK [15:48:40]SAM_PROTO_GetShiftState done [15:48:40]FM_GetShiftState done [15:48:40]req_shift_opened done [15:48:40]requested_item shift.open_date is exist - process it [15:48:40]req_shift_open_date [15:48:40]req_shift_open_date done [15:48:40]produce_requested_data done [15:48:40]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68622,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [15:48:40]process_action_free close_receipt [15:48:40]json_value_free [15:48:40]json_value_free done [15:48:40]process_json_proto returns [15:48:40]Send response to host [15:48:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68622,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [15:48:40]free response buf [15:48:40]execute_script done [15:48:40]execute_script returns [15:48:40]free content buf [15:48:40]Sock 9.Close socket [15:48:40]Sock 9.Thread stoped [15:48:44]OFD Sender: No OFD packet to send [15:48:49]OFD Sender: No OFD packet to send [15:48:54]OFD Sender: No OFD packet to send [15:48:59]OFD Sender: No OFD packet to send [15:49:04]OFD Sender: No OFD packet to send [15:49:09]OFD Sender: No OFD packet to send [15:49:14]OFD Sender: No OFD packet to send [15:49:19]OFD Sender: No OFD packet to send [15:49:23]accept exits with 7 [15:49:23]New connection [15:49:23]New thread 3067153764 created [15:49:23]Thread 3067297124 joined [15:49:23]Waiting for new connection... [15:49:23] Sock 7.Parse request [15:49:23]Sock 7.Check first char [15:49:23]Sock 7.First char is OK [15:49:23]request: POST /json_proto HTTP/1.0 [15:49:23]Method: POST [15:49:23]URL: /json_proto [15:49:23]Method is POST - this is cgi request [15:49:23]url: /json_proto [15:49:23]query_string will be loaded in cgi processing [15:49:23]execute_cgi json_proto POST (null) [15:49:23]execute_cgi path=json_proto method=POST [15:49:23]POST find Content-Length [15:49:23]Host: 172.17.36.132:8080 [15:49:23]Content-Length: 1168 [15:49:23]Content-Type: application/json [15:49:23] [15:49:23]POST finish read [15:49:23]Found Content-Length = 1168 [15:49:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0418\u0441\u043C\u0430\u043D\u0430\u043B\u0438\u0435\u0432 \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)706758\u000A04.06.2024 15:26\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 : 2710124130\u000A\u0410\u0438-92-\u041A-4\u000A 10.000 x 66.90\u000A\u0418\u0422\u041E\u0413: 669.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30111837\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:49:23]execute_script... [15:49:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0418\u0441\u043C\u0430\u043D\u0430\u043B\u0438\u0435\u0432 \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)706758\u000A04.06.2024 15:26\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 : 2710124130\u000A\u0410\u0438-92-\u041A-4\u000A 10.000 x 66.90\u000A\u0418\u0422\u041E\u0413: 669.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30111837\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:49:23]POST & json_proto [15:49:23]process_json_proto [15:49:23]json parsed OK: [15:49:23]protocol is kg_v1.0 [15:49:23]action value=print_text [15:49:23]process_action print_text [15:49:23]cmd_print_text [15:49:23]ExternCall_PrintAddStr [15:49:23]wPrintStart [15:49:23]Write to MH i2c: 01 00 00 56 06 5C [15:49:23]Write i2c OK [15:49:23]MH_I2C_Read... [15:49:23]Read from MH i2c: 01 [15:49:23]MH_I2C_Read... [15:49:23]Read from MH i2c: 01 07 00 [15:49:23]MH_I2C_Read... [15:49:23]Read from MH i2c: 01 07 00 56 06 00 00 00 00 00 FF 0F 71 [15:49:23]RasterBufferAndPrint [15:49:23]line *****ТОВАРНЫЙ ЧЕК***** [15:49:23]line АЗС 62 [15:49:23]line Партнер нефть [15:49:23]line 02508201610067 [15:49:23]line Кассир : Исманалиев Д. [15:49:23]line Счет N : (1)706758 [15:49:23]line 04.06.2024 15:26 [15:49:23]line ПРОДАЖА [15:49:23]line ТРК (МРК, ГНК): 13 [15:49:23]line Вид ГСМ : 2710124130 [15:49:23]line Аи-92-К-4 [15:49:23]line 10.000 x 66.90 [15:49:23]line ИТОГ: 669.00 [15:49:23]line Тип оплаты: Талоны: ТК ГПНА Online [15:49:23]line 30111837 [15:49:23]line ______________________ [15:49:23]line (подпись) [15:49:23]written 0, free lines is 4095 [15:49:24]Write to MH i2c: 01 00 00 6A 06 70 [15:49:24]Write i2c OK [15:49:24]MH_I2C_Read... [15:49:24]Read from MH i2c: 01 [15:49:24]MH_I2C_Read... [15:49:24]Read from MH i2c: 01 07 00 [15:49:24]MH_I2C_Read... [15:49:24]Read from MH i2c: 01 07 00 6A 06 00 00 00 00 00 12 0E 97 [15:49:24]RasterBufferAndPrint [15:49:24]line [15:49:24]line [15:49:24]line [15:49:24]line [15:49:24]line [15:49:24]written 0, free lines is 3603 [15:49:24]MH_Cut [15:49:24]Write to MH i2c: D1 01 00 71 06 01 49 [15:49:24]Write i2c OK [15:49:24]MH_I2C_Read... [15:49:24]Read from MH i2c: D1 [15:49:24]MH_I2C_Read... [15:49:24]Read from MH i2c: D1 01 00 [15:49:24]MH_I2C_Read... [15:49:24]Read from MH i2c: D1 01 00 71 06 00 48 [15:49:24]Write to MH i2c: 01 00 00 72 06 78 [15:49:24]Write i2c OK [15:49:24]MH_I2C_Read... [15:49:24]*** Cut start [15:49:24]*** Partial cut [15:49:24]*** CUTSNS_PIN = 1 [15:49:24]*** CUTSNS_PIN = 0 [15:49:24]OFD Sender: No OFD packet to send [15:49:24]*** Brake cut motor [15:49:25]Read from MH i2c: 01 [15:49:25]MH_I2C_Read... [15:49:25]*** Stop cut motor [15:49:25]*** Cut end [15:49:25]Read from MH i2c: 01 07 00 [15:49:25]MH_I2C_Read... [15:49:25]Read from MH i2c: 01 07 00 72 06 00 00 00 00 00 FF 0F 8D [15:49:25]process_action print_text done [15:49:25]requested_data is exist [15:49:25]produce_requested_data [15:49:25]requested_item fm.sn is exist - process it [15:49:25]wFMCommunicate request_size=4 [15:49:25]MH_SAM_APDU [15:49:25]CAPDU: 80 11 00 00 [15:49:25]Write to MH i2c: E2 08 00 73 06 80 11 00 00 00 00 00 00 F3 [15:49:25]Write i2c OK [15:49:25]MH_I2C_Read... [15:49:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:49:25]Read from MH i2c: E2 [15:49:25]MH_I2C_Read... [15:49:25]Read from MH i2c: E2 17 00 [15:49:25]MH_I2C_Read... [15:49:25]Read from MH i2c: E2 17 00 73 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 3E [15:49:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [15:49:25]wFMCommunicate OK [15:49:25]requested_item fd.num is exist - process it [15:49:25]SAM_PROTO_GetFieldsCounters [15:49:25]wFMCommunicate request_size=4 [15:49:25]MH_SAM_APDU [15:49:25]CAPDU: 80 13 00 00 [15:49:25]Write to MH i2c: E2 08 00 74 06 80 13 00 00 00 00 00 00 F6 [15:49:25]Write i2c OK [15:49:25]MH_I2C_Read... [15:49:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:49:25]Read from MH i2c: E2 [15:49:25]MH_I2C_Read... [15:49:25]Read from MH i2c: E2 62 00 [15:49:25]MH_I2C_Read... [15:49:25]Read from MH i2c: E2 62 00 74 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 0E 0C 01 00 0E 04 04 00 45 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 DF [15:49:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 0E 0C 01 00 0E 04 04 00 45 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:49:25]wFMCommunicate OK [15:49:25]SAM_PROTO_GetFieldsCounters done [15:49:25]requested_item shift.num is exist - process it [15:49:25]requested_item shift.opened is exist - process it [15:49:25]req_shift_opened [15:49:25]FM_GetShiftState [15:49:25]SAM_PROTO_GetShiftState [15:49:25]wFMCommunicate request_size=4 [15:49:25]MH_SAM_APDU [15:49:25]CAPDU: 80 13 01 00 [15:49:25]Write to MH i2c: E2 08 00 75 06 80 13 01 00 00 00 00 00 F8 [15:49:25]Write i2c OK [15:49:25]MH_I2C_Read... [15:49:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:49:25]Read from MH i2c: E2 [15:49:25]MH_I2C_Read... [15:49:25]Read from MH i2c: E2 0E 00 [15:49:25]MH_I2C_Read... [15:49:25]Read from MH i2c: E2 0E 00 75 06 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 94 [15:49:25]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [15:49:25]wFMCommunicate OK [15:49:25]SAM_PROTO_GetShiftState done [15:49:25]FM_GetShiftState done [15:49:25]req_shift_opened done [15:49:25]requested_item shift.open_date is exist - process it [15:49:25]req_shift_open_date [15:49:25]req_shift_open_date done [15:49:25]produce_requested_data done [15:49:25]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68622,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [15:49:25]process_action_free print_text [15:49:25]json_value_free [15:49:25]json_value_free done [15:49:25]process_json_proto returns [15:49:25]Send response to host [15:49:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68622,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [15:49:25]free response buf [15:49:25]execute_script done [15:49:25]execute_script returns [15:49:25]free content buf [15:49:25]Sock 7.Close socket [15:49:25]Sock 7.Thread stoped [15:49:27]accept exits with 9 [15:49:27]New connection [15:49:27]New thread 3067297124 created [15:49:27]Thread 3067153764 joined [15:49:27]Waiting for new connection... [15:49:27] Sock 9.Parse request [15:49:27]Sock 9.Check first char [15:49:27]Sock 9.First char is OK [15:49:27]request: POST /json_proto HTTP/1.0 [15:49:27]Method: POST [15:49:27]URL: /json_proto [15:49:27]Method is POST - this is cgi request [15:49:27]url: /json_proto [15:49:27]query_string will be loaded in cgi processing [15:49:27]execute_cgi json_proto POST (null) [15:49:27]execute_cgi path=json_proto method=POST [15:49:27]POST find Content-Length [15:49:27]Host: 172.17.36.132:8080 [15:49:27]Content-Length: 677 [15:49:27]Content-Type: application/json [15:49:27] [15:49:27]POST finish read [15:49:27]Found Content-Length = 677 [15:49:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706757", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:49:27]execute_script... [15:49: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)706757", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:49:27]POST & json_proto [15:49:27]process_json_proto [15:49:27]json parsed OK: [15:49:27]protocol is kg_v1.0 [15:49:27]action value=close_receipt [15:49:27]process_action close_receipt [15:49:27]cmd_close_receipt [15:49:27]MH_GetDate [15:49:27]Write to MH i2c: F0 00 00 76 06 6B [15:49:27]Write i2c OK [15:49:27]MH_I2C_Read... [15:49:27]Read from MH i2c: F0 [15:49:27]MH_I2C_Read... [15:49:27]Read from MH i2c: F0 09 00 [15:49:27]MH_I2C_Read... [15:49:27]Read from MH i2c: F0 09 00 76 06 00 88 37 5F 66 B2 22 B0 64 E0 [15:49:27]GetLastDocTimeStamp 1717516117 [15:49:27]current date 1717516168 [15:49:27]FM_GetShiftState [15:49:27]SAM_PROTO_GetShiftState [15:49:27]wFMCommunicate request_size=4 [15:49:27]MH_SAM_APDU [15:49:27]CAPDU: 80 13 01 00 [15:49:27]Write to MH i2c: E2 08 00 77 06 80 13 01 00 00 00 00 00 FA [15:49:27]Write i2c OK [15:49:27]MH_I2C_Read... [15:49:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:49:27]Read from MH i2c: E2 [15:49:27]MH_I2C_Read... [15:49:27]Read from MH i2c: E2 0E 00 [15:49:27]MH_I2C_Read... [15:49:27]Read from MH i2c: E2 0E 00 77 06 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 96 [15:49:27]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [15:49:27]wFMCommunicate OK [15:49:27]SAM_PROTO_GetShiftState done [15:49:27]FM_GetShiftState done [15:49:27]opened in 1717460590 [15:49:27]opened+sec_in_day 1717546990 [15:49:27]quantity*price = 20003 [15:49:27]sum+1 = 20004 [15:49:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 121 04.06.2024 15:49 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68623 ФПД: 83172159676729 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T154928&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68623&fm=83172159676729&tin=02508201610067®Number=0000000000098096&sum=20000 [15:49:28]StoreToDocumentArchive [15:49:28]shift 325 fd 68623 [15:49:28]save to /storage/0325/doc_00068623 [15:49:28]save last doc name /storage/0325/doc_00068623 to /storage/kkm_last_doc_name [15:49:28]save OK [15:49:28]Clear old archive folders... [15:49:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:49:28]tlvbuf is 00A9B610 [15:49:28]SAM_PROTO_ClearQueue [15:49:28]wFMCommunicate request_size=4 [15:49:28]MH_SAM_APDU [15:49:28]CAPDU: 80 09 00 00 [15:49:28]Write to MH i2c: E2 08 00 84 06 80 09 00 00 00 00 00 00 FC [15:49:28]Write i2c OK [15:49:28]MH_I2C_Read... [15:49:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:49:28]Read from MH i2c: E2 [15:49:28]MH_I2C_Read... [15:49:28]Read from MH i2c: E2 03 00 [15:49:28]MH_I2C_Read... [15:49:28]Read from MH i2c: E2 03 00 84 06 00 90 00 FE [15:49:28]RAPDU: 90 00 [15:49:28]wFMCommunicate OK [15:49:28]SAM_PROTO_ClearQueue done [15:49:28]KKMCreateOFDPacket [15:49:28]OFDProtocolAddRootSTLVToBuf [15:49:28]FM_MakeSignedData [15:49:28]FM_MakeSignedData [15:49:28]SAM_PROTO_SignData [15:49:28]wFMCommunicate request_size=4 [15:49:28]MH_SAM_APDU [15:49:28]CAPDU: 80 0D 01 02 [15:49:28]Write to MH i2c: E2 08 00 85 06 80 0D 01 02 00 00 00 00 04 [15:49:28]Write i2c OK [15:49:28]MH_I2C_Read... [15:49:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:49:28]Read from MH i2c: E2 [15:49:28]MH_I2C_Read... [15:49:28]Read from MH i2c: E2 03 00 [15:49:28]MH_I2C_Read... [15:49:28]Read from MH i2c: E2 03 00 85 06 00 90 00 FF [15:49:28]RAPDU: 90 00 [15:49:28]wFMCommunicate OK [15:49:28]wFMCommunicate request_size=255 [15:49:28]MH_SAM_APDU [15:49:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 88 37 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 0F 0C 01 00 35 04 06 00 4B [15:49:28]Write to MH i2c: E2 02 01 86 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 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 88 37 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 0F 0C 01 00 35 04 06 00 4B 00 00 FD [15:49:28]Write i2c OK [15:49:28]MH_I2C_Read... [15:49:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:49:28]Read from MH i2c: E2 [15:49:28]MH_I2C_Read... [15:49:28]Read from MH i2c: E2 03 00 [15:49:28]MH_I2C_Read... [15:49:28]Read from MH i2c: E2 03 00 86 06 00 90 00 00 [15:49:28]RAPDU: 90 00 [15:49:28]wFMCommunicate OK [15:49:28]wFMCommunicate request_size=10 [15:49:28]MH_SAM_APDU [15:49:28]CAPDU: 80 0D 02 02 05 A5 07 08 61 39 [15:49:28]Write to MH i2c: E2 0D 00 87 06 80 0D 02 02 05 00 A5 07 08 61 39 00 00 5F [15:49:28]Write i2c OK [15:49:28]MH_I2C_Read... [15:49:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:49:28]Read from MH i2c: E2 [15:49:28]MH_I2C_Read... [15:49:28]Read from MH i2c: E2 03 00 [15:49:28]MH_I2C_Read... [15:49:28]Read from MH i2c: E2 03 00 87 06 00 90 00 01 [15:49:28]RAPDU: 90 00 [15:49:28]wFMCommunicate OK [15:49:28]wFMCommunicate request_size=4 [15:49:28]MH_SAM_APDU [15:49:28]CAPDU: 80 0D 03 02 [15:49:28]Write to MH i2c: E2 08 00 88 06 80 0D 03 02 00 00 00 00 09 [15:49:28]Write i2c OK [15:49:28]MH_I2C_Read... [15:49:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:49:29]Read from MH i2c: E2 [15:49:29]MH_I2C_Read... [15:49:29]Read from MH i2c: E2 0B 00 [15:49:29]MH_I2C_Read... [15:49:29]Read from MH i2c: E2 0B 00 88 06 00 D7 52 D8 DE 0C 79 CA 35 90 00 6D [15:49:29]RAPDU: D7 52 D8 DE 0C 79 CA 35 90 00 [15:49:29]wFMCommunicate OK [15:49:29]SAM_PROTO_SignData done [15:49:29]FM_MakeSignedData done [15:49:29]CreateOFDProtocolMessage [15:49:29]wFMCommunicate request_size=4 [15:49:29]MH_SAM_APDU [15:49:29]CAPDU: 80 11 00 00 [15:49:29]Write to MH i2c: E2 08 00 89 06 80 11 00 00 00 00 00 00 09 [15:49:29]Write i2c OK [15:49:29]MH_I2C_Read... [15:49:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:49:29]Read from MH i2c: E2 [15:49:29]MH_I2C_Read... [15:49:29]Read from MH i2c: E2 17 00 [15:49:29]MH_I2C_Read... [15:49:29]Read from MH i2c: E2 17 00 89 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 54 [15:49:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [15:49:29]wFMCommunicate OK [15:49:29]CreateOFDProtocolMessage done [15:49:29]OFDSenderStorePacket 68623 [15:49:29]StoreOFDPacket docnum=68623 [15:49:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 9D E4 07 01 DC EB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 88 37 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 0F 0C 01 00 35 04 06 00 4B A5 07 08 61 39 D7 52 D8 DE 0C 79 CA 35 [15:49:29]CheckFolder [15:49:29]dirname=/storage/ofd_packets [15:49:29]CheckFolder done [15:49:29]ProducePacketName [15:49:29]name=ofd_packets/00068623 [15:49:29]NVStorageSaveData ofd_packets/00068623 [15:49:29]File name is /storage/ofd_packets/00068623 [15:49:29]Write 301 bytes [15:49:29]NVStorageSaveData done [15:49:29]OFDSenderStorePacket done [15:49:29]KKMCreateOFDPacket done [15:49:29]NVStorageSaveData kkm_last_timestamp [15:49:29]File name is /storage/kkm_last_timestamp [15:49:29]Write 4 bytes [15:49:29]NVStorageSaveData done [15:49:29]ExternCall_PrintAddStr [15:49:29]wPrintStart [15:49:29]Write to MH i2c: 01 00 00 8A 06 90 [15:49:29]Write i2c OK [15:49:29]MH_I2C_Read... [15:49:29]Read from MH i2c: 01 [15:49:29]MH_I2C_Read... [15:49:29]Read from MH i2c: 01 07 00 [15:49:29]MH_I2C_Read... [15:49:29]Read from MH i2c: 01 07 00 8A 06 00 00 00 00 00 FF 0F A5 [15:49:29]RasterBufferAndPrint [15:49:29]line Счет N : (1)706757 [15:49:29]line ИНН: 02508201610067 [15:49:29]line Контрольно-Кассовый Чек [15:49:29]line ПРОДАЖА [15:49:29]line ТРК (МРК, ГНК) : 53 [15:49:29]line Товар: 2710124130 [15:49:29]line Аи-92-К-4 [15:49:29]line 2.990 * 66.90 [15:49:29]line = 200.03 [15:49:29]line НДС 12% НСП 1% [15:49:29]line > о реализуемом товаре [15:49:29]line ОКРУГЛЕНИЕ: -0.03 [15:49:29]line ИТОГО: 200.00 [15:49:29]line Внесено: 200.00 [15:49:29]line СДАЧА: 0.00 [15:49:29]line НСП 1% : 1.77 [15:49:29]line НДС 12% : 21.24 [15:49:29]line Наличными: 200.00 [15:49:29]line Безнал.: 0.00 [15:49:29]line Место: АЗС № 62 "Партнер Нефть" [15:49:29]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [15:49:29]line СНО: Общий режим [15:49:29]line Чек 121 04.06.2024 15:49 [15:49:29]line Смена: 325 ФФД: 1.0 [15:49:29]line ЗНМ: 0300000181 [15:49:29]line РНМ: 0000000000098096 [15:49:29]line Версия ККМ: 001 [15:49:29]line ФМ: 0000000000965400 [15:49:29]line ФД: 68623 [15:49:29]line ФПД: 83172159676729 [15:49:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T154928&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68623&fm=83172159676729&tin=02508201610067®Number=0000000000098096&sum=20000 [15:49:29]OFD Sender: Processing packet 68623 [packets to send 27, broken 26] [15:49:29]ProducePacketName [15:49:29]name=ofd_packets/00068623 [15:49:29]OFD Sender: To server: pG, [15:49:29]CommunicateWithHost lk.salyk.kg:30040 [15:49:29]ConnectInit lk.salyk.kg [15:49:29]written 0, free lines is 4095 [15:49:29]Connected sock=10 [15:49:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 9D E4 07 01 DC EB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 88 37 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 0F 0C 01 00 35 04 06 00 4B A5 07 08 61 39 D7 52 D8 DE 0C 79 CA 35 [15:49:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 2A 4E 47 00 D3 8F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 0F 0C 01 00 F4 03 04 00 80 DE 5E 66 B6 04 01 00 00 C8 DF 64 06 CE B3 BF 09 [15:49:29]CommunicateWithHost err = 0 [15:49:29]CheckOFDResponse [15:49:29]1017 (14) - 77093643461234 [15:49:29]1041 (16) - 0000000000965400 [15:49:29]1040 (4) - 68623 [15:49:29]1012 (4) - 04.06.2024 09:29 [15:49:29]1206 (1) - 0 [15:49:29]OFD Sender: Remove packet 68623 [15:49:29]ProducePacketName [15:49:29]name=ofd_packets/00068623 [15:49:29]NVStorageDeleteData [15:49:29]Write to MH i2c: 01 00 00 B5 06 BB [15:49:29]Write i2c OK [15:49:29]MH_I2C_Read... [15:49:29]Read from MH i2c: 01 [15:49:29]MH_I2C_Read... [15:49:29]Read from MH i2c: 01 07 00 [15:49:29]MH_I2C_Read... [15:49:29]Read from MH i2c: 01 07 00 B5 06 00 00 00 00 00 DC 0C AA [15:49:29]RasterBufferAndPrint [15:49:29]line [15:49:29]line [15:49:29]line [15:49:29]line [15:49:29]line [15:49:29]written 0, free lines is 3302 [15:49:29]MH_Cut [15:49:29]Write to MH i2c: D1 01 00 BC 06 01 94 [15:49:29]Write i2c OK [15:49:29]MH_I2C_Read... [15:49:29]Read from MH i2c: D1 [15:49:29]MH_I2C_Read... [15:49:29]Read from MH i2c: D1 01 00 [15:49:29]MH_I2C_Read... [15:49:29]Read from MH i2c: D1 01 00 BC 06 00 93 [15:49:29]Write to MH i2c: 01 00 00 BD 06 C3 [15:49:29]Write i2c OK [15:49:29]MH_I2C_Read... [15:49:30]OFD Sender: No OFD packet to send [15:49:30]*** Cut start [15:49:30]*** Partial cut [15:49:30]*** CUTSNS_PIN = 1 [15:49:30]*** CUTSNS_PIN = 0 [15:49:30]*** Brake cut motor [15:49:31]Read from MH i2c: 01 [15:49:31]MH_I2C_Read... [15:49:31]*** Stop cut motor [15:49:31]*** Cut end [15:49:31]Read from MH i2c: 01 07 00 [15:49:31]MH_I2C_Read... [15:49:31]Read from MH i2c: 01 07 00 BD 06 00 00 00 00 00 FF 0F D8 [15:49:31]process_action close_receipt done [15:49:31]requested_data is exist [15:49:31]produce_requested_data [15:49:31]requested_item fm.sn is exist - process it [15:49:31]wFMCommunicate request_size=4 [15:49:31]MH_SAM_APDU [15:49:31]CAPDU: 80 11 00 00 [15:49:31]Write to MH i2c: E2 08 00 BE 06 80 11 00 00 00 00 00 00 3E [15:49:31]Write i2c OK [15:49:31]MH_I2C_Read... [15:49:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:49:31]Read from MH i2c: E2 [15:49:31]MH_I2C_Read... [15:49:31]Read from MH i2c: E2 17 00 [15:49:31]MH_I2C_Read... [15:49:31]Read from MH i2c: E2 17 00 BE 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 89 [15:49:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [15:49:31]wFMCommunicate OK [15:49:31]requested_item fd.num is exist - process it [15:49:31]SAM_PROTO_GetFieldsCounters [15:49:31]wFMCommunicate request_size=4 [15:49:31]MH_SAM_APDU [15:49:31]CAPDU: 80 13 00 00 [15:49:31]Write to MH i2c: E2 08 00 BF 06 80 13 00 00 00 00 00 00 41 [15:49:31]Write i2c OK [15:49:31]MH_I2C_Read... [15:49:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:49:31]Read from MH i2c: E2 [15:49:31]MH_I2C_Read... [15:49:31]Read from MH i2c: E2 62 00 [15:49:31]MH_I2C_Read... [15:49:31]Read from MH i2c: E2 62 00 BF 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 0F 0C 01 00 0E 04 04 00 45 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 2E [15:49:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 0F 0C 01 00 0E 04 04 00 45 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:49:31]wFMCommunicate OK [15:49:31]SAM_PROTO_GetFieldsCounters done [15:49:31]requested_item shift.num is exist - process it [15:49:31]requested_item shift.opened is exist - process it [15:49:31]req_shift_opened [15:49:31]FM_GetShiftState [15:49:31]SAM_PROTO_GetShiftState [15:49:31]wFMCommunicate request_size=4 [15:49:31]MH_SAM_APDU [15:49:31]CAPDU: 80 13 01 00 [15:49:31]Write to MH i2c: E2 08 00 C0 06 80 13 01 00 00 00 00 00 43 [15:49:31]Write i2c OK [15:49:31]MH_I2C_Read... [15:49:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:49:31]Read from MH i2c: E2 [15:49:31]MH_I2C_Read... [15:49:31]Read from MH i2c: E2 0E 00 [15:49:31]MH_I2C_Read... [15:49:31]Read from MH i2c: E2 0E 00 C0 06 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 DF [15:49:31]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [15:49:31]wFMCommunicate OK [15:49:31]SAM_PROTO_GetShiftState done [15:49:31]FM_GetShiftState done [15:49:31]req_shift_opened done [15:49:31]requested_item shift.open_date is exist - process it [15:49:31]req_shift_open_date [15:49:31]req_shift_open_date done [15:49:31]produce_requested_data done [15:49:31]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68623,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [15:49:31]process_action_free close_receipt [15:49:31]json_value_free [15:49:31]json_value_free done [15:49:31]process_json_proto returns [15:49:31]Send response to host [15:49:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68623,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [15:49:31]free response buf [15:49:31]execute_script done [15:49:31]execute_script returns [15:49:31]free content buf [15:49:31]Sock 9.Close socket [15:49:31]Sock 9.Thread stoped [15:49:35]OFD Sender: No OFD packet to send [15:49:40]OFD Sender: No OFD packet to send [15:49:45]OFD Sender: No OFD packet to send [15:49:50]OFD Sender: No OFD packet to send [15:49:55]OFD Sender: No OFD packet to send [15:50:00]OFD Sender: No OFD packet to send [15:50:05]OFD Sender: No OFD packet to send [15:50:10]OFD Sender: No OFD packet to send [15:50:15]OFD Sender: No OFD packet to send [15:50:20]OFD Sender: No OFD packet to send [15:50:25]OFD Sender: No OFD packet to send [15:50:30]OFD Sender: No OFD packet to send [15:50:35]OFD Sender: No OFD packet to send [15:50:40]OFD Sender: No OFD packet to send [15:50:45]OFD Sender: No OFD packet to send [15:50:50]OFD Sender: No OFD packet to send [15:50:55]OFD Sender: No OFD packet to send [15:51:00]OFD Sender: No OFD packet to send [15:51:05]OFD Sender: No OFD packet to send [15:51:10]OFD Sender: No OFD packet to send [15:51:12]accept exits with 7 [15:51:12]New connection [15:51:12]New thread 3067153764 created [15:51:12]Thread 3067297124 joined [15:51:12]Waiting for new connection... [15:51:12] Sock 7.Parse request [15:51:12]Sock 7.Check first char [15:51:12]Sock 7.First char is OK [15:51:12]request: POST /json_proto HTTP/1.0 [15:51:12]Method: POST [15:51:12]URL: /json_proto [15:51:12]Method is POST - this is cgi request [15:51:12]url: /json_proto [15:51:12]query_string will be loaded in cgi processing [15:51:12]execute_cgi json_proto POST (null) [15:51:12]execute_cgi path=json_proto method=POST [15:51:12]POST find Content-Length [15:51:12]Host: 172.17.36.132:8080 [15:51:12]Content-Length: 687 [15:51:12]Content-Type: application/json [15:51:12] [15:51:12]POST finish read [15:51:12]Found Content-Length = 687 [15:51:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706756", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 27.440, "sum" : 2000.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:51:12]execute_script... [15:51: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)706756", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 27.440, "sum" : 2000.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:51:12]POST & json_proto [15:51:12]process_json_proto [15:51:12]json parsed OK: [15:51:12]protocol is kg_v1.0 [15:51:12]action value=close_receipt [15:51:12]process_action close_receipt [15:51:12]cmd_close_receipt [15:51:12]MH_GetDate [15:51:12]Write to MH i2c: F0 00 00 C1 06 B6 [15:51:12]Write i2c OK [15:51:12]MH_I2C_Read... [15:51:12]Read from MH i2c: F0 [15:51:12]MH_I2C_Read... [15:51:12]Read from MH i2c: F0 09 00 [15:51:12]MH_I2C_Read... [15:51:12]Read from MH i2c: F0 09 00 C1 06 00 F0 37 5F 66 B2 22 B0 64 93 [15:51:12]GetLastDocTimeStamp 1717516168 [15:51:12]current date 1717516272 [15:51:12]FM_GetShiftState [15:51:12]SAM_PROTO_GetShiftState [15:51:12]wFMCommunicate request_size=4 [15:51:12]MH_SAM_APDU [15:51:12]CAPDU: 80 13 01 00 [15:51:12]Write to MH i2c: E2 08 00 C2 06 80 13 01 00 00 00 00 00 45 [15:51:12]Write i2c OK [15:51:12]MH_I2C_Read... [15:51:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:51:12]Read from MH i2c: E2 [15:51:12]MH_I2C_Read... [15:51:12]Read from MH i2c: E2 0E 00 [15:51:12]MH_I2C_Read... [15:51:12]Read from MH i2c: E2 0E 00 C2 06 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 E1 [15:51:12]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [15:51:12]wFMCommunicate OK [15:51:12]SAM_PROTO_GetShiftState done [15:51:12]FM_GetShiftState done [15:51:12]opened in 1717460590 [15:51:12]opened+sec_in_day 1717546990 [15:51:12]quantity*price = 200037 [15:51:12]sum+1 = 200039 [15:51:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 122 04.06.2024 15:51 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68624 ФПД: 166288502491495 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T155113&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68624&fm=166288502491495&tin=02508201610067®Number=0000000000098096&sum=200000 [15:51:13]StoreToDocumentArchive [15:51:13]shift 325 fd 68624 [15:51:13]save to /storage/0325/doc_00068624 [15:51:13]save last doc name /storage/0325/doc_00068624 to /storage/kkm_last_doc_name [15:51:13]save OK [15:51:13]Clear old archive folders... [15:51:13]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:51:13]tlvbuf is 00A9CF90 [15:51:13]SAM_PROTO_ClearQueue [15:51:13]wFMCommunicate request_size=4 [15:51:13]MH_SAM_APDU [15:51:13]CAPDU: 80 09 00 00 [15:51:13]Write to MH i2c: E2 08 00 CF 06 80 09 00 00 00 00 00 00 47 [15:51:13]Write i2c OK [15:51:13]MH_I2C_Read... [15:51:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:51:13]Read from MH i2c: E2 [15:51:13]MH_I2C_Read... [15:51:13]Read from MH i2c: E2 03 00 [15:51:13]MH_I2C_Read... [15:51:13]Read from MH i2c: E2 03 00 CF 06 00 90 00 49 [15:51:13]RAPDU: 90 00 [15:51:13]wFMCommunicate OK [15:51:13]SAM_PROTO_ClearQueue done [15:51:13]KKMCreateOFDPacket [15:51:13]OFDProtocolAddRootSTLVToBuf [15:51:13]FM_MakeSignedData [15:51:13]FM_MakeSignedData [15:51:13]SAM_PROTO_SignData [15:51:13]wFMCommunicate request_size=4 [15:51:13]MH_SAM_APDU [15:51:13]CAPDU: 80 0D 01 02 [15:51:13]Write to MH i2c: E2 08 00 D0 06 80 0D 01 02 00 00 00 00 4F [15:51:13]Write i2c OK [15:51:13]MH_I2C_Read... [15:51:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:51:13]Read from MH i2c: E2 [15:51:13]MH_I2C_Read... [15:51:13]Read from MH i2c: E2 03 00 [15:51:13]MH_I2C_Read... [15:51:13]Read from MH i2c: E2 03 00 D0 06 00 90 00 4A [15:51:13]RAPDU: 90 00 [15:51:13]wFMCommunicate OK [15:51:13]wFMCommunicate request_size=255 [15:51:13]MH_SAM_APDU [15:51:13]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 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 7A 00 00 00 F4 03 04 00 F1 37 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 10 0C 01 00 35 04 06 00 [15:51:13]Write to MH i2c: E2 02 01 D1 06 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 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 7A 00 00 00 F4 03 04 00 F1 37 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 10 0C 01 00 35 04 06 00 00 00 E0 [15:51:13]Write i2c OK [15:51:13]MH_I2C_Read... [15:51:13]Read from MH i2c: E2 [15:51:13]MH_I2C_Read... [15:51:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:51:13]Read from MH i2c: E2 03 00 [15:51:13]MH_I2C_Read... [15:51:13]Read from MH i2c: E2 03 00 D1 06 00 90 00 4B [15:51:13]RAPDU: 90 00 [15:51:13]wFMCommunicate OK [15:51:13]wFMCommunicate request_size=11 [15:51:13]MH_SAM_APDU [15:51:13]CAPDU: 80 0D 02 02 06 97 3D 0F 1F 09 67 [15:51:13]Write to MH i2c: E2 0E 00 D2 06 80 0D 02 02 06 00 97 3D 0F 1F 09 67 00 00 D0 [15:51:13]Write i2c OK [15:51:13]MH_I2C_Read... [15:51:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:51:13]Read from MH i2c: E2 [15:51:13]MH_I2C_Read... [15:51:13]Read from MH i2c: E2 03 00 [15:51:13]MH_I2C_Read... [15:51:13]Read from MH i2c: E2 03 00 D2 06 00 90 00 4C [15:51:13]RAPDU: 90 00 [15:51:13]wFMCommunicate OK [15:51:13]wFMCommunicate request_size=4 [15:51:13]MH_SAM_APDU [15:51:13]CAPDU: 80 0D 03 02 [15:51:13]Write to MH i2c: E2 08 00 D3 06 80 0D 03 02 00 00 00 00 54 [15:51:13]Write i2c OK [15:51:13]MH_I2C_Read... [15:51:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:51:13]Read from MH i2c: E2 [15:51:13]MH_I2C_Read... [15:51:13]Read from MH i2c: E2 0B 00 [15:51:13]MH_I2C_Read... [15:51:13]Read from MH i2c: E2 0B 00 D3 06 00 99 65 E0 C4 60 B4 2D C3 90 00 FB [15:51:13]RAPDU: 99 65 E0 C4 60 B4 2D C3 90 00 [15:51:13]wFMCommunicate OK [15:51:13]SAM_PROTO_SignData done [15:51:13]FM_MakeSignedData done [15:51:13]CreateOFDProtocolMessage [15:51:13]wFMCommunicate request_size=4 [15:51:13]MH_SAM_APDU [15:51:13]CAPDU: 80 11 00 00 [15:51:13]Write to MH i2c: E2 08 00 D4 06 80 11 00 00 00 00 00 00 54 [15:51:13]Write i2c OK [15:51:13]MH_I2C_Read... [15:51:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:51:13]Read from MH i2c: E2 [15:51:13]MH_I2C_Read... [15:51:13]Read from MH i2c: E2 17 00 [15:51:13]MH_I2C_Read... [15:51:13]Read from MH i2c: E2 17 00 D4 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 9F [15:51:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [15:51:13]wFMCommunicate OK [15:51:13]CreateOFDProtocolMessage done [15:51:13]OFDSenderStorePacket 68624 [15:51:13]StoreOFDPacket docnum=68624 [15:51:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 13 08 08 01 9E D9 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 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 7A 00 00 00 F4 03 04 00 F1 37 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 10 0C 01 00 35 04 06 00 97 3D 0F 1F 09 67 99 65 E0 C4 60 B4 2D C3 [15:51:13]CheckFolder [15:51:13]dirname=/storage/ofd_packets [15:51:13]CheckFolder done [15:51:13]ProducePacketName [15:51:13]name=ofd_packets/00068624 [15:51:13]NVStorageSaveData ofd_packets/00068624 [15:51:13]File name is /storage/ofd_packets/00068624 [15:51:13]Write 302 bytes [15:51:13]NVStorageSaveData done [15:51:13]OFDSenderStorePacket done [15:51:13]KKMCreateOFDPacket done [15:51:13]NVStorageSaveData kkm_last_timestamp [15:51:13]File name is /storage/kkm_last_timestamp [15:51:13]Write 4 bytes [15:51:13]NVStorageSaveData done [15:51:13]ExternCall_PrintAddStr [15:51:13]wPrintStart [15:51:13]Write to MH i2c: 01 00 00 D5 06 DB [15:51:13]Write i2c OK [15:51:13]MH_I2C_Read... [15:51:13]Read from MH i2c: 01 [15:51:13]MH_I2C_Read... [15:51:13]Read from MH i2c: 01 07 00 [15:51:13]MH_I2C_Read... [15:51:13]Read from MH i2c: 01 07 00 D5 06 00 00 00 00 00 FF 0F F0 [15:51:13]RasterBufferAndPrint [15:51:13]line Счет N : (1)706756 [15:51:13]line ИНН: 02508201610067 [15:51:13]line Контрольно-Кассовый Чек [15:51:13]line ПРОДАЖА [15:51:13]line ТРК (МРК, ГНК) : 21 [15:51:13]line Товар: 2710194210 [15:51:13]line ДТ(л)-К-4 [15:51:13]line 27.440 * 72.90 [15:51:13]line = 2000.38 [15:51:13]line НДС 12% НСП 1% [15:51:13]line > о реализуемом товаре [15:51:13]line ОКРУГЛЕНИЕ: -0.38 [15:51:13]line ИТОГО: 2000.00 [15:51:13]line Внесено: 2000.00 [15:51:13]line СДАЧА: 0.00 [15:51:13]line НСП 1% : 17.70 [15:51:13]line НДС 12% : 212.43 [15:51:13]line Наличными: 2000.00 [15:51:13]line Безнал.: 0.00 [15:51:13]line Место: АЗС № 62 "Партнер Нефть" [15:51:13]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [15:51:13]line СНО: Общий режим [15:51:13]line Чек 122 04.06.2024 15:51 [15:51:13]line Смена: 325 ФФД: 1.0 [15:51:13]line ЗНМ: 0300000181 [15:51:13]line РНМ: 0000000000098096 [15:51:13]line Версия ККМ: 001 [15:51:13]line ФМ: 0000000000965400 [15:51:13]line ФД: 68624 [15:51:13]line ФПД: 166288502491495 [15:51:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T155113&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68624&fm=166288502491495&tin=02508201610067®Number=0000000000098096&sum=200000 [15:51:14]OFD Sender: Processing packet 68624 [packets to send 27, broken 26] [15:51:14]ProducePacketName [15:51:14]name=ofd_packets/00068624 [15:51:14]OFD Sender: To server: pG, [15:51:14]CommunicateWithHost lk.salyk.kg:30040 [15:51:14]ConnectInit lk.salyk.kg [15:51:14]written 0, free lines is 4095 [15:51:14]Connected sock=10 [15:51:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 13 08 08 01 9E D9 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 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 7A 00 00 00 F4 03 04 00 F1 37 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 10 0C 01 00 35 04 06 00 97 3D 0F 1F 09 67 99 65 E0 C4 60 B4 2D C3 [15:51:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 2D 76 47 00 C0 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 39 36 35 34 30 30 10 04 04 00 10 0C 01 00 F4 03 04 00 E9 DE 5E 66 B6 04 01 00 00 57 E3 5F A1 A4 DE 81 FC [15:51:14]CommunicateWithHost err = 0 [15:51:14]CheckOFDResponse [15:51:14]1017 (14) - 77093643461234 [15:51:14]1041 (16) - 0000000000965400 [15:51:14]1040 (4) - 68624 [15:51:14]1012 (4) - 04.06.2024 09:31 [15:51:14]1206 (1) - 0 [15:51:14]OFD Sender: Remove packet 68624 [15:51:14]ProducePacketName [15:51:14]name=ofd_packets/00068624 [15:51:14]NVStorageDeleteData [15:51:14]Write to MH i2c: 01 00 00 00 07 07 [15:51:14]Write i2c OK [15:51:14]MH_I2C_Read... [15:51:14]Read from MH i2c: 01 [15:51:14]MH_I2C_Read... [15:51:14]Read from MH i2c: 01 07 00 [15:51:14]MH_I2C_Read... [15:51:14]Read from MH i2c: 01 07 00 00 07 00 00 00 00 00 F1 0C 0B [15:51:14]RasterBufferAndPrint [15:51:14]line [15:51:14]line [15:51:14]line [15:51:14]line [15:51:14]line [15:51:14]written 0, free lines is 3319 [15:51:14]MH_Cut [15:51:14]Write to MH i2c: D1 01 00 07 07 01 E0 [15:51:14]Write i2c OK [15:51:14]MH_I2C_Read... [15:51:14]Read from MH i2c: D1 [15:51:14]MH_I2C_Read... [15:51:14]Read from MH i2c: D1 01 00 [15:51:14]MH_I2C_Read... [15:51:14]Read from MH i2c: D1 01 00 07 07 00 DF [15:51:14]Write to MH i2c: 01 00 00 08 07 0F [15:51:14]Write i2c OK [15:51:14]MH_I2C_Read... [15:51:15]OFD Sender: No OFD packet to send [15:51:15]*** Cut start [15:51:15]*** Partial cut [15:51:15]*** CUTSNS_PIN = 1 [15:51:15]*** CUTSNS_PIN = 0 [15:51:15]*** Brake cut motor [15:51:16]Read from MH i2c: 01 [15:51:16]MH_I2C_Read... [15:51:16]*** Stop cut motor [15:51:16]*** Cut end [15:51:16]Read from MH i2c: 01 07 00 [15:51:16]MH_I2C_Read... [15:51:16]Read from MH i2c: 01 07 00 08 07 00 00 00 00 00 FF 0F 24 [15:51:16]process_action close_receipt done [15:51:16]requested_data is exist [15:51:16]produce_requested_data [15:51:16]requested_item fm.sn is exist - process it [15:51:16]wFMCommunicate request_size=4 [15:51:16]MH_SAM_APDU [15:51:16]CAPDU: 80 11 00 00 [15:51:16]Write to MH i2c: E2 08 00 09 07 80 11 00 00 00 00 00 00 8A [15:51:16]Write i2c OK [15:51:16]MH_I2C_Read... [15:51:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:51:16]Read from MH i2c: E2 [15:51:16]MH_I2C_Read... [15:51:16]Read from MH i2c: E2 17 00 [15:51:16]MH_I2C_Read... [15:51:16]Read from MH i2c: E2 17 00 09 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 D5 [15:51:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [15:51:16]wFMCommunicate OK [15:51:16]requested_item fd.num is exist - process it [15:51:16]SAM_PROTO_GetFieldsCounters [15:51:16]wFMCommunicate request_size=4 [15:51:16]MH_SAM_APDU [15:51:16]CAPDU: 80 13 00 00 [15:51:16]Write to MH i2c: E2 08 00 0A 07 80 13 00 00 00 00 00 00 8D [15:51:16]Write i2c OK [15:51:16]MH_I2C_Read... [15:51:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:51:16]Read from MH i2c: E2 [15:51:16]MH_I2C_Read... [15:51:16]Read from MH i2c: E2 62 00 [15:51:16]MH_I2C_Read... [15:51:16]Read from MH i2c: E2 62 00 0A 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 10 0C 01 00 0E 04 04 00 45 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 7E [15:51:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 10 0C 01 00 0E 04 04 00 45 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:51:16]wFMCommunicate OK [15:51:16]SAM_PROTO_GetFieldsCounters done [15:51:16]requested_item shift.num is exist - process it [15:51:16]requested_item shift.opened is exist - process it [15:51:16]req_shift_opened [15:51:16]FM_GetShiftState [15:51:16]SAM_PROTO_GetShiftState [15:51:16]wFMCommunicate request_size=4 [15:51:16]MH_SAM_APDU [15:51:16]CAPDU: 80 13 01 00 [15:51:16]Write to MH i2c: E2 08 00 0B 07 80 13 01 00 00 00 00 00 8F [15:51:16]Write i2c OK [15:51:16]MH_I2C_Read... [15:51:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:51:16]Read from MH i2c: E2 [15:51:16]MH_I2C_Read... [15:51:16]Read from MH i2c: E2 0E 00 [15:51:16]MH_I2C_Read... [15:51:16]Read from MH i2c: E2 0E 00 0B 07 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 2B [15:51:16]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [15:51:16]wFMCommunicate OK [15:51:16]SAM_PROTO_GetShiftState done [15:51:16]FM_GetShiftState done [15:51:16]req_shift_opened done [15:51:16]requested_item shift.open_date is exist - process it [15:51:16]req_shift_open_date [15:51:16]req_shift_open_date done [15:51:16]produce_requested_data done [15:51:16]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68624,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [15:51:16]process_action_free close_receipt [15:51:16]json_value_free [15:51:16]json_value_free done [15:51:16]process_json_proto returns [15:51:16]Send response to host [15:51:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68624,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [15:51:16]free response buf [15:51:16]execute_script done [15:51:16]execute_script returns [15:51:16]free content buf [15:51:16]Sock 7.Close socket [15:51:16]Sock 7.Thread stoped [15:51:20]OFD Sender: No OFD packet to send [15:51:25]OFD Sender: No OFD packet to send [15:51:30]OFD Sender: No OFD packet to send [15:51:35]OFD Sender: No OFD packet to send [15:51:40]OFD Sender: No OFD packet to send [15:51:45]OFD Sender: No OFD packet to send [15:51:50]OFD Sender: No OFD packet to send [15:51:55]OFD Sender: No OFD packet to send [15:52:00]OFD Sender: No OFD packet to send [15:52:05]OFD Sender: No OFD packet to send [15:52:10]OFD Sender: No OFD packet to send [15:52:15]OFD Sender: No OFD packet to send [15:52:20]OFD Sender: No OFD packet to send [15:52:25]OFD Sender: No OFD packet to send [15:52:30]OFD Sender: No OFD packet to send [15:52:35]OFD Sender: No OFD packet to send [15:52:40]OFD Sender: No OFD packet to send [15:52:45]OFD Sender: No OFD packet to send [15:52:50]OFD Sender: No OFD packet to send [15:52:55]OFD Sender: No OFD packet to send [15:53:00]OFD Sender: No OFD packet to send [15:53:05]OFD Sender: No OFD packet to send [15:53:10]OFD Sender: No OFD packet to send [15:53:15]OFD Sender: No OFD packet to send [15:53:20]OFD Sender: No OFD packet to send [15:53:23]accept exits with 9 [15:53:23]New connection [15:53:23]New thread 3067297124 created [15:53:23]Thread 3067153764 joined [15:53:23]Waiting for new connection... [15:53:23] Sock 9.Parse request [15:53:23]Sock 9.Check first char [15:53:23]Sock 9.First char is OK [15:53:23]request: POST /json_proto HTTP/1.0 [15:53:23]Method: POST [15:53:23]URL: /json_proto [15:53:23]Method is POST - this is cgi request [15:53:23]url: /json_proto [15:53:23]query_string will be loaded in cgi processing [15:53:23]execute_cgi json_proto POST (null) [15:53:23]execute_cgi path=json_proto method=POST [15:53:23]POST find Content-Length [15:53:23]Host: 172.17.36.132:8080 [15:53:23]Content-Length: 687 [15:53:23]Content-Type: application/json [15:53:23] [15:53:23]POST finish read [15:53:23]Found Content-Length = 687 [15:53:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706760", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 27.440, "sum" : 2000.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:53:23]execute_script... [15:53: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)706760", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 27.440, "sum" : 2000.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:53:23]POST & json_proto [15:53:23]process_json_proto [15:53:23]json parsed OK: [15:53:23]protocol is kg_v1.0 [15:53:23]action value=close_receipt [15:53:23]process_action close_receipt [15:53:23]cmd_close_receipt [15:53:23]MH_GetDate [15:53:23]Write to MH i2c: F0 00 00 0C 07 02 [15:53:23]Write i2c OK [15:53:23]MH_I2C_Read... [15:53:23]Read from MH i2c: F0 [15:53:23]MH_I2C_Read... [15:53:23]Read from MH i2c: F0 09 00 [15:53:23]MH_I2C_Read... [15:53:23]Read from MH i2c: F0 09 00 0C 07 00 74 38 5F 66 B2 22 B0 64 64 [15:53:23]GetLastDocTimeStamp 1717516273 [15:53:23]current date 1717516404 [15:53:23]FM_GetShiftState [15:53:23]SAM_PROTO_GetShiftState [15:53:23]wFMCommunicate request_size=4 [15:53:23]MH_SAM_APDU [15:53:23]CAPDU: 80 13 01 00 [15:53:23]Write to MH i2c: E2 08 00 0D 07 80 13 01 00 00 00 00 00 91 [15:53:23]Write i2c OK [15:53:23]MH_I2C_Read... [15:53:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:53:23]Read from MH i2c: E2 [15:53:23]MH_I2C_Read... [15:53:23]Read from MH i2c: E2 0E 00 [15:53:23]MH_I2C_Read... [15:53:23]Read from MH i2c: E2 0E 00 0D 07 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 2D [15:53:23]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [15:53:23]wFMCommunicate OK [15:53:23]SAM_PROTO_GetShiftState done [15:53:23]FM_GetShiftState done [15:53:23]opened in 1717460590 [15:53:23]opened+sec_in_day 1717546990 [15:53:23]quantity*price = 200037 [15:53:23]sum+1 = 200039 [15:53:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 123 04.06.2024 15:53 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68625 ФПД: 135114560457231 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T155324&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68625&fm=135114560457231&tin=02508201610067®Number=0000000000098096&sum=200000 [15:53:24]StoreToDocumentArchive [15:53:24]shift 325 fd 68625 [15:53:24]save to /storage/0325/doc_00068625 [15:53:24]save last doc name /storage/0325/doc_00068625 to /storage/kkm_last_doc_name [15:53:24]save OK [15:53:24]Clear old archive folders... [15:53:24]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:53:24]tlvbuf is 00A9B8E0 [15:53:24]SAM_PROTO_ClearQueue [15:53:24]wFMCommunicate request_size=4 [15:53:24]MH_SAM_APDU [15:53:24]CAPDU: 80 09 00 00 [15:53:24]Write to MH i2c: E2 08 00 1A 07 80 09 00 00 00 00 00 00 93 [15:53:24]Write i2c OK [15:53:24]MH_I2C_Read... [15:53:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:53:24]Read from MH i2c: E2 [15:53:24]MH_I2C_Read... [15:53:24]Read from MH i2c: E2 03 00 [15:53:24]MH_I2C_Read... [15:53:24]Read from MH i2c: E2 03 00 1A 07 00 90 00 95 [15:53:24]RAPDU: 90 00 [15:53:24]wFMCommunicate OK [15:53:24]SAM_PROTO_ClearQueue done [15:53:24]KKMCreateOFDPacket [15:53:24]OFDProtocolAddRootSTLVToBuf [15:53:24]FM_MakeSignedData [15:53:24]FM_MakeSignedData [15:53:24]SAM_PROTO_SignData [15:53:24]wFMCommunicate request_size=4 [15:53:24]MH_SAM_APDU [15:53:24]CAPDU: 80 0D 01 02 [15:53:24]Write to MH i2c: E2 08 00 1B 07 80 0D 01 02 00 00 00 00 9B [15:53:24]Write i2c OK [15:53:24]MH_I2C_Read... [15:53:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:53:24]Read from MH i2c: E2 [15:53:24]MH_I2C_Read... [15:53:24]Read from MH i2c: E2 03 00 [15:53:24]MH_I2C_Read... [15:53:24]Read from MH i2c: E2 03 00 1B 07 00 90 00 96 [15:53:24]RAPDU: 90 00 [15:53:24]wFMCommunicate OK [15:53:24]wFMCommunicate request_size=255 [15:53:24]MH_SAM_APDU [15:53:24]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 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 7B 00 00 00 F4 03 04 00 74 38 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 11 0C 01 00 35 04 06 00 [15:53:24]Write to MH i2c: E2 02 01 1C 07 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 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 7B 00 00 00 F4 03 04 00 74 38 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 11 0C 01 00 35 04 06 00 00 00 B2 [15:53:24]Write i2c OK [15:53:24]MH_I2C_Read... [15:53:24]Read from MH i2c: E2 [15:53:24]MH_I2C_Read... [15:53:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:53:24]Read from MH i2c: E2 03 00 [15:53:24]MH_I2C_Read... [15:53:24]Read from MH i2c: E2 03 00 1C 07 00 90 00 97 [15:53:24]RAPDU: 90 00 [15:53:24]wFMCommunicate OK [15:53:24]wFMCommunicate request_size=11 [15:53:24]MH_SAM_APDU [15:53:24]CAPDU: 80 0D 02 02 06 7A E2 CF 61 4A 0F [15:53:24]Write to MH i2c: E2 0E 00 1D 07 80 0D 02 02 06 00 7A E2 CF 61 4A 0F 00 00 8F [15:53:24]Write i2c OK [15:53:24]MH_I2C_Read... [15:53:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:53:25]Read from MH i2c: E2 [15:53:25]MH_I2C_Read... [15:53:25]Read from MH i2c: E2 03 00 [15:53:25]MH_I2C_Read... [15:53:25]Read from MH i2c: E2 03 00 1D 07 00 90 00 98 [15:53:25]RAPDU: 90 00 [15:53:25]wFMCommunicate OK [15:53:25]wFMCommunicate request_size=4 [15:53:25]MH_SAM_APDU [15:53:25]CAPDU: 80 0D 03 02 [15:53:25]Write to MH i2c: E2 08 00 1E 07 80 0D 03 02 00 00 00 00 A0 [15:53:25]Write i2c OK [15:53:25]MH_I2C_Read... [15:53:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:53:25]Read from MH i2c: E2 [15:53:25]MH_I2C_Read... [15:53:25]Read from MH i2c: E2 0B 00 [15:53:25]MH_I2C_Read... [15:53:25]Read from MH i2c: E2 0B 00 1E 07 00 DB 9D AE 1D FE 59 8D 00 90 00 C8 [15:53:25]RAPDU: DB 9D AE 1D FE 59 8D 00 90 00 [15:53:25]wFMCommunicate OK [15:53:25]SAM_PROTO_SignData done [15:53:25]FM_MakeSignedData done [15:53:25]CreateOFDProtocolMessage [15:53:25]wFMCommunicate request_size=4 [15:53:25]MH_SAM_APDU [15:53:25]CAPDU: 80 11 00 00 [15:53:25]Write to MH i2c: E2 08 00 1F 07 80 11 00 00 00 00 00 00 A0 [15:53:25]Write i2c OK [15:53:25]MH_I2C_Read... [15:53:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:53:25]Read from MH i2c: E2 [15:53:25]MH_I2C_Read... [15:53:25]Read from MH i2c: E2 17 00 [15:53:25]MH_I2C_Read... [15:53:25]Read from MH i2c: E2 17 00 1F 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 EB [15:53:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [15:53:25]wFMCommunicate OK [15:53:25]CreateOFDProtocolMessage done [15:53:25]OFDSenderStorePacket 68625 [15:53:25]StoreOFDPacket docnum=68625 [15:53:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 5F 82 08 01 8D 08 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 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 7B 00 00 00 F4 03 04 00 74 38 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 11 0C 01 00 35 04 06 00 7A E2 CF 61 4A 0F DB 9D AE 1D FE 59 8D 00 [15:53:25]CheckFolder [15:53:25]dirname=/storage/ofd_packets [15:53:25]CheckFolder done [15:53:25]ProducePacketName [15:53:25]name=ofd_packets/00068625 [15:53:25]NVStorageSaveData ofd_packets/00068625 [15:53:25]File name is /storage/ofd_packets/00068625 [15:53:25]Write 302 bytes [15:53:25]NVStorageSaveData done [15:53:25]OFDSenderStorePacket done [15:53:25]KKMCreateOFDPacket done [15:53:25]NVStorageSaveData kkm_last_timestamp [15:53:25]File name is /storage/kkm_last_timestamp [15:53:25]Write 4 bytes [15:53:25]NVStorageSaveData done [15:53:25]ExternCall_PrintAddStr [15:53:25]wPrintStart [15:53:25]Write to MH i2c: 01 00 00 20 07 27 [15:53:25]Write i2c OK [15:53:25]MH_I2C_Read... [15:53:25]Read from MH i2c: 01 [15:53:25]MH_I2C_Read... [15:53:25]Read from MH i2c: 01 07 00 [15:53:25]MH_I2C_Read... [15:53:25]Read from MH i2c: 01 07 00 20 07 00 00 00 00 00 FF 0F 3C [15:53:25]RasterBufferAndPrint [15:53:25]line Счет N : (1)706760 [15:53:25]line ИНН: 02508201610067 [15:53:25]line Контрольно-Кассовый Чек [15:53:25]line ПРОДАЖА [15:53:25]line ТРК (МРК, ГНК) : 61 [15:53:25]line Товар: 2710194210 [15:53:25]line ДТ(л)-К-4 [15:53:25]line 27.440 * 72.90 [15:53:25]line = 2000.38 [15:53:25]line НДС 12% НСП 1% [15:53:25]line > о реализуемом товаре [15:53:25]line ОКРУГЛЕНИЕ: -0.38 [15:53:25]line ИТОГО: 2000.00 [15:53:25]line Внесено: 2000.00 [15:53:25]line СДАЧА: 0.00 [15:53:25]line НСП 1% : 17.70 [15:53:25]line НДС 12% : 212.43 [15:53:25]line Наличными: 2000.00 [15:53:25]line Безнал.: 0.00 [15:53:25]line Место: АЗС № 62 "Партнер Нефть" [15:53:25]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [15:53:25]line СНО: Общий режим [15:53:25]line Чек 123 04.06.2024 15:53 [15:53:25]line Смена: 325 ФФД: 1.0 [15:53:25]line ЗНМ: 0300000181 [15:53:25]line РНМ: 0000000000098096 [15:53:25]line Версия ККМ: 001 [15:53:25]line ФМ: 0000000000965400 [15:53:25]line ФД: 68625 [15:53:25]line ФПД: 135114560457231 [15:53:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T155324&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68625&fm=135114560457231&tin=02508201610067®Number=0000000000098096&sum=200000 [15:53:25]OFD Sender: Processing packet 68625 [packets to send 27, broken 26] [15:53:25]ProducePacketName [15:53:25]name=ofd_packets/00068625 [15:53:25]OFD Sender: To server: pG, [15:53:25]CommunicateWithHost lk.salyk.kg:30040 [15:53:25]ConnectInit lk.salyk.kg [15:53:25]written 0, free lines is 4095 [15:53:25]Connected sock=10 [15:53:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 5F 82 08 01 8D 08 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 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 7B 00 00 00 F4 03 04 00 74 38 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 11 0C 01 00 35 04 06 00 7A E2 CF 61 4A 0F DB 9D AE 1D FE 59 8D 00 [15:53:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 4C AF 47 00 8D 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 39 36 35 34 30 30 10 04 04 00 11 0C 01 00 F4 03 04 00 6C DF 5E 66 B6 04 01 00 00 EB 6C 62 4D 75 BD 40 34 [15:53:25]CommunicateWithHost err = 0 [15:53:25]CheckOFDResponse [15:53:25]1017 (14) - 77093643461234 [15:53:25]1041 (16) - 0000000000965400 [15:53:25]1040 (4) - 68625 [15:53:25]1012 (4) - 04.06.2024 09:33 [15:53:25]1206 (1) - 0 [15:53:25]OFD Sender: Remove packet 68625 [15:53:25]ProducePacketName [15:53:25]name=ofd_packets/00068625 [15:53:25]NVStorageDeleteData [15:53:25]Write to MH i2c: 01 00 00 4B 07 52 [15:53:25]Write i2c OK [15:53:25]MH_I2C_Read... [15:53:25]Read from MH i2c: 01 [15:53:25]MH_I2C_Read... [15:53:25]Read from MH i2c: 01 07 00 [15:53:25]MH_I2C_Read... [15:53:25]Read from MH i2c: 01 07 00 4B 07 00 00 00 00 00 DA 0C 3F [15:53:25]RasterBufferAndPrint [15:53:25]line [15:53:25]line [15:53:25]line [15:53:25]line [15:53:25]line [15:53:25]written 0, free lines is 3297 [15:53:25]MH_Cut [15:53:25]Write to MH i2c: D1 01 00 52 07 01 2B [15:53:25]Write i2c OK [15:53:25]MH_I2C_Read... [15:53:25]Read from MH i2c: D1 [15:53:25]MH_I2C_Read... [15:53:25]Read from MH i2c: D1 01 00 [15:53:25]MH_I2C_Read... [15:53:25]Read from MH i2c: D1 01 00 52 07 00 2A [15:53:25]Write to MH i2c: 01 00 00 53 07 5A [15:53:25]Write i2c OK [15:53:25]MH_I2C_Read... [15:53:26]OFD Sender: No OFD packet to send [15:53:26]*** Cut start [15:53:26]*** Partial cut [15:53:26]*** CUTSNS_PIN = 1 [15:53:26]*** CUTSNS_PIN = 0 [15:53:26]*** Brake cut motor [15:53:27]Read from MH i2c: 01 [15:53:27]MH_I2C_Read... [15:53:27]*** Stop cut motor [15:53:27]*** Cut end [15:53:27]Read from MH i2c: 01 07 00 [15:53:27]MH_I2C_Read... [15:53:27]Read from MH i2c: 01 07 00 53 07 00 00 00 00 00 FF 0F 6F [15:53:27]process_action close_receipt done [15:53:27]requested_data is exist [15:53:27]produce_requested_data [15:53:27]requested_item fm.sn is exist - process it [15:53:27]wFMCommunicate request_size=4 [15:53:27]MH_SAM_APDU [15:53:27]CAPDU: 80 11 00 00 [15:53:27]Write to MH i2c: E2 08 00 54 07 80 11 00 00 00 00 00 00 D5 [15:53:27]Write i2c OK [15:53:27]MH_I2C_Read... [15:53:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:53:27]Read from MH i2c: E2 [15:53:27]MH_I2C_Read... [15:53:27]Read from MH i2c: E2 17 00 [15:53:27]MH_I2C_Read... [15:53:27]Read from MH i2c: E2 17 00 54 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 20 [15:53:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [15:53:27]wFMCommunicate OK [15:53:27]requested_item fd.num is exist - process it [15:53:27]SAM_PROTO_GetFieldsCounters [15:53:27]wFMCommunicate request_size=4 [15:53:27]MH_SAM_APDU [15:53:27]CAPDU: 80 13 00 00 [15:53:27]Write to MH i2c: E2 08 00 55 07 80 13 00 00 00 00 00 00 D8 [15:53:27]Write i2c OK [15:53:27]MH_I2C_Read... [15:53:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:53:27]Read from MH i2c: E2 [15:53:27]MH_I2C_Read... [15:53:27]Read from MH i2c: E2 62 00 [15:53:27]MH_I2C_Read... [15:53:27]Read from MH i2c: E2 62 00 55 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 11 0C 01 00 0E 04 04 00 45 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 CD [15:53:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 11 0C 01 00 0E 04 04 00 45 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:53:27]wFMCommunicate OK [15:53:27]SAM_PROTO_GetFieldsCounters done [15:53:27]requested_item shift.num is exist - process it [15:53:27]requested_item shift.opened is exist - process it [15:53:27]req_shift_opened [15:53:27]FM_GetShiftState [15:53:27]SAM_PROTO_GetShiftState [15:53:27]wFMCommunicate request_size=4 [15:53:27]MH_SAM_APDU [15:53:27]CAPDU: 80 13 01 00 [15:53:27]Write to MH i2c: E2 08 00 56 07 80 13 01 00 00 00 00 00 DA [15:53:27]Write i2c OK [15:53:27]MH_I2C_Read... [15:53:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:53:27]Read from MH i2c: E2 [15:53:27]MH_I2C_Read... [15:53:27]Read from MH i2c: E2 0E 00 [15:53:27]MH_I2C_Read... [15:53:27]Read from MH i2c: E2 0E 00 56 07 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 76 [15:53:27]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [15:53:27]wFMCommunicate OK [15:53:27]SAM_PROTO_GetShiftState done [15:53:27]FM_GetShiftState done [15:53:27]req_shift_opened done [15:53:27]requested_item shift.open_date is exist - process it [15:53:27]req_shift_open_date [15:53:27]req_shift_open_date done [15:53:27]produce_requested_data done [15:53:27]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68625,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [15:53:27]process_action_free close_receipt [15:53:27]json_value_free [15:53:27]json_value_free done [15:53:27]process_json_proto returns [15:53:27]Send response to host [15:53:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68625,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [15:53:27]free response buf [15:53:27]execute_script done [15:53:27]execute_script returns [15:53:27]free content buf [15:53:27]Sock 9.Close socket [15:53:27]Sock 9.Thread stoped [15:53:31]OFD Sender: No OFD packet to send [15:53:36]OFD Sender: No OFD packet to send [15:53:41]OFD Sender: No OFD packet to send [15:53:46]OFD Sender: No OFD packet to send [15:53:51]OFD Sender: No OFD packet to send [15:53:56]OFD Sender: No OFD packet to send [15:53:58]accept exits with 7 [15:53:58]New connection [15:53:58]New thread 3067153764 created [15:53:58]Thread 3067297124 joined [15:53:58]Waiting for new connection... [15:53:58] Sock 7.Parse request [15:53:58]Sock 7.Check first char [15:53:58]Sock 7.First char is OK [15:53:58]request: POST /json_proto HTTP/1.0 [15:53:58]Method: POST [15:53:58]URL: /json_proto [15:53:58]Method is POST - this is cgi request [15:53:58]url: /json_proto [15:53:58]query_string will be loaded in cgi processing [15:53:58]execute_cgi json_proto POST (null) [15:53:58]execute_cgi path=json_proto method=POST [15:53:58]POST find Content-Length [15:53:58]Host: 172.17.36.132:8080 [15:53:58]Content-Length: 840 [15:53:58]Content-Type: application/json [15:53:58] [15:53:58]POST finish read [15:53:58]Found Content-Length = 840 [15:53:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706759", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:53:58]execute_script... [15:53: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)706759", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:53:58]POST & json_proto [15:53:58]process_json_proto [15:53:58]json parsed OK: [15:53:58]protocol is kg_v1.0 [15:53:58]action value=close_receipt [15:53:58]process_action close_receipt [15:53:58]cmd_close_receipt [15:53:58]MH_GetDate [15:53:58]Write to MH i2c: F0 00 00 57 07 4D [15:53:58]Write i2c OK [15:53:58]MH_I2C_Read... [15:53:58]Read from MH i2c: F0 [15:53:58]MH_I2C_Read... [15:53:58]Read from MH i2c: F0 09 00 [15:53:58]MH_I2C_Read... [15:53:58]Read from MH i2c: F0 09 00 57 07 00 97 38 5F 66 B2 22 B0 64 D2 [15:53:58]GetLastDocTimeStamp 1717516404 [15:53:58]current date 1717516439 [15:53:58]FM_GetShiftState [15:53:58]SAM_PROTO_GetShiftState [15:53:58]wFMCommunicate request_size=4 [15:53:58]MH_SAM_APDU [15:53:58]CAPDU: 80 13 01 00 [15:53:58]Write to MH i2c: E2 08 00 58 07 80 13 01 00 00 00 00 00 DC [15:53:58]Write i2c OK [15:53:58]MH_I2C_Read... [15:53:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:53:58]Read from MH i2c: E2 [15:53:58]MH_I2C_Read... [15:53:58]Read from MH i2c: E2 0E 00 [15:53:58]MH_I2C_Read... [15:53:58]Read from MH i2c: E2 0E 00 58 07 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 78 [15:53:58]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [15:53:58]wFMCommunicate OK [15:53:58]SAM_PROTO_GetShiftState done [15:53:58]FM_GetShiftState done [15:53:58]opened in 1717460590 [15:53:58]opened+sec_in_day 1717546990 [15:53:58]quantity*price = 50041 [15:53:58]sum+1 = 50042 [15:53:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 124 04.06.2024 15:53 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000965400 ФД: 68626 ФПД: 23891797444601 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T155359&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68626&fm=23891797444601&tin=02508201610067®Number=0000000000098096&sum=50041 [15:53:59]StoreToDocumentArchive [15:53:59]shift 325 fd 68626 [15:53:59]save to /storage/0325/doc_00068626 [15:53:59]save last doc name /storage/0325/doc_00068626 to /storage/kkm_last_doc_name [15:53:59]save OK [15:53:59]Clear old archive folders... [15:53:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:53:59]tlvbuf is 00A9D220 [15:53:59]SAM_PROTO_ClearQueue [15:53:59]wFMCommunicate request_size=4 [15:53:59]MH_SAM_APDU [15:53:59]CAPDU: 80 09 00 00 [15:53:59]Write to MH i2c: E2 08 00 65 07 80 09 00 00 00 00 00 00 DE [15:53:59]Write i2c OK [15:53:59]MH_I2C_Read... [15:53:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:53:59]Read from MH i2c: E2 [15:53:59]MH_I2C_Read... [15:53:59]Read from MH i2c: E2 03 00 [15:53:59]MH_I2C_Read... [15:53:59]Read from MH i2c: E2 03 00 65 07 00 90 00 E0 [15:53:59]RAPDU: 90 00 [15:53:59]wFMCommunicate OK [15:53:59]SAM_PROTO_ClearQueue done [15:53:59]KKMCreateOFDPacket [15:53:59]OFDProtocolAddRootSTLVToBuf [15:53:59]FM_MakeSignedData [15:53:59]FM_MakeSignedData [15:53:59]SAM_PROTO_SignData [15:53:59]wFMCommunicate request_size=4 [15:53:59]MH_SAM_APDU [15:53:59]CAPDU: 80 0D 01 02 [15:53:59]Write to MH i2c: E2 08 00 66 07 80 0D 01 02 00 00 00 00 E6 [15:53:59]Write i2c OK [15:53:59]MH_I2C_Read... [15:53:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:53:59]Read from MH i2c: E2 [15:53:59]MH_I2C_Read... [15:53:59]Read from MH i2c: E2 03 00 [15:53:59]MH_I2C_Read... [15:53:59]Read from MH i2c: E2 03 00 66 07 00 90 00 E1 [15:53:59]RAPDU: 90 00 [15:53:59]wFMCommunicate OK [15:53:59]wFMCommunicate request_size=255 [15:53:59]MH_SAM_APDU [15:53:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 97 38 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 12 0C 01 00 35 04 06 00 15 [15:53:59]Write to MH i2c: E2 02 01 67 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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 97 38 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 12 0C 01 00 35 04 06 00 15 00 00 4F [15:53:59]Write i2c OK [15:53:59]MH_I2C_Read... [15:53:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:53:59]Read from MH i2c: E2 [15:53:59]MH_I2C_Read... [15:53:59]Read from MH i2c: E2 03 00 [15:53:59]MH_I2C_Read... [15:53:59]Read from MH i2c: E2 03 00 67 07 00 90 00 E2 [15:53:59]RAPDU: 90 00 [15:53:59]wFMCommunicate OK [15:53:59]wFMCommunicate request_size=10 [15:53:59]MH_SAM_APDU [15:53:59]CAPDU: 80 0D 02 02 05 BA BE 19 87 F9 [15:53:59]Write to MH i2c: E2 0D 00 68 07 80 0D 02 02 05 00 BA BE 19 87 F9 00 00 04 [15:53:59]Write i2c OK [15:53:59]MH_I2C_Read... [15:53:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:53:59]Read from MH i2c: E2 [15:53:59]MH_I2C_Read... [15:53:59]Read from MH i2c: E2 03 00 [15:53:59]MH_I2C_Read... [15:53:59]Read from MH i2c: E2 03 00 68 07 00 90 00 E3 [15:53:59]RAPDU: 90 00 [15:53:59]wFMCommunicate OK [15:53:59]wFMCommunicate request_size=4 [15:53:59]MH_SAM_APDU [15:53:59]CAPDU: 80 0D 03 02 [15:53:59]Write to MH i2c: E2 08 00 69 07 80 0D 03 02 00 00 00 00 EB [15:53:59]Write i2c OK [15:53:59]MH_I2C_Read... [15:53:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:53:59]Read from MH i2c: E2 [15:53:59]MH_I2C_Read... [15:53:59]Read from MH i2c: E2 0B 00 [15:53:59]MH_I2C_Read... [15:53:59]Read from MH i2c: E2 0B 00 69 07 00 FF 39 7F 3A 41 DA 88 CD 90 00 4D [15:53:59]RAPDU: FF 39 7F 3A 41 DA 88 CD 90 00 [15:53:59]wFMCommunicate OK [15:53:59]SAM_PROTO_SignData done [15:53:59]FM_MakeSignedData done [15:53:59]CreateOFDProtocolMessage [15:53:59]wFMCommunicate request_size=4 [15:53:59]MH_SAM_APDU [15:53:59]CAPDU: 80 11 00 00 [15:53:59]Write to MH i2c: E2 08 00 6A 07 80 11 00 00 00 00 00 00 EB [15:53:59]Write i2c OK [15:53:59]MH_I2C_Read... [15:53:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:53:59]Read from MH i2c: E2 [15:53:59]MH_I2C_Read... [15:53:59]Read from MH i2c: E2 17 00 [15:53:59]MH_I2C_Read... [15:53:59]Read from MH i2c: E2 17 00 6A 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 36 [15:53:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [15:53:59]wFMCommunicate OK [15:53:59]CreateOFDProtocolMessage done [15:53:59]OFDSenderStorePacket 68626 [15:53:59]StoreOFDPacket docnum=68626 [15:53:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 E5 BB 07 01 F7 29 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 97 38 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 12 0C 01 00 35 04 06 00 15 BA BE 19 87 F9 FF 39 7F 3A 41 DA 88 CD [15:53:59]CheckFolder [15:53:59]dirname=/storage/ofd_packets [15:53:59]CheckFolder done [15:53:59]ProducePacketName [15:53:59]name=ofd_packets/00068626 [15:53:59]NVStorageSaveData ofd_packets/00068626 [15:53:59]File name is /storage/ofd_packets/00068626 [15:53:59]Write 301 bytes [15:53:59]NVStorageSaveData done [15:53:59]OFDSenderStorePacket done [15:53:59]KKMCreateOFDPacket done [15:53:59]NVStorageSaveData kkm_last_timestamp [15:53:59]File name is /storage/kkm_last_timestamp [15:53:59]Write 4 bytes [15:53:59]NVStorageSaveData done [15:53:59]ExternCall_PrintAddStr [15:53:59]wPrintStart [15:53:59]Write to MH i2c: 01 00 00 6B 07 72 [15:53:59]Write i2c OK [15:53:59]MH_I2C_Read... [15:53:59]Read from MH i2c: 01 [15:53:59]MH_I2C_Read... [15:53:59]Read from MH i2c: 01 07 00 [15:53:59]MH_I2C_Read... [15:53:59]Read from MH i2c: 01 07 00 6B 07 00 00 00 00 00 FF 0F 87 [15:53:59]RasterBufferAndPrint [15:53:59]line Счет N : (1)706759 [15:53:59]line ИНН: 02508201610067 [15:53:59]line Контрольно-Кассовый Чек [15:53:59]line ПРОДАЖА [15:53:59]line ТРК (МРК, ГНК) : 32 [15:53:59]line Товар: 2710124130 [15:53:59]line Аи-92-К-4 [15:53:59]line 7.480 * 66.90 [15:53:59]line = 500.41 [15:53:59]line НДС 12% НСП 1% [15:53:59]line > о реализуемом товаре [15:53:59]line ИТОГО: 500.41 [15:53:59]line НСП 1% : 4.43 [15:53:59]line НДС 12% : 53.14 [15:53:59]line Наличными: 0.00 [15:53:59]line Безнал.: 500.41 [15:53:59]line Место: АЗС № 62 "Партнер Нефть" [15:53:59]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [15:53:59]line СНО: Общий режим [15:53:59]line Чек 124 04.06.2024 15:53 [15:53:59]line Смена: 325 ФФД: 1.0 [15:53:59]line ЗНМ: 0300000181 [15:53:59]line РНМ: 0000000000098096 [15:53:59]line Версия ККМ: 001 [15:53:59]line Платежная система: АКБ Кыргызстан [15:53:59]line ФМ: 0000000000965400 [15:53:59]line ФД: 68626 [15:53:59]line ФПД: 23891797444601 [15:54:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T155359&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68626&fm=23891797444601&tin=02508201610067®Number=0000000000098096&sum=50041 [15:54:00]OFD Sender: Processing packet 68626 [packets to send 27, broken 26] [15:54:00]ProducePacketName [15:54:00]name=ofd_packets/00068626 [15:54:00]OFD Sender: To server: pG, [15:54:00]CommunicateWithHost lk.salyk.kg:30040 [15:54:00]ConnectInit lk.salyk.kg [15:54:00]written 0, free lines is 4095 [15:54:00]Connected sock=10 [15:54:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 E5 BB 07 01 F7 29 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 97 38 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 12 0C 01 00 35 04 06 00 15 BA BE 19 87 F9 FF 39 7F 3A 41 DA 88 CD [15:54:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 CF B6 47 00 23 04 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 12 0C 01 00 F4 03 04 00 8F DF 5E 66 B6 04 01 00 00 47 EE F8 4E 59 C6 41 2B [15:54:00]CommunicateWithHost err = 0 [15:54:00]CheckOFDResponse [15:54:00]1017 (14) - 77093643461234 [15:54:00]1041 (16) - 0000000000965400 [15:54:00]1040 (4) - 68626 [15:54:00]1012 (4) - 04.06.2024 09:34 [15:54:00]1206 (1) - 0 [15:54:00]OFD Sender: Remove packet 68626 [15:54:00]ProducePacketName [15:54:00]name=ofd_packets/00068626 [15:54:00]NVStorageDeleteData [15:54:00]Write to MH i2c: 01 00 00 95 07 9C [15:54:00]Write i2c OK [15:54:00]MH_I2C_Read... [15:54:00]Read from MH i2c: 01 [15:54:00]MH_I2C_Read... [15:54:00]Read from MH i2c: 01 07 00 [15:54:00]MH_I2C_Read... [15:54:00]Read from MH i2c: 01 07 00 95 07 00 00 00 00 00 F0 0C 9F [15:54:00]RasterBufferAndPrint [15:54:00]line [15:54:00]line [15:54:00]line [15:54:00]line [15:54:00]line [15:54:00]written 0, free lines is 3318 [15:54:00]MH_Cut [15:54:00]Write to MH i2c: D1 01 00 9C 07 01 75 [15:54:00]Write i2c OK [15:54:00]MH_I2C_Read... [15:54:00]Read from MH i2c: D1 [15:54:00]MH_I2C_Read... [15:54:00]Read from MH i2c: D1 01 00 [15:54:00]MH_I2C_Read... [15:54:00]Read from MH i2c: D1 01 00 9C 07 00 74 [15:54:00]Write to MH i2c: 01 00 00 9D 07 A4 [15:54:00]Write i2c OK [15:54:00]MH_I2C_Read... [15:54:01]OFD Sender: No OFD packet to send [15:54:01]*** Cut start [15:54:01]*** Partial cut [15:54:01]*** CUTSNS_PIN = 1 [15:54:01]*** CUTSNS_PIN = 0 [15:54:01]*** Brake cut motor [15:54:02]Read from MH i2c: 01 [15:54:02]MH_I2C_Read... [15:54:02]*** Stop cut motor [15:54:02]*** Cut end [15:54:02]Read from MH i2c: 01 07 00 [15:54:02]MH_I2C_Read... [15:54:02]Read from MH i2c: 01 07 00 9D 07 00 00 00 00 00 FF 0F B9 [15:54:02]process_action close_receipt done [15:54:02]requested_data is exist [15:54:02]produce_requested_data [15:54:02]requested_item fm.sn is exist - process it [15:54:02]wFMCommunicate request_size=4 [15:54:02]MH_SAM_APDU [15:54:02]CAPDU: 80 11 00 00 [15:54:02]Write to MH i2c: E2 08 00 9E 07 80 11 00 00 00 00 00 00 1F [15:54:02]Write i2c OK [15:54:02]MH_I2C_Read... [15:54:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:54:02]Read from MH i2c: E2 [15:54:02]MH_I2C_Read... [15:54:02]Read from MH i2c: E2 17 00 [15:54:02]MH_I2C_Read... [15:54:02]Read from MH i2c: E2 17 00 9E 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 6A [15:54:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [15:54:02]wFMCommunicate OK [15:54:02]requested_item fd.num is exist - process it [15:54:02]SAM_PROTO_GetFieldsCounters [15:54:02]wFMCommunicate request_size=4 [15:54:02]MH_SAM_APDU [15:54:02]CAPDU: 80 13 00 00 [15:54:02]Write to MH i2c: E2 08 00 9F 07 80 13 00 00 00 00 00 00 22 [15:54:02]Write i2c OK [15:54:02]MH_I2C_Read... [15:54:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:54:02]Read from MH i2c: E2 [15:54:02]MH_I2C_Read... [15:54:02]Read from MH i2c: E2 62 00 [15:54:02]MH_I2C_Read... [15:54:02]Read from MH i2c: E2 62 00 9F 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 12 0C 01 00 0E 04 04 00 45 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 1B [15:54:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 12 0C 01 00 0E 04 04 00 45 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:54:02]wFMCommunicate OK [15:54:02]SAM_PROTO_GetFieldsCounters done [15:54:02]requested_item shift.num is exist - process it [15:54:02]requested_item shift.opened is exist - process it [15:54:02]req_shift_opened [15:54:02]FM_GetShiftState [15:54:02]SAM_PROTO_GetShiftState [15:54:02]wFMCommunicate request_size=4 [15:54:02]MH_SAM_APDU [15:54:02]CAPDU: 80 13 01 00 [15:54:02]Write to MH i2c: E2 08 00 A0 07 80 13 01 00 00 00 00 00 24 [15:54:02]Write i2c OK [15:54:02]MH_I2C_Read... [15:54:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:54:02]Read from MH i2c: E2 [15:54:02]MH_I2C_Read... [15:54:02]Read from MH i2c: E2 0E 00 [15:54:02]MH_I2C_Read... [15:54:02]Read from MH i2c: E2 0E 00 A0 07 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 C0 [15:54:02]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [15:54:02]wFMCommunicate OK [15:54:02]SAM_PROTO_GetShiftState done [15:54:02]FM_GetShiftState done [15:54:02]req_shift_opened done [15:54:02]requested_item shift.open_date is exist - process it [15:54:02]req_shift_open_date [15:54:02]req_shift_open_date done [15:54:02]produce_requested_data done [15:54:02]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68626,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [15:54:02]process_action_free close_receipt [15:54:02]json_value_free [15:54:02]json_value_free done [15:54:02]process_json_proto returns [15:54:02]Send response to host [15:54:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68626,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [15:54:02]free response buf [15:54:02]execute_script done [15:54:02]execute_script returns [15:54:02]free content buf [15:54:02]Sock 7.Close socket [15:54:02]Sock 7.Thread stoped [15:54:06]OFD Sender: No OFD packet to send [15:54:08]accept exits with 9 [15:54:08]New connection [15:54:08]New thread 3067297124 created [15:54:08]Thread 3067153764 joined [15:54:08]Waiting for new connection... [15:54:08] Sock 9.Parse request [15:54:08]Sock 9.Check first char [15:54:08]Sock 9.First char is OK [15:54:08]request: POST /json_proto HTTP/1.0 [15:54:08]Method: POST [15:54:08]URL: /json_proto [15:54:08]Method is POST - this is cgi request [15:54:08]url: /json_proto [15:54:08]query_string will be loaded in cgi processing [15:54:08]execute_cgi json_proto POST (null) [15:54:08]execute_cgi path=json_proto method=POST [15:54:08]POST find Content-Length [15:54:08]Host: 172.17.36.132:8080 [15:54:08]Content-Length: 640 [15:54:08]Content-Type: application/json [15:54:08] [15:54:08]POST finish read [15:54:08]Found Content-Length = 640 [15:54:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706761", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 10.000, "sum" : 669.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 669.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:54:08]execute_script... [15:54:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706761", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 10.000, "sum" : 669.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 669.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:54:08]POST & json_proto [15:54:08]process_json_proto [15:54:08]json parsed OK: [15:54:08]protocol is kg_v1.0 [15:54:08]action value=close_receipt [15:54:08]process_action close_receipt [15:54:08]cmd_close_receipt [15:54:08]MH_GetDate [15:54:08]Write to MH i2c: F0 00 00 A1 07 97 [15:54:08]Write i2c OK [15:54:08]MH_I2C_Read... [15:54:08]Read from MH i2c: F0 [15:54:08]MH_I2C_Read... [15:54:08]Read from MH i2c: F0 09 00 [15:54:08]MH_I2C_Read... [15:54:08]Read from MH i2c: F0 09 00 A1 07 00 A1 38 5F 66 B2 22 B0 64 26 [15:54:08]GetLastDocTimeStamp 1717516439 [15:54:08]current date 1717516449 [15:54:08]FM_GetShiftState [15:54:08]SAM_PROTO_GetShiftState [15:54:08]wFMCommunicate request_size=4 [15:54:08]MH_SAM_APDU [15:54:08]CAPDU: 80 13 01 00 [15:54:08]Write to MH i2c: E2 08 00 A2 07 80 13 01 00 00 00 00 00 26 [15:54:08]Write i2c OK [15:54:08]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 A2 07 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 C2 [15:54:09]RAPDU: 09 00 01 6E 5E 5E 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]opened in 1717460590 [15:54:09]opened+sec_in_day 1717546990 [15:54:09]quantity*price = 66900 [15:54:09]sum+1 = 66901 [15:54:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 669.00 НСП 1% : 5.92 НДС 12% : 71.04 Наличными: 669.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 125 04.06.2024 15:54 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68627 ФПД: 91451164600346 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T155409&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68627&fm=91451164600346&tin=02508201610067®Number=0000000000098096&sum=66900 [15:54:10]StoreToDocumentArchive [15:54:10]shift 325 fd 68627 [15:54:10]save to /storage/0325/doc_00068627 [15:54:10]save last doc name /storage/0325/doc_00068627 to /storage/kkm_last_doc_name [15:54:10]save OK [15:54:10]Clear old archive folders... [15:54:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:54:10]tlvbuf is 00A6E070 [15:54:10]SAM_PROTO_ClearQueue [15:54:10]wFMCommunicate request_size=4 [15:54:10]MH_SAM_APDU [15:54:10]CAPDU: 80 09 00 00 [15:54:10]Write to MH i2c: E2 08 00 AF 07 80 09 00 00 00 00 00 00 28 [15:54:10]Write i2c OK [15:54:10]MH_I2C_Read... [15:54:10]Read from MH i2c: E2 [15:54:10]MH_I2C_Read... [15:54:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:54:10]Read from MH i2c: E2 03 00 [15:54:10]MH_I2C_Read... [15:54:10]Read from MH i2c: E2 03 00 AF 07 00 90 00 2A [15:54:10]RAPDU: 90 00 [15:54:10]wFMCommunicate OK [15:54:10]SAM_PROTO_ClearQueue done [15:54:10]KKMCreateOFDPacket [15:54:10]OFDProtocolAddRootSTLVToBuf [15:54:10]FM_MakeSignedData [15:54:10]FM_MakeSignedData [15:54:10]SAM_PROTO_SignData [15:54:10]wFMCommunicate request_size=4 [15:54:10]MH_SAM_APDU [15:54:10]CAPDU: 80 0D 01 02 [15:54:10]Write to MH i2c: E2 08 00 B0 07 80 0D 01 02 00 00 00 00 30 [15:54:10]Write i2c OK [15:54:10]MH_I2C_Read... [15:54:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:54:10]Read from MH i2c: E2 [15:54:10]MH_I2C_Read... [15:54:10]Read from MH i2c: E2 03 00 [15:54:10]MH_I2C_Read... [15:54:10]Read from MH i2c: E2 03 00 B0 07 00 90 00 2B [15:54:10]RAPDU: 90 00 [15:54:10]wFMCommunicate OK [15:54:10]wFMCommunicate request_size=255 [15:54:10]MH_SAM_APDU [15:54:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 54 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 1B 00 00 00 00 07 04 06 00 54 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 A1 38 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 13 0C 01 00 35 04 06 00 53 [15:54:10]Write to MH i2c: E2 02 01 B1 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 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 54 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 1B 00 00 00 00 07 04 06 00 54 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 A1 38 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 13 0C 01 00 35 04 06 00 53 00 00 BA [15:54:10]Write i2c OK [15:54:10]MH_I2C_Read... [15:54:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:54:10]Read from MH i2c: E2 [15:54:10]MH_I2C_Read... [15:54:10]Read from MH i2c: E2 03 00 [15:54:10]MH_I2C_Read... [15:54:10]Read from MH i2c: E2 03 00 B1 07 00 90 00 2C [15:54:10]RAPDU: 90 00 [15:54:10]wFMCommunicate OK [15:54:10]wFMCommunicate request_size=10 [15:54:10]MH_SAM_APDU [15:54:10]CAPDU: 80 0D 02 02 05 2C A2 2E 28 1A [15:54:10]Write to MH i2c: E2 0D 00 B2 07 80 0D 02 02 05 00 2C A2 2E 28 1A 00 00 7B [15:54:10]Write i2c OK [15:54:10]MH_I2C_Read... [15:54:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:54:10]Read from MH i2c: E2 [15:54:10]MH_I2C_Read... [15:54:10]Read from MH i2c: E2 03 00 [15:54:10]MH_I2C_Read... [15:54:10]Read from MH i2c: E2 03 00 B2 07 00 90 00 2D [15:54:10]RAPDU: 90 00 [15:54:10]wFMCommunicate OK [15:54:10]wFMCommunicate request_size=4 [15:54:10]MH_SAM_APDU [15:54:10]CAPDU: 80 0D 03 02 [15:54:10]Write to MH i2c: E2 08 00 B3 07 80 0D 03 02 00 00 00 00 35 [15:54:10]Write i2c OK [15:54:10]MH_I2C_Read... [15:54:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:54:10]Read from MH i2c: E2 [15:54:10]MH_I2C_Read... [15:54:10]Read from MH i2c: E2 0B 00 [15:54:10]MH_I2C_Read... [15:54:10]Read from MH i2c: E2 0B 00 B3 07 00 F1 92 15 C4 36 A3 DE 3F 90 00 88 [15:54:10]RAPDU: F1 92 15 C4 36 A3 DE 3F 90 00 [15:54:10]wFMCommunicate OK [15:54:10]SAM_PROTO_SignData done [15:54:10]FM_MakeSignedData done [15:54:10]CreateOFDProtocolMessage [15:54:10]wFMCommunicate request_size=4 [15:54:10]MH_SAM_APDU [15:54:10]CAPDU: 80 11 00 00 [15:54:10]Write to MH i2c: E2 08 00 B4 07 80 11 00 00 00 00 00 00 35 [15:54:10]Write i2c OK [15:54:10]MH_I2C_Read... [15:54:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:54:10]Read from MH i2c: E2 [15:54:10]MH_I2C_Read... [15:54:10]Read from MH i2c: E2 17 00 [15:54:10]MH_I2C_Read... [15:54:10]Read from MH i2c: E2 17 00 B4 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 80 [15:54:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [15:54:10]wFMCommunicate OK [15:54:10]CreateOFDProtocolMessage done [15:54:10]OFDSenderStorePacket 68627 [15:54:10]StoreOFDPacket docnum=68627 [15:54:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 F2 0C 07 01 98 55 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 54 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 1B 00 00 00 00 07 04 06 00 54 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 A1 38 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 13 0C 01 00 35 04 06 00 53 2C A2 2E 28 1A F1 92 15 C4 36 A3 DE 3F [15:54:10]CheckFolder [15:54:10]dirname=/storage/ofd_packets [15:54:10]CheckFolder done [15:54:10]ProducePacketName [15:54:10]name=ofd_packets/00068627 [15:54:10]NVStorageSaveData ofd_packets/00068627 [15:54:10]File name is /storage/ofd_packets/00068627 [15:54:10]Write 301 bytes [15:54:10]NVStorageSaveData done [15:54:10]OFDSenderStorePacket done [15:54:10]KKMCreateOFDPacket done [15:54:10]NVStorageSaveData kkm_last_timestamp [15:54:10]File name is /storage/kkm_last_timestamp [15:54:10]Write 4 bytes [15:54:10]NVStorageSaveData done [15:54:10]ExternCall_PrintAddStr [15:54:10]wPrintStart [15:54:10]Write to MH i2c: 01 00 00 B5 07 BC [15:54:10]Write i2c OK [15:54:10]MH_I2C_Read... [15:54:10]Read from MH i2c: 01 [15:54:10]MH_I2C_Read... [15:54:10]Read from MH i2c: 01 07 00 [15:54:10]MH_I2C_Read... [15:54:10]Read from MH i2c: 01 07 00 B5 07 00 00 00 00 00 FF 0F D1 [15:54:10]RasterBufferAndPrint [15:54:10]line Счет N : (1)706761 [15:54:10]line ИНН: 02508201610067 [15:54:10]line Контрольно-Кассовый Чек [15:54:10]line ПРОДАЖА [15:54:10]line ТРК (МРК, ГНК) : 42 [15:54:10]line Товар: 2710124130 [15:54:10]line Аи-92-К-4 [15:54:10]line 10.000 * 66.90 [15:54:10]line = 669.00 [15:54:10]line НДС 12% НСП 1% [15:54:10]line > о реализуемом товаре [15:54:10]line ИТОГО: 669.00 [15:54:10]line НСП 1% : 5.92 [15:54:10]line НДС 12% : 71.04 [15:54:10]line Наличными: 669.00 [15:54:10]line Безнал.: 0.00 [15:54:10]line Место: АЗС № 62 "Партнер Нефть" [15:54:10]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [15:54:10]line СНО: Общий режим [15:54:10]line Чек 125 04.06.2024 15:54 [15:54:10]line Смена: 325 ФФД: 1.0 [15:54:10]line ЗНМ: 0300000181 [15:54:10]line РНМ: 0000000000098096 [15:54:10]line Версия ККМ: 001 [15:54:10]line ФМ: 0000000000965400 [15:54:10]line ФД: 68627 [15:54:10]line ФПД: 91451164600346 [15:54:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T155409&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68627&fm=91451164600346&tin=02508201610067®Number=0000000000098096&sum=66900 [15:54:11]OFD Sender: Processing packet 68627 [packets to send 27, broken 26] [15:54:11]ProducePacketName [15:54:11]name=ofd_packets/00068627 [15:54:11]OFD Sender: To server: pG, [15:54:11]CommunicateWithHost lk.salyk.kg:30040 [15:54:11]ConnectInit lk.salyk.kg [15:54:11]written 0, free lines is 4095 [15:54:11]Connected sock=10 [15:54:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 F2 0C 07 01 98 55 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 54 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 1B 00 00 00 00 07 04 06 00 54 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 A1 38 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 13 0C 01 00 35 04 06 00 53 2C A2 2E 28 1A F1 92 15 C4 36 A3 DE 3F [15:54:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 12 75 47 00 3A B2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 13 0C 01 00 F4 03 04 00 99 DF 5E 66 B6 04 01 00 00 AB 5D 7F 02 34 FA 93 AC [15:54:11]CommunicateWithHost err = 0 [15:54:11]CheckOFDResponse [15:54:11]1017 (14) - 77093643461234 [15:54:11]1041 (16) - 0000000000965400 [15:54:11]1040 (4) - 68627 [15:54:11]1012 (4) - 04.06.2024 09:34 [15:54:11]1206 (1) - 0 [15:54:11]OFD Sender: Remove packet 68627 [15:54:11]ProducePacketName [15:54:11]name=ofd_packets/00068627 [15:54:11]NVStorageDeleteData [15:54:11]Write to MH i2c: 01 00 00 DD 07 E4 [15:54:11]Write i2c OK [15:54:11]MH_I2C_Read... [15:54:11]Read from MH i2c: 01 [15:54:11]MH_I2C_Read... [15:54:11]Read from MH i2c: 01 07 00 [15:54:11]MH_I2C_Read... [15:54:11]Read from MH i2c: 01 07 00 DD 07 00 00 00 00 00 0B 0D 03 [15:54:11]RasterBufferAndPrint [15:54:11]line [15:54:11]line [15:54:11]line [15:54:11]line [15:54:11]line [15:54:11]written 0, free lines is 3348 [15:54:11]MH_Cut [15:54:11]Write to MH i2c: D1 01 00 E4 07 01 BD [15:54:11]Write i2c OK [15:54:11]MH_I2C_Read... [15:54:11]Read from MH i2c: D1 [15:54:11]MH_I2C_Read... [15:54:11]Read from MH i2c: D1 01 00 [15:54:11]MH_I2C_Read... [15:54:11]Read from MH i2c: D1 01 00 E4 07 00 BC [15:54:11]Write to MH i2c: 01 00 00 E5 07 EC [15:54:11]Write i2c OK [15:54:11]MH_I2C_Read... [15:54:11]OFD Sender: No OFD packet to send [15:54:12]*** Cut start [15:54:12]*** Partial cut [15:54:12]*** CUTSNS_PIN = 1 [15:54:12]*** CUTSNS_PIN = 0 [15:54:12]*** Brake cut motor [15:54:12]Read from MH i2c: 01 [15:54:12]MH_I2C_Read... [15:54:12]*** Stop cut motor [15:54:12]*** Cut end [15:54:12]Read from MH i2c: 01 07 00 [15:54:12]MH_I2C_Read... [15:54:12]Read from MH i2c: 01 07 00 E5 07 00 00 00 00 00 FF 0F 01 [15:54:12]process_action close_receipt done [15:54:12]requested_data is exist [15:54:12]produce_requested_data [15:54:12]requested_item fm.sn is exist - process it [15:54:12]wFMCommunicate request_size=4 [15:54:12]MH_SAM_APDU [15:54:12]CAPDU: 80 11 00 00 [15:54:12]Write to MH i2c: E2 08 00 E6 07 80 11 00 00 00 00 00 00 67 [15:54:12]Write i2c OK [15:54:12]MH_I2C_Read... [15:54:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:54:12]Read from MH i2c: E2 [15:54:12]MH_I2C_Read... [15:54:12]Read from MH i2c: E2 17 00 [15:54:12]MH_I2C_Read... [15:54:12]Read from MH i2c: E2 17 00 E6 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 B2 [15:54:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [15:54:12]wFMCommunicate OK [15:54:12]requested_item fd.num is exist - process it [15:54:12]SAM_PROTO_GetFieldsCounters [15:54:12]wFMCommunicate request_size=4 [15:54:12]MH_SAM_APDU [15:54:12]CAPDU: 80 13 00 00 [15:54:12]Write to MH i2c: E2 08 00 E7 07 80 13 00 00 00 00 00 00 6A [15:54:12]Write i2c OK [15:54:12]MH_I2C_Read... [15:54:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:54:13]Read from MH i2c: E2 [15:54:13]MH_I2C_Read... [15:54:13]Read from MH i2c: E2 62 00 [15:54:13]MH_I2C_Read... [15:54:13]Read from MH i2c: E2 62 00 E7 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 13 0C 01 00 0E 04 04 00 45 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 67 [15:54:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 13 0C 01 00 0E 04 04 00 45 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 [15:54:13]wFMCommunicate OK [15:54:13]SAM_PROTO_GetFieldsCounters done [15:54:13]requested_item shift.num is exist - process it [15:54:13]requested_item shift.opened is exist - process it [15:54:13]req_shift_opened [15:54:13]FM_GetShiftState [15:54:13]SAM_PROTO_GetShiftState [15:54:13]wFMCommunicate request_size=4 [15:54:13]MH_SAM_APDU [15:54:13]CAPDU: 80 13 01 00 [15:54:13]Write to MH i2c: E2 08 00 E8 07 80 13 01 00 00 00 00 00 6C [15:54:13]Write i2c OK [15:54:13]MH_I2C_Read... [15:54:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:54:13]Read from MH i2c: E2 [15:54:13]MH_I2C_Read... [15:54:13]Read from MH i2c: E2 0E 00 [15:54:13]MH_I2C_Read... [15:54:13]Read from MH i2c: E2 0E 00 E8 07 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 08 [15:54:13]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [15:54:13]wFMCommunicate OK [15:54:13]SAM_PROTO_GetShiftState done [15:54:13]FM_GetShiftState done [15:54:13]req_shift_opened done [15:54:13]requested_item shift.open_date is exist - process it [15:54:13]req_shift_open_date [15:54:13]req_shift_open_date done [15:54:13]produce_requested_data done [15:54:13]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68627,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [15:54:13]process_action_free close_receipt [15:54:13]json_value_free [15:54:13]json_value_free done [15:54:13]process_json_proto returns [15:54:13]Send response to host [15:54:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68627,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [15:54:13]free response buf [15:54:13]execute_script done [15:54:13]execute_script returns [15:54:13]free content buf [15:54:13]Sock 9.Close socket [15:54:13]Sock 9.Thread stoped [15:54:16]OFD Sender: No OFD packet to send [15:54:21]OFD Sender: No OFD packet to send [15:54:26]OFD Sender: No OFD packet to send [15:54:31]OFD Sender: No OFD packet to send [15:54:36]OFD Sender: No OFD packet to send [15:54:41]OFD Sender: No OFD packet to send [15:54:46]OFD Sender: No OFD packet to send [15:54:51]OFD Sender: No OFD packet to send [15:54:56]OFD Sender: No OFD packet to send [15:55:01]OFD Sender: No OFD packet to send [15:55:06]OFD Sender: No OFD packet to send [15:55:11]OFD Sender: No OFD packet to send [15:55:16]OFD Sender: No OFD packet to send [15:55:21]OFD Sender: No OFD packet to send [15:55:26]OFD Sender: No OFD packet to send [15:55:31]OFD Sender: No OFD packet to send [15:55:36]OFD Sender: No OFD packet to send [15:55:41]OFD Sender: No OFD packet to send [15:55:46]OFD Sender: No OFD packet to send [15:55:51]OFD Sender: No OFD packet to send [15:55:56]OFD Sender: No OFD packet to send [15:56:01]OFD Sender: No OFD packet to send [15:56:06]OFD Sender: No OFD packet to send [15:56:11]OFD Sender: No OFD packet to send [15:56:16]OFD Sender: No OFD packet to send [15:56:21]OFD Sender: No OFD packet to send [15:56:26]OFD Sender: No OFD packet to send [15:56:31]OFD Sender: No OFD packet to send [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:07]OFD Sender: No OFD packet to send [15:58:12]OFD Sender: No OFD packet to send [15:58:17]OFD Sender: No OFD packet to send [15:58:22]OFD Sender: No OFD packet to send [15:58:27]OFD Sender: No OFD packet to send [15:58:32]OFD Sender: No OFD packet to send [15:58:37]OFD Sender: No OFD packet to send [15:58:42]OFD Sender: No OFD packet to send [15:58:47]OFD Sender: No OFD packet to send [15:58:52]OFD Sender: No OFD packet to send [15:58:57]OFD Sender: No OFD packet to send [15:59:02]OFD Sender: No OFD packet to send [15:59:07]OFD Sender: No OFD packet to send [15:59:12]OFD Sender: No OFD packet to send [15:59:17]OFD Sender: No OFD packet to send [15:59:22]OFD Sender: No OFD packet to send [15:59:27]OFD Sender: No OFD packet to send [15:59:32]OFD Sender: No OFD packet to send [15:59:37]OFD Sender: No OFD packet to send [15:59:42]OFD Sender: No OFD packet to send [15:59:47]OFD Sender: No OFD packet to send [15:59:52]OFD Sender: No OFD packet to send [15:59:57]OFD Sender: No OFD packet to send [16:00:02]OFD Sender: No OFD packet to send [16:00:07]OFD Sender: No OFD packet to send [16:00:12]OFD Sender: No OFD packet to send [16:00:17]OFD Sender: No OFD packet to send [16:00:22]OFD Sender: No OFD packet to send [16:00:27]OFD Sender: No OFD packet to send [16:00:32]OFD Sender: No OFD packet to send [16:00:37]OFD Sender: No OFD packet to send [16:00:42]OFD Sender: No OFD packet to send [16:00:47]OFD Sender: No OFD packet to send [16:00:52]OFD Sender: No OFD packet to send [16:00:57]OFD Sender: No OFD packet to send [16:00:57]accept exits with 7 [16:00:57]New connection [16:00:57]New thread 3067153764 created [16:00:57]Thread 3067297124 joined [16:00:57]Waiting for new connection... [16:00:57] Sock 7.Parse request [16:00:57]Sock 7.Check first char [16:00:57]Sock 7.First char is OK [16:00:57]request: POST /json_proto HTTP/1.0 [16:00:57]Method: POST [16:00:57]URL: /json_proto [16:00:57]Method is POST - this is cgi request [16:00:57]url: /json_proto [16:00:57]query_string will be loaded in cgi processing [16:00:57]execute_cgi json_proto POST (null) [16:00:57]execute_cgi path=json_proto method=POST [16:00:57]POST find Content-Length [16:00:57]Host: 172.17.36.132:8080 [16:00:57]Content-Length: 677 [16:00:57]Content-Type: application/json [16:00:57] [16:00:57]POST finish read [16:00:57]Found Content-Length = 677 [16:00:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706762", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:00:57]execute_script... [16:00: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)706762", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:00:57]POST & json_proto [16:00:57]process_json_proto [16:00:57]json parsed OK: [16:00:57]protocol is kg_v1.0 [16:00:57]action value=close_receipt [16:00:57]process_action close_receipt [16:00:57]cmd_close_receipt [16:00:57]MH_GetDate [16:00:57]Write to MH i2c: F0 00 00 E9 07 DF [16:00:57]Write i2c OK [16:00:57]MH_I2C_Read... [16:00:57]Read from MH i2c: F0 [16:00:57]MH_I2C_Read... [16:00:57]Read from MH i2c: F0 09 00 [16:00:57]MH_I2C_Read... [16:00:57]Read from MH i2c: F0 09 00 E9 07 00 3A 3A 5F 66 B2 22 B0 64 09 [16:00:57]GetLastDocTimeStamp 1717516449 [16:00:57]current date 1717516858 [16:00:57]FM_GetShiftState [16:00:57]SAM_PROTO_GetShiftState [16:00:57]wFMCommunicate request_size=4 [16:00:57]MH_SAM_APDU [16:00:57]CAPDU: 80 13 01 00 [16:00:57]Write to MH i2c: E2 08 00 EA 07 80 13 01 00 00 00 00 00 6E [16:00:57]Write i2c OK [16:00:57]MH_I2C_Read... [16:00:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:00:57]Read from MH i2c: E2 [16:00:57]MH_I2C_Read... [16:00:57]Read from MH i2c: E2 0E 00 [16:00:57]MH_I2C_Read... [16:00:57]Read from MH i2c: E2 0E 00 EA 07 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 0A [16:00:57]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [16:00:57]wFMCommunicate OK [16:00:57]SAM_PROTO_GetShiftState done [16:00:57]FM_GetShiftState done [16:00:57]opened in 1717460590 [16:00:57]opened+sec_in_day 1717546990 [16:00:57]quantity*price = 40006 [16:00:57]sum+1 = 40007 [16:00:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 126 04.06.2024 16:00 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68628 ФПД: 26419810336006 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T160058&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68628&fm=26419810336006&tin=02508201610067®Number=0000000000098096&sum=40000 [16:00:58]StoreToDocumentArchive [16:00:58]shift 325 fd 68628 [16:00:58]save to /storage/0325/doc_00068628 [16:00:58]save last doc name /storage/0325/doc_00068628 to /storage/kkm_last_doc_name [16:00:58]save OK [16:00:58]Clear old archive folders... [16:00:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:00:58]tlvbuf is 00A54140 [16:00:58]SAM_PROTO_ClearQueue [16:00:58]wFMCommunicate request_size=4 [16:00:58]MH_SAM_APDU [16:00:58]CAPDU: 80 09 00 00 [16:00:58]Write to MH i2c: E2 08 00 F7 07 80 09 00 00 00 00 00 00 70 [16:00:58]Write i2c OK [16:00:58]MH_I2C_Read... [16:00:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:00:58]Read from MH i2c: E2 [16:00:58]MH_I2C_Read... [16:00:58]Read from MH i2c: E2 03 00 [16:00:58]MH_I2C_Read... [16:00:58]Read from MH i2c: E2 03 00 F7 07 00 90 00 72 [16:00:58]RAPDU: 90 00 [16:00:58]wFMCommunicate OK [16:00:58]SAM_PROTO_ClearQueue done [16:00:58]KKMCreateOFDPacket [16:00:58]OFDProtocolAddRootSTLVToBuf [16:00:58]FM_MakeSignedData [16:00:58]FM_MakeSignedData [16:00:58]SAM_PROTO_SignData [16:00:58]wFMCommunicate request_size=4 [16:00:58]MH_SAM_APDU [16:00:58]CAPDU: 80 0D 01 02 [16:00:58]Write to MH i2c: E2 08 00 F8 07 80 0D 01 02 00 00 00 00 78 [16:00:58]Write i2c OK [16:00:58]MH_I2C_Read... [16:00:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:00:58]Read from MH i2c: E2 [16:00:58]MH_I2C_Read... [16:00:58]Read from MH i2c: E2 03 00 [16:00:58]MH_I2C_Read... [16:00:58]Read from MH i2c: E2 03 00 F8 07 00 90 00 73 [16:00:58]RAPDU: 90 00 [16:00:58]wFMCommunicate OK [16:00:58]wFMCommunicate request_size=255 [16:00:58]MH_SAM_APDU [16:00: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 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 3A 3A 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 14 0C 01 00 35 04 06 00 18 [16:00:58]Write to MH i2c: E2 02 01 F9 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 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 3A 3A 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 14 0C 01 00 35 04 06 00 18 00 00 0A [16:00:58]Write i2c OK [16:00:58]MH_I2C_Read... [16:00:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:00:58]Read from MH i2c: E2 [16:00:58]MH_I2C_Read... [16:00:58]Read from MH i2c: E2 03 00 [16:00:58]MH_I2C_Read... [16:00:58]Read from MH i2c: E2 03 00 F9 07 00 90 00 74 [16:00:58]RAPDU: 90 00 [16:00:58]wFMCommunicate OK [16:00:58]wFMCommunicate request_size=10 [16:00:58]MH_SAM_APDU [16:00:58]CAPDU: 80 0D 02 02 05 07 57 68 FD 06 [16:00:58]Write to MH i2c: E2 0D 00 FA 07 80 0D 02 02 05 00 07 57 68 FD 06 00 00 4E [16:00:58]Write i2c OK [16:00:58]MH_I2C_Read... [16:00:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:00:58]Read from MH i2c: E2 [16:00:58]MH_I2C_Read... [16:00:58]Read from MH i2c: E2 03 00 [16:00:58]MH_I2C_Read... [16:00:58]Read from MH i2c: E2 03 00 FA 07 00 90 00 75 [16:00:58]RAPDU: 90 00 [16:00:58]wFMCommunicate OK [16:00:58]wFMCommunicate request_size=4 [16:00:58]MH_SAM_APDU [16:00:58]CAPDU: 80 0D 03 02 [16:00:58]Write to MH i2c: E2 08 00 FB 07 80 0D 03 02 00 00 00 00 7D [16:00:58]Write i2c OK [16:00:58]MH_I2C_Read... [16:00:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:00:58]Read from MH i2c: E2 [16:00:58]MH_I2C_Read... [16:00:58]Read from MH i2c: E2 0B 00 [16:00:58]MH_I2C_Read... [16:00:58]Read from MH i2c: E2 0B 00 FB 07 00 93 47 EF 77 DC FD 2F DA 90 00 A0 [16:00:58]RAPDU: 93 47 EF 77 DC FD 2F DA 90 00 [16:00:58]wFMCommunicate OK [16:00:58]SAM_PROTO_SignData done [16:00:58]FM_MakeSignedData done [16:00:58]CreateOFDProtocolMessage [16:00:58]wFMCommunicate request_size=4 [16:00:58]MH_SAM_APDU [16:00:58]CAPDU: 80 11 00 00 [16:00:58]Write to MH i2c: E2 08 00 FC 07 80 11 00 00 00 00 00 00 7D [16:00:58]Write i2c OK [16:00:58]MH_I2C_Read... [16:00:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:00:58]Read from MH i2c: E2 [16:00:58]MH_I2C_Read... [16:00:58]Read from MH i2c: E2 17 00 [16:00:58]MH_I2C_Read... [16:00:58]Read from MH i2c: E2 17 00 FC 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 C8 [16:00:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [16:00:58]wFMCommunicate OK [16:00:58]CreateOFDProtocolMessage done [16:00:58]OFDSenderStorePacket 68628 [16:00:58]StoreOFDPacket docnum=68628 [16:00:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 23 60 07 01 DE 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 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 3A 3A 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 14 0C 01 00 35 04 06 00 18 07 57 68 FD 06 93 47 EF 77 DC FD 2F DA [16:00:58]CheckFolder [16:00:58]dirname=/storage/ofd_packets [16:00:58]CheckFolder done [16:00:58]ProducePacketName [16:00:58]name=ofd_packets/00068628 [16:00:58]NVStorageSaveData ofd_packets/00068628 [16:00:58]File name is /storage/ofd_packets/00068628 [16:00:58]Write 301 bytes [16:00:58]NVStorageSaveData done [16:00:58]OFDSenderStorePacket done [16:00:58]KKMCreateOFDPacket done [16:00:58]NVStorageSaveData kkm_last_timestamp [16:00:58]File name is /storage/kkm_last_timestamp [16:00:58]Write 4 bytes [16:00:58]NVStorageSaveData done [16:00:58]ExternCall_PrintAddStr [16:00:58]wPrintStart [16:00:58]Write to MH i2c: 01 00 00 FD 07 04 [16:00:58]Write i2c OK [16:00:58]MH_I2C_Read... [16:00:58]Read from MH i2c: 01 [16:00:58]MH_I2C_Read... [16:00:58]Read from MH i2c: 01 07 00 [16:00:58]MH_I2C_Read... [16:00:58]Read from MH i2c: 01 07 00 FD 07 00 00 00 00 00 FF 0F 19 [16:00:58]RasterBufferAndPrint [16:00:58]line Счет N : (1)706762 [16:00:58]line ИНН: 02508201610067 [16:00:58]line Контрольно-Кассовый Чек [16:00:58]line ПРОДАЖА [16:00:58]line ТРК (МРК, ГНК) : 32 [16:00:58]line Товар: 2710124130 [16:00:58]line Аи-92-К-4 [16:00:58]line 5.980 * 66.90 [16:00:58]line = 400.06 [16:00:58]line НДС 12% НСП 1% [16:00:58]line > о реализуемом товаре [16:00:58]line ОКРУГЛЕНИЕ: -0.06 [16:00:58]line ИТОГО: 400.00 [16:00:58]line Внесено: 400.00 [16:00:58]line СДАЧА: 0.00 [16:00:58]line НСП 1% : 3.54 [16:00:58]line НДС 12% : 42.48 [16:00:58]line Наличными: 400.00 [16:00:58]line Безнал.: 0.00 [16:00:58]line Место: АЗС № 62 "Партнер Нефть" [16:00:58]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [16:00:58]line СНО: Общий режим [16:00:58]line Чек 126 04.06.2024 16:00 [16:00:58]line Смена: 325 ФФД: 1.0 [16:00:58]line ЗНМ: 0300000181 [16:00:58]line РНМ: 0000000000098096 [16:00:58]line Версия ККМ: 001 [16:00:58]line ФМ: 0000000000965400 [16:00:58]line ФД: 68628 [16:00:58]line ФПД: 26419810336006 [16:00:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T160058&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68628&fm=26419810336006&tin=02508201610067®Number=0000000000098096&sum=40000 [16:00:59]OFD Sender: Processing packet 68628 [packets to send 27, broken 26] [16:00:59]ProducePacketName [16:00:59]name=ofd_packets/00068628 [16:00:59]OFD Sender: To server: pG, [16:00:59]CommunicateWithHost lk.salyk.kg:30040 [16:00:59]ConnectInit lk.salyk.kg [16:00:59]written 0, free lines is 4095 [16:00:59]Connected sock=10 [16:00:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 23 60 07 01 DE 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 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 3A 3A 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 14 0C 01 00 35 04 06 00 18 07 57 68 FD 06 93 47 EF 77 DC FD 2F DA [16:00:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 E9 36 47 00 C1 3B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 14 0C 01 00 F4 03 04 00 32 E1 5E 66 B6 04 01 00 00 AF EC BD 52 76 19 46 FE [16:00:59]CommunicateWithHost err = 0 [16:00:59]CheckOFDResponse [16:00:59]1017 (14) - 77093643461234 [16:00:59]1041 (16) - 0000000000965400 [16:00:59]1040 (4) - 68628 [16:00:59]1012 (4) - 04.06.2024 09:41 [16:00:59]1206 (1) - 0 [16:00:59]OFD Sender: Remove packet 68628 [16:00:59]ProducePacketName [16:00:59]name=ofd_packets/00068628 [16:00:59]NVStorageDeleteData [16:00:59]Write to MH i2c: 01 00 00 28 08 30 [16:00:59]Write i2c OK [16:00:59]MH_I2C_Read... [16:00:59]Read from MH i2c: 01 [16:00:59]MH_I2C_Read... [16:00:59]Read from MH i2c: 01 07 00 [16:00:59]MH_I2C_Read... [16:00:59]Read from MH i2c: 01 07 00 28 08 00 00 00 00 00 E0 0C 23 [16:00:59]RasterBufferAndPrint [16:00:59]line [16:00:59]line [16:00:59]line [16:00:59]line [16:00:59]line [16:00:59]written 0, free lines is 3302 [16:00:59]MH_Cut [16:00:59]Write to MH i2c: D1 01 00 2F 08 01 09 [16:00:59]Write i2c OK [16:00:59]MH_I2C_Read... [16:00:59]Read from MH i2c: D1 [16:00:59]MH_I2C_Read... [16:00:59]Read from MH i2c: D1 01 00 [16:00:59]MH_I2C_Read... [16:00:59]Read from MH i2c: D1 01 00 2F 08 00 08 [16:00:59]Write to MH i2c: 01 00 00 30 08 38 [16:00:59]Write i2c OK [16:00:59]MH_I2C_Read... [16:00:59]OFD Sender: No OFD packet to send [16:01:00]*** Cut start [16:01:00]*** Partial cut [16:01:00]*** CUTSNS_PIN = 1 [16:01:00]*** CUTSNS_PIN = 0 [16:01:00]*** Brake cut motor [16:01:01]Read from MH i2c: 01 [16:01:01]MH_I2C_Read... [16:01:01]*** Stop cut motor [16:01:01]*** Cut end [16:01:01]Read from MH i2c: 01 07 00 [16:01:01]MH_I2C_Read... [16:01:01]Read from MH i2c: 01 07 00 30 08 00 00 00 00 00 FF 0F 4D [16:01:01]process_action close_receipt done [16:01:01]requested_data is exist [16:01:01]produce_requested_data [16:01:01]requested_item fm.sn is exist - process it [16:01:01]wFMCommunicate request_size=4 [16:01:01]MH_SAM_APDU [16:01:01]CAPDU: 80 11 00 00 [16:01:01]Write to MH i2c: E2 08 00 31 08 80 11 00 00 00 00 00 00 B3 [16:01:01]Write i2c OK [16:01:01]MH_I2C_Read... [16:01:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:01:01]Read from MH i2c: E2 [16:01:01]MH_I2C_Read... [16:01:01]Read from MH i2c: E2 17 00 [16:01:01]MH_I2C_Read... [16:01:01]Read from MH i2c: E2 17 00 31 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 FE [16:01:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [16:01:01]wFMCommunicate OK [16:01:01]requested_item fd.num is exist - process it [16:01:01]SAM_PROTO_GetFieldsCounters [16:01:01]wFMCommunicate request_size=4 [16:01:01]MH_SAM_APDU [16:01:01]CAPDU: 80 13 00 00 [16:01:01]Write to MH i2c: E2 08 00 32 08 80 13 00 00 00 00 00 00 B6 [16:01:01]Write i2c OK [16:01:01]MH_I2C_Read... [16:01:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:01:01]Read from MH i2c: E2 [16:01:01]MH_I2C_Read... [16:01:01]Read from MH i2c: E2 62 00 [16:01:01]MH_I2C_Read... [16:01:01]Read from MH i2c: E2 62 00 32 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 14 0C 01 00 0E 04 04 00 45 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 B7 [16:01:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 14 0C 01 00 0E 04 04 00 45 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:01:01]wFMCommunicate OK [16:01:01]SAM_PROTO_GetFieldsCounters done [16:01:01]requested_item shift.num is exist - process it [16:01:01]requested_item shift.opened is exist - process it [16:01:01]req_shift_opened [16:01:01]FM_GetShiftState [16:01:01]SAM_PROTO_GetShiftState [16:01:01]wFMCommunicate request_size=4 [16:01:01]MH_SAM_APDU [16:01:01]CAPDU: 80 13 01 00 [16:01:01]Write to MH i2c: E2 08 00 33 08 80 13 01 00 00 00 00 00 B8 [16:01:01]Write i2c OK [16:01:01]MH_I2C_Read... [16:01:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:01:01]Read from MH i2c: E2 [16:01:01]MH_I2C_Read... [16:01:01]Read from MH i2c: E2 0E 00 [16:01:01]MH_I2C_Read... [16:01:01]Read from MH i2c: E2 0E 00 33 08 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 54 [16:01:01]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [16:01:01]wFMCommunicate OK [16:01:01]SAM_PROTO_GetShiftState done [16:01:01]FM_GetShiftState done [16:01:01]req_shift_opened done [16:01:01]requested_item shift.open_date is exist - process it [16:01:01]req_shift_open_date [16:01:01]req_shift_open_date done [16:01:01]produce_requested_data done [16:01:01]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68628,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [16:01:01]process_action_free close_receipt [16:01:01]json_value_free [16:01:01]json_value_free done [16:01:01]process_json_proto returns [16:01:01]Send response to host [16:01:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68628,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [16:01:01]free response buf [16:01:01]execute_script done [16:01:01]execute_script returns [16:01:01]free content buf [16:01:01]Sock 7.Close socket [16:01:01]Sock 7.Thread stoped [16:01:05]OFD Sender: No OFD packet to send [16:01:10]OFD Sender: No OFD packet to send [16:01:15]OFD Sender: No OFD packet to send [16:01:20]OFD Sender: No OFD packet to send [16:01:25]OFD Sender: No OFD packet to send [16:01:30]OFD Sender: No OFD packet to send [16:01:35]OFD Sender: No OFD packet to send [16:01:40]OFD Sender: No OFD packet to send [16:01:45]OFD Sender: No OFD packet to send [16:01:50]OFD Sender: No OFD packet to send [16:01:55]OFD Sender: No OFD packet to send [16:02:00]OFD Sender: No OFD packet to send [16:02:05]OFD Sender: No OFD packet to send [16:02:10]OFD Sender: No OFD packet to send [16:02:15]OFD Sender: No OFD packet to send [16:02:20]OFD Sender: No OFD packet to send [16:02:25]OFD Sender: No OFD packet to send [16:02:30]OFD Sender: No OFD packet to send [16:02:35]OFD Sender: No OFD packet to send [16:02:40]OFD Sender: No OFD packet to send [16:02:45]OFD Sender: No OFD packet to send [16:02:50]OFD Sender: No OFD packet to send [16:02:55]OFD Sender: No OFD packet to send [16:03:00]OFD Sender: No OFD packet to send [16:03:05]OFD Sender: No OFD packet to send [16:03:10]OFD Sender: No OFD packet to send [16:03:15]OFD Sender: No OFD packet to send [16:03:20]OFD Sender: No OFD packet to send [16:03:25]OFD Sender: No OFD packet to send [16:03:30]OFD Sender: No OFD packet to send [16:03:35]OFD Sender: No OFD packet to send [16:03:40]OFD Sender: No OFD packet to send [16:03:45]OFD Sender: No OFD packet to send [16:03:50]OFD Sender: No OFD packet to send [16:03:55]OFD Sender: No OFD packet to send [16:04:00]OFD Sender: No OFD packet to send [16:04:01]accept exits with 9 [16:04:01]New connection [16:04:01]New thread 3067297124 created [16:04:01]Thread 3067153764 joined [16:04:01]Waiting for new connection... [16:04:01] Sock 9.Parse request [16:04:01]Sock 9.Check first char [16:04:01]Sock 9.First char is OK [16:04:01]request: POST /json_proto HTTP/1.0 [16:04:01]Method: POST [16:04:01]URL: /json_proto [16:04:01]Method is POST - this is cgi request [16:04:01]url: /json_proto [16:04:01]query_string will be loaded in cgi processing [16:04:01]execute_cgi json_proto POST (null) [16:04:01]execute_cgi path=json_proto method=POST [16:04:01]POST find Content-Length [16:04:01]Host: 172.17.36.132:8080 [16:04:01]Content-Length: 677 [16:04:01]Content-Type: application/json [16:04:01] [16:04:01]POST finish read [16:04:01]Found Content-Length = 677 [16:04:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706763", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:04:01]execute_script... [16:04:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706763", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:04:01]POST & json_proto [16:04:01]process_json_proto [16:04:01]json parsed OK: [16:04:01]protocol is kg_v1.0 [16:04:01]action value=close_receipt [16:04:01]process_action close_receipt [16:04:01]cmd_close_receipt [16:04:01]MH_GetDate [16:04:01]Write to MH i2c: F0 00 00 34 08 2B [16:04:01]Write i2c OK [16:04:01]MH_I2C_Read... [16:04:01]Read from MH i2c: F0 [16:04:01]MH_I2C_Read... [16:04:01]Read from MH i2c: F0 09 00 [16:04:01]MH_I2C_Read... [16:04:01]Read from MH i2c: F0 09 00 34 08 00 F2 3A 5F 66 B2 22 B0 64 0D [16:04:01]GetLastDocTimeStamp 1717516858 [16:04:01]current date 1717517042 [16:04:01]FM_GetShiftState [16:04:01]SAM_PROTO_GetShiftState [16:04:01]wFMCommunicate request_size=4 [16:04:01]MH_SAM_APDU [16:04:01]CAPDU: 80 13 01 00 [16:04:01]Write to MH i2c: E2 08 00 35 08 80 13 01 00 00 00 00 00 BA [16:04:01]Write i2c OK [16:04:01]MH_I2C_Read... [16:04:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:04:01]Read from MH i2c: E2 [16:04:01]MH_I2C_Read... [16:04:01]Read from MH i2c: E2 0E 00 [16:04:01]MH_I2C_Read... [16:04:01]Read from MH i2c: E2 0E 00 35 08 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 56 [16:04:01]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [16:04:01]wFMCommunicate OK [16:04:01]SAM_PROTO_GetShiftState done [16:04:01]FM_GetShiftState done [16:04:01]opened in 1717460590 [16:04:01]opened+sec_in_day 1717546990 [16:04:01]quantity*price = 50041 [16:04:01]sum+1 = 50042 [16:04:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 127 04.06.2024 16:04 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68629 ФПД: 172160376041079 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T160402&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68629&fm=172160376041079&tin=02508201610067®Number=0000000000098096&sum=50000 [16:04:02]StoreToDocumentArchive [16:04:02]shift 325 fd 68629 [16:04:02]save to /storage/0325/doc_00068629 [16:04:02]save last doc name /storage/0325/doc_00068629 to /storage/kkm_last_doc_name [16:04:02]save OK [16:04:02]Clear old archive folders... [16:04:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:04:02]tlvbuf is 00A94C10 [16:04:02]SAM_PROTO_ClearQueue [16:04:02]wFMCommunicate request_size=4 [16:04:02]MH_SAM_APDU [16:04:02]CAPDU: 80 09 00 00 [16:04:02]Write to MH i2c: E2 08 00 42 08 80 09 00 00 00 00 00 00 BC [16:04:02]Write i2c OK [16:04:02]MH_I2C_Read... [16:04:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:04:02]Read from MH i2c: E2 [16:04:02]MH_I2C_Read... [16:04:02]Read from MH i2c: E2 03 00 [16:04:02]MH_I2C_Read... [16:04:02]Read from MH i2c: E2 03 00 42 08 00 90 00 BE [16:04:02]RAPDU: 90 00 [16:04:02]wFMCommunicate OK [16:04:02]SAM_PROTO_ClearQueue done [16:04:02]KKMCreateOFDPacket [16:04:02]OFDProtocolAddRootSTLVToBuf [16:04:02]FM_MakeSignedData [16:04:02]FM_MakeSignedData [16:04:02]SAM_PROTO_SignData [16:04:02]wFMCommunicate request_size=4 [16:04:02]MH_SAM_APDU [16:04:02]CAPDU: 80 0D 01 02 [16:04:02]Write to MH i2c: E2 08 00 43 08 80 0D 01 02 00 00 00 00 C4 [16:04:02]Write i2c OK [16:04:02]MH_I2C_Read... [16:04:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:04:02]Read from MH i2c: E2 [16:04:02]MH_I2C_Read... [16:04:02]Read from MH i2c: E2 03 00 [16:04:02]MH_I2C_Read... [16:04:02]Read from MH i2c: E2 03 00 43 08 00 90 00 BF [16:04:02]RAPDU: 90 00 [16:04:02]wFMCommunicate OK [16:04:02]wFMCommunicate request_size=255 [16:04:02]MH_SAM_APDU [16:04: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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 F2 3A 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 15 0C 01 00 35 04 06 00 9C [16:04:02]Write to MH i2c: E2 02 01 44 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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 F2 3A 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 15 0C 01 00 35 04 06 00 9C 00 00 C5 [16:04:02]Write i2c OK [16:04:02]MH_I2C_Read... [16:04:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:04:03]Read from MH i2c: E2 [16:04:03]MH_I2C_Read... [16:04:03]Read from MH i2c: E2 03 00 [16:04:03]MH_I2C_Read... [16:04:03]Read from MH i2c: E2 03 00 44 08 00 90 00 C0 [16:04:03]RAPDU: 90 00 [16:04:03]wFMCommunicate OK [16:04:03]wFMCommunicate request_size=10 [16:04:03]MH_SAM_APDU [16:04:03]CAPDU: 80 0D 02 02 05 94 36 0E EE 77 [16:04:03]Write to MH i2c: E2 0D 00 45 08 80 0D 02 02 05 00 94 36 0E EE 77 00 00 0E [16:04:03]Write i2c OK [16:04:03]MH_I2C_Read... [16:04:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:04:03]Read from MH i2c: E2 [16:04:03]MH_I2C_Read... [16:04:03]Read from MH i2c: E2 03 00 [16:04:03]MH_I2C_Read... [16:04:03]Read from MH i2c: E2 03 00 45 08 00 90 00 C1 [16:04:03]RAPDU: 90 00 [16:04:03]wFMCommunicate OK [16:04:03]wFMCommunicate request_size=4 [16:04:03]MH_SAM_APDU [16:04:03]CAPDU: 80 0D 03 02 [16:04:03]Write to MH i2c: E2 08 00 46 08 80 0D 03 02 00 00 00 00 C9 [16:04:03]Write i2c OK [16:04:03]MH_I2C_Read... [16:04:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:04:03]Read from MH i2c: E2 [16:04:03]MH_I2C_Read... [16:04:03]Read from MH i2c: E2 0B 00 [16:04:03]MH_I2C_Read... [16:04:03]Read from MH i2c: E2 0B 00 46 08 00 56 D6 92 CF EB 41 6B 1D 90 00 0B [16:04:03]RAPDU: 56 D6 92 CF EB 41 6B 1D 90 00 [16:04:03]wFMCommunicate OK [16:04:03]SAM_PROTO_SignData done [16:04:03]FM_MakeSignedData done [16:04:03]CreateOFDProtocolMessage [16:04:03]wFMCommunicate request_size=4 [16:04:03]MH_SAM_APDU [16:04:03]CAPDU: 80 11 00 00 [16:04:03]Write to MH i2c: E2 08 00 47 08 80 11 00 00 00 00 00 00 C9 [16:04:03]Write i2c OK [16:04:03]MH_I2C_Read... [16:04:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:04:03]Read from MH i2c: E2 [16:04:03]MH_I2C_Read... [16:04:03]Read from MH i2c: E2 17 00 [16:04:03]MH_I2C_Read... [16:04:03]Read from MH i2c: E2 17 00 47 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 14 [16:04:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [16:04:03]wFMCommunicate OK [16:04:03]CreateOFDProtocolMessage done [16:04:03]OFDSenderStorePacket 68629 [16:04:03]StoreOFDPacket docnum=68629 [16:04:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 16 21 07 01 F8 27 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 F2 3A 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 15 0C 01 00 35 04 06 00 9C 94 36 0E EE 77 56 D6 92 CF EB 41 6B 1D [16:04:03]CheckFolder [16:04:03]dirname=/storage/ofd_packets [16:04:03]CheckFolder done [16:04:03]ProducePacketName [16:04:03]name=ofd_packets/00068629 [16:04:03]NVStorageSaveData ofd_packets/00068629 [16:04:03]File name is /storage/ofd_packets/00068629 [16:04:03]Write 301 bytes [16:04:03]NVStorageSaveData done [16:04:03]OFDSenderStorePacket done [16:04:03]KKMCreateOFDPacket done [16:04:03]NVStorageSaveData kkm_last_timestamp [16:04:03]File name is /storage/kkm_last_timestamp [16:04:03]Write 4 bytes [16:04:03]NVStorageSaveData done [16:04:03]ExternCall_PrintAddStr [16:04:03]wPrintStart [16:04:03]Write to MH i2c: 01 00 00 48 08 50 [16:04:03]Write i2c OK [16:04:03]MH_I2C_Read... [16:04:03]Read from MH i2c: 01 [16:04:03]MH_I2C_Read... [16:04:03]Read from MH i2c: 01 07 00 [16:04:03]MH_I2C_Read... [16:04:03]Read from MH i2c: 01 07 00 48 08 00 00 00 00 00 FF 0F 65 [16:04:03]RasterBufferAndPrint [16:04:03]line Счет N : (1)706763 [16:04:03]line ИНН: 02508201610067 [16:04:03]line Контрольно-Кассовый Чек [16:04:03]line ПРОДАЖА [16:04:03]line ТРК (МРК, ГНК) : 63 [16:04:03]line Товар: 2710124130 [16:04:03]line Аи-92-К-4 [16:04:03]line 7.480 * 66.90 [16:04:03]line = 500.41 [16:04:03]line НДС 12% НСП 1% [16:04:03]line > о реализуемом товаре [16:04:03]line ОКРУГЛЕНИЕ: -0.41 [16:04:03]line ИТОГО: 500.00 [16:04:03]line Внесено: 500.00 [16:04:03]line СДАЧА: 0.00 [16:04:03]line НСП 1% : 4.43 [16:04:03]line НДС 12% : 53.14 [16:04:03]line Наличными: 500.00 [16:04:03]line Безнал.: 0.00 [16:04:03]line Место: АЗС № 62 "Партнер Нефть" [16:04:03]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [16:04:03]line СНО: Общий режим [16:04:03]line Чек 127 04.06.2024 16:04 [16:04:03]line Смена: 325 ФФД: 1.0 [16:04:03]line ЗНМ: 0300000181 [16:04:03]line РНМ: 0000000000098096 [16:04:03]line Версия ККМ: 001 [16:04:03]line ФМ: 0000000000965400 [16:04:03]line ФД: 68629 [16:04:03]line ФПД: 172160376041079 [16:04:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T160402&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68629&fm=172160376041079&tin=02508201610067®Number=0000000000098096&sum=50000 [16:04:03]OFD Sender: Processing packet 68629 [packets to send 27, broken 26] [16:04:03]ProducePacketName [16:04:03]name=ofd_packets/00068629 [16:04:03]OFD Sender: To server: pG, [16:04:03]CommunicateWithHost lk.salyk.kg:30040 [16:04:03]ConnectInit lk.salyk.kg [16:04:03]written 0, free lines is 4095 [16:04:03]Connected sock=10 [16:04:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 16 21 07 01 F8 27 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 F2 3A 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 15 0C 01 00 35 04 06 00 9C 94 36 0E EE 77 56 D6 92 CF EB 41 6B 1D [16:04:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 10 A5 47 00 2F 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 39 36 35 34 30 30 10 04 04 00 15 0C 01 00 F4 03 04 00 EA E1 5E 66 B6 04 01 00 00 88 B3 7B 77 3F 8F D6 56 [16:04:03]CommunicateWithHost err = 0 [16:04:03]CheckOFDResponse [16:04:03]1017 (14) - 77093643461234 [16:04:03]1041 (16) - 0000000000965400 [16:04:03]1040 (4) - 68629 [16:04:03]1012 (4) - 04.06.2024 09:44 [16:04:03]1206 (1) - 0 [16:04:03]OFD Sender: Remove packet 68629 [16:04:03]ProducePacketName [16:04:03]name=ofd_packets/00068629 [16:04:03]NVStorageDeleteData [16:04:04]Write to MH i2c: 01 00 00 73 08 7B [16:04:04]Write i2c OK [16:04:04]MH_I2C_Read... [16:04:04]Read from MH i2c: 01 [16:04:04]MH_I2C_Read... [16:04:04]Read from MH i2c: 01 07 00 [16:04:04]MH_I2C_Read... [16:04:04]Read from MH i2c: 01 07 00 73 08 00 00 00 00 00 E1 0C 6F [16:04:04]RasterBufferAndPrint [16:04:04]line [16:04:04]line [16:04:04]line [16:04:04]line [16:04:04]line [16:04:04]written 0, free lines is 3303 [16:04:04]MH_Cut [16:04:04]Write to MH i2c: D1 01 00 7A 08 01 54 [16:04:04]Write i2c OK [16:04:04]MH_I2C_Read... [16:04:04]Read from MH i2c: D1 [16:04:04]MH_I2C_Read... [16:04:04]Read from MH i2c: D1 01 00 [16:04:04]MH_I2C_Read... [16:04:04]Read from MH i2c: D1 01 00 7A 08 00 53 [16:04:04]Write to MH i2c: 01 00 00 7B 08 83 [16:04:04]Write i2c OK [16:04:04]MH_I2C_Read... [16:04:04]OFD Sender: No OFD packet to send [16:04:04]*** Cut start [16:04:04]*** Partial cut [16:04:04]*** CUTSNS_PIN = 1 [16:04:04]*** CUTSNS_PIN = 0 [16:04:05]*** Brake cut motor [16:04:05]Read from MH i2c: 01 [16:04:05]MH_I2C_Read... [16:04:05]*** Stop cut motor [16:04:05]*** Cut end [16:04:05]Read from MH i2c: 01 07 00 [16:04:05]MH_I2C_Read... [16:04:05]Read from MH i2c: 01 07 00 7B 08 00 00 00 00 00 FF 0F 98 [16:04:05]process_action close_receipt done [16:04:05]requested_data is exist [16:04:05]produce_requested_data [16:04:05]requested_item fm.sn is exist - process it [16:04:05]wFMCommunicate request_size=4 [16:04:05]MH_SAM_APDU [16:04:05]CAPDU: 80 11 00 00 [16:04:05]Write to MH i2c: E2 08 00 7C 08 80 11 00 00 00 00 00 00 FE [16:04:05]Write i2c OK [16:04:05]MH_I2C_Read... [16:04:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:04:05]Read from MH i2c: E2 [16:04:05]MH_I2C_Read... [16:04:05]Read from MH i2c: E2 17 00 [16:04:05]MH_I2C_Read... [16:04:05]Read from MH i2c: E2 17 00 7C 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 49 [16:04:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [16:04:05]wFMCommunicate OK [16:04:05]requested_item fd.num is exist - process it [16:04:05]SAM_PROTO_GetFieldsCounters [16:04:05]wFMCommunicate request_size=4 [16:04:05]MH_SAM_APDU [16:04:05]CAPDU: 80 13 00 00 [16:04:05]Write to MH i2c: E2 08 00 7D 08 80 13 00 00 00 00 00 00 01 [16:04:05]Write i2c OK [16:04:05]MH_I2C_Read... [16:04:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:04:05]Read from MH i2c: E2 [16:04:05]MH_I2C_Read... [16:04:05]Read from MH i2c: E2 62 00 [16:04:05]MH_I2C_Read... [16:04:05]Read from MH i2c: E2 62 00 7D 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 15 0C 01 00 0E 04 04 00 45 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 06 [16:04:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 15 0C 01 00 0E 04 04 00 45 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:04:05]wFMCommunicate OK [16:04:05]SAM_PROTO_GetFieldsCounters done [16:04:05]requested_item shift.num is exist - process it [16:04:05]requested_item shift.opened is exist - process it [16:04:05]req_shift_opened [16:04:05]FM_GetShiftState [16:04:05]SAM_PROTO_GetShiftState [16:04:05]wFMCommunicate request_size=4 [16:04:05]MH_SAM_APDU [16:04:05]CAPDU: 80 13 01 00 [16:04:05]Write to MH i2c: E2 08 00 7E 08 80 13 01 00 00 00 00 00 03 [16:04:05]Write i2c OK [16:04:05]MH_I2C_Read... [16:04:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:04:05]Read from MH i2c: E2 [16:04:05]MH_I2C_Read... [16:04:05]Read from MH i2c: E2 0E 00 [16:04:05]MH_I2C_Read... [16:04:05]Read from MH i2c: E2 0E 00 7E 08 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 9F [16:04:05]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [16:04:05]wFMCommunicate OK [16:04:05]SAM_PROTO_GetShiftState done [16:04:05]FM_GetShiftState done [16:04:05]req_shift_opened done [16:04:05]requested_item shift.open_date is exist - process it [16:04:05]req_shift_open_date [16:04:05]req_shift_open_date done [16:04:05]produce_requested_data done [16:04:05]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68629,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [16:04:05]process_action_free close_receipt [16:04:05]json_value_free [16:04:05]json_value_free done [16:04:05]process_json_proto returns [16:04:05]Send response to host [16:04:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68629,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [16:04:05]free response buf [16:04:05]execute_script done [16:04:05]execute_script returns [16:04:05]free content buf [16:04:05]Sock 9.Close socket [16:04:05]Sock 9.Thread stoped [16:04:09]OFD Sender: No OFD packet to send [16:04:14]OFD Sender: No OFD packet to send [16:04:19]OFD Sender: No OFD packet to send [16:04:24]OFD Sender: No OFD packet to send [16:04:29]OFD Sender: No OFD packet to send [16:04:34]OFD Sender: No OFD packet to send [16:04:39]OFD Sender: No OFD packet to send [16:04:44]OFD Sender: No OFD packet to send [16:04:49]OFD Sender: No OFD packet to send [16:04:54]OFD Sender: No OFD packet to send [16:04:59]OFD Sender: No OFD packet to send [16:05:04]OFD Sender: No OFD packet to send [16:05:09]OFD Sender: No OFD packet to send [16:05:14]OFD Sender: No OFD packet to send [16:05:19]OFD Sender: No OFD packet to send [16:05:24]OFD Sender: No OFD packet to send [16:05:29]OFD Sender: No OFD packet to send [16:05:34]OFD Sender: No OFD packet to send [16:05:39]OFD Sender: No OFD packet to send [16:05:44]OFD Sender: No OFD packet to send [16:05:49]OFD Sender: No OFD packet to send [16:05:54]OFD Sender: No OFD packet to send [16:05:59]OFD Sender: No OFD packet to send [16:06:04]OFD Sender: No OFD packet to send [16:06:09]OFD Sender: No OFD packet to send [16:06:14]OFD Sender: No OFD packet to send [16:06:19]OFD Sender: No OFD packet to send [16:06:24]OFD Sender: No OFD packet to send [16:06:29]OFD Sender: No OFD packet to send [16:06:34]OFD Sender: No OFD packet to send [16:06:39]OFD Sender: No OFD packet to send [16:06:44]OFD Sender: No OFD packet to send [16:06:49]OFD Sender: No OFD packet to send [16:06:54]OFD Sender: No OFD packet to send [16:06:59]OFD Sender: No OFD packet to send [16:07:04]OFD Sender: No OFD packet to send [16:07:09]OFD Sender: No OFD packet to send [16:07:14]OFD Sender: No OFD packet to send [16:07:19]OFD Sender: No OFD packet to send [16:07:24]OFD Sender: No OFD packet to send [16:07:29]OFD Sender: No OFD packet to send [16:07:34]OFD Sender: No OFD packet to send [16:07:39]OFD Sender: No OFD packet to send [16:07:44]OFD Sender: No OFD packet to send [16:07:49]OFD Sender: No OFD packet to send [16:07:54]OFD Sender: No OFD packet to send [16:07:59]OFD Sender: No OFD packet to send [16:08:04]OFD Sender: No OFD packet to send [16:08:08]accept exits with 7 [16:08:08]New connection [16:08:08]New thread 3067153764 created [16:08:08]Thread 3067297124 joined [16:08:08]Waiting for new connection... [16:08:08] Sock 7.Parse request [16:08:08]Sock 7.Check first char [16:08:08]Sock 7.First char is OK [16:08:08]request: POST /json_proto HTTP/1.0 [16:08:08]Method: POST [16:08:08]URL: /json_proto [16:08:08]Method is POST - this is cgi request [16:08:08]url: /json_proto [16:08:08]query_string will be loaded in cgi processing [16:08:08]execute_cgi json_proto POST (null) [16:08:08]execute_cgi path=json_proto method=POST [16:08:08]POST find Content-Length [16:08:08]Host: 172.17.36.132:8080 [16:08:08]Content-Length: 671 [16:08:08]Content-Type: application/json [16:08:08] [16:08:08]POST finish read [16:08:08]Found Content-Length = 671 [16:08:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706764", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.90, "quantity" : 10.310, "sum" : 700.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:08:08]execute_script... [16:08: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)706764", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.90, "quantity" : 10.310, "sum" : 700.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:08:08]POST & json_proto [16:08:08]process_json_proto [16:08:08]json parsed OK: [16:08:08]protocol is kg_v1.0 [16:08:08]action value=close_receipt [16:08:08]process_action close_receipt [16:08:08]cmd_close_receipt [16:08:08]MH_GetDate [16:08:08]Write to MH i2c: F0 00 00 7F 08 76 [16:08:08]Write i2c OK [16:08:08]MH_I2C_Read... [16:08:08]Read from MH i2c: F0 [16:08:08]MH_I2C_Read... [16:08:08]Read from MH i2c: F0 09 00 [16:08:08]MH_I2C_Read... [16:08:08]Read from MH i2c: F0 09 00 7F 08 00 E9 3B 5F 66 B2 22 B0 64 50 [16:08:08]GetLastDocTimeStamp 1717517042 [16:08:08]current date 1717517289 [16:08:08]FM_GetShiftState [16:08:08]SAM_PROTO_GetShiftState [16:08:08]wFMCommunicate request_size=4 [16:08:08]MH_SAM_APDU [16:08:08]CAPDU: 80 13 01 00 [16:08:08]Write to MH i2c: E2 08 00 80 08 80 13 01 00 00 00 00 00 05 [16:08:08]Write i2c OK [16:08:08]MH_I2C_Read... [16:08:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:08:08]Read from MH i2c: E2 [16:08:08]MH_I2C_Read... [16:08:08]Read from MH i2c: E2 0E 00 [16:08:08]MH_I2C_Read... [16:08:08]Read from MH i2c: E2 0E 00 80 08 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 A1 [16:08:08]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [16:08:08]wFMCommunicate OK [16:08:08]SAM_PROTO_GetShiftState done [16:08:08]FM_GetShiftState done [16:08:08]opened in 1717460590 [16:08:08]opened+sec_in_day 1717546990 [16:08:08]quantity*price = 70004 [16:08:08]sum+1 = 70006 [16:08:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.19 НДС 12% : 74.34 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 128 04.06.2024 16:08 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68630 ФПД: 249814575990091 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T160809&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68630&fm=249814575990091&tin=02508201610067®Number=0000000000098096&sum=70000 [16:08:09]StoreToDocumentArchive [16:08:09]shift 325 fd 68630 [16:08:09]save to /storage/0325/doc_00068630 [16:08:09]save last doc name /storage/0325/doc_00068630 to /storage/kkm_last_doc_name [16:08:09]save OK [16:08:09]Clear old archive folders... [16:08:09]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:08:09]tlvbuf is 00A591F0 [16:08:09]SAM_PROTO_ClearQueue [16:08:09]wFMCommunicate request_size=4 [16:08:09]MH_SAM_APDU [16:08:09]CAPDU: 80 09 00 00 [16:08:09]Write to MH i2c: E2 08 00 8D 08 80 09 00 00 00 00 00 00 07 [16:08:09]Write i2c OK [16:08:09]MH_I2C_Read... [16:08:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:08:09]Read from MH i2c: E2 [16:08:09]MH_I2C_Read... [16:08:09]Read from MH i2c: E2 03 00 [16:08:09]MH_I2C_Read... [16:08:09]Read from MH i2c: E2 03 00 8D 08 00 90 00 09 [16:08:09]RAPDU: 90 00 [16:08:09]wFMCommunicate OK [16:08:09]SAM_PROTO_ClearQueue done [16:08:09]KKMCreateOFDPacket [16:08:09]OFDProtocolAddRootSTLVToBuf [16:08:09]FM_MakeSignedData [16:08:09]FM_MakeSignedData [16:08:09]SAM_PROTO_SignData [16:08:09]wFMCommunicate request_size=4 [16:08:09]MH_SAM_APDU [16:08:09]CAPDU: 80 0D 01 02 [16:08:09]Write to MH i2c: E2 08 00 8E 08 80 0D 01 02 00 00 00 00 0F [16:08:09]Write i2c OK [16:08:09]MH_I2C_Read... [16:08:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:08:09]Read from MH i2c: E2 [16:08:09]MH_I2C_Read... [16:08:09]Read from MH i2c: E2 03 00 [16:08:09]MH_I2C_Read... [16:08:09]Read from MH i2c: E2 03 00 8E 08 00 90 00 0A [16:08:09]RAPDU: 90 00 [16:08:09]wFMCommunicate OK [16:08:09]wFMCommunicate request_size=255 [16:08:09]MH_SAM_APDU [16:08:09]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 46 28 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 75 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 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 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 80 00 00 00 F4 03 04 00 E9 3B 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 16 0C 01 00 35 04 06 00 [16:08:09]Write to MH i2c: E2 02 01 8F 08 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 46 28 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 75 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 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 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 80 00 00 00 F4 03 04 00 E9 3B 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 16 0C 01 00 35 04 06 00 00 00 41 [16:08:09]Write i2c OK [16:08:09]MH_I2C_Read... [16:08:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:08:10]Read from MH i2c: E2 [16:08:10]MH_I2C_Read... [16:08:10]Read from MH i2c: E2 03 00 [16:08:10]MH_I2C_Read... [16:08:10]Read from MH i2c: E2 03 00 8F 08 00 90 00 0B [16:08:10]RAPDU: 90 00 [16:08:10]wFMCommunicate OK [16:08:10]wFMCommunicate request_size=11 [16:08:10]MH_SAM_APDU [16:08:10]CAPDU: 80 0D 02 02 06 E3 34 7D 0F C5 4B [16:08:10]Write to MH i2c: E2 0E 00 90 08 80 0D 02 02 06 00 E3 34 7D 0F C5 4B 00 00 D1 [16:08:10]Write i2c OK [16:08:10]MH_I2C_Read... [16:08:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:08:10]Read from MH i2c: E2 [16:08:10]MH_I2C_Read... [16:08:10]Read from MH i2c: E2 03 00 [16:08:10]MH_I2C_Read... [16:08:10]Read from MH i2c: E2 03 00 90 08 00 90 00 0C [16:08:10]RAPDU: 90 00 [16:08:10]wFMCommunicate OK [16:08:10]wFMCommunicate request_size=4 [16:08:10]MH_SAM_APDU [16:08:10]CAPDU: 80 0D 03 02 [16:08:10]Write to MH i2c: E2 08 00 91 08 80 0D 03 02 00 00 00 00 14 [16:08:10]Write i2c OK [16:08:10]MH_I2C_Read... [16:08:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:08:10]Read from MH i2c: E2 [16:08:10]MH_I2C_Read... [16:08:10]Read from MH i2c: E2 0B 00 [16:08:10]MH_I2C_Read... [16:08:10]Read from MH i2c: E2 0B 00 91 08 00 E8 38 30 85 57 13 25 45 90 00 BE [16:08:10]RAPDU: E8 38 30 85 57 13 25 45 90 00 [16:08:10]wFMCommunicate OK [16:08:10]SAM_PROTO_SignData done [16:08:10]FM_MakeSignedData done [16:08:10]CreateOFDProtocolMessage [16:08:10]wFMCommunicate request_size=4 [16:08:10]MH_SAM_APDU [16:08:10]CAPDU: 80 11 00 00 [16:08:10]Write to MH i2c: E2 08 00 92 08 80 11 00 00 00 00 00 00 14 [16:08:10]Write i2c OK [16:08:10]MH_I2C_Read... [16:08:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:08:10]Read from MH i2c: E2 [16:08:10]MH_I2C_Read... [16:08:10]Read from MH i2c: E2 17 00 [16:08:10]MH_I2C_Read... [16:08:10]Read from MH i2c: E2 17 00 92 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 5F [16:08:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [16:08:10]wFMCommunicate OK [16:08:10]CreateOFDProtocolMessage done [16:08:10]OFDSenderStorePacket 68630 [16:08:10]StoreOFDPacket docnum=68630 [16:08:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 9E 5B 08 01 38 57 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 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 46 28 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 75 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 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 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 80 00 00 00 F4 03 04 00 E9 3B 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 16 0C 01 00 35 04 06 00 E3 34 7D 0F C5 4B E8 38 30 85 57 13 25 45 [16:08:10]CheckFolder [16:08:10]dirname=/storage/ofd_packets [16:08:10]CheckFolder done [16:08:10]ProducePacketName [16:08:10]name=ofd_packets/00068630 [16:08:10]NVStorageSaveData ofd_packets/00068630 [16:08:10]File name is /storage/ofd_packets/00068630 [16:08:10]Write 302 bytes [16:08:10]NVStorageSaveData done [16:08:10]OFDSenderStorePacket done [16:08:10]KKMCreateOFDPacket done [16:08:10]NVStorageSaveData kkm_last_timestamp [16:08:10]File name is /storage/kkm_last_timestamp [16:08:10]Write 4 bytes [16:08:10]NVStorageSaveData done [16:08:10]ExternCall_PrintAddStr [16:08:10]wPrintStart [16:08:10]Write to MH i2c: 01 00 00 93 08 9B [16:08:10]Write i2c OK [16:08:10]MH_I2C_Read... [16:08:10]Read from MH i2c: 01 [16:08:10]MH_I2C_Read... [16:08:10]Read from MH i2c: 01 07 00 [16:08:10]MH_I2C_Read... [16:08:10]Read from MH i2c: 01 07 00 93 08 00 00 00 00 00 FF 0F B0 [16:08:10]RasterBufferAndPrint [16:08:10]line Счет N : (1)706764 [16:08:10]line ИНН: 02508201610067 [16:08:10]line Контрольно-Кассовый Чек [16:08:10]line ПРОДАЖА [16:08:10]line ТРК (МРК, ГНК) : 62 [16:08:10]line Товар: 2710124130 [16:08:10]line Super-92-К-5 [16:08:10]line 10.310 * 67.90 [16:08:10]line = 700.05 [16:08:10]line НДС 12% НСП 1% [16:08:10]line > о реализуемом товаре [16:08:10]line ОКРУГЛЕНИЕ: -0.05 [16:08:10]line ИТОГО: 700.00 [16:08:10]line Внесено: 700.00 [16:08:10]line СДАЧА: 0.00 [16:08:10]line НСП 1% : 6.19 [16:08:10]line НДС 12% : 74.34 [16:08:10]line Наличными: 700.00 [16:08:10]line Безнал.: 0.00 [16:08:10]line Место: АЗС № 62 "Партнер Нефть" [16:08:10]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [16:08:10]line СНО: Общий режим [16:08:10]line Чек 128 04.06.2024 16:08 [16:08:10]line Смена: 325 ФФД: 1.0 [16:08:10]line ЗНМ: 0300000181 [16:08:10]line РНМ: 0000000000098096 [16:08:10]line Версия ККМ: 001 [16:08:10]line ФМ: 0000000000965400 [16:08:10]line ФД: 68630 [16:08:10]line ФПД: 249814575990091 [16:08:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T160809&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68630&fm=249814575990091&tin=02508201610067®Number=0000000000098096&sum=70000 [16:08:10]OFD Sender: Processing packet 68630 [packets to send 27, broken 26] [16:08:10]ProducePacketName [16:08:10]name=ofd_packets/00068630 [16:08:10]OFD Sender: To server: pG, [16:08:10]CommunicateWithHost lk.salyk.kg:30040 [16:08:10]ConnectInit lk.salyk.kg [16:08:10]written 0, free lines is 4095 [16:08:10]Connected sock=10 [16:08:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 9E 5B 08 01 38 57 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 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 46 28 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 75 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 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 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 80 00 00 00 F4 03 04 00 E9 3B 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 16 0C 01 00 35 04 06 00 E3 34 7D 0F C5 4B E8 38 30 85 57 13 25 45 [16:08:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 4C B7 47 00 BB 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 39 36 35 34 30 30 10 04 04 00 16 0C 01 00 F4 03 04 00 E1 E2 5E 66 B6 04 01 00 00 C4 DA 63 52 13 3F 96 B0 [16:08:10]CommunicateWithHost err = 0 [16:08:10]CheckOFDResponse [16:08:10]1017 (14) - 77093643461234 [16:08:10]1041 (16) - 0000000000965400 [16:08:10]1040 (4) - 68630 [16:08:10]1012 (4) - 04.06.2024 09:48 [16:08:10]1206 (1) - 0 [16:08:10]OFD Sender: Remove packet 68630 [16:08:10]ProducePacketName [16:08:10]name=ofd_packets/00068630 [16:08:10]NVStorageDeleteData [16:08:10]Write to MH i2c: 01 00 00 BE 08 C6 [16:08:10]Write i2c OK [16:08:10]MH_I2C_Read... [16:08:10]Read from MH i2c: 01 [16:08:10]MH_I2C_Read... [16:08:10]Read from MH i2c: 01 07 00 [16:08:10]MH_I2C_Read... [16:08:10]Read from MH i2c: 01 07 00 BE 08 00 00 00 00 00 DD 0C B6 [16:08:10]RasterBufferAndPrint [16:08:10]line [16:08:10]line [16:08:10]line [16:08:10]line [16:08:10]line [16:08:10]written 0, free lines is 3299 [16:08:10]MH_Cut [16:08:10]Write to MH i2c: D1 01 00 C5 08 01 9F [16:08:10]Write i2c OK [16:08:10]MH_I2C_Read... [16:08:10]Read from MH i2c: D1 [16:08:10]MH_I2C_Read... [16:08:10]Read from MH i2c: D1 01 00 [16:08:10]MH_I2C_Read... [16:08:10]Read from MH i2c: D1 01 00 C5 08 00 9E [16:08:10]Write to MH i2c: 01 00 00 C6 08 CE [16:08:10]Write i2c OK [16:08:10]MH_I2C_Read... [16:08:11]OFD Sender: No OFD packet to send [16:08:11]*** Cut start [16:08:11]*** Partial cut [16:08:11]*** CUTSNS_PIN = 1 [16:08:11]*** CUTSNS_PIN = 0 [16:08:12]*** Brake cut motor [16:08:12]Read from MH i2c: 01 [16:08:12]MH_I2C_Read... [16:08:12]*** Stop cut motor [16:08:12]*** Cut end [16:08:12]Read from MH i2c: 01 07 00 [16:08:12]MH_I2C_Read... [16:08:12]Read from MH i2c: 01 07 00 C6 08 00 00 00 00 00 FF 0F E3 [16:08:12]process_action close_receipt done [16:08:12]requested_data is exist [16:08:12]produce_requested_data [16:08:12]requested_item fm.sn is exist - process it [16:08:12]wFMCommunicate request_size=4 [16:08:12]MH_SAM_APDU [16:08:12]CAPDU: 80 11 00 00 [16:08:12]Write to MH i2c: E2 08 00 C7 08 80 11 00 00 00 00 00 00 49 [16:08:12]Write i2c OK [16:08:12]MH_I2C_Read... [16:08:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:08:12]Read from MH i2c: E2 [16:08:12]MH_I2C_Read... [16:08:12]Read from MH i2c: E2 17 00 [16:08:12]MH_I2C_Read... [16:08:12]Read from MH i2c: E2 17 00 C7 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 94 [16:08:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [16:08:12]wFMCommunicate OK [16:08:12]requested_item fd.num is exist - process it [16:08:12]SAM_PROTO_GetFieldsCounters [16:08:12]wFMCommunicate request_size=4 [16:08:12]MH_SAM_APDU [16:08:12]CAPDU: 80 13 00 00 [16:08:12]Write to MH i2c: E2 08 00 C8 08 80 13 00 00 00 00 00 00 4C [16:08:12]Write i2c OK [16:08:12]MH_I2C_Read... [16:08:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:08:12]Read from MH i2c: E2 [16:08:12]MH_I2C_Read... [16:08:12]Read from MH i2c: E2 62 00 [16:08:12]MH_I2C_Read... [16:08:12]Read from MH i2c: E2 62 00 C8 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 16 0C 01 00 0E 04 04 00 45 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 55 [16:08:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 16 0C 01 00 0E 04 04 00 45 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:08:12]wFMCommunicate OK [16:08:12]SAM_PROTO_GetFieldsCounters done [16:08:12]requested_item shift.num is exist - process it [16:08:12]requested_item shift.opened is exist - process it [16:08:12]req_shift_opened [16:08:12]FM_GetShiftState [16:08:12]SAM_PROTO_GetShiftState [16:08:12]wFMCommunicate request_size=4 [16:08:12]MH_SAM_APDU [16:08:12]CAPDU: 80 13 01 00 [16:08:12]Write to MH i2c: E2 08 00 C9 08 80 13 01 00 00 00 00 00 4E [16:08:12]Write i2c OK [16:08:12]MH_I2C_Read... [16:08:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:08:12]Read from MH i2c: E2 [16:08:12]MH_I2C_Read... [16:08:12]Read from MH i2c: E2 0E 00 [16:08:12]MH_I2C_Read... [16:08:12]Read from MH i2c: E2 0E 00 C9 08 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 EA [16:08:12]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [16:08:12]wFMCommunicate OK [16:08:12]SAM_PROTO_GetShiftState done [16:08:12]FM_GetShiftState done [16:08:12]req_shift_opened done [16:08:12]requested_item shift.open_date is exist - process it [16:08:12]req_shift_open_date [16:08:12]req_shift_open_date done [16:08:12]produce_requested_data done [16:08:12]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68630,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [16:08:12]process_action_free close_receipt [16:08:12]json_value_free [16:08:12]json_value_free done [16:08:12]process_json_proto returns [16:08:12]Send response to host [16:08:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68630,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [16:08:12]free response buf [16:08:12]execute_script done [16:08:12]execute_script returns [16:08:12]free content buf [16:08:12]Sock 7.Close socket [16:08:12]Sock 7.Thread stoped [16:08:16]OFD Sender: No OFD packet to send [16:08:21]OFD Sender: No OFD packet to send [16:08:26]OFD Sender: No OFD packet to send [16:08:31]OFD Sender: No OFD packet to send [16:08:36]OFD Sender: No OFD packet to send [16:08:41]OFD Sender: No OFD packet to send [16:08:46]OFD Sender: No OFD packet to send [16:08:51]OFD Sender: No OFD packet to send [16:08:56]OFD Sender: No OFD packet to send [16:09:01]OFD Sender: No OFD packet to send [16:09:06]OFD Sender: No OFD packet to send [16:09:11]OFD Sender: No OFD packet to send [16:09:16]OFD Sender: No OFD packet to send [16:09:21]OFD Sender: No OFD packet to send [16:09:26]OFD Sender: No OFD packet to send [16:09:31]OFD Sender: No OFD packet to send [16:09:36]OFD Sender: No OFD packet to send [16:09:41]OFD Sender: No OFD packet to send [16:09:46]OFD Sender: No OFD packet to send [16:09:51]OFD Sender: No OFD packet to send [16:09:56]OFD Sender: No OFD packet to send [16:10:01]OFD Sender: No OFD packet to send [16:10:06]OFD Sender: No OFD packet to send [16:10:11]OFD Sender: No OFD packet to send [16:10:16]OFD Sender: No OFD packet to send [16:10:21]OFD Sender: No OFD packet to send [16:10:26]OFD Sender: No OFD packet to send [16:10:31]OFD Sender: No OFD packet to send [16:10:36]OFD Sender: No OFD packet to send [16:10:41]OFD Sender: No OFD packet to send [16:10:46]OFD Sender: No OFD packet to send [16:10:51]OFD Sender: No OFD packet to send [16:10:56]OFD Sender: No OFD packet to send [16:11:01]OFD Sender: No OFD packet to send [16:11:06]OFD Sender: No OFD packet to send [16:11:11]OFD Sender: No OFD packet to send [16:11:16]OFD Sender: No OFD packet to send [16:11:21]OFD Sender: No OFD packet to send [16:11:26]OFD Sender: No OFD packet to send [16:11:31]OFD Sender: No OFD packet to send [16:11:36]OFD Sender: No OFD packet to send [16:11:41]OFD Sender: No OFD packet to send [16:11:46]OFD Sender: No OFD packet to send [16:11:51]OFD Sender: No OFD packet to send [16:11:56]OFD Sender: No OFD packet to send [16:12:01]OFD Sender: No OFD packet to send [16:12:06]OFD Sender: No OFD packet to send [16:12:11]OFD Sender: No OFD packet to send [16:12:16]OFD Sender: No OFD packet to send [16:12:21]OFD Sender: No OFD packet to send [16:12:26]OFD Sender: No OFD packet to send [16:12:31]OFD Sender: No OFD packet to send [16:12:36]OFD Sender: No OFD packet to send [16:12:41]OFD Sender: No OFD packet to send [16:12:46]OFD Sender: No OFD packet to send [16:12:51]OFD Sender: No OFD packet to send [16:12:56]OFD Sender: No OFD packet to send [16:13:01]OFD Sender: No OFD packet to send [16:13:06]OFD Sender: No OFD packet to send [16:13:11]OFD Sender: No OFD packet to send [16:13:16]OFD Sender: No OFD packet to send [16:13:21]OFD Sender: No OFD packet to send [16:13:26]OFD Sender: No OFD packet to send [16:13:31]OFD Sender: No OFD packet to send [16:13:36]OFD Sender: No OFD packet to send [16:13:41]OFD Sender: No OFD packet to send [16:13:46]OFD Sender: No OFD packet to send [16:13:51]OFD Sender: No OFD packet to send [16:13:56]OFD Sender: No OFD packet to send [16:14:01]OFD Sender: No OFD packet to send [16:14:06]OFD Sender: No OFD packet to send [16:14:11]OFD Sender: No OFD packet to send [16:14:16]OFD Sender: No OFD packet to send [16:14:21]OFD Sender: No OFD packet to send [16:14:26]OFD Sender: No OFD packet to send [16:14:31]OFD Sender: No OFD packet to send [16:14:36]OFD Sender: No OFD packet to send [16:14:41]OFD Sender: No OFD packet to send [16:14:46]OFD Sender: No OFD packet to send [16:14:51]OFD Sender: No OFD packet to send [16:14:56]OFD Sender: No OFD packet to send [16:15:01]OFD Sender: No OFD packet to send [16:15:06]OFD Sender: No OFD packet to send [16:15:11]OFD Sender: No OFD packet to send [16:15:16]OFD Sender: No OFD packet to send [16:15:21]OFD Sender: No OFD packet to send [16:15:26]OFD Sender: No OFD packet to send [16:15:31]OFD Sender: No OFD packet to send [16:15:36]OFD Sender: No OFD packet to send [16:15:41]OFD Sender: No OFD packet to send [16:15:46]OFD Sender: No OFD packet to send [16:15:51]OFD Sender: No OFD packet to send [16:15:56]OFD Sender: No OFD packet to send [16:16:01]OFD Sender: No OFD packet to send [16:16:06]OFD Sender: No OFD packet to send [16:16:11]OFD Sender: No OFD packet to send [16:16:16]OFD Sender: No OFD packet to send [16:16:19]accept exits with 9 [16:16:19]New connection [16:16:19]New thread 3067297124 created [16:16:19]Thread 3067153764 joined [16:16:19]Waiting for new connection... [16:16:19] Sock 9.Parse request [16:16:19]Sock 9.Check first char [16:16:19]Sock 9.First char is OK [16:16:19]request: POST /json_proto HTTP/1.0 [16:16:19]Method: POST [16:16:19]URL: /json_proto [16:16:19]Method is POST - this is cgi request [16:16:19]url: /json_proto [16:16:19]query_string will be loaded in cgi processing [16:16:19]execute_cgi json_proto POST (null) [16:16:19]execute_cgi path=json_proto method=POST [16:16:19]POST find Content-Length [16:16:19]Host: 172.17.36.132:8080 [16:16:19]Content-Length: 1196 [16:16:19]Content-Type: application/json [16:16:19] [16:16:19]POST finish read [16:16:19]Found Content-Length = 1196 [16:16:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0418\u0441\u043C\u0430\u043D\u0430\u043B\u0438\u0435\u0432 \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)706765\u000A04.06.2024 15:53\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 53\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-4\u000A 10.000 x 66.90\u000A\u0418\u0422\u041E\u0413: 669.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\u000A3887963\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:16:19]execute_script... [16:16:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0418\u0441\u043C\u0430\u043D\u0430\u043B\u0438\u0435\u0432 \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)706765\u000A04.06.2024 15:53\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 53\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-4\u000A 10.000 x 66.90\u000A\u0418\u0422\u041E\u0413: 669.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\u000A3887963\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:16:19]POST & json_proto [16:16:19]process_json_proto [16:16:19]json parsed OK: [16:16:19]protocol is kg_v1.0 [16:16:19]action value=print_text [16:16:19]process_action print_text [16:16:19]cmd_print_text [16:16:19]ExternCall_PrintAddStr [16:16:19]wPrintStart [16:16:19]Write to MH i2c: 01 00 00 CA 08 D2 [16:16:19]Write i2c OK [16:16:19]MH_I2C_Read... [16:16:19]Read from MH i2c: 01 [16:16:19]MH_I2C_Read... [16:16:19]Read from MH i2c: 01 07 00 [16:16:19]MH_I2C_Read... [16:16:19]Read from MH i2c: 01 07 00 CA 08 00 00 00 00 00 FF 0F E7 [16:16:19]RasterBufferAndPrint [16:16:19]line *****ТОВАРНЫЙ ЧЕК***** [16:16:19]line АЗС 62 [16:16:19]line Партнер нефть [16:16:19]line 02508201610067 [16:16:19]line Кассир : Исманалиев Д. [16:16:19]line Счет N : (1)706765 [16:16:19]line 04.06.2024 15:53 [16:16:19]line ПРОДАЖА [16:16:19]line ТРК (МРК, ГНК): 53 [16:16:19]line Вид ГСМ : 2710124130 [16:16:19]line Аи-92-К-4 [16:16:19]line 10.000 x 66.90 [16:16:19]line ИТОГ: 669.00 [16:16:19]line Тип оплаты: Талоны: Партнер нефть [16:16:19]line 3887963 [16:16:19]line ______________________ [16:16:19]line (подпись) [16:16:19]written 0, free lines is 4095 [16:16:20]Write to MH i2c: 01 00 00 DE 08 E6 [16:16:20]Write i2c OK [16:16:20]MH_I2C_Read... [16:16:20]Read from MH i2c: 01 [16:16:20]MH_I2C_Read... [16:16:20]Read from MH i2c: 01 07 00 [16:16:20]MH_I2C_Read... [16:16:20]Read from MH i2c: 01 07 00 DE 08 00 00 00 00 00 14 0E 0F [16:16:20]RasterBufferAndPrint [16:16:20]line [16:16:20]line [16:16:20]line [16:16:20]line [16:16:20]line [16:16:20]written 0, free lines is 3606 [16:16:20]MH_Cut [16:16:20]Write to MH i2c: D1 01 00 E5 08 01 BF [16:16:20]Write i2c OK [16:16:20]MH_I2C_Read... [16:16:20]Read from MH i2c: D1 [16:16:20]MH_I2C_Read... [16:16:20]Read from MH i2c: D1 01 00 [16:16:20]MH_I2C_Read... [16:16:20]Read from MH i2c: D1 01 00 E5 08 00 BE [16:16:20]Write to MH i2c: 01 00 00 E6 08 EE [16:16:20]Write i2c OK [16:16:20]MH_I2C_Read... [16:16:20]*** Cut start [16:16:20]*** Partial cut [16:16:20]*** CUTSNS_PIN = 1 [16:16:20]*** CUTSNS_PIN = 0 [16:16:20]*** Brake cut motor [16:16:21]Read from MH i2c: 01 [16:16:21]MH_I2C_Read... [16:16:21]*** Stop cut motor [16:16:21]*** Cut end [16:16:21]Read from MH i2c: 01 07 00 [16:16:21]MH_I2C_Read... [16:16:21]Read from MH i2c: 01 07 00 E6 08 00 00 00 00 00 FF 0F 03 [16:16:21]process_action print_text done [16:16:21]requested_data is exist [16:16:21]produce_requested_data [16:16:21]requested_item fm.sn is exist - process it [16:16:21]wFMCommunicate request_size=4 [16:16:21]MH_SAM_APDU [16:16:21]CAPDU: 80 11 00 00 [16:16:21]Write to MH i2c: E2 08 00 E7 08 80 11 00 00 00 00 00 00 69 [16:16:21]Write i2c OK [16:16:21]MH_I2C_Read... [16:16:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:16:21]Read from MH i2c: E2 [16:16:21]MH_I2C_Read... [16:16:21]Read from MH i2c: E2 17 00 [16:16:21]MH_I2C_Read... [16:16:21]Read from MH i2c: E2 17 00 E7 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 B4 [16:16:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [16:16:21]wFMCommunicate OK [16:16:21]requested_item fd.num is exist - process it [16:16:21]SAM_PROTO_GetFieldsCounters [16:16:21]wFMCommunicate request_size=4 [16:16:21]MH_SAM_APDU [16:16:21]CAPDU: 80 13 00 00 [16:16:21]Write to MH i2c: E2 08 00 E8 08 80 13 00 00 00 00 00 00 6C [16:16:21]Write i2c OK [16:16:21]MH_I2C_Read... [16:16:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:16:21]Read from MH i2c: E2 [16:16:21]MH_I2C_Read... [16:16:21]Read from MH i2c: E2 62 00 [16:16:21]MH_I2C_Read... [16:16:21]Read from MH i2c: E2 62 00 E8 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 16 0C 01 00 0E 04 04 00 45 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 75 [16:16:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 16 0C 01 00 0E 04 04 00 45 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:16:21]wFMCommunicate OK [16:16:21]SAM_PROTO_GetFieldsCounters done [16:16:21]requested_item shift.num is exist - process it [16:16:21]requested_item shift.opened is exist - process it [16:16:21]req_shift_opened [16:16:21]FM_GetShiftState [16:16:21]SAM_PROTO_GetShiftState [16:16:21]wFMCommunicate request_size=4 [16:16:21]MH_SAM_APDU [16:16:21]CAPDU: 80 13 01 00 [16:16:21]Write to MH i2c: E2 08 00 E9 08 80 13 01 00 00 00 00 00 6E [16:16:21]Write i2c OK [16:16:21]MH_I2C_Read... [16:16:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:16:21]Read from MH i2c: E2 [16:16:21]MH_I2C_Read... [16:16:21]Read from MH i2c: E2 0E 00 [16:16:21]MH_I2C_Read... [16:16:21]Read from MH i2c: E2 0E 00 E9 08 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 0A [16:16:21]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [16:16:21]wFMCommunicate OK [16:16:21]SAM_PROTO_GetShiftState done [16:16:21]FM_GetShiftState done [16:16:21]req_shift_opened done [16:16:21]requested_item shift.open_date is exist - process it [16:16:21]req_shift_open_date [16:16:21]req_shift_open_date done [16:16:21]produce_requested_data done [16:16:21]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68630,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [16:16:21]process_action_free print_text [16:16:21]json_value_free [16:16:21]json_value_free done [16:16:21]process_json_proto returns [16:16:21]Send response to host [16:16:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68630,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [16:16:21]free response buf [16:16:21]execute_script done [16:16:21]execute_script returns [16:16:21]free content buf [16:16:21]Sock 9.Close socket [16:16:21]Sock 9.Thread stoped [16:16:21]OFD Sender: No OFD packet to send [16:16:26]OFD Sender: No OFD packet to send [16:16:31]OFD Sender: No OFD packet to send [16:16:36]OFD Sender: No OFD packet to send [16:16:41]OFD Sender: No OFD packet to send [16:16:46]OFD Sender: No OFD packet to send [16:16:51]OFD Sender: No OFD packet to send [16:16:56]OFD Sender: No OFD packet to send [16:17:01]OFD Sender: No OFD packet to send [16:17:06]OFD Sender: No OFD packet to send [16:17:11]OFD Sender: No OFD packet to send [16:17:16]OFD Sender: No OFD packet to send [16:17:21]OFD Sender: No OFD packet to send [16:17:26]OFD Sender: No OFD packet to send [16:17:31]OFD Sender: No OFD packet to send [16:17:36]OFD Sender: No OFD packet to send [16:17:41]OFD Sender: No OFD packet to send [16:17:46]OFD Sender: No OFD packet to send [16:17:51]OFD Sender: No OFD packet to send [16:17:56]OFD Sender: No OFD packet to send [16:18:01]OFD Sender: No OFD packet to send [16:18:06]OFD Sender: No OFD packet to send [16:18:11]OFD Sender: No OFD packet to send [16:18:16]OFD Sender: No OFD packet to send [16:18:21]OFD Sender: No OFD packet to send [16:18:26]OFD Sender: No OFD packet to send [16:18:31]OFD Sender: No OFD packet to send [16:18:36]OFD Sender: No OFD packet to send [16:18:41]OFD Sender: No OFD packet to send [16:18:46]OFD Sender: No OFD packet to send [16:18:51]OFD Sender: No OFD packet to send [16:18:56]OFD Sender: No OFD packet to send [16:19:01]OFD Sender: No OFD packet to send [16:19:06]OFD Sender: No OFD packet to send [16:19:11]OFD Sender: No OFD packet to send [16:19:16]OFD Sender: No OFD packet to send [16:19:21]OFD Sender: No OFD packet to send [16:19:26]OFD Sender: No OFD packet to send [16:19:31]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]accept exits with 7 [16:19:51]New connection [16:19:51]New thread 3067153764 created [16:19:51]Thread 3067297124 joined [16:19:51]Waiting for new connection... [16:19:51] Sock 7.Parse request [16:19:51]Sock 7.Check first char [16:19:51]Sock 7.First char is OK [16:19:51]request: POST /json_proto HTTP/1.0 [16:19:51]Method: POST [16:19:51]URL: /json_proto [16:19:51]Method is POST - this is cgi request [16:19:51]url: /json_proto [16:19:51]query_string will be loaded in cgi processing [16:19:51]execute_cgi json_proto POST (null) [16:19:51]execute_cgi path=json_proto method=POST [16:19:51]POST find Content-Length [16:19:51]Host: 172.17.36.132:8080 [16:19:51]Content-Length: 677 [16:19:51]Content-Type: application/json [16:19:51] [16:19:51]POST finish read [16:19:51]Found Content-Length = 677 [16:19:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706766", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:19:51]execute_script... [16:19: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)706766", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:19:51]POST & json_proto [16:19:51]process_json_proto [16:19:51]json parsed OK: [16:19:51]protocol is kg_v1.0 [16:19:51]action value=close_receipt [16:19:51]process_action close_receipt [16:19:51]cmd_close_receipt [16:19:51]MH_GetDate [16:19:51]Write to MH i2c: F0 00 00 EA 08 E1 [16:19:51]Write i2c OK [16:19:51]MH_I2C_Read... [16:19:51]Read from MH i2c: F0 [16:19:51]MH_I2C_Read... [16:19:51]Read from MH i2c: F0 09 00 [16:19:51]MH_I2C_Read... [16:19:51]Read from MH i2c: F0 09 00 EA 08 00 A8 3E 5F 66 B2 22 B0 64 7D [16:19:51]GetLastDocTimeStamp 1717517289 [16:19:51]current date 1717517992 [16:19:51]FM_GetShiftState [16:19:51]SAM_PROTO_GetShiftState [16:19:51]wFMCommunicate request_size=4 [16:19:51]MH_SAM_APDU [16:19:51]CAPDU: 80 13 01 00 [16:19:51]Write to MH i2c: E2 08 00 EB 08 80 13 01 00 00 00 00 00 70 [16:19:51]Write i2c OK [16:19:51]MH_I2C_Read... [16:19:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:19:51]Read from MH i2c: E2 [16:19:51]MH_I2C_Read... [16:19:51]Read from MH i2c: E2 0E 00 [16:19:51]MH_I2C_Read... [16:19:51]Read from MH i2c: E2 0E 00 EB 08 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 0C [16:19:51]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [16:19:51]wFMCommunicate OK [16:19:51]SAM_PROTO_GetShiftState done [16:19:51]FM_GetShiftState done [16:19:51]opened in 1717460590 [16:19:51]opened+sec_in_day 1717546990 [16:19:51]quantity*price = 30038 [16:19:51]sum+1 = 30039 [16:19:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 129 04.06.2024 16:19 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68631 ФПД: 112788559947109 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T161952&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68631&fm=112788559947109&tin=02508201610067®Number=0000000000098096&sum=30000 [16:19:52]StoreToDocumentArchive [16:19:52]shift 325 fd 68631 [16:19:52]save to /storage/0325/doc_00068631 [16:19:52]save last doc name /storage/0325/doc_00068631 to /storage/kkm_last_doc_name [16:19:52]save OK [16:19:52]Clear old archive folders... [16:19:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:19:52]tlvbuf is 00A99960 [16:19:52]SAM_PROTO_ClearQueue [16:19:52]wFMCommunicate request_size=4 [16:19:52]MH_SAM_APDU [16:19:52]CAPDU: 80 09 00 00 [16:19:52]Write to MH i2c: E2 08 00 F8 08 80 09 00 00 00 00 00 00 72 [16:19:52]Write i2c OK [16:19:52]MH_I2C_Read... [16:19:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:19:52]Read from MH i2c: E2 [16:19:52]MH_I2C_Read... [16:19:52]Read from MH i2c: E2 03 00 [16:19:52]MH_I2C_Read... [16:19:52]Read from MH i2c: E2 03 00 F8 08 00 90 00 74 [16:19:52]RAPDU: 90 00 [16:19:52]wFMCommunicate OK [16:19:52]SAM_PROTO_ClearQueue done [16:19:52]KKMCreateOFDPacket [16:19:52]OFDProtocolAddRootSTLVToBuf [16:19:52]FM_MakeSignedData [16:19:52]FM_MakeSignedData [16:19:52]SAM_PROTO_SignData [16:19:52]wFMCommunicate request_size=4 [16:19:52]MH_SAM_APDU [16:19:52]CAPDU: 80 0D 01 02 [16:19:52]Write to MH i2c: E2 08 00 F9 08 80 0D 01 02 00 00 00 00 7A [16:19:52]Write i2c OK [16:19:52]MH_I2C_Read... [16:19:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:19:52]Read from MH i2c: E2 [16:19:52]MH_I2C_Read... [16:19:52]Read from MH i2c: E2 03 00 [16:19:52]MH_I2C_Read... [16:19:52]Read from MH i2c: E2 03 00 F9 08 00 90 00 75 [16:19:52]RAPDU: 90 00 [16:19:52]wFMCommunicate OK [16:19:52]wFMCommunicate request_size=255 [16:19:52]MH_SAM_APDU [16:19:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 A8 3E 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 17 0C 01 00 35 04 06 00 66 [16:19:52]Write to MH i2c: E2 02 01 FA 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 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 A8 3E 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 17 0C 01 00 35 04 06 00 66 00 00 F7 [16:19:52]Write i2c OK [16:19:52]MH_I2C_Read... [16:19:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:19:53]Read from MH i2c: E2 [16:19:53]MH_I2C_Read... [16:19:53]Read from MH i2c: E2 03 00 [16:19:53]MH_I2C_Read... [16:19:53]Read from MH i2c: E2 03 00 FA 08 00 90 00 76 [16:19:53]RAPDU: 90 00 [16:19:53]wFMCommunicate OK [16:19:53]wFMCommunicate request_size=10 [16:19:53]MH_SAM_APDU [16:19:53]CAPDU: 80 0D 02 02 05 94 A2 0C E5 65 [16:19:53]Write to MH i2c: E2 0D 00 FB 08 80 0D 02 02 05 00 94 A2 0C E5 65 00 00 13 [16:19:53]Write i2c OK [16:19:53]MH_I2C_Read... [16:19:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:19:53]Read from MH i2c: E2 [16:19:53]MH_I2C_Read... [16:19:53]Read from MH i2c: E2 03 00 [16:19:53]MH_I2C_Read... [16:19:53]Read from MH i2c: E2 03 00 FB 08 00 90 00 77 [16:19:53]RAPDU: 90 00 [16:19:53]wFMCommunicate OK [16:19:53]wFMCommunicate request_size=4 [16:19:53]MH_SAM_APDU [16:19:53]CAPDU: 80 0D 03 02 [16:19:53]Write to MH i2c: E2 08 00 FC 08 80 0D 03 02 00 00 00 00 7F [16:19:53]Write i2c OK [16:19:53]MH_I2C_Read... [16:19:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:19:53]Read from MH i2c: E2 [16:19:53]MH_I2C_Read... [16:19:53]Read from MH i2c: E2 0B 00 [16:19:53]MH_I2C_Read... [16:19:53]Read from MH i2c: E2 0B 00 FC 08 00 13 60 86 B4 0A 43 58 ED 90 00 BF [16:19:53]RAPDU: 13 60 86 B4 0A 43 58 ED 90 00 [16:19:53]wFMCommunicate OK [16:19:53]SAM_PROTO_SignData done [16:19:53]FM_MakeSignedData done [16:19:53]CreateOFDProtocolMessage [16:19:53]wFMCommunicate request_size=4 [16:19:53]MH_SAM_APDU [16:19:53]CAPDU: 80 11 00 00 [16:19:53]Write to MH i2c: E2 08 00 FD 08 80 11 00 00 00 00 00 00 7F [16:19:53]Write i2c OK [16:19:53]MH_I2C_Read... [16:19:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:19:53]Read from MH i2c: E2 [16:19:53]MH_I2C_Read... [16:19:53]Read from MH i2c: E2 17 00 [16:19:53]MH_I2C_Read... [16:19:53]Read from MH i2c: E2 17 00 FD 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 CA [16:19:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [16:19:53]wFMCommunicate OK [16:19:53]CreateOFDProtocolMessage done [16:19:53]OFDSenderStorePacket 68631 [16:19:53]StoreOFDPacket docnum=68631 [16:19:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 BA 95 07 01 FB 15 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 A8 3E 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 17 0C 01 00 35 04 06 00 66 94 A2 0C E5 65 13 60 86 B4 0A 43 58 ED [16:19:53]CheckFolder [16:19:53]dirname=/storage/ofd_packets [16:19:53]CheckFolder done [16:19:53]ProducePacketName [16:19:53]name=ofd_packets/00068631 [16:19:53]NVStorageSaveData ofd_packets/00068631 [16:19:53]File name is /storage/ofd_packets/00068631 [16:19:53]Write 301 bytes [16:19:53]NVStorageSaveData done [16:19:53]OFDSenderStorePacket done [16:19:53]KKMCreateOFDPacket done [16:19:53]NVStorageSaveData kkm_last_timestamp [16:19:53]File name is /storage/kkm_last_timestamp [16:19:53]Write 4 bytes [16:19:53]NVStorageSaveData done [16:19:53]ExternCall_PrintAddStr [16:19:53]wPrintStart [16:19:53]Write to MH i2c: 01 00 00 FE 08 06 [16:19:53]Write i2c OK [16:19:53]MH_I2C_Read... [16:19:53]Read from MH i2c: 01 [16:19:53]MH_I2C_Read... [16:19:53]Read from MH i2c: 01 07 00 [16:19:53]MH_I2C_Read... [16:19:53]Read from MH i2c: 01 07 00 FE 08 00 00 00 00 00 FF 0F 1B [16:19:53]RasterBufferAndPrint [16:19:53]line Счет N : (1)706766 [16:19:53]line ИНН: 02508201610067 [16:19:53]line Контрольно-Кассовый Чек [16:19:53]line ПРОДАЖА [16:19:53]line ТРК (МРК, ГНК) : 32 [16:19:53]line Товар: 2710124130 [16:19:53]line Аи-92-К-4 [16:19:53]line 4.490 * 66.90 [16:19:53]line = 300.38 [16:19:53]line НДС 12% НСП 1% [16:19:53]line > о реализуемом товаре [16:19:53]line ОКРУГЛЕНИЕ: -0.38 [16:19:53]line ИТОГО: 300.00 [16:19:53]line Внесено: 300.00 [16:19:53]line СДАЧА: 0.00 [16:19:53]line НСП 1% : 2.66 [16:19:53]line НДС 12% : 31.90 [16:19:53]line Наличными: 300.00 [16:19:53]line Безнал.: 0.00 [16:19:53]line Место: АЗС № 62 "Партнер Нефть" [16:19:53]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [16:19:53]line СНО: Общий режим [16:19:53]line Чек 129 04.06.2024 16:19 [16:19:53]line Смена: 325 ФФД: 1.0 [16:19:53]line ЗНМ: 0300000181 [16:19:53]line РНМ: 0000000000098096 [16:19:53]line Версия ККМ: 001 [16:19:53]line ФМ: 0000000000965400 [16:19:53]line ФД: 68631 [16:19:53]line ФПД: 112788559947109 [16:19:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T161952&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68631&fm=112788559947109&tin=02508201610067®Number=0000000000098096&sum=30000 [16:19:53]OFD Sender: Processing packet 68631 [packets to send 27, broken 26] [16:19:53]ProducePacketName [16:19:53]name=ofd_packets/00068631 [16:19:53]OFD Sender: To server: pG, [16:19:53]CommunicateWithHost lk.salyk.kg:30040 [16:19:53]ConnectInit lk.salyk.kg [16:19:53]written 0, free lines is 4095 [16:19:53]Connected sock=10 [16:19:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 BA 95 07 01 FB 15 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 A8 3E 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 17 0C 01 00 35 04 06 00 66 94 A2 0C E5 65 13 60 86 B4 0A 43 58 ED [16:19:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 A3 D9 47 00 5D 67 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 17 0C 01 00 F4 03 04 00 A0 E5 5E 66 B6 04 01 00 00 3F 4B 73 42 B0 C4 4C 4E [16:19:53]CommunicateWithHost err = 0 [16:19:53]CheckOFDResponse [16:19:53]1017 (14) - 77093643461234 [16:19:53]1041 (16) - 0000000000965400 [16:19:53]1040 (4) - 68631 [16:19:53]1012 (4) - 04.06.2024 10:00 [16:19:53]1206 (1) - 0 [16:19:53]OFD Sender: Remove packet 68631 [16:19:53]ProducePacketName [16:19:53]name=ofd_packets/00068631 [16:19:53]NVStorageDeleteData [16:19:54]Write to MH i2c: 01 00 00 29 09 32 [16:19:54]Write i2c OK [16:19:54]MH_I2C_Read... [16:19:54]Read from MH i2c: 01 [16:19:54]MH_I2C_Read... [16:19:54]Read from MH i2c: 01 07 00 [16:19:54]MH_I2C_Read... [16:19:54]Read from MH i2c: 01 07 00 29 09 00 00 00 00 00 D4 0C 19 [16:19:54]RasterBufferAndPrint [16:19:54]line [16:19:54]line [16:19:54]line [16:19:54]line [16:19:54]line [16:19:54]written 0, free lines is 3292 [16:19:54]MH_Cut [16:19:54]Write to MH i2c: D1 01 00 30 09 01 0B [16:19:54]Write i2c OK [16:19:54]MH_I2C_Read... [16:19:54]Read from MH i2c: D1 [16:19:54]MH_I2C_Read... [16:19:54]Read from MH i2c: D1 01 00 [16:19:54]MH_I2C_Read... [16:19:54]Read from MH i2c: D1 01 00 30 09 00 0A [16:19:54]Write to MH i2c: 01 00 00 31 09 3A [16:19:54]Write i2c OK [16:19:54]MH_I2C_Read... [16:19:54]OFD Sender: No OFD packet to send [16:19:54]*** Cut start [16:19:54]*** Partial cut [16:19:54]*** CUTSNS_PIN = 1 [16:19:54]*** CUTSNS_PIN = 0 [16:19:55]*** Brake cut motor [16:19:55]Read from MH i2c: 01 [16:19:55]MH_I2C_Read... [16:19:55]*** Stop cut motor [16:19:55]*** Cut end [16:19:55]Read from MH i2c: 01 07 00 [16:19:55]MH_I2C_Read... [16:19:55]Read from MH i2c: 01 07 00 31 09 00 00 00 00 00 FF 0F 4F [16:19:55]process_action close_receipt done [16:19:55]requested_data is exist [16:19:55]produce_requested_data [16:19:55]requested_item fm.sn is exist - process it [16:19:55]wFMCommunicate request_size=4 [16:19:55]MH_SAM_APDU [16:19:55]CAPDU: 80 11 00 00 [16:19:55]Write to MH i2c: E2 08 00 32 09 80 11 00 00 00 00 00 00 B5 [16:19:55]Write i2c OK [16:19:55]MH_I2C_Read... [16:19:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:19:55]Read from MH i2c: E2 [16:19:55]MH_I2C_Read... [16:19:55]Read from MH i2c: E2 17 00 [16:19:55]MH_I2C_Read... [16:19:55]Read from MH i2c: E2 17 00 32 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 00 [16:19:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [16:19:55]wFMCommunicate OK [16:19:55]requested_item fd.num is exist - process it [16:19:55]SAM_PROTO_GetFieldsCounters [16:19:55]wFMCommunicate request_size=4 [16:19:55]MH_SAM_APDU [16:19:55]CAPDU: 80 13 00 00 [16:19:55]Write to MH i2c: E2 08 00 33 09 80 13 00 00 00 00 00 00 B8 [16:19:55]Write i2c OK [16:19:55]MH_I2C_Read... [16:19:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:19:55]Read from MH i2c: E2 [16:19:55]MH_I2C_Read... [16:19:55]Read from MH i2c: E2 62 00 [16:19:55]MH_I2C_Read... [16:19:55]Read from MH i2c: E2 62 00 33 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 17 0C 01 00 0E 04 04 00 45 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 C5 [16:19:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 17 0C 01 00 0E 04 04 00 45 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:19:55]wFMCommunicate OK [16:19:55]SAM_PROTO_GetFieldsCounters done [16:19:55]requested_item shift.num is exist - process it [16:19:55]requested_item shift.opened is exist - process it [16:19:55]req_shift_opened [16:19:55]FM_GetShiftState [16:19:55]SAM_PROTO_GetShiftState [16:19:55]wFMCommunicate request_size=4 [16:19:55]MH_SAM_APDU [16:19:55]CAPDU: 80 13 01 00 [16:19:55]Write to MH i2c: E2 08 00 34 09 80 13 01 00 00 00 00 00 BA [16:19:55]Write i2c OK [16:19:55]MH_I2C_Read... [16:19:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:19:55]Read from MH i2c: E2 [16:19:55]MH_I2C_Read... [16:19:55]Read from MH i2c: E2 0E 00 [16:19:55]MH_I2C_Read... [16:19:55]Read from MH i2c: E2 0E 00 34 09 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 56 [16:19:55]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [16:19:55]wFMCommunicate OK [16:19:55]SAM_PROTO_GetShiftState done [16:19:55]FM_GetShiftState done [16:19:55]req_shift_opened done [16:19:55]requested_item shift.open_date is exist - process it [16:19:55]req_shift_open_date [16:19:55]req_shift_open_date done [16:19:55]produce_requested_data done [16:19:55]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68631,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [16:19:55]process_action_free close_receipt [16:19:55]json_value_free [16:19:55]json_value_free done [16:19:55]process_json_proto returns [16:19:55]Send response to host [16:19:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68631,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [16:19:55]free response buf [16:19:55]execute_script done [16:19:55]execute_script returns [16:19:55]free content buf [16:19:55]Sock 7.Close socket [16:19:55]Sock 7.Thread stoped [16:19:59]OFD Sender: No OFD packet to send [16:20:04]OFD Sender: No OFD packet to send [16:20:09]OFD Sender: No OFD packet to send [16:20:14]OFD Sender: No OFD packet to send [16:20:19]OFD Sender: No OFD packet to send [16:20:24]OFD Sender: No OFD packet to send [16:20:29]OFD Sender: No OFD packet to send [16:20:34]OFD Sender: No OFD packet to send [16:20:39]OFD Sender: No OFD packet to send [16:20:44]OFD Sender: No OFD packet to send [16:20:49]OFD Sender: No OFD packet to send [16:20:54]OFD Sender: No OFD packet to send [16:20:59]OFD Sender: No OFD packet to send [16:21:04]OFD Sender: No OFD packet to send [16:21:09]OFD Sender: No OFD packet to send [16:21:14]OFD Sender: No OFD packet to send [16:21:17]accept exits with 9 [16:21:17]New connection [16:21:17]New thread 3067297124 created [16:21:17]Thread 3067153764 joined [16:21:17]Waiting for new connection... [16:21:17] Sock 9.Parse request [16:21:17]Sock 9.Check first char [16:21:17]Sock 9.First char is OK [16:21:17]request: POST /json_proto HTTP/1.0 [16:21:17]Method: POST [16:21:17]URL: /json_proto [16:21:17]Method is POST - this is cgi request [16:21:17]url: /json_proto [16:21:17]query_string will be loaded in cgi processing [16:21:17]execute_cgi json_proto POST (null) [16:21:17]execute_cgi path=json_proto method=POST [16:21:17]POST find Content-Length [16:21:17]Host: 172.17.36.132:8080 [16:21:17]Content-Length: 678 [16:21:17]Content-Type: application/json [16:21:17] [16:21:17]POST finish read [16:21:17]Found Content-Length = 678 [16:21:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706767", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:21:17]execute_script... [16:21: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)706767", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:21:17]POST & json_proto [16:21:17]process_json_proto [16:21:17]json parsed OK: [16:21:17]protocol is kg_v1.0 [16:21:17]action value=close_receipt [16:21:17]process_action close_receipt [16:21:17]cmd_close_receipt [16:21:17]MH_GetDate [16:21:17]Write to MH i2c: F0 00 00 35 09 2D [16:21:17]Write i2c OK [16:21:17]MH_I2C_Read... [16:21:17]Read from MH i2c: F0 [16:21:17]MH_I2C_Read... [16:21:17]Read from MH i2c: F0 09 00 [16:21:17]MH_I2C_Read... [16:21:17]Read from MH i2c: F0 09 00 35 09 00 FE 3E 5F 66 B2 22 B0 64 1F [16:21:17]GetLastDocTimeStamp 1717517992 [16:21:17]current date 1717518078 [16:21:17]FM_GetShiftState [16:21:17]SAM_PROTO_GetShiftState [16:21:17]wFMCommunicate request_size=4 [16:21:17]MH_SAM_APDU [16:21:17]CAPDU: 80 13 01 00 [16:21:17]Write to MH i2c: E2 08 00 36 09 80 13 01 00 00 00 00 00 BC [16:21:17]Write i2c OK [16:21:17]MH_I2C_Read... [16:21:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:21:17]Read from MH i2c: E2 [16:21:17]MH_I2C_Read... [16:21:17]Read from MH i2c: E2 0E 00 [16:21:17]MH_I2C_Read... [16:21:17]Read from MH i2c: E2 0E 00 36 09 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 58 [16:21:17]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [16:21:17]wFMCommunicate OK [16:21:17]SAM_PROTO_GetShiftState done [16:21:17]FM_GetShiftState done [16:21:17]opened in 1717460590 [16:21:17]opened+sec_in_day 1717546990 [16:21:17]quantity*price = 70044 [16:21:17]sum+1 = 70045 [16:21:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 130 04.06.2024 16:21 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68632 ФПД: 266054004642323 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T162118&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68632&fm=266054004642323&tin=02508201610067®Number=0000000000098096&sum=70000 [16:21:18]StoreToDocumentArchive [16:21:18]shift 325 fd 68632 [16:21:18]save to /storage/0325/doc_00068632 [16:21:18]save last doc name /storage/0325/doc_00068632 to /storage/kkm_last_doc_name [16:21:18]save OK [16:21:18]Clear old archive folders... [16:21:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:21:18]tlvbuf is B6F2EBD0 [16:21:18]SAM_PROTO_ClearQueue [16:21:18]wFMCommunicate request_size=4 [16:21:18]MH_SAM_APDU [16:21:18]CAPDU: 80 09 00 00 [16:21:18]Write to MH i2c: E2 08 00 43 09 80 09 00 00 00 00 00 00 BE [16:21:18]Write i2c OK [16:21:18]MH_I2C_Read... [16:21:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:21:18]Read from MH i2c: E2 [16:21:18]MH_I2C_Read... [16:21:18]Read from MH i2c: E2 03 00 [16:21:18]MH_I2C_Read... [16:21:18]Read from MH i2c: E2 03 00 43 09 00 90 00 C0 [16:21:18]RAPDU: 90 00 [16:21:18]wFMCommunicate OK [16:21:18]SAM_PROTO_ClearQueue done [16:21:18]KKMCreateOFDPacket [16:21:18]OFDProtocolAddRootSTLVToBuf [16:21:18]FM_MakeSignedData [16:21:18]FM_MakeSignedData [16:21:18]SAM_PROTO_SignData [16:21:18]wFMCommunicate request_size=4 [16:21:18]MH_SAM_APDU [16:21:18]CAPDU: 80 0D 01 02 [16:21:18]Write to MH i2c: E2 08 00 44 09 80 0D 01 02 00 00 00 00 C6 [16:21:18]Write i2c OK [16:21:18]MH_I2C_Read... [16:21:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:21:18]Read from MH i2c: E2 [16:21:18]MH_I2C_Read... [16:21:18]Read from MH i2c: E2 03 00 [16:21:18]MH_I2C_Read... [16:21:18]Read from MH i2c: E2 03 00 44 09 00 90 00 C1 [16:21:18]RAPDU: 90 00 [16:21:18]wFMCommunicate OK [16:21:18]wFMCommunicate request_size=255 [16:21:18]MH_SAM_APDU [16:21:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 FE 3E 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 18 0C 01 00 35 04 06 00 F1 [16:21:18]Write to MH i2c: E2 02 01 45 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 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 FE 3E 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 18 0C 01 00 35 04 06 00 F1 00 00 42 [16:21:18]Write i2c OK [16:21:18]MH_I2C_Read... [16:21:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:21:19]Read from MH i2c: E2 [16:21:19]MH_I2C_Read... [16:21:19]Read from MH i2c: E2 03 00 [16:21:19]MH_I2C_Read... [16:21:19]Read from MH i2c: E2 03 00 45 09 00 90 00 C2 [16:21:19]RAPDU: 90 00 [16:21:19]wFMCommunicate OK [16:21:19]wFMCommunicate request_size=10 [16:21:19]MH_SAM_APDU [16:21:19]CAPDU: 80 0D 02 02 05 F9 86 70 12 13 [16:21:19]Write to MH i2c: E2 0D 00 46 09 80 0D 02 02 05 00 F9 86 70 12 13 00 00 E7 [16:21:19]Write i2c OK [16:21:19]MH_I2C_Read... [16:21:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:21:19]Read from MH i2c: E2 [16:21:19]MH_I2C_Read... [16:21:19]Read from MH i2c: E2 03 00 [16:21:19]MH_I2C_Read... [16:21:19]Read from MH i2c: E2 03 00 46 09 00 90 00 C3 [16:21:19]RAPDU: 90 00 [16:21:19]wFMCommunicate OK [16:21:19]wFMCommunicate request_size=4 [16:21:19]MH_SAM_APDU [16:21:19]CAPDU: 80 0D 03 02 [16:21:19]Write to MH i2c: E2 08 00 47 09 80 0D 03 02 00 00 00 00 CB [16:21:19]Write i2c OK [16:21:19]MH_I2C_Read... [16:21:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:21:19]Read from MH i2c: E2 [16:21:19]MH_I2C_Read... [16:21:19]Read from MH i2c: E2 0B 00 [16:21:19]MH_I2C_Read... [16:21:19]Read from MH i2c: E2 0B 00 47 09 00 9D 34 C0 0E 0C A0 D1 5C 90 00 44 [16:21:19]RAPDU: 9D 34 C0 0E 0C A0 D1 5C 90 00 [16:21:19]wFMCommunicate OK [16:21:19]SAM_PROTO_SignData done [16:21:19]FM_MakeSignedData done [16:21:19]CreateOFDProtocolMessage [16:21:19]wFMCommunicate request_size=4 [16:21:19]MH_SAM_APDU [16:21:19]CAPDU: 80 11 00 00 [16:21:19]Write to MH i2c: E2 08 00 48 09 80 11 00 00 00 00 00 00 CB [16:21:19]Write i2c OK [16:21:19]MH_I2C_Read... [16:21:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:21:19]Read from MH i2c: E2 [16:21:19]MH_I2C_Read... [16:21:19]Read from MH i2c: E2 17 00 [16:21:19]MH_I2C_Read... [16:21:19]Read from MH i2c: E2 17 00 48 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 16 [16:21:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [16:21:19]wFMCommunicate OK [16:21:19]CreateOFDProtocolMessage done [16:21:19]OFDSenderStorePacket 68632 [16:21:19]StoreOFDPacket docnum=68632 [16:21:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 31 FC 07 01 F1 8C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 FE 3E 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 18 0C 01 00 35 04 06 00 F1 F9 86 70 12 13 9D 34 C0 0E 0C A0 D1 5C [16:21:19]CheckFolder [16:21:19]dirname=/storage/ofd_packets [16:21:19]CheckFolder done [16:21:19]ProducePacketName [16:21:19]name=ofd_packets/00068632 [16:21:19]NVStorageSaveData ofd_packets/00068632 [16:21:19]File name is /storage/ofd_packets/00068632 [16:21:19]Write 301 bytes [16:21:19]NVStorageSaveData done [16:21:19]OFDSenderStorePacket done [16:21:19]KKMCreateOFDPacket done [16:21:19]NVStorageSaveData kkm_last_timestamp [16:21:19]File name is /storage/kkm_last_timestamp [16:21:19]Write 4 bytes [16:21:19]NVStorageSaveData done [16:21:19]ExternCall_PrintAddStr [16:21:19]wPrintStart [16:21:19]Write to MH i2c: 01 00 00 49 09 52 [16:21:19]Write i2c OK [16:21:19]MH_I2C_Read... [16:21:19]Read from MH i2c: 01 [16:21:19]MH_I2C_Read... [16:21:19]Read from MH i2c: 01 07 00 [16:21:19]MH_I2C_Read... [16:21:19]Read from MH i2c: 01 07 00 49 09 00 00 00 00 00 FF 0F 67 [16:21:19]RasterBufferAndPrint [16:21:19]line Счет N : (1)706767 [16:21:19]line ИНН: 02508201610067 [16:21:19]line Контрольно-Кассовый Чек [16:21:19]line ПРОДАЖА [16:21:19]line ТРК (МРК, ГНК) : 32 [16:21:19]line Товар: 2710124130 [16:21:19]line Аи-92-К-4 [16:21:19]line 10.470 * 66.90 [16:21:19]line = 700.44 [16:21:19]line НДС 12% НСП 1% [16:21:19]line > о реализуемом товаре [16:21:19]line ОКРУГЛЕНИЕ: -0.44 [16:21:19]line ИТОГО: 700.00 [16:21:19]line Внесено: 700.00 [16:21:19]line СДАЧА: 0.00 [16:21:19]line НСП 1% : 6.20 [16:21:19]line НДС 12% : 74.38 [16:21:19]line Наличными: 700.00 [16:21:19]line Безнал.: 0.00 [16:21:19]line Место: АЗС № 62 "Партнер Нефть" [16:21:19]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [16:21:19]line СНО: Общий режим [16:21:19]line Чек 130 04.06.2024 16:21 [16:21:19]line Смена: 325 ФФД: 1.0 [16:21:19]line ЗНМ: 0300000181 [16:21:19]line РНМ: 0000000000098096 [16:21:19]line Версия ККМ: 001 [16:21:19]line ФМ: 0000000000965400 [16:21:19]line ФД: 68632 [16:21:19]line ФПД: 266054004642323 [16:21:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T162118&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68632&fm=266054004642323&tin=02508201610067®Number=0000000000098096&sum=70000 [16:21:19]OFD Sender: Processing packet 68632 [packets to send 27, broken 26] [16:21:19]ProducePacketName [16:21:19]name=ofd_packets/00068632 [16:21:19]OFD Sender: To server: pG, [16:21:19]CommunicateWithHost lk.salyk.kg:30040 [16:21:19]ConnectInit lk.salyk.kg [16:21:19]written 0, free lines is 4095 [16:21:19]Connected sock=10 [16:21:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 31 FC 07 01 F1 8C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 FE 3E 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 18 0C 01 00 35 04 06 00 F1 F9 86 70 12 13 9D 34 C0 0E 0C A0 D1 5C [16:21:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 90 97 47 00 8B 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 18 0C 01 00 F4 03 04 00 F6 E5 5E 66 B6 04 01 00 00 3B 4D 9B 7E C0 E4 E3 97 [16:21:19]CommunicateWithHost err = 0 [16:21:19]CheckOFDResponse [16:21:19]1017 (14) - 77093643461234 [16:21:19]1041 (16) - 0000000000965400 [16:21:19]1040 (4) - 68632 [16:21:19]1012 (4) - 04.06.2024 10:01 [16:21:19]1206 (1) - 0 [16:21:19]OFD Sender: Remove packet 68632 [16:21:19]ProducePacketName [16:21:19]name=ofd_packets/00068632 [16:21:19]NVStorageDeleteData [16:21:20]Write to MH i2c: 01 00 00 74 09 7D [16:21:20]Write i2c OK [16:21:20]MH_I2C_Read... [16:21:20]Read from MH i2c: 01 [16:21:20]MH_I2C_Read... [16:21:20]Read from MH i2c: 01 07 00 [16:21:20]MH_I2C_Read... [16:21:20]Read from MH i2c: 01 07 00 74 09 00 00 00 00 00 E4 0C 74 [16:21:20]RasterBufferAndPrint [16:21:20]line [16:21:20]line [16:21:20]line [16:21:20]line [16:21:20]line [16:21:20]written 0, free lines is 3306 [16:21:20]MH_Cut [16:21:20]Write to MH i2c: D1 01 00 7B 09 01 56 [16:21:20]Write i2c OK [16:21:20]MH_I2C_Read... [16:21:20]Read from MH i2c: D1 [16:21:20]MH_I2C_Read... [16:21:20]Read from MH i2c: D1 01 00 [16:21:20]MH_I2C_Read... [16:21:20]Read from MH i2c: D1 01 00 7B 09 00 55 [16:21:20]Write to MH i2c: 01 00 00 7C 09 85 [16:21:20]Write i2c OK [16:21:20]MH_I2C_Read... [16:21:20]OFD Sender: No OFD packet to send [16:21:20]*** Cut start [16:21:20]*** Partial cut [16:21:20]*** CUTSNS_PIN = 1 [16:21:20]*** CUTSNS_PIN = 0 [16:21:21]*** Brake cut motor [16:21:21]Read from MH i2c: 01 [16:21:21]MH_I2C_Read... [16:21:21]*** Stop cut motor [16:21:21]*** Cut end [16:21:21]Read from MH i2c: 01 07 00 [16:21:21]MH_I2C_Read... [16:21:21]Read from MH i2c: 01 07 00 7C 09 00 00 00 00 00 FF 0F 9A [16:21:21]process_action close_receipt done [16:21:21]requested_data is exist [16:21:21]produce_requested_data [16:21:21]requested_item fm.sn is exist - process it [16:21:21]wFMCommunicate request_size=4 [16:21:21]MH_SAM_APDU [16:21:21]CAPDU: 80 11 00 00 [16:21:21]Write to MH i2c: E2 08 00 7D 09 80 11 00 00 00 00 00 00 00 [16:21:21]Write i2c OK [16:21:21]MH_I2C_Read... [16:21:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:21:21]Read from MH i2c: E2 [16:21:21]MH_I2C_Read... [16:21:21]Read from MH i2c: E2 17 00 [16:21:21]MH_I2C_Read... [16:21:21]Read from MH i2c: E2 17 00 7D 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 4B [16:21:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [16:21:21]wFMCommunicate OK [16:21:21]requested_item fd.num is exist - process it [16:21:21]SAM_PROTO_GetFieldsCounters [16:21:21]wFMCommunicate request_size=4 [16:21:21]MH_SAM_APDU [16:21:21]CAPDU: 80 13 00 00 [16:21:21]Write to MH i2c: E2 08 00 7E 09 80 13 00 00 00 00 00 00 03 [16:21:21]Write i2c OK [16:21:21]MH_I2C_Read... [16:21:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:21:21]Read from MH i2c: E2 [16:21:21]MH_I2C_Read... [16:21:21]Read from MH i2c: E2 62 00 [16:21:21]MH_I2C_Read... [16:21:21]Read from MH i2c: E2 62 00 7E 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 18 0C 01 00 0E 04 04 00 45 01 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 14 [16:21:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 18 0C 01 00 0E 04 04 00 45 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:21:21]wFMCommunicate OK [16:21:21]SAM_PROTO_GetFieldsCounters done [16:21:21]requested_item shift.num is exist - process it [16:21:21]requested_item shift.opened is exist - process it [16:21:21]req_shift_opened [16:21:21]FM_GetShiftState [16:21:21]SAM_PROTO_GetShiftState [16:21:21]wFMCommunicate request_size=4 [16:21:21]MH_SAM_APDU [16:21:21]CAPDU: 80 13 01 00 [16:21:21]Write to MH i2c: E2 08 00 7F 09 80 13 01 00 00 00 00 00 05 [16:21:21]Write i2c OK [16:21:21]MH_I2C_Read... [16:21:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:21:21]Read from MH i2c: E2 [16:21:21]MH_I2C_Read... [16:21:21]Read from MH i2c: E2 0E 00 [16:21:21]MH_I2C_Read... [16:21:21]Read from MH i2c: E2 0E 00 7F 09 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 A1 [16:21:21]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [16:21:21]wFMCommunicate OK [16:21:21]SAM_PROTO_GetShiftState done [16:21:21]FM_GetShiftState done [16:21:21]req_shift_opened done [16:21:21]requested_item shift.open_date is exist - process it [16:21:21]req_shift_open_date [16:21:21]req_shift_open_date done [16:21:21]produce_requested_data done [16:21:21]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68632,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [16:21:21]process_action_free close_receipt [16:21:21]json_value_free [16:21:21]json_value_free done [16:21:21]process_json_proto returns [16:21:21]Send response to host [16:21:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68632,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [16:21:21]free response buf [16:21:21]execute_script done [16:21:21]execute_script returns [16:21:21]free content buf [16:21:21]Sock 9.Close socket [16:21:21]Sock 9.Thread stoped [16:21:25]OFD Sender: No OFD packet to send [16:21:30]OFD Sender: No OFD packet to send [16:21:35]OFD Sender: No OFD packet to send [16:21:40]OFD Sender: No OFD packet to send [16:21:45]OFD Sender: No OFD packet to send [16:21:50]OFD Sender: No OFD packet to send [16:21:55]OFD Sender: No OFD packet to send [16:22:00]OFD Sender: No OFD packet to send [16:22:05]OFD Sender: No OFD packet to send [16:22:10]OFD Sender: No OFD packet to send [16:22:15]OFD Sender: No OFD packet to send [16:22:20]OFD Sender: No OFD packet to send [16:22:25]OFD Sender: No OFD packet to send [16:22:30]OFD Sender: No OFD packet to send [16:22:35]OFD Sender: No OFD packet to send [16:22:40]OFD Sender: No OFD packet to send [16:22:45]OFD Sender: No OFD packet to send [16:22:50]OFD Sender: No OFD packet to send [16:22:55]OFD Sender: No OFD packet to send [16:23:00]OFD Sender: No OFD packet to send [16:23:05]OFD Sender: No OFD packet to send [16:23:10]OFD Sender: No OFD packet to send [16:23:15]OFD Sender: No OFD packet to send [16:23:20]OFD Sender: No OFD packet to send [16:23:25]OFD Sender: No OFD packet to send [16:23:30]OFD Sender: No OFD packet to send [16:23:35]OFD Sender: No OFD packet to send [16:23:40]OFD Sender: No OFD packet to send [16:23:45]OFD Sender: No OFD packet to send [16:23:50]OFD Sender: No OFD packet to send [16:23:55]OFD Sender: No OFD packet to send [16:24:00]OFD Sender: No OFD packet to send [16:24:05]OFD Sender: No OFD packet to send [16:24:09]accept exits with 7 [16:24:09]New connection [16:24:09]New thread 3067153764 created [16:24:09]Thread 3067297124 joined [16:24:09]Waiting for new connection... [16:24:09] Sock 7.Parse request [16:24:09]Sock 7.Check first char [16:24:09]Sock 7.First char is OK [16:24:09]request: POST /json_proto HTTP/1.0 [16:24:09]Method: POST [16:24:09]URL: /json_proto [16:24:09]Method is POST - this is cgi request [16:24:09]url: /json_proto [16:24:09]query_string will be loaded in cgi processing [16:24:09]execute_cgi json_proto POST (null) [16:24:09]execute_cgi path=json_proto method=POST [16:24:09]POST find Content-Length [16:24:09]Host: 172.17.36.132:8080 [16:24:09]Content-Length: 677 [16:24:09]Content-Type: application/json [16:24:09] [16:24:09]POST finish read [16:24:09]Found Content-Length = 677 [16:24:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706768", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:24:09]execute_script... [16: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)706768", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:24:09]POST & json_proto [16:24:09]process_json_proto [16:24:09]json parsed OK: [16:24:09]protocol is kg_v1.0 [16:24:09]action value=close_receipt [16:24:09]process_action close_receipt [16:24:09]cmd_close_receipt [16:24:09]MH_GetDate [16:24:09]Write to MH i2c: F0 00 00 80 09 78 [16:24:09]Write i2c OK [16:24:09]MH_I2C_Read... [16:24:09]Read from MH i2c: F0 [16:24:09]MH_I2C_Read... [16:24:09]Read from MH i2c: F0 09 00 [16:24:09]MH_I2C_Read... [16:24:09]Read from MH i2c: F0 09 00 80 09 00 AA 3F 5F 66 B2 22 B0 64 17 [16:24:09]GetLastDocTimeStamp 1717518078 [16:24:09]current date 1717518250 [16:24:09]FM_GetShiftState [16:24:09]SAM_PROTO_GetShiftState [16:24:09]wFMCommunicate request_size=4 [16:24:09]MH_SAM_APDU [16:24:09]CAPDU: 80 13 01 00 [16:24:09]Write to MH i2c: E2 08 00 81 09 80 13 01 00 00 00 00 00 07 [16:24:09]Write i2c OK [16:24:09]MH_I2C_Read... [16:24:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:24:09]Read from MH i2c: E2 [16:24:09]MH_I2C_Read... [16:24:09]Read from MH i2c: E2 0E 00 [16:24:09]MH_I2C_Read... [16:24:09]Read from MH i2c: E2 0E 00 81 09 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 A3 [16:24:09]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [16:24:09]wFMCommunicate OK [16:24:09]SAM_PROTO_GetShiftState done [16:24:09]FM_GetShiftState done [16:24:09]opened in 1717460590 [16:24:09]opened+sec_in_day 1717546990 [16:24:09]quantity*price = 30038 [16:24:09]sum+1 = 30039 [16:24:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 131 04.06.2024 16:24 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68633 ФПД: 30299347465468 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T162410&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68633&fm=30299347465468&tin=02508201610067®Number=0000000000098096&sum=30000 [16:24:10]StoreToDocumentArchive [16:24:10]shift 325 fd 68633 [16:24:10]save to /storage/0325/doc_00068633 [16:24:10]save last doc name /storage/0325/doc_00068633 to /storage/kkm_last_doc_name [16:24:10]save OK [16:24:10]Clear old archive folders... [16:24:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:24:10]tlvbuf is 00A3AFE0 [16:24:10]SAM_PROTO_ClearQueue [16:24:10]wFMCommunicate request_size=4 [16:24:10]MH_SAM_APDU [16:24:10]CAPDU: 80 09 00 00 [16:24:10]Write to MH i2c: E2 08 00 8E 09 80 09 00 00 00 00 00 00 09 [16:24:10]Write i2c OK [16:24:10]MH_I2C_Read... [16:24:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:24:10]Read from MH i2c: E2 [16:24:10]MH_I2C_Read... [16:24:10]Read from MH i2c: E2 03 00 [16:24:10]MH_I2C_Read... [16:24:10]Read from MH i2c: E2 03 00 8E 09 00 90 00 0B [16:24:10]RAPDU: 90 00 [16:24:10]wFMCommunicate OK [16:24:10]SAM_PROTO_ClearQueue done [16:24:10]KKMCreateOFDPacket [16:24:10]OFDProtocolAddRootSTLVToBuf [16:24:10]FM_MakeSignedData [16:24:10]FM_MakeSignedData [16:24:10]SAM_PROTO_SignData [16:24:10]wFMCommunicate request_size=4 [16:24:10]MH_SAM_APDU [16:24:10]CAPDU: 80 0D 01 02 [16:24:10]Write to MH i2c: E2 08 00 8F 09 80 0D 01 02 00 00 00 00 11 [16:24:10]Write i2c OK [16:24:10]MH_I2C_Read... [16:24:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:24:10]Read from MH i2c: E2 [16:24:10]MH_I2C_Read... [16:24:10]Read from MH i2c: E2 03 00 [16:24:10]MH_I2C_Read... [16:24:10]Read from MH i2c: E2 03 00 8F 09 00 90 00 0C [16:24:10]RAPDU: 90 00 [16:24:10]wFMCommunicate OK [16:24:10]wFMCommunicate request_size=255 [16:24:10]MH_SAM_APDU [16:24: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 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 AA 3F 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 19 0C 01 00 35 04 06 00 1B [16:24:10]Write to MH i2c: E2 02 01 90 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 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 AA 3F 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 19 0C 01 00 35 04 06 00 1B 00 00 4A [16:24:10]Write i2c OK [16:24:10]MH_I2C_Read... [16:24:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:24:11]Read from MH i2c: E2 [16:24:11]MH_I2C_Read... [16:24:11]Read from MH i2c: E2 03 00 [16:24:11]MH_I2C_Read... [16:24:11]Read from MH i2c: E2 03 00 90 09 00 90 00 0D [16:24:11]RAPDU: 90 00 [16:24:11]wFMCommunicate OK [16:24:11]wFMCommunicate request_size=10 [16:24:11]MH_SAM_APDU [16:24:11]CAPDU: 80 0D 02 02 05 8E 9D D7 B4 FC [16:24:11]Write to MH i2c: E2 0D 00 91 09 80 0D 02 02 05 00 8E 9D D7 B4 FC 00 00 D0 [16:24:11]Write i2c OK [16:24:11]MH_I2C_Read... [16:24:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:24:11]Read from MH i2c: E2 [16:24:11]MH_I2C_Read... [16:24:11]Read from MH i2c: E2 03 00 [16:24:11]MH_I2C_Read... [16:24:11]Read from MH i2c: E2 03 00 91 09 00 90 00 0E [16:24:11]RAPDU: 90 00 [16:24:11]wFMCommunicate OK [16:24:11]wFMCommunicate request_size=4 [16:24:11]MH_SAM_APDU [16:24:11]CAPDU: 80 0D 03 02 [16:24:11]Write to MH i2c: E2 08 00 92 09 80 0D 03 02 00 00 00 00 16 [16:24:11]Write i2c OK [16:24:11]MH_I2C_Read... [16:24:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:24:11]Read from MH i2c: E2 [16:24:11]MH_I2C_Read... [16:24:11]Read from MH i2c: E2 0B 00 [16:24:11]MH_I2C_Read... [16:24:11]Read from MH i2c: E2 0B 00 92 09 00 F8 11 97 CB 40 04 05 E2 90 00 AD [16:24:11]RAPDU: F8 11 97 CB 40 04 05 E2 90 00 [16:24:11]wFMCommunicate OK [16:24:11]SAM_PROTO_SignData done [16:24:11]FM_MakeSignedData done [16:24:11]CreateOFDProtocolMessage [16:24:11]wFMCommunicate request_size=4 [16:24:11]MH_SAM_APDU [16:24:11]CAPDU: 80 11 00 00 [16:24:11]Write to MH i2c: E2 08 00 93 09 80 11 00 00 00 00 00 00 16 [16:24:11]Write i2c OK [16:24:11]MH_I2C_Read... [16:24:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:24:11]Read from MH i2c: E2 [16:24:11]MH_I2C_Read... [16:24:11]Read from MH i2c: E2 17 00 [16:24:11]MH_I2C_Read... [16:24:11]Read from MH i2c: E2 17 00 93 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 61 [16:24:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [16:24:11]wFMCommunicate OK [16:24:11]CreateOFDProtocolMessage done [16:24:11]OFDSenderStorePacket 68633 [16:24:11]StoreOFDPacket docnum=68633 [16:24:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 82 EF 07 01 84 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 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 AA 3F 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 19 0C 01 00 35 04 06 00 1B 8E 9D D7 B4 FC F8 11 97 CB 40 04 05 E2 [16:24:11]CheckFolder [16:24:11]dirname=/storage/ofd_packets [16:24:11]CheckFolder done [16:24:11]ProducePacketName [16:24:11]name=ofd_packets/00068633 [16:24:11]NVStorageSaveData ofd_packets/00068633 [16:24:11]File name is /storage/ofd_packets/00068633 [16:24:11]Write 301 bytes [16:24:11]NVStorageSaveData done [16:24:11]OFDSenderStorePacket done [16:24:11]KKMCreateOFDPacket done [16:24:11]NVStorageSaveData kkm_last_timestamp [16:24:11]File name is /storage/kkm_last_timestamp [16:24:11]Write 4 bytes [16:24:11]NVStorageSaveData done [16:24:11]ExternCall_PrintAddStr [16:24:11]wPrintStart [16:24:11]Write to MH i2c: 01 00 00 94 09 9D [16:24:11]Write i2c OK [16:24:11]MH_I2C_Read... [16:24:11]Read from MH i2c: 01 [16:24:11]MH_I2C_Read... [16:24:11]Read from MH i2c: 01 07 00 [16:24:11]MH_I2C_Read... [16:24:11]Read from MH i2c: 01 07 00 94 09 00 00 00 00 00 FF 0F B2 [16:24:11]RasterBufferAndPrint [16:24:11]line Счет N : (1)706768 [16:24:11]line ИНН: 02508201610067 [16:24:11]line Контрольно-Кассовый Чек [16:24:11]line ПРОДАЖА [16:24:11]line ТРК (МРК, ГНК) : 42 [16:24:11]line Товар: 2710124130 [16:24:11]line Аи-92-К-4 [16:24:11]line 4.490 * 66.90 [16:24:11]line = 300.38 [16:24:11]line НДС 12% НСП 1% [16:24:11]line > о реализуемом товаре [16:24:11]line ОКРУГЛЕНИЕ: -0.38 [16:24:11]line ИТОГО: 300.00 [16:24:11]line Внесено: 300.00 [16:24:11]line СДАЧА: 0.00 [16:24:11]line НСП 1% : 2.66 [16:24:11]line НДС 12% : 31.90 [16:24:11]line Наличными: 300.00 [16:24:11]line Безнал.: 0.00 [16:24:11]line Место: АЗС № 62 "Партнер Нефть" [16:24:11]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [16:24:11]line СНО: Общий режим [16:24:11]line Чек 131 04.06.2024 16:24 [16:24:11]line Смена: 325 ФФД: 1.0 [16:24:11]line ЗНМ: 0300000181 [16:24:11]line РНМ: 0000000000098096 [16:24:11]line Версия ККМ: 001 [16:24:11]line ФМ: 0000000000965400 [16:24:11]line ФД: 68633 [16:24:11]line ФПД: 30299347465468 [16:24:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T162410&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68633&fm=30299347465468&tin=02508201610067®Number=0000000000098096&sum=30000 [16:24:11]OFD Sender: Processing packet 68633 [packets to send 27, broken 26] [16:24:11]ProducePacketName [16:24:11]name=ofd_packets/00068633 [16:24:11]OFD Sender: To server: pG, [16:24:11]CommunicateWithHost lk.salyk.kg:30040 [16:24:11]ConnectInit lk.salyk.kg [16:24:11]written 0, free lines is 4095 [16:24:11]Connected sock=10 [16:24:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 82 EF 07 01 84 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 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 AA 3F 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 19 0C 01 00 35 04 06 00 1B 8E 9D D7 B4 FC F8 11 97 CB 40 04 05 E2 [16:24:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 56 68 47 00 A8 B3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 19 0C 01 00 F4 03 04 00 A2 E6 5E 66 B6 04 01 00 00 F0 11 A5 E5 8B 6C E2 19 [16:24:11]CommunicateWithHost err = 0 [16:24:11]CheckOFDResponse [16:24:11]1017 (14) - 77093643461234 [16:24:11]1041 (16) - 0000000000965400 [16:24:11]1040 (4) - 68633 [16:24:11]1012 (4) - 04.06.2024 10:04 [16:24:11]1206 (1) - 0 [16:24:11]OFD Sender: Remove packet 68633 [16:24:11]ProducePacketName [16:24:11]name=ofd_packets/00068633 [16:24:11]NVStorageDeleteData [16:24:12]Write to MH i2c: 01 00 00 BF 09 C8 [16:24:12]Write i2c OK [16:24:12]MH_I2C_Read... [16:24:12]Read from MH i2c: 01 [16:24:12]MH_I2C_Read... [16:24:12]Read from MH i2c: 01 07 00 [16:24:12]MH_I2C_Read... [16:24:12]Read from MH i2c: 01 07 00 BF 09 00 00 00 00 00 E0 0C BB [16:24:12]RasterBufferAndPrint [16:24:12]line [16:24:12]line [16:24:12]line [16:24:12]line [16:24:12]line [16:24:12]written 0, free lines is 3302 [16:24:12]MH_Cut [16:24:12]Write to MH i2c: D1 01 00 C6 09 01 A1 [16:24:12]Write i2c OK [16:24:12]MH_I2C_Read... [16:24:12]Read from MH i2c: D1 [16:24:12]MH_I2C_Read... [16:24:12]Read from MH i2c: D1 01 00 [16:24:12]MH_I2C_Read... [16:24:12]Read from MH i2c: D1 01 00 C6 09 00 A0 [16:24:12]Write to MH i2c: 01 00 00 C7 09 D0 [16:24:12]Write i2c OK [16:24:12]MH_I2C_Read... [16:24:12]OFD Sender: No OFD packet to send [16:24:12]*** Cut start [16:24:12]*** Partial cut [16:24:12]*** CUTSNS_PIN = 1 [16:24:12]*** CUTSNS_PIN = 0 [16:24:13]*** Brake cut motor [16:24:13]Read from MH i2c: 01 [16:24:13]MH_I2C_Read... [16:24:13]*** Stop cut motor [16:24:13]*** Cut end [16:24:13]Read from MH i2c: 01 07 00 [16:24:13]MH_I2C_Read... [16:24:13]Read from MH i2c: 01 07 00 C7 09 00 00 00 00 00 FF 0F E5 [16:24:13]process_action close_receipt done [16:24:13]requested_data is exist [16:24:13]produce_requested_data [16:24:13]requested_item fm.sn is exist - process it [16:24:13]wFMCommunicate request_size=4 [16:24:13]MH_SAM_APDU [16:24:13]CAPDU: 80 11 00 00 [16:24:13]Write to MH i2c: E2 08 00 C8 09 80 11 00 00 00 00 00 00 4B [16:24:13]Write i2c OK [16:24:13]MH_I2C_Read... [16:24:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:24:13]Read from MH i2c: E2 [16:24:13]MH_I2C_Read... [16:24:13]Read from MH i2c: E2 17 00 [16:24:13]MH_I2C_Read... [16:24:13]Read from MH i2c: E2 17 00 C8 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 96 [16:24:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [16:24:13]wFMCommunicate OK [16:24:13]requested_item fd.num is exist - process it [16:24:13]SAM_PROTO_GetFieldsCounters [16:24:13]wFMCommunicate request_size=4 [16:24:13]MH_SAM_APDU [16:24:13]CAPDU: 80 13 00 00 [16:24:13]Write to MH i2c: E2 08 00 C9 09 80 13 00 00 00 00 00 00 4E [16:24:13]Write i2c OK [16:24:13]MH_I2C_Read... [16:24:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:24:13]Read from MH i2c: E2 [16:24:13]MH_I2C_Read... [16:24:13]Read from MH i2c: E2 62 00 [16:24:13]MH_I2C_Read... [16:24:13]Read from MH i2c: E2 62 00 C9 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 19 0C 01 00 0E 04 04 00 45 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 63 [16:24:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 19 0C 01 00 0E 04 04 00 45 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:24:13]wFMCommunicate OK [16:24:13]SAM_PROTO_GetFieldsCounters done [16:24:13]requested_item shift.num is exist - process it [16:24:13]requested_item shift.opened is exist - process it [16:24:13]req_shift_opened [16:24:13]FM_GetShiftState [16:24:13]SAM_PROTO_GetShiftState [16:24:13]wFMCommunicate request_size=4 [16:24:13]MH_SAM_APDU [16:24:13]CAPDU: 80 13 01 00 [16:24:13]Write to MH i2c: E2 08 00 CA 09 80 13 01 00 00 00 00 00 50 [16:24:13]Write i2c OK [16:24:13]MH_I2C_Read... [16:24:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:24:13]Read from MH i2c: E2 [16:24:13]MH_I2C_Read... [16:24:13]Read from MH i2c: E2 0E 00 [16:24:13]MH_I2C_Read... [16:24:13]Read from MH i2c: E2 0E 00 CA 09 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 EC [16:24:13]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [16:24:13]wFMCommunicate OK [16:24:13]SAM_PROTO_GetShiftState done [16:24:13]FM_GetShiftState done [16:24:13]req_shift_opened done [16:24:13]requested_item shift.open_date is exist - process it [16:24:13]req_shift_open_date [16:24:13]req_shift_open_date done [16:24:13]produce_requested_data done [16:24:13]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68633,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [16:24:13]process_action_free close_receipt [16:24:13]json_value_free [16:24:13]json_value_free done [16:24:13]process_json_proto returns [16:24:13]Send response to host [16:24:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68633,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [16:24:13]free response buf [16:24:13]execute_script done [16:24:13]execute_script returns [16:24:13]free content buf [16:24:13]Sock 7.Close socket [16:24:13]Sock 7.Thread stoped [16:24:17]OFD Sender: No OFD packet to send [16:24:22]OFD Sender: No OFD packet to send [16:24:27]OFD Sender: No OFD packet to send [16:24:32]OFD Sender: No OFD packet to send [16:24:37]OFD Sender: No OFD packet to send [16:24:42]OFD Sender: No OFD packet to send [16:24:47]OFD Sender: No OFD packet to send [16:24:52]OFD Sender: No OFD packet to send [16:24:57]OFD Sender: No OFD packet to send [16:25:02]OFD Sender: No OFD packet to send [16:25:07]OFD Sender: No OFD packet to send [16:25:12]OFD Sender: No OFD packet to send [16:25:17]OFD Sender: No OFD packet to send [16:25:22]OFD Sender: No OFD packet to send [16:25:27]OFD Sender: No OFD packet to send [16:25:32]OFD Sender: No OFD packet to send [16:25:37]OFD Sender: No OFD packet to send [16:25:42]OFD Sender: No OFD packet to send [16:25:47]OFD Sender: No OFD packet to send [16:25:52]OFD Sender: No OFD packet to send [16:25:57]OFD Sender: No OFD packet to send [16:26:02]OFD Sender: No OFD packet to send [16:26:07]OFD Sender: No OFD packet to send [16:26:12]OFD Sender: No OFD packet to send [16:26:17]OFD Sender: No OFD packet to send [16:26:22]OFD Sender: No OFD packet to send [16:26:27]OFD Sender: No OFD packet to send [16:26:32]OFD Sender: No OFD packet to send [16:26:37]OFD Sender: No OFD packet to send [16:26:42]OFD Sender: No OFD packet to send [16:26:47]OFD Sender: No OFD packet to send [16:26:52]OFD Sender: No OFD packet to send [16:26:57]OFD Sender: No OFD packet to send [16:27:02]OFD Sender: No OFD packet to send [16:27:07]OFD Sender: No OFD packet to send [16:27:12]OFD Sender: No OFD packet to send [16:27:17]OFD Sender: No OFD packet to send [16:27:22]OFD Sender: No OFD packet to send [16:27:27]OFD Sender: No OFD packet to send [16:27:32]OFD Sender: No OFD packet to send [16:27:37]OFD Sender: No OFD packet to send [16:27:42]OFD Sender: No OFD packet to send [16:27:47]OFD Sender: No OFD packet to send [16:27:52]OFD Sender: No OFD packet to send [16:27:57]OFD Sender: No OFD packet to send [16:28:02]OFD Sender: No OFD packet to send [16:28:07]OFD Sender: No OFD packet to send [16:28:12]OFD Sender: No OFD packet to send [16:28:17]OFD Sender: No OFD packet to send [16:28:22]OFD Sender: No OFD packet to send [16:28:27]OFD Sender: No OFD packet to send [16:28:32]OFD Sender: No OFD packet to send [16:28:37]OFD Sender: No OFD packet to send [16:28:42]OFD Sender: No OFD packet to send [16:28:47]OFD Sender: No OFD packet to send [16:28:52]OFD Sender: No OFD packet to send [16:28:57]OFD Sender: No OFD packet to send [16:29:02]OFD Sender: No OFD packet to send [16:29:07]OFD Sender: No OFD packet to send [16:29:12]OFD Sender: No OFD packet to send [16:29:17]OFD Sender: No OFD packet to send [16:29:22]OFD Sender: No OFD packet to send [16:29:27]OFD Sender: No OFD packet to send [16:29:32]OFD Sender: No OFD packet to send [16:29:37]OFD Sender: No OFD packet to send [16:29:42]OFD Sender: No OFD packet to send [16:29:47]OFD Sender: No OFD packet to send [16:29:52]OFD Sender: No OFD packet to send [16:29:57]OFD Sender: No OFD packet to send [16:30:02]OFD Sender: No OFD packet to send [16:30:07]OFD Sender: No OFD packet to send [16:30:12]OFD Sender: No OFD packet to send [16:30:17]OFD Sender: No OFD packet to send [16:30:22]OFD Sender: No OFD packet to send [16:30:27]OFD Sender: No OFD packet to send [16:30:32]OFD Sender: No OFD packet to send [16:30:37]OFD Sender: No OFD packet to send [16:30:42]OFD Sender: No OFD packet to send [16:30:47]OFD Sender: No OFD packet to send [16:30:52]OFD Sender: No OFD packet to send [16:30:57]OFD Sender: No OFD packet to send [16:31:02]OFD Sender: No OFD packet to send [16:31:07]OFD Sender: No OFD packet to send [16:31:12]OFD Sender: No OFD packet to send [16:31:17]OFD Sender: No OFD packet to send [16:31:22]OFD Sender: No OFD packet to send [16:31:27]OFD Sender: No OFD packet to send [16:31:32]OFD Sender: No OFD packet to send [16:31:37]OFD Sender: No OFD packet to send [16:31:42]OFD Sender: No OFD packet to send [16:31:47]OFD Sender: No OFD packet to send [16:31:52]OFD Sender: No OFD packet to send [16:31:57]OFD Sender: No OFD packet to send [16:32:02]OFD Sender: No OFD packet to send [16:32:07]OFD Sender: No OFD packet to send [16:32:12]OFD Sender: No OFD packet to send [16:32:17]OFD Sender: No OFD packet to send [16:32:22]OFD Sender: No OFD packet to send [16:32:27]OFD Sender: No OFD packet to send [16:32:29]accept exits with 9 [16:32:29]New connection [16:32:29]New thread 3067297124 created [16:32:29]Thread 3067153764 joined [16:32:29]Waiting for new connection... [16:32:29] Sock 9.Parse request [16:32:29]Sock 9.Check first char [16:32:29]Sock 9.First char is OK [16:32:29]request: POST /json_proto HTTP/1.0 [16:32:29]Method: POST [16:32:29]URL: /json_proto [16:32:29]Method is POST - this is cgi request [16:32:29]url: /json_proto [16:32:29]query_string will be loaded in cgi processing [16:32:29]execute_cgi json_proto POST (null) [16:32:29]execute_cgi path=json_proto method=POST [16:32:29]POST find Content-Length [16:32:29]Host: 172.17.36.132:8080 [16:32:29]Content-Length: 687 [16:32:29]Content-Type: application/json [16:32:29] [16:32:29]POST finish read [16:32:29]Found Content-Length = 687 [16:32:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706769", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "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" ] } } [16:32:29]execute_script... [16:32:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706769", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "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" ] } } [16:32:29]POST & json_proto [16:32:29]process_json_proto [16:32:29]json parsed OK: [16:32:29]protocol is kg_v1.0 [16:32:29]action value=close_receipt [16:32:29]process_action close_receipt [16:32:29]cmd_close_receipt [16:32:29]MH_GetDate [16:32:29]Write to MH i2c: F0 00 00 CB 09 C3 [16:32:29]Write i2c OK [16:32:29]MH_I2C_Read... [16:32:29]Read from MH i2c: F0 [16:32:29]MH_I2C_Read... [16:32:29]Read from MH i2c: F0 09 00 [16:32:29]MH_I2C_Read... [16:32:29]Read from MH i2c: F0 09 00 CB 09 00 9E 41 5F 66 B2 22 B0 64 58 [16:32:29]GetLastDocTimeStamp 1717518250 [16:32:29]current date 1717518750 [16:32:29]FM_GetShiftState [16:32:29]SAM_PROTO_GetShiftState [16:32:29]wFMCommunicate request_size=4 [16:32:29]MH_SAM_APDU [16:32:29]CAPDU: 80 13 01 00 [16:32:29]Write to MH i2c: E2 08 00 CC 09 80 13 01 00 00 00 00 00 52 [16:32:29]Write i2c OK [16:32:29]MH_I2C_Read... [16:32:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:32:29]Read from MH i2c: E2 [16:32:29]MH_I2C_Read... [16:32:29]Read from MH i2c: E2 0E 00 [16:32:29]MH_I2C_Read... [16:32:29]Read from MH i2c: E2 0E 00 CC 09 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 EE [16:32:29]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [16:32:29]wFMCommunicate OK [16:32:29]SAM_PROTO_GetShiftState done [16:32:29]FM_GetShiftState done [16:32:29]opened in 1717460590 [16:32:29]opened+sec_in_day 1717546990 [16:32:29]quantity*price = 100018 [16:32:29]sum+1 = 100020 [16:32:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 132 04.06.2024 16:32 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68634 ФПД: 75497941465625 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T163230&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68634&fm=75497941465625&tin=02508201610067®Number=0000000000098096&sum=100000 [16:32:30]StoreToDocumentArchive [16:32:30]shift 325 fd 68634 [16:32:30]save to /storage/0325/doc_00068634 [16:32:30]save last doc name /storage/0325/doc_00068634 to /storage/kkm_last_doc_name [16:32:30]save OK [16:32:30]Clear old archive folders... [16:32:30]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:32:30]tlvbuf is 00A59770 [16:32:30]SAM_PROTO_ClearQueue [16:32:30]wFMCommunicate request_size=4 [16:32:30]MH_SAM_APDU [16:32:30]CAPDU: 80 09 00 00 [16:32:30]Write to MH i2c: E2 08 00 D9 09 80 09 00 00 00 00 00 00 54 [16:32:30]Write i2c OK [16:32:30]MH_I2C_Read... [16:32:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:32:30]Read from MH i2c: E2 [16:32:30]MH_I2C_Read... [16:32:30]Read from MH i2c: E2 03 00 [16:32:30]MH_I2C_Read... [16:32:30]Read from MH i2c: E2 03 00 D9 09 00 90 00 56 [16:32:30]RAPDU: 90 00 [16:32:30]wFMCommunicate OK [16:32:30]SAM_PROTO_ClearQueue done [16:32:30]KKMCreateOFDPacket [16:32:30]OFDProtocolAddRootSTLVToBuf [16:32:30]FM_MakeSignedData [16:32:30]FM_MakeSignedData [16:32:30]SAM_PROTO_SignData [16:32:30]wFMCommunicate request_size=4 [16:32:30]MH_SAM_APDU [16:32:30]CAPDU: 80 0D 01 02 [16:32:30]Write to MH i2c: E2 08 00 DA 09 80 0D 01 02 00 00 00 00 5C [16:32:30]Write i2c OK [16:32:30]MH_I2C_Read... [16:32:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:32:30]Read from MH i2c: E2 [16:32:30]MH_I2C_Read... [16:32:30]Read from MH i2c: E2 03 00 [16:32:30]MH_I2C_Read... [16:32:30]Read from MH i2c: E2 03 00 DA 09 00 90 00 57 [16:32:30]RAPDU: 90 00 [16:32:30]wFMCommunicate OK [16:32:30]wFMCommunicate request_size=255 [16:32:30]MH_SAM_APDU [16:32:30]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 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 84 00 00 00 F4 03 04 00 9E 41 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 1A 0C 01 00 35 04 06 00 [16:32:30]Write to MH i2c: E2 02 01 DB 09 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 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 84 00 00 00 F4 03 04 00 9E 41 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 1A 0C 01 00 35 04 06 00 00 00 3D [16:32:30]Write i2c OK [16:32:30]MH_I2C_Read... [16:32:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:32:30]Read from MH i2c: E2 [16:32:30]MH_I2C_Read... [16:32:30]Read from MH i2c: E2 03 00 [16:32:30]MH_I2C_Read... [16:32:30]Read from MH i2c: E2 03 00 DB 09 00 90 00 58 [16:32:30]RAPDU: 90 00 [16:32:30]wFMCommunicate OK [16:32:30]wFMCommunicate request_size=11 [16:32:30]MH_SAM_APDU [16:32:30]CAPDU: 80 0D 02 02 06 44 AA 3B FB 7A 19 [16:32:30]Write to MH i2c: E2 0E 00 DC 09 80 0D 02 02 06 00 44 AA 3B FB 7A 19 00 00 22 [16:32:30]Write i2c OK [16:32:30]MH_I2C_Read... [16:32:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:32:30]Read from MH i2c: E2 [16:32:30]MH_I2C_Read... [16:32:30]Read from MH i2c: E2 03 00 [16:32:30]MH_I2C_Read... [16:32:30]Read from MH i2c: E2 03 00 DC 09 00 90 00 59 [16:32:30]RAPDU: 90 00 [16:32:30]wFMCommunicate OK [16:32:30]wFMCommunicate request_size=4 [16:32:30]MH_SAM_APDU [16:32:30]CAPDU: 80 0D 03 02 [16:32:30]Write to MH i2c: E2 08 00 DD 09 80 0D 03 02 00 00 00 00 61 [16:32:30]Write i2c OK [16:32:30]MH_I2C_Read... [16:32:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:32:30]Read from MH i2c: E2 [16:32:30]MH_I2C_Read... [16:32:30]Read from MH i2c: E2 0B 00 [16:32:30]MH_I2C_Read... [16:32:30]Read from MH i2c: E2 0B 00 DD 09 00 C0 26 E9 8C B4 76 FF 90 90 00 76 [16:32:30]RAPDU: C0 26 E9 8C B4 76 FF 90 90 00 [16:32:30]wFMCommunicate OK [16:32:30]SAM_PROTO_SignData done [16:32:30]FM_MakeSignedData done [16:32:30]CreateOFDProtocolMessage [16:32:30]wFMCommunicate request_size=4 [16:32:30]MH_SAM_APDU [16:32:30]CAPDU: 80 11 00 00 [16:32:30]Write to MH i2c: E2 08 00 DE 09 80 11 00 00 00 00 00 00 61 [16:32:30]Write i2c OK [16:32:30]MH_I2C_Read... [16:32:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:32:31]Read from MH i2c: E2 [16:32:31]MH_I2C_Read... [16:32:31]Read from MH i2c: E2 17 00 [16:32:31]MH_I2C_Read... [16:32:31]Read from MH i2c: E2 17 00 DE 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 AC [16:32:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [16:32:31]wFMCommunicate OK [16:32:31]CreateOFDProtocolMessage done [16:32:31]OFDSenderStorePacket 68634 [16:32:31]StoreOFDPacket docnum=68634 [16:32:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 51 D6 08 01 AA D9 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 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 84 00 00 00 F4 03 04 00 9E 41 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 1A 0C 01 00 35 04 06 00 44 AA 3B FB 7A 19 C0 26 E9 8C B4 76 FF 90 [16:32:31]CheckFolder [16:32:31]dirname=/storage/ofd_packets [16:32:31]CheckFolder done [16:32:31]ProducePacketName [16:32:31]name=ofd_packets/00068634 [16:32:31]NVStorageSaveData ofd_packets/00068634 [16:32:31]File name is /storage/ofd_packets/00068634 [16:32:31]Write 302 bytes [16:32:31]NVStorageSaveData done [16:32:31]OFDSenderStorePacket done [16:32:31]KKMCreateOFDPacket done [16:32:31]NVStorageSaveData kkm_last_timestamp [16:32:31]File name is /storage/kkm_last_timestamp [16:32:31]Write 4 bytes [16:32:31]NVStorageSaveData done [16:32:31]ExternCall_PrintAddStr [16:32:31]wPrintStart [16:32:31]Write to MH i2c: 01 00 00 DF 09 E8 [16:32:31]Write i2c OK [16:32:31]MH_I2C_Read... [16:32:31]Read from MH i2c: 01 [16:32:31]MH_I2C_Read... [16:32:31]Read from MH i2c: 01 07 00 [16:32:31]MH_I2C_Read... [16:32:31]Read from MH i2c: 01 07 00 DF 09 00 00 00 00 00 FF 0F FD [16:32:31]RasterBufferAndPrint [16:32:31]line Счет N : (1)706769 [16:32:31]line ИНН: 02508201610067 [16:32:31]line Контрольно-Кассовый Чек [16:32:31]line ПРОДАЖА [16:32:31]line ТРК (МРК, ГНК) : 51 [16:32:31]line Товар: 2710194210 [16:32:31]line ДТ(л)-К-4 [16:32:31]line 13.720 * 72.90 [16:32:31]line = 1000.19 [16:32:31]line НДС 12% НСП 1% [16:32:31]line > о реализуемом товаре [16:32:31]line ОКРУГЛЕНИЕ: -0.19 [16:32:31]line ИТОГО: 1000.00 [16:32:31]line Внесено: 1000.00 [16:32:31]line СДАЧА: 0.00 [16:32:31]line НСП 1% : 8.85 [16:32:31]line НДС 12% : 106.21 [16:32:31]line Наличными: 1000.00 [16:32:31]line Безнал.: 0.00 [16:32:31]line Место: АЗС № 62 "Партнер Нефть" [16:32:31]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [16:32:31]line СНО: Общий режим [16:32:31]line Чек 132 04.06.2024 16:32 [16:32:31]line Смена: 325 ФФД: 1.0 [16:32:31]line ЗНМ: 0300000181 [16:32:31]line РНМ: 0000000000098096 [16:32:31]line Версия ККМ: 001 [16:32:31]line ФМ: 0000000000965400 [16:32:31]line ФД: 68634 [16:32:31]line ФПД: 75497941465625 [16:32:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T163230&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68634&fm=75497941465625&tin=02508201610067®Number=0000000000098096&sum=100000 [16:32:31]OFD Sender: Processing packet 68634 [packets to send 27, broken 26] [16:32:31]ProducePacketName [16:32:31]name=ofd_packets/00068634 [16:32:31]OFD Sender: To server: pG, [16:32:31]CommunicateWithHost lk.salyk.kg:30040 [16:32:31]ConnectInit lk.salyk.kg [16:32:31]written 0, free lines is 4095 [16:32:31]Connected sock=10 [16:32:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 51 D6 08 01 AA D9 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 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 84 00 00 00 F4 03 04 00 9E 41 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 1A 0C 01 00 35 04 06 00 44 AA 3B FB 7A 19 C0 26 E9 8C B4 76 FF 90 [16:32:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 AF 2A 47 00 81 72 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 1A 0C 01 00 F4 03 04 00 96 E8 5E 66 B6 04 01 00 00 C2 E1 DA A0 1D 07 24 FB [16:32:31]CommunicateWithHost err = 0 [16:32:31]CheckOFDResponse [16:32:31]1017 (14) - 77093643461234 [16:32:31]1041 (16) - 0000000000965400 [16:32:31]1040 (4) - 68634 [16:32:31]1012 (4) - 04.06.2024 10:12 [16:32:31]1206 (1) - 0 [16:32:31]OFD Sender: Remove packet 68634 [16:32:31]ProducePacketName [16:32:31]name=ofd_packets/00068634 [16:32:31]NVStorageDeleteData [16:32:31]Write to MH i2c: 01 00 00 0A 0A 14 [16:32:31]Write i2c OK [16:32:31]MH_I2C_Read... [16:32:31]Read from MH i2c: 01 [16:32:31]MH_I2C_Read... [16:32:31]Read from MH i2c: 01 07 00 [16:32:31]MH_I2C_Read... [16:32:31]Read from MH i2c: 01 07 00 0A 0A 00 00 00 00 00 D6 0C FD [16:32:31]RasterBufferAndPrint [16:32:31]line [16:32:31]line [16:32:31]line [16:32:31]line [16:32:31]line [16:32:31]written 0, free lines is 3290 [16:32:31]MH_Cut [16:32:31]Write to MH i2c: D1 01 00 11 0A 01 ED [16:32:31]Write i2c OK [16:32:31]MH_I2C_Read... [16:32:31]Read from MH i2c: D1 [16:32:31]MH_I2C_Read... [16:32:31]Read from MH i2c: D1 01 00 [16:32:31]MH_I2C_Read... [16:32:31]Read from MH i2c: D1 01 00 11 0A 00 EC [16:32:31]Write to MH i2c: 01 00 00 12 0A 1C [16:32:31]Write i2c OK [16:32:31]MH_I2C_Read... [16:32:32]OFD Sender: No OFD packet to send [16:32:32]*** Cut start [16:32:32]*** Partial cut [16:32:32]*** CUTSNS_PIN = 1 [16:32:32]*** CUTSNS_PIN = 0 [16:32:32]*** Brake cut motor [16:32:33]Read from MH i2c: 01 [16:32:33]MH_I2C_Read... [16:32:33]*** Stop cut motor [16:32:33]*** Cut end [16:32:33]Read from MH i2c: 01 07 00 [16:32:33]MH_I2C_Read... [16:32:33]Read from MH i2c: 01 07 00 12 0A 00 00 00 00 00 FF 0F 31 [16:32:33]process_action close_receipt done [16:32:33]requested_data is exist [16:32:33]produce_requested_data [16:32:33]requested_item fm.sn is exist - process it [16:32:33]wFMCommunicate request_size=4 [16:32:33]MH_SAM_APDU [16:32:33]CAPDU: 80 11 00 00 [16:32:33]Write to MH i2c: E2 08 00 13 0A 80 11 00 00 00 00 00 00 97 [16:32:33]Write i2c OK [16:32:33]MH_I2C_Read... [16:32:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:32:33]Read from MH i2c: E2 [16:32:33]MH_I2C_Read... [16:32:33]Read from MH i2c: E2 17 00 [16:32:33]MH_I2C_Read... [16:32:33]Read from MH i2c: E2 17 00 13 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 E2 [16:32:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [16:32:33]wFMCommunicate OK [16:32:33]requested_item fd.num is exist - process it [16:32:33]SAM_PROTO_GetFieldsCounters [16:32:33]wFMCommunicate request_size=4 [16:32:33]MH_SAM_APDU [16:32:33]CAPDU: 80 13 00 00 [16:32:33]Write to MH i2c: E2 08 00 14 0A 80 13 00 00 00 00 00 00 9A [16:32:33]Write i2c OK [16:32:33]MH_I2C_Read... [16:32:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:32:33]Read from MH i2c: E2 [16:32:33]MH_I2C_Read... [16:32:33]Read from MH i2c: E2 62 00 [16:32:33]MH_I2C_Read... [16:32:33]Read from MH i2c: E2 62 00 14 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 1A 0C 01 00 0E 04 04 00 45 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 B3 [16:32:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 1A 0C 01 00 0E 04 04 00 45 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:32:33]wFMCommunicate OK [16:32:33]SAM_PROTO_GetFieldsCounters done [16:32:33]requested_item shift.num is exist - process it [16:32:33]requested_item shift.opened is exist - process it [16:32:33]req_shift_opened [16:32:33]FM_GetShiftState [16:32:33]SAM_PROTO_GetShiftState [16:32:33]wFMCommunicate request_size=4 [16:32:33]MH_SAM_APDU [16:32:33]CAPDU: 80 13 01 00 [16:32:33]Write to MH i2c: E2 08 00 15 0A 80 13 01 00 00 00 00 00 9C [16:32:33]Write i2c OK [16:32:33]MH_I2C_Read... [16:32:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:32:33]Read from MH i2c: E2 [16:32:33]MH_I2C_Read... [16:32:33]Read from MH i2c: E2 0E 00 [16:32:33]MH_I2C_Read... [16:32:33]Read from MH i2c: E2 0E 00 15 0A 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 38 [16:32:33]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [16:32:33]wFMCommunicate OK [16:32:33]SAM_PROTO_GetShiftState done [16:32:33]FM_GetShiftState done [16:32:33]req_shift_opened done [16:32:33]requested_item shift.open_date is exist - process it [16:32:33]req_shift_open_date [16:32:33]req_shift_open_date done [16:32:33]produce_requested_data done [16:32:33]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68634,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [16:32:33]process_action_free close_receipt [16:32:33]json_value_free [16:32:33]json_value_free done [16:32:33]process_json_proto returns [16:32:33]Send response to host [16:32:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68634,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [16:32:33]free response buf [16:32:33]execute_script done [16:32:33]execute_script returns [16:32:33]free content buf [16:32:33]Sock 9.Close socket [16:32:33]Sock 9.Thread stoped [16:32:37]OFD Sender: No OFD packet to send [16:32:42]OFD Sender: No OFD packet to send [16:32:47]OFD Sender: No OFD packet to send [16:32:52]OFD Sender: No OFD packet to send [16:32:57]OFD Sender: No OFD packet to send [16:33:02]OFD Sender: No OFD packet to send [16:33:07]OFD Sender: No OFD packet to send [16:33:12]OFD Sender: No OFD packet to send [16:33:17]OFD Sender: No OFD packet to send [16:33:22]OFD Sender: No OFD packet to send [16:33:27]OFD Sender: No OFD packet to send [16:33:32]OFD Sender: No OFD packet to send [16:33:37]OFD Sender: No OFD packet to send [16:33:42]OFD Sender: No OFD packet to send [16:33:47]OFD Sender: No OFD packet to send [16:33:52]OFD Sender: No OFD packet to send [16:33:57]OFD Sender: No OFD packet to send [16:34:02]OFD Sender: No OFD packet to send [16:34:07]OFD Sender: No OFD packet to send [16:34:12]OFD Sender: No OFD packet to send [16:34:17]OFD Sender: No OFD packet to send [16:34:22]OFD Sender: No OFD packet to send [16:34:27]OFD Sender: No OFD packet to send [16:34:32]OFD Sender: No OFD packet to send [16:34:37]OFD Sender: No OFD packet to send [16:34:42]OFD Sender: No OFD packet to send [16:34:47]OFD Sender: No OFD packet to send [16:34:52]OFD Sender: No OFD packet to send [16:34:57]OFD Sender: No OFD packet to send [16:35:02]OFD Sender: No OFD packet to send [16:35:07]OFD Sender: No OFD packet to send [16:35:12]OFD Sender: No OFD packet to send [16:35:17]OFD Sender: No OFD packet to send [16:35:22]OFD Sender: No OFD packet to send [16:35:27]OFD Sender: No OFD packet to send [16:35:32]OFD Sender: No OFD packet to send [16:35:37]OFD Sender: No OFD packet to send [16:35:42]OFD Sender: No OFD packet to send [16:35:47]OFD Sender: No OFD packet to send [16:35:52]OFD Sender: No OFD packet to send [16:35:57]OFD Sender: No OFD packet to send [16:36:02]OFD Sender: No OFD packet to send [16:36:07]OFD Sender: No OFD packet to send [16:36:12]OFD Sender: No OFD packet to send [16:36:17]OFD Sender: No OFD packet to send [16:36:22]OFD Sender: No OFD packet to send [16:36:27]OFD Sender: No OFD packet to send [16:36:32]OFD Sender: No OFD packet to send [16:36:37]OFD Sender: No OFD packet to send [16:36:42]OFD Sender: No OFD packet to send [16:36:47]OFD Sender: No OFD packet to send [16:36:52]OFD Sender: No OFD packet to send [16:36:57]OFD Sender: No OFD packet to send [16:37:02]OFD Sender: No OFD packet to send [16:37:07]OFD Sender: No OFD packet to send [16:37:10]accept exits with 7 [16:37:10]New connection [16:37:10]New thread 3067153764 created [16:37:10]Thread 3067297124 joined [16:37:10]Waiting for new connection... [16:37:10] Sock 7.Parse request [16:37:10]Sock 7.Check first char [16:37:10]Sock 7.First char is OK [16:37:10]request: POST /json_proto HTTP/1.0 [16:37:10]Method: POST [16:37:10]URL: /json_proto [16:37:10]Method is POST - this is cgi request [16:37:10]url: /json_proto [16:37:10]query_string will be loaded in cgi processing [16:37:10]execute_cgi json_proto POST (null) [16:37:10]execute_cgi path=json_proto method=POST [16:37:10]POST find Content-Length [16:37:10]Host: 172.17.36.132:8080 [16:37:10]Content-Length: 682 [16:37:10]Content-Type: application/json [16:37:10] [16:37:10]POST finish read [16:37:10]Found Content-Length = 682 [16:37:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706770", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 40.600, "sum" : 3000.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:37:10]execute_script... [16:37:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706770", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 40.600, "sum" : 3000.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:37:10]POST & json_proto [16:37:10]process_json_proto [16:37:10]json parsed OK: [16:37:10]protocol is kg_v1.0 [16:37:10]action value=close_receipt [16:37:10]process_action close_receipt [16:37:10]cmd_close_receipt [16:37:10]MH_GetDate [16:37:10]Write to MH i2c: F0 00 00 16 0A 0F [16:37:10]Write i2c OK [16:37:10]MH_I2C_Read... [16:37:10]Read from MH i2c: F0 [16:37:10]MH_I2C_Read... [16:37:10]Read from MH i2c: F0 09 00 [16:37:10]MH_I2C_Read... [16:37:10]Read from MH i2c: F0 09 00 16 0A 00 B7 42 5F 66 B2 22 B0 64 BE [16:37:10]GetLastDocTimeStamp 1717518750 [16:37:10]current date 1717519031 [16:37:10]FM_GetShiftState [16:37:10]SAM_PROTO_GetShiftState [16:37:10]wFMCommunicate request_size=4 [16:37:10]MH_SAM_APDU [16:37:10]CAPDU: 80 13 01 00 [16:37:10]Write to MH i2c: E2 08 00 17 0A 80 13 01 00 00 00 00 00 9E [16:37:10]Write i2c OK [16:37:10]MH_I2C_Read... [16:37:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:37:10]Read from MH i2c: E2 [16:37:10]MH_I2C_Read... [16:37:10]Read from MH i2c: E2 0E 00 [16:37:10]MH_I2C_Read... [16:37:10]Read from MH i2c: E2 0E 00 17 0A 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 3A [16:37:10]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [16:37:10]wFMCommunicate OK [16:37:10]SAM_PROTO_GetShiftState done [16:37:10]FM_GetShiftState done [16:37:10]opened in 1717460590 [16:37:10]opened+sec_in_day 1717546990 [16:37:10]quantity*price = 300034 [16:37:10]sum+1 = 300035 [16:37:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.62 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 133 04.06.2024 16:37 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68635 ФПД: 12853428048968 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T163711&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68635&fm=12853428048968&tin=02508201610067®Number=0000000000098096&sum=300000 [16:37:12]StoreToDocumentArchive [16:37:12]shift 325 fd 68635 [16:37:12]save to /storage/0325/doc_00068635 [16:37:12]save last doc name /storage/0325/doc_00068635 to /storage/kkm_last_doc_name [16:37:12]save OK [16:37:12]Clear old archive folders... [16:37:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:37:12]tlvbuf is 00A638A0 [16:37:12]SAM_PROTO_ClearQueue [16:37:12]wFMCommunicate request_size=4 [16:37:12]MH_SAM_APDU [16:37:12]CAPDU: 80 09 00 00 [16:37:12]Write to MH i2c: E2 08 00 24 0A 80 09 00 00 00 00 00 00 A0 [16:37:12]Write i2c OK [16:37:12]MH_I2C_Read... [16:37:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:37:12]Read from MH i2c: E2 [16:37:12]MH_I2C_Read... [16:37:12]Read from MH i2c: E2 03 00 [16:37:12]MH_I2C_Read... [16:37:12]Read from MH i2c: E2 03 00 24 0A 00 90 00 A2 [16:37:12]RAPDU: 90 00 [16:37:12]wFMCommunicate OK [16:37:12]SAM_PROTO_ClearQueue done [16:37:12]KKMCreateOFDPacket [16:37:12]OFDProtocolAddRootSTLVToBuf [16:37:12]FM_MakeSignedData [16:37:12]FM_MakeSignedData [16:37:12]SAM_PROTO_SignData [16:37:12]wFMCommunicate request_size=4 [16:37:12]MH_SAM_APDU [16:37:12]CAPDU: 80 0D 01 02 [16:37:12]Write to MH i2c: E2 08 00 25 0A 80 0D 01 02 00 00 00 00 A8 [16:37:12]Write i2c OK [16:37:12]MH_I2C_Read... [16:37:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:37:12]Read from MH i2c: E2 [16:37:12]MH_I2C_Read... [16:37:12]Read from MH i2c: E2 03 00 [16:37:12]MH_I2C_Read... [16:37:12]Read from MH i2c: E2 03 00 25 0A 00 90 00 A3 [16:37:12]RAPDU: 90 00 [16:37:12]wFMCommunicate OK [16:37:12]wFMCommunicate request_size=255 [16:37:12]MH_SAM_APDU [16:37:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 98 9E 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 02 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 B7 42 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 1B 0C 01 00 35 04 06 00 0B [16:37:12]Write to MH i2c: E2 02 01 26 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 98 9E 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 02 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 B7 42 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 1B 0C 01 00 35 04 06 00 0B 00 00 84 [16:37:12]Write i2c OK [16:37:12]MH_I2C_Read... [16:37:12]OFD Sender: No OFD packet to send [16:37:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:37:12]Read from MH i2c: E2 [16:37:12]MH_I2C_Read... [16:37:12]Read from MH i2c: E2 03 00 [16:37:12]MH_I2C_Read... [16:37:12]Read from MH i2c: E2 03 00 26 0A 00 90 00 A4 [16:37:12]RAPDU: 90 00 [16:37:12]wFMCommunicate OK [16:37:12]wFMCommunicate request_size=10 [16:37:12]MH_SAM_APDU [16:37:12]CAPDU: 80 0D 02 02 05 B0 AC 03 54 48 [16:37:12]Write to MH i2c: E2 0D 00 27 0A 80 0D 02 02 05 00 B0 AC 03 54 48 00 00 B0 [16:37:12]Write i2c OK [16:37:12]MH_I2C_Read... [16:37:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:37:12]Read from MH i2c: E2 [16:37:12]MH_I2C_Read... [16:37:12]Read from MH i2c: E2 03 00 [16:37:12]MH_I2C_Read... [16:37:12]Read from MH i2c: E2 03 00 27 0A 00 90 00 A5 [16:37:12]RAPDU: 90 00 [16:37:12]wFMCommunicate OK [16:37:12]wFMCommunicate request_size=4 [16:37:12]MH_SAM_APDU [16:37:12]CAPDU: 80 0D 03 02 [16:37:12]Write to MH i2c: E2 08 00 28 0A 80 0D 03 02 00 00 00 00 AD [16:37:12]Write i2c OK [16:37:12]MH_I2C_Read... [16:37:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:37:12]Read from MH i2c: E2 [16:37:12]MH_I2C_Read... [16:37:12]Read from MH i2c: E2 0B 00 [16:37:12]MH_I2C_Read... [16:37:12]Read from MH i2c: E2 0B 00 28 0A 00 FF 85 14 65 EA CF D9 C5 90 00 02 [16:37:12]RAPDU: FF 85 14 65 EA CF D9 C5 90 00 [16:37:12]wFMCommunicate OK [16:37:12]SAM_PROTO_SignData done [16:37:12]FM_MakeSignedData done [16:37:12]CreateOFDProtocolMessage [16:37:12]wFMCommunicate request_size=4 [16:37:12]MH_SAM_APDU [16:37:12]CAPDU: 80 11 00 00 [16:37:12]Write to MH i2c: E2 08 00 29 0A 80 11 00 00 00 00 00 00 AD [16:37:12]Write i2c OK [16:37:12]MH_I2C_Read... [16:37:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:37:12]Read from MH i2c: E2 [16:37:12]MH_I2C_Read... [16:37:12]Read from MH i2c: E2 17 00 [16:37:12]MH_I2C_Read... [16:37:12]Read from MH i2c: E2 17 00 29 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 F8 [16:37:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [16:37:12]wFMCommunicate OK [16:37:12]CreateOFDProtocolMessage done [16:37:12]OFDSenderStorePacket 68635 [16:37:12]StoreOFDPacket docnum=68635 [16:37:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 95 64 07 01 4A B6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 98 9E 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 02 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 B7 42 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 1B 0C 01 00 35 04 06 00 0B B0 AC 03 54 48 FF 85 14 65 EA CF D9 C5 [16:37:12]CheckFolder [16:37:12]dirname=/storage/ofd_packets [16:37:12]CheckFolder done [16:37:12]ProducePacketName [16:37:12]name=ofd_packets/00068635 [16:37:12]NVStorageSaveData ofd_packets/00068635 [16:37:12]File name is /storage/ofd_packets/00068635 [16:37:12]Write 301 bytes [16:37:12]NVStorageSaveData done [16:37:12]OFDSenderStorePacket done [16:37:12]KKMCreateOFDPacket done [16:37:12]NVStorageSaveData kkm_last_timestamp [16:37:12]File name is /storage/kkm_last_timestamp [16:37:12]Write 4 bytes [16:37:12]NVStorageSaveData done [16:37:12]ExternCall_PrintAddStr [16:37:12]wPrintStart [16:37:12]Write to MH i2c: 01 00 00 2A 0A 34 [16:37:12]Write i2c OK [16:37:12]MH_I2C_Read... [16:37:12]Read from MH i2c: 01 [16:37:12]MH_I2C_Read... [16:37:12]Read from MH i2c: 01 07 00 [16:37:12]MH_I2C_Read... [16:37:12]Read from MH i2c: 01 07 00 2A 0A 00 00 00 00 00 FF 0F 49 [16:37:12]RasterBufferAndPrint [16:37:12]line Счет N : (1)706770 [16:37:12]line ИНН: 02508201610067 [16:37:12]line Контрольно-Кассовый Чек [16:37:12]line ПРОДАЖА [16:37:12]line ТРК (МРК, ГНК) : 24 [16:37:12]line Товар: 2710124500 [16:37:12]line Аи-95-К-5 [16:37:12]line 40.600 * 73.90 [16:37:12]line = 3000.34 [16:37:12]line НДС 12% НСП 1% [16:37:12]line > о реализуемом товаре [16:37:12]line ОКРУГЛЕНИЕ: -0.34 [16:37:12]line ИТОГО: 3000.00 [16:37:12]line Внесено: 3000.00 [16:37:12]line СДАЧА: 0.00 [16:37:12]line НСП 1% : 26.55 [16:37:12]line НДС 12% : 318.62 [16:37:12]line Наличными: 3000.00 [16:37:12]line Безнал.: 0.00 [16:37:12]line Место: АЗС № 62 "Партнер Нефть" [16:37:12]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [16:37:12]line СНО: Общий режим [16:37:12]line Чек 133 04.06.2024 16:37 [16:37:12]line Смена: 325 ФФД: 1.0 [16:37:12]line ЗНМ: 0300000181 [16:37:12]line РНМ: 0000000000098096 [16:37:12]line Версия ККМ: 001 [16:37:12]line ФМ: 0000000000965400 [16:37:12]line ФД: 68635 [16:37:12]line ФПД: 12853428048968 [16:37:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T163711&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68635&fm=12853428048968&tin=02508201610067®Number=0000000000098096&sum=300000 [16:37:12]OFD Sender: Processing packet 68635 [packets to send 27, broken 26] [16:37:12]ProducePacketName [16:37:12]name=ofd_packets/00068635 [16:37:12]OFD Sender: To server: pG, [16:37:12]CommunicateWithHost lk.salyk.kg:30040 [16:37:12]ConnectInit lk.salyk.kg [16:37:12]written 0, free lines is 4095 [16:37:13]Connected sock=10 [16:37:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 95 64 07 01 4A B6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 98 9E 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 02 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 B7 42 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 1B 0C 01 00 35 04 06 00 0B B0 AC 03 54 48 FF 85 14 65 EA CF D9 C5 [16:37:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 73 D8 47 00 C4 8D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 1B 0C 01 00 F4 03 04 00 AF E9 5E 66 B6 04 01 00 00 EF B3 43 A4 09 19 41 ED [16:37:13]CommunicateWithHost err = 0 [16:37:13]CheckOFDResponse [16:37:13]1017 (14) - 77093643461234 [16:37:13]1041 (16) - 0000000000965400 [16:37:13]1040 (4) - 68635 [16:37:13]1012 (4) - 04.06.2024 10:17 [16:37:13]1206 (1) - 0 [16:37:13]OFD Sender: Remove packet 68635 [16:37:13]ProducePacketName [16:37:13]name=ofd_packets/00068635 [16:37:13]NVStorageDeleteData [16:37:13]Write to MH i2c: 01 00 00 55 0A 5F [16:37:13]Write i2c OK [16:37:13]MH_I2C_Read... [16:37:13]Read from MH i2c: 01 [16:37:13]MH_I2C_Read... [16:37:13]Read from MH i2c: 01 07 00 [16:37:13]MH_I2C_Read... [16:37:13]Read from MH i2c: 01 07 00 55 0A 00 00 00 00 00 E4 0C 56 [16:37:13]RasterBufferAndPrint [16:37:13]line [16:37:13]line [16:37:13]line [16:37:13]line [16:37:13]line [16:37:13]written 0, free lines is 3306 [16:37:13]MH_Cut [16:37:13]Write to MH i2c: D1 01 00 5C 0A 01 38 [16:37:13]Write i2c OK [16:37:13]MH_I2C_Read... [16:37:13]Read from MH i2c: D1 [16:37:13]MH_I2C_Read... [16:37:13]Read from MH i2c: D1 01 00 [16:37:13]MH_I2C_Read... [16:37:13]Read from MH i2c: D1 01 00 5C 0A 00 37 [16:37:13]Write to MH i2c: 01 00 00 5D 0A 67 [16:37:13]Write i2c OK [16:37:13]MH_I2C_Read... [16:37:13]OFD Sender: No OFD packet to send [16:37:14]*** Cut start [16:37:14]*** Partial cut [16:37:14]*** CUTSNS_PIN = 1 [16:37:14]*** CUTSNS_PIN = 0 [16:37:14]*** Brake cut motor [16:37:14]Read from MH i2c: 01 [16:37:14]MH_I2C_Read... [16:37:14]*** Stop cut motor [16:37:14]*** Cut end [16:37:14]Read from MH i2c: 01 07 00 [16:37:14]MH_I2C_Read... [16:37:14]Read from MH i2c: 01 07 00 5D 0A 00 00 00 00 00 FF 0F 7C [16:37:14]process_action close_receipt done [16:37:14]requested_data is exist [16:37:14]produce_requested_data [16:37:14]requested_item fm.sn is exist - process it [16:37:14]wFMCommunicate request_size=4 [16:37:14]MH_SAM_APDU [16:37:14]CAPDU: 80 11 00 00 [16:37:14]Write to MH i2c: E2 08 00 5E 0A 80 11 00 00 00 00 00 00 E2 [16:37:14]Write i2c OK [16:37:14]MH_I2C_Read... [16:37:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:37:14]Read from MH i2c: E2 [16:37:14]MH_I2C_Read... [16:37:14]Read from MH i2c: E2 17 00 [16:37:14]MH_I2C_Read... [16:37:14]Read from MH i2c: E2 17 00 5E 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 2D [16:37:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [16:37:14]wFMCommunicate OK [16:37:14]requested_item fd.num is exist - process it [16:37:14]SAM_PROTO_GetFieldsCounters [16:37:14]wFMCommunicate request_size=4 [16:37:14]MH_SAM_APDU [16:37:14]CAPDU: 80 13 00 00 [16:37:14]Write to MH i2c: E2 08 00 5F 0A 80 13 00 00 00 00 00 00 E5 [16:37:14]Write i2c OK [16:37:14]MH_I2C_Read... [16:37:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:37:14]Read from MH i2c: E2 [16:37:14]MH_I2C_Read... [16:37:14]Read from MH i2c: E2 62 00 [16:37:14]MH_I2C_Read... [16:37:14]Read from MH i2c: E2 62 00 5F 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 1B 0C 01 00 0E 04 04 00 45 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 02 [16:37:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 1B 0C 01 00 0E 04 04 00 45 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:37:14]wFMCommunicate OK [16:37:14]SAM_PROTO_GetFieldsCounters done [16:37:14]requested_item shift.num is exist - process it [16:37:14]requested_item shift.opened is exist - process it [16:37:14]req_shift_opened [16:37:14]FM_GetShiftState [16:37:14]SAM_PROTO_GetShiftState [16:37:14]wFMCommunicate request_size=4 [16:37:14]MH_SAM_APDU [16:37:14]CAPDU: 80 13 01 00 [16:37:14]Write to MH i2c: E2 08 00 60 0A 80 13 01 00 00 00 00 00 E7 [16:37:14]Write i2c OK [16:37:14]MH_I2C_Read... [16:37:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:37:15]Read from MH i2c: E2 [16:37:15]MH_I2C_Read... [16:37:15]Read from MH i2c: E2 0E 00 [16:37:15]MH_I2C_Read... [16:37:15]Read from MH i2c: E2 0E 00 60 0A 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 83 [16:37:15]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [16:37:15]wFMCommunicate OK [16:37:15]SAM_PROTO_GetShiftState done [16:37:15]FM_GetShiftState done [16:37:15]req_shift_opened done [16:37:15]requested_item shift.open_date is exist - process it [16:37:15]req_shift_open_date [16:37:15]req_shift_open_date done [16:37:15]produce_requested_data done [16:37:15]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68635,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [16:37:15]process_action_free close_receipt [16:37:15]json_value_free [16:37:15]json_value_free done [16:37:15]process_json_proto returns [16:37:15]Send response to host [16:37:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68635,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [16:37:15]free response buf [16:37:15]execute_script done [16:37:15]execute_script returns [16:37:15]free content buf [16:37:15]Sock 7.Close socket [16:37:15]Sock 7.Thread stoped [16:37:18]OFD Sender: No OFD packet to send [16:37:23]OFD Sender: No OFD packet to send [16:37:28]OFD Sender: No OFD packet to send [16:37:33]OFD Sender: No OFD packet to send [16:37:38]OFD Sender: No OFD packet to send [16:37:43]OFD Sender: No OFD packet to send [16:37:48]OFD Sender: No OFD packet to send [16:37:53]OFD Sender: No OFD packet to send [16:37:58]OFD Sender: No OFD packet to send [16:38:03]OFD Sender: No OFD packet to send [16:38:08]OFD Sender: No OFD packet to send [16:38:13]OFD Sender: No OFD packet to send [16:38:18]OFD Sender: No OFD packet to send [16:38:23]OFD Sender: No OFD packet to send [16:38:28]OFD Sender: No OFD packet to send [16:38:33]OFD Sender: No OFD packet to send [16:38:38]OFD Sender: No OFD packet to send [16:38:43]OFD Sender: No OFD packet to send [16:38:48]OFD Sender: No OFD packet to send [16:38:53]OFD Sender: No OFD packet to send [16:38:58]OFD Sender: No OFD packet to send [16:39:03]OFD Sender: No OFD packet to send [16:39:08]OFD Sender: No OFD packet to send [16:39:13]OFD Sender: No OFD packet to send [16:39:18]OFD Sender: No OFD packet to send [16:39:23]OFD Sender: No OFD packet to send [16:39:28]OFD Sender: No OFD packet to send [16:39:33]OFD Sender: No OFD packet to send [16:39:38]OFD Sender: No OFD packet to send [16:39:43]OFD Sender: No OFD packet to send [16:39:48]OFD Sender: No OFD packet to send [16:39:53]OFD Sender: No OFD packet to send [16:39:58]OFD Sender: No OFD packet to send [16:40:03]OFD Sender: No OFD packet to send [16:40:08]OFD Sender: No OFD packet to send [16:40:13]OFD Sender: No OFD packet to send [16:40:18]OFD Sender: No OFD packet to send [16:40:23]OFD Sender: No OFD packet to send [16:40:28]OFD Sender: No OFD packet to send [16:40:33]OFD Sender: No OFD packet to send [16:40:38]OFD Sender: No OFD packet to send [16:40:43]OFD Sender: No OFD packet to send [16:40:48]OFD Sender: No OFD packet to send [16:40:52]accept exits with 9 [16:40:52]New connection [16:40:52]New thread 3067297124 created [16:40:52]Thread 3067153764 joined [16:40:52]Waiting for new connection... [16:40:52] Sock 9.Parse request [16:40:52]Sock 9.Check first char [16:40:52]Sock 9.First char is OK [16:40:52]request: POST /json_proto HTTP/1.0 [16:40:52]Method: POST [16:40:52]URL: /json_proto [16:40:52]Method is POST - this is cgi request [16:40:52]url: /json_proto [16:40:52]query_string will be loaded in cgi processing [16:40:52]execute_cgi json_proto POST (null) [16:40:52]execute_cgi path=json_proto method=POST [16:40:52]POST find Content-Length [16:40:52]Host: 172.17.36.132:8080 [16:40:52]Content-Length: 682 [16:40:52]Content-Type: application/json [16:40:52] [16:40:52]POST finish read [16:40:52]Found Content-Length = 682 [16:40:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706771", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 19.900, "sum" : 1470.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1470.00, "total" : 1470.00, "payments": [ { "type": 0, "sum" : 1470.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:40:52]execute_script... [16:40: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)706771", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 19.900, "sum" : 1470.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1470.00, "total" : 1470.00, "payments": [ { "type": 0, "sum" : 1470.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:40:52]POST & json_proto [16:40:52]process_json_proto [16:40:52]json parsed OK: [16:40:52]protocol is kg_v1.0 [16:40:52]action value=close_receipt [16:40:52]process_action close_receipt [16:40:52]cmd_close_receipt [16:40:52]MH_GetDate [16:40:52]Write to MH i2c: F0 00 00 61 0A 5A [16:40:52]Write i2c OK [16:40:52]MH_I2C_Read... [16:40:52]Read from MH i2c: F0 [16:40:52]MH_I2C_Read... [16:40:52]Read from MH i2c: F0 09 00 [16:40:52]MH_I2C_Read... [16:40:52]Read from MH i2c: F0 09 00 61 0A 00 95 43 5F 66 B2 22 B0 64 E8 [16:40:52]GetLastDocTimeStamp 1717519031 [16:40:52]current date 1717519253 [16:40:52]FM_GetShiftState [16:40:52]SAM_PROTO_GetShiftState [16:40:52]wFMCommunicate request_size=4 [16:40:52]MH_SAM_APDU [16:40:52]CAPDU: 80 13 01 00 [16:40:52]Write to MH i2c: E2 08 00 62 0A 80 13 01 00 00 00 00 00 E9 [16:40:52]Write i2c OK [16:40:52]MH_I2C_Read... [16:40:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:40:52]Read from MH i2c: E2 [16:40:52]MH_I2C_Read... [16:40:52]Read from MH i2c: E2 0E 00 [16:40:52]MH_I2C_Read... [16:40:52]Read from MH i2c: E2 0E 00 62 0A 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 85 [16:40:52]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [16:40:52]wFMCommunicate OK [16:40:52]SAM_PROTO_GetShiftState done [16:40:52]FM_GetShiftState done [16:40:52]opened in 1717460590 [16:40:52]opened+sec_in_day 1717546990 [16:40:52]quantity*price = 147061 [16:40:52]sum+1 = 147062 [16:40:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 1470.00 Внесено: 1470.00 СДАЧА: 0.00 НСП 1% : 13.01 НДС 12% : 156.17 Наличными: 1470.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 134 04.06.2024 16:40 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68636 ФПД: 267318164491279 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T164053&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68636&fm=267318164491279&tin=02508201610067®Number=0000000000098096&sum=147000 [16:40:53]StoreToDocumentArchive [16:40:53]shift 325 fd 68636 [16:40:53]save to /storage/0325/doc_00068636 [16:40:53]save last doc name /storage/0325/doc_00068636 to /storage/kkm_last_doc_name [16:40:53]save OK [16:40:53]Clear old archive folders... [16:40:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:40:53]tlvbuf is 00A63A00 [16:40:53]SAM_PROTO_ClearQueue [16:40:53]wFMCommunicate request_size=4 [16:40:53]MH_SAM_APDU [16:40:53]CAPDU: 80 09 00 00 [16:40:53]Write to MH i2c: E2 08 00 6F 0A 80 09 00 00 00 00 00 00 EB [16:40:53]Write i2c OK [16:40:53]MH_I2C_Read... [16:40:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:40:53]Read from MH i2c: E2 [16:40:53]MH_I2C_Read... [16:40:53]Read from MH i2c: E2 03 00 [16:40:53]MH_I2C_Read... [16:40:53]Read from MH i2c: E2 03 00 6F 0A 00 90 00 ED [16:40:53]RAPDU: 90 00 [16:40:53]wFMCommunicate OK [16:40:53]SAM_PROTO_ClearQueue done [16:40:53]KKMCreateOFDPacket [16:40:53]OFDProtocolAddRootSTLVToBuf [16:40:53]FM_MakeSignedData [16:40:53]FM_MakeSignedData [16:40:53]SAM_PROTO_SignData [16:40:53]wFMCommunicate request_size=4 [16:40:53]MH_SAM_APDU [16:40:53]CAPDU: 80 0D 01 02 [16:40:53]Write to MH i2c: E2 08 00 70 0A 80 0D 01 02 00 00 00 00 F3 [16:40:53]Write i2c OK [16:40:53]MH_I2C_Read... [16:40:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:40:53]Read from MH i2c: E2 [16:40:53]MH_I2C_Read... [16:40:53]Read from MH i2c: E2 03 00 [16:40:53]MH_I2C_Read... [16:40:53]Read from MH i2c: E2 03 00 70 0A 00 90 00 EE [16:40:53]RAPDU: 90 00 [16:40:53]wFMCommunicate OK [16:40:53]wFMCommunicate request_size=255 [16:40:53]MH_SAM_APDU [16:40:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 BC 4D 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 75 3E 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 3E 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 15 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 01 3D 00 00 00 00 07 04 06 00 38 3E 02 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 95 43 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 1C 0C 01 00 35 04 06 00 F3 [16:40:53]Write to MH i2c: E2 02 01 71 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 BC 4D 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 75 3E 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 3E 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 15 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 01 3D 00 00 00 00 07 04 06 00 38 3E 02 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 95 43 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 1C 0C 01 00 35 04 06 00 F3 00 00 85 [16:40:53]Write i2c OK [16:40:53]MH_I2C_Read... [16:40:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:40:53]Read from MH i2c: E2 [16:40:53]MH_I2C_Read... [16:40:53]Read from MH i2c: E2 03 00 [16:40:53]MH_I2C_Read... [16:40:53]Read from MH i2c: E2 03 00 71 0A 00 90 00 EF [16:40:53]RAPDU: 90 00 [16:40:53]wFMCommunicate OK [16:40:53]wFMCommunicate request_size=10 [16:40:53]MH_SAM_APDU [16:40:53]CAPDU: 80 0D 02 02 05 1F DC 3C 8C 0F [16:40:53]Write to MH i2c: E2 0D 00 72 0A 80 0D 02 02 05 00 1F DC 3C 8C 0F 00 00 D2 [16:40:53]Write i2c OK [16:40:53]MH_I2C_Read... [16:40:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:40:53]Read from MH i2c: E2 [16:40:53]MH_I2C_Read... [16:40:53]Read from MH i2c: E2 03 00 [16:40:53]MH_I2C_Read... [16:40:53]Read from MH i2c: E2 03 00 72 0A 00 90 00 F0 [16:40:53]RAPDU: 90 00 [16:40:53]wFMCommunicate OK [16:40:53]wFMCommunicate request_size=4 [16:40:53]MH_SAM_APDU [16:40:53]CAPDU: 80 0D 03 02 [16:40:53]Write to MH i2c: E2 08 00 73 0A 80 0D 03 02 00 00 00 00 F8 [16:40:53]Write i2c OK [16:40:53]MH_I2C_Read... [16:40:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:40:53]Read from MH i2c: E2 [16:40:53]MH_I2C_Read... [16:40:53]Read from MH i2c: E2 0B 00 [16:40:53]MH_I2C_Read... [16:40:53]Read from MH i2c: E2 0B 00 73 0A 00 99 DF 89 E3 54 9C 87 EA 90 00 3E [16:40:53]RAPDU: 99 DF 89 E3 54 9C 87 EA 90 00 [16:40:53]wFMCommunicate OK [16:40:53]SAM_PROTO_SignData done [16:40:53]FM_MakeSignedData done [16:40:53]CreateOFDProtocolMessage [16:40:53]wFMCommunicate request_size=4 [16:40:53]MH_SAM_APDU [16:40:53]CAPDU: 80 11 00 00 [16:40:53]Write to MH i2c: E2 08 00 74 0A 80 11 00 00 00 00 00 00 F8 [16:40:53]Write i2c OK [16:40:53]MH_I2C_Read... [16:40:53]OFD Sender: No OFD packet to send [16:40:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:40:53]Read from MH i2c: E2 [16:40:53]MH_I2C_Read... [16:40:53]Read from MH i2c: E2 17 00 [16:40:53]MH_I2C_Read... [16:40:53]Read from MH i2c: E2 17 00 74 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 43 [16:40:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [16:40:53]wFMCommunicate OK [16:40:53]CreateOFDProtocolMessage done [16:40:53]OFDSenderStorePacket 68636 [16:40:53]StoreOFDPacket docnum=68636 [16:40:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 75 B4 07 01 00 22 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 BC 4D 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 75 3E 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 3E 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 15 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 01 3D 00 00 00 00 07 04 06 00 38 3E 02 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 95 43 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 1C 0C 01 00 35 04 06 00 F3 1F DC 3C 8C 0F 99 DF 89 E3 54 9C 87 EA [16:40:53]CheckFolder [16:40:53]dirname=/storage/ofd_packets [16:40:53]CheckFolder done [16:40:53]ProducePacketName [16:40:53]name=ofd_packets/00068636 [16:40:53]NVStorageSaveData ofd_packets/00068636 [16:40:53]File name is /storage/ofd_packets/00068636 [16:40:53]Write 301 bytes [16:40:53]NVStorageSaveData done [16:40:53]OFDSenderStorePacket done [16:40:53]KKMCreateOFDPacket done [16:40:53]NVStorageSaveData kkm_last_timestamp [16:40:53]File name is /storage/kkm_last_timestamp [16:40:53]Write 4 bytes [16:40:53]NVStorageSaveData done [16:40:53]ExternCall_PrintAddStr [16:40:53]wPrintStart [16:40:53]Write to MH i2c: 01 00 00 75 0A 7F [16:40:53]Write i2c OK [16:40:53]MH_I2C_Read... [16:40:53]Read from MH i2c: 01 [16:40:53]MH_I2C_Read... [16:40:53]Read from MH i2c: 01 07 00 [16:40:53]MH_I2C_Read... [16:40:53]Read from MH i2c: 01 07 00 75 0A 00 00 00 00 00 FF 0F 94 [16:40:53]RasterBufferAndPrint [16:40:53]line Счет N : (1)706771 [16:40:53]line ИНН: 02508201610067 [16:40:53]line Контрольно-Кассовый Чек [16:40:53]line ПРОДАЖА [16:40:53]line ТРК (МРК, ГНК) : 24 [16:40:53]line Товар: 2710124500 [16:40:53]line Аи-95-К-5 [16:40:53]line 19.900 * 73.90 [16:40:53]line = 1470.61 [16:40:53]line НДС 12% НСП 1% [16:40:53]line > о реализуемом товаре [16:40:53]line ОКРУГЛЕНИЕ: -0.61 [16:40:53]line ИТОГО: 1470.00 [16:40:53]line Внесено: 1470.00 [16:40:53]line СДАЧА: 0.00 [16:40:53]line НСП 1% : 13.01 [16:40:53]line НДС 12% : 156.17 [16:40:53]line Наличными: 1470.00 [16:40:53]line Безнал.: 0.00 [16:40:53]line Место: АЗС № 62 "Партнер Нефть" [16:40:53]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [16:40:53]line СНО: Общий режим [16:40:53]line Чек 134 04.06.2024 16:40 [16:40:53]line Смена: 325 ФФД: 1.0 [16:40:53]line ЗНМ: 0300000181 [16:40:53]line РНМ: 0000000000098096 [16:40:53]line Версия ККМ: 001 [16:40:53]line ФМ: 0000000000965400 [16:40:53]line ФД: 68636 [16:40:53]line ФПД: 267318164491279 [16:40:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T164053&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68636&fm=267318164491279&tin=02508201610067®Number=0000000000098096&sum=147000 [16:40:54]OFD Sender: Processing packet 68636 [packets to send 27, broken 26] [16:40:54]ProducePacketName [16:40:54]name=ofd_packets/00068636 [16:40:54]OFD Sender: To server: pG, [16:40:54]CommunicateWithHost lk.salyk.kg:30040 [16:40:54]ConnectInit lk.salyk.kg [16:40:54]written 0, free lines is 4095 [16:40:54]Connected sock=10 [16:40:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 75 B4 07 01 00 22 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 BC 4D 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 75 3E 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 3E 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 15 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 01 3D 00 00 00 00 07 04 06 00 38 3E 02 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 95 43 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 1C 0C 01 00 35 04 06 00 F3 1F DC 3C 8C 0F 99 DF 89 E3 54 9C 87 EA [16:40:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 C6 91 47 00 8E 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 39 36 35 34 30 30 10 04 04 00 1C 0C 01 00 F4 03 04 00 8D EA 5E 66 B6 04 01 00 00 C2 27 38 33 46 A8 24 8D [16:40:54]CommunicateWithHost err = 0 [16:40:54]CheckOFDResponse [16:40:54]1017 (14) - 77093643461234 [16:40:54]1041 (16) - 0000000000965400 [16:40:54]1040 (4) - 68636 [16:40:54]1012 (4) - 04.06.2024 10:21 [16:40:54]1206 (1) - 0 [16:40:54]OFD Sender: Remove packet 68636 [16:40:54]ProducePacketName [16:40:54]name=ofd_packets/00068636 [16:40:54]NVStorageDeleteData [16:40:54]Write to MH i2c: 01 00 00 A0 0A AA [16:40:54]Write i2c OK [16:40:54]MH_I2C_Read... [16:40:54]Read from MH i2c: 01 [16:40:54]MH_I2C_Read... [16:40:54]Read from MH i2c: 01 07 00 [16:40:54]MH_I2C_Read... [16:40:54]Read from MH i2c: 01 07 00 A0 0A 00 00 00 00 00 D3 0C 90 [16:40:54]RasterBufferAndPrint [16:40:54]line [16:40:54]line [16:40:54]line [16:40:54]line [16:40:54]line [16:40:54]written 0, free lines is 3290 [16:40:54]MH_Cut [16:40:54]Write to MH i2c: D1 01 00 A7 0A 01 83 [16:40:54]Write i2c OK [16:40:54]MH_I2C_Read... [16:40:54]Read from MH i2c: D1 [16:40:54]MH_I2C_Read... [16:40:54]Read from MH i2c: D1 01 00 [16:40:54]MH_I2C_Read... [16:40:54]Read from MH i2c: D1 01 00 A7 0A 00 82 [16:40:54]Write to MH i2c: 01 00 00 A8 0A B2 [16:40:54]Write i2c OK [16:40:54]MH_I2C_Read... [16:40:55]OFD Sender: No OFD packet to send [16:40:55]*** Cut start [16:40:55]*** Partial cut [16:40:55]*** CUTSNS_PIN = 1 [16:40:55]*** CUTSNS_PIN = 0 [16:40:55]*** Brake cut motor [16:40:56]Read from MH i2c: 01 [16:40:56]MH_I2C_Read... [16:40:56]*** Stop cut motor [16:40:56]*** Cut end [16:40:56]Read from MH i2c: 01 07 00 [16:40:56]MH_I2C_Read... [16:40:56]Read from MH i2c: 01 07 00 A8 0A 00 00 00 00 00 FF 0F C7 [16:40:56]process_action close_receipt done [16:40:56]requested_data is exist [16:40:56]produce_requested_data [16:40:56]requested_item fm.sn is exist - process it [16:40:56]wFMCommunicate request_size=4 [16:40:56]MH_SAM_APDU [16:40:56]CAPDU: 80 11 00 00 [16:40:56]Write to MH i2c: E2 08 00 A9 0A 80 11 00 00 00 00 00 00 2D [16:40:56]Write i2c OK [16:40:56]MH_I2C_Read... [16:40:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:40:56]Read from MH i2c: E2 [16:40:56]MH_I2C_Read... [16:40:56]Read from MH i2c: E2 17 00 [16:40:56]MH_I2C_Read... [16:40:56]Read from MH i2c: E2 17 00 A9 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 78 [16:40:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [16:40:56]wFMCommunicate OK [16:40:56]requested_item fd.num is exist - process it [16:40:56]SAM_PROTO_GetFieldsCounters [16:40:56]wFMCommunicate request_size=4 [16:40:56]MH_SAM_APDU [16:40:56]CAPDU: 80 13 00 00 [16:40:56]Write to MH i2c: E2 08 00 AA 0A 80 13 00 00 00 00 00 00 30 [16:40:56]Write i2c OK [16:40:56]MH_I2C_Read... [16:40:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:40:56]Read from MH i2c: E2 [16:40:56]MH_I2C_Read... [16:40:56]Read from MH i2c: E2 62 00 [16:40:56]MH_I2C_Read... [16:40:56]Read from MH i2c: E2 62 00 AA 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 1C 0C 01 00 0E 04 04 00 45 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 51 [16:40:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 1C 0C 01 00 0E 04 04 00 45 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:40:56]wFMCommunicate OK [16:40:56]SAM_PROTO_GetFieldsCounters done [16:40:56]requested_item shift.num is exist - process it [16:40:56]requested_item shift.opened is exist - process it [16:40:56]req_shift_opened [16:40:56]FM_GetShiftState [16:40:56]SAM_PROTO_GetShiftState [16:40:56]wFMCommunicate request_size=4 [16:40:56]MH_SAM_APDU [16:40:56]CAPDU: 80 13 01 00 [16:40:56]Write to MH i2c: E2 08 00 AB 0A 80 13 01 00 00 00 00 00 32 [16:40:56]Write i2c OK [16:40:56]MH_I2C_Read... [16:40:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:40:56]Read from MH i2c: E2 [16:40:56]MH_I2C_Read... [16:40:56]Read from MH i2c: E2 0E 00 [16:40:56]MH_I2C_Read... [16:40:56]Read from MH i2c: E2 0E 00 AB 0A 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 CE [16:40:56]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [16:40:56]wFMCommunicate OK [16:40:56]SAM_PROTO_GetShiftState done [16:40:56]FM_GetShiftState done [16:40:56]req_shift_opened done [16:40:56]requested_item shift.open_date is exist - process it [16:40:56]req_shift_open_date [16:40:56]req_shift_open_date done [16:40:56]produce_requested_data done [16:40:56]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68636,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [16:40:56]process_action_free close_receipt [16:40:56]json_value_free [16:40:56]json_value_free done [16:40:56]process_json_proto returns [16:40:56]Send response to host [16:40:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68636,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [16:40:56]free response buf [16:40:56]execute_script done [16:40:56]execute_script returns [16:40:56]free content buf [16:40:56]Sock 9.Close socket [16:40:56]Sock 9.Thread stoped [16:40:59]accept exits with 7 [16:40:59]New connection [16:40:59]New thread 3067153764 created [16:40:59]Thread 3067297124 joined [16:40:59]Waiting for new connection... [16:40:59] Sock 7.Parse request [16:40:59]Sock 7.Check first char [16:40:59]Sock 7.First char is OK [16:40:59]request: POST /json_proto HTTP/1.0 [16:40:59]Method: POST [16:40:59]URL: /json_proto [16:40:59]Method is POST - this is cgi request [16:40:59]url: /json_proto [16:40:59]query_string will be loaded in cgi processing [16:40:59]execute_cgi json_proto POST (null) [16:40:59]execute_cgi path=json_proto method=POST [16:40:59]POST find Content-Length [16:40:59]Host: 172.17.36.132:8080 [16:40:59]Content-Length: 738 [16:40:59]Content-Type: application/json [16:40:59] [16:40:59]POST finish read [16:40:59]Found Content-Length = 738 [16:40:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 68636, "base_FM": "0000000000965400", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706771", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 19.900, "sum" : 1470.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1470.00, "total" : 1470.00, "payments": [ { "type": 0, "sum" : 1470.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:40:59]execute_script... [16:40:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 68636, "base_FM": "0000000000965400", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706771", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 19.900, "sum" : 1470.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1470.00, "total" : 1470.00, "payments": [ { "type": 0, "sum" : 1470.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:40:59]POST & json_proto [16:40:59]process_json_proto [16:40:59]json parsed OK: [16:40:59]protocol is kg_v1.0 [16:40:59]action value=close_receipt [16:40:59]process_action close_receipt [16:40:59]cmd_close_receipt [16:40:59]MH_GetDate [16:40:59]Write to MH i2c: F0 00 00 AC 0A A5 [16:40:59]Write i2c OK [16:40:59]MH_I2C_Read... [16:40:59]Read from MH i2c: F0 [16:40:59]MH_I2C_Read... [16:40:59]Read from MH i2c: F0 09 00 [16:40:59]MH_I2C_Read... [16:40:59]Read from MH i2c: F0 09 00 AC 0A 00 9C 43 5F 66 B2 22 B0 64 3A [16:40:59]GetLastDocTimeStamp 1717519253 [16:40:59]current date 1717519260 [16:40:59]FM_GetShiftState [16:40:59]SAM_PROTO_GetShiftState [16:40:59]wFMCommunicate request_size=4 [16:40:59]MH_SAM_APDU [16:40:59]CAPDU: 80 13 01 00 [16:40:59]Write to MH i2c: E2 08 00 AD 0A 80 13 01 00 00 00 00 00 34 [16:40:59]Write i2c OK [16:40:59]MH_I2C_Read... [16:40:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:40:59]Read from MH i2c: E2 [16:40:59]MH_I2C_Read... [16:40:59]Read from MH i2c: E2 0E 00 [16:40:59]MH_I2C_Read... [16:40:59]Read from MH i2c: E2 0E 00 AD 0A 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 D0 [16:40:59]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [16:40:59]wFMCommunicate OK [16:40:59]SAM_PROTO_GetShiftState done [16:40:59]FM_GetShiftState done [16:40:59]opened in 1717460590 [16:40:59]opened+sec_in_day 1717546990 [16:40:59]quantity*price = 147061 [16:40:59]sum+1 = 147062 [16:40:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 1470.00 НСП 1% : 13.01 НДС 12% : 156.17 Наличными: 1470.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 135 04.06.2024 16:41 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФД осн.: 68636 ФМ осн.: 0000000000965400 ФМ: 0000000000965400 ФД: 68637 ФПД: 228107332441829 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T164100&type=2&operation_type=1&fn_number=0000000000965400&fd_number=68637&fm=228107332441829&tin=02508201610067®Number=0000000000098096&sum=147000 [16:41:00]StoreToDocumentArchive [16:41:00]shift 325 fd 68637 [16:41:00]save to /storage/0325/doc_00068637 [16:41:00]save last doc name /storage/0325/doc_00068637 to /storage/kkm_last_doc_name [16:41:00]save OK [16:41:00]Clear old archive folders... [16:41:00]ProcessDocumentItem done err = 0, tmpTLVsize=279 [16:41:00]tlvbuf is 00ABA1C0 [16:41:00]SAM_PROTO_ClearQueue [16:41:00]wFMCommunicate request_size=4 [16:41:00]MH_SAM_APDU [16:41:00]CAPDU: 80 09 00 00 [16:41:00]Write to MH i2c: E2 08 00 BC 0A 80 09 00 00 00 00 00 00 38 [16:41:00]Write i2c OK [16:41:00]MH_I2C_Read... [16:41:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:41:00]Read from MH i2c: E2 [16:41:00]MH_I2C_Read... [16:41:00]Read from MH i2c: E2 03 00 [16:41:00]MH_I2C_Read... [16:41:00]Read from MH i2c: E2 03 00 BC 0A 00 90 00 3A [16:41:00]RAPDU: 90 00 [16:41:00]wFMCommunicate OK [16:41:00]SAM_PROTO_ClearQueue done [16:41:00]KKMCreateOFDPacket [16:41:00]OFDProtocolAddRootSTLVToBuf [16:41:00]FM_MakeSignedData [16:41:00]FM_MakeSignedData [16:41:00]SAM_PROTO_SignData [16:41:00]wFMCommunicate request_size=4 [16:41:00]MH_SAM_APDU [16:41:00]CAPDU: 80 0D 01 02 [16:41:00]Write to MH i2c: E2 08 00 BD 0A 80 0D 01 02 00 00 00 00 40 [16:41:00]Write i2c OK [16:41:00]MH_I2C_Read... [16:41:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:41:00]Read from MH i2c: E2 [16:41:00]MH_I2C_Read... [16:41:00]Read from MH i2c: E2 03 00 [16:41:00]MH_I2C_Read... [16:41:00]Read from MH i2c: E2 03 00 BD 0A 00 90 00 3B [16:41:00]RAPDU: 90 00 [16:41:00]wFMCommunicate OK [16:41:00]wFMCommunicate request_size=255 [16:41:00]MH_SAM_APDU [16:41:00]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 BC 4D 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 75 3E 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 3E 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 15 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 01 3D 00 00 00 00 07 04 06 00 38 3E 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 9C 43 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 27 04 04 00 1C 0C 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 11 04 10 00 30 [16:41:00]Write to MH i2c: E2 02 01 BE 0A 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 BC 4D 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 75 3E 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 3E 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 15 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 01 3D 00 00 00 00 07 04 06 00 38 3E 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 9C 43 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 27 04 04 00 1C 0C 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 11 04 10 00 30 00 00 49 [16:41:00]Write i2c OK [16:41:00]MH_I2C_Read... [16:41:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:41:01]Read from MH i2c: E2 [16:41:01]MH_I2C_Read... [16:41:01]Read from MH i2c: E2 03 00 [16:41:01]MH_I2C_Read... [16:41:01]Read from MH i2c: E2 03 00 BE 0A 00 90 00 3C [16:41:01]RAPDU: 90 00 [16:41:01]wFMCommunicate OK [16:41:01]wFMCommunicate request_size=38 [16:41:01]MH_SAM_APDU [16:41:01]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 1D 0C 01 00 35 04 06 00 CF 76 60 85 56 E5 [16:41:01]Write to MH i2c: E2 29 00 BF 0A 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 1D 0C 01 00 35 04 06 00 CF 76 60 85 56 E5 00 00 53 [16:41:01]Write i2c OK [16:41:01]MH_I2C_Read... [16:41:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:41:01]Read from MH i2c: E2 [16:41:01]MH_I2C_Read... [16:41:01]Read from MH i2c: E2 03 00 [16:41:01]MH_I2C_Read... [16:41:01]Read from MH i2c: E2 03 00 BF 0A 00 90 00 3D [16:41:01]RAPDU: 90 00 [16:41:01]wFMCommunicate OK [16:41:01]wFMCommunicate request_size=4 [16:41:01]MH_SAM_APDU [16:41:01]CAPDU: 80 0D 03 02 [16:41:01]Write to MH i2c: E2 08 00 C0 0A 80 0D 03 02 00 00 00 00 45 [16:41:01]Write i2c OK [16:41:01]MH_I2C_Read... [16:41:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:41:01]Read from MH i2c: E2 [16:41:01]MH_I2C_Read... [16:41:01]Read from MH i2c: E2 0B 00 [16:41:01]MH_I2C_Read... [16:41:01]Read from MH i2c: E2 0B 00 C0 0A 00 C1 C1 2D D1 5A 6E 28 EB 90 00 A1 [16:41:01]RAPDU: C1 C1 2D D1 5A 6E 28 EB 90 00 [16:41:01]wFMCommunicate OK [16:41:01]SAM_PROTO_SignData done [16:41:01]FM_MakeSignedData done [16:41:01]CreateOFDProtocolMessage [16:41:01]wFMCommunicate request_size=4 [16:41:01]MH_SAM_APDU [16:41:01]CAPDU: 80 11 00 00 [16:41:01]Write to MH i2c: E2 08 00 C1 0A 80 11 00 00 00 00 00 00 45 [16:41:01]Write i2c OK [16:41:01]MH_I2C_Read... [16:41:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:41:01]Read from MH i2c: E2 [16:41:01]MH_I2C_Read... [16:41:01]Read from MH i2c: E2 17 00 [16:41:01]MH_I2C_Read... [16:41:01]Read from MH i2c: E2 17 00 C1 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 90 [16:41:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [16:41:01]wFMCommunicate OK [16:41:01]CreateOFDProtocolMessage done [16:41:01]OFDSenderStorePacket 68637 [16:41:01]StoreOFDPacket docnum=68637 [16:41:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 2B 01 00 00 8B DA 23 01 1E EA 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 BC 4D 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 75 3E 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 3E 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 15 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 01 3D 00 00 00 00 07 04 06 00 38 3E 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 9C 43 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 27 04 04 00 1C 0C 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 1D 0C 01 00 35 04 06 00 CF 76 60 85 56 E5 C1 C1 2D D1 5A 6E 28 EB [16:41:01]CheckFolder [16:41:01]dirname=/storage/ofd_packets [16:41:01]CheckFolder done [16:41:01]ProducePacketName [16:41:01]name=ofd_packets/00068637 [16:41:01]NVStorageSaveData ofd_packets/00068637 [16:41:01]File name is /storage/ofd_packets/00068637 [16:41:01]Write 329 bytes [16:41:01]NVStorageSaveData done [16:41:01]OFDSenderStorePacket done [16:41:01]KKMCreateOFDPacket done [16:41:01]NVStorageSaveData kkm_last_timestamp [16:41:01]File name is /storage/kkm_last_timestamp [16:41:01]Write 4 bytes [16:41:01]NVStorageSaveData done [16:41:01]ExternCall_PrintAddStr [16:41:01]wPrintStart [16:41:01]Write to MH i2c: 01 00 00 C2 0A CC [16:41:01]Write i2c OK [16:41:01]MH_I2C_Read... [16:41:01]Read from MH i2c: 01 [16:41:01]MH_I2C_Read... [16:41:01]Read from MH i2c: 01 07 00 [16:41:01]MH_I2C_Read... [16:41:01]Read from MH i2c: 01 07 00 C2 0A 00 00 00 00 00 FF 0F E1 [16:41:01]RasterBufferAndPrint [16:41:01]line Счет N : (1)706771 [16:41:01]line ИНН: 02508201610067 [16:41:01]line Контрольно-Кассовый Чек [16:41:01]line ВОЗВРАТ ПРОДАЖИ [16:41:01]line ТРК (МРК, ГНК) : 24 [16:41:01]line Товар: 2710124500 [16:41:01]line Аи-95-К-5 [16:41:01]line 19.900 * 73.90 [16:41:01]line = 1470.61 [16:41:01]line НДС 12% НСП 1% [16:41:01]line > о реализуемом товаре [16:41:01]line ОКРУГЛЕНИЕ: -0.61 [16:41:01]line ИТОГО: 1470.00 [16:41:01]line НСП 1% : 13.01 [16:41:01]line НДС 12% : 156.17 [16:41:01]line Наличными: 1470.00 [16:41:01]line Безнал.: 0.00 [16:41:01]line Место: АЗС № 62 "Партнер Нефть" [16:41:01]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [16:41:01]line СНО: Общий режим [16:41:01]line Чек 135 04.06.2024 16:41 [16:41:01]line Смена: 325 ФФД: 1.0 [16:41:01]line ЗНМ: 0300000181 [16:41:01]line РНМ: 0000000000098096 [16:41:01]line Версия ККМ: 001 [16:41:01]line ФД осн.: 68636 [16:41:01]line ФМ осн.: 0000000000965400 [16:41:01]line ФМ: 0000000000965400 [16:41:01]line ФД: 68637 [16:41:01]line ФПД: 228107332441829 [16:41:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T164100&type=2&operation_type=1&fn_number=0000000000965400&fd_number=68637&fm=228107332441829&tin=02508201610067®Number=0000000000098096&sum=147000 [16:41:01]written 0, free lines is 4095 [16:41:01]OFD Sender: Processing packet 68637 [packets to send 27, broken 26] [16:41:01]ProducePacketName [16:41:01]name=ofd_packets/00068637 [16:41:01]OFD Sender: To server: pG, [16:41:01]CommunicateWithHost lk.salyk.kg:30040 [16:41:01]ConnectInit lk.salyk.kg [16:41:01]Connected sock=10 [16:41:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 2B 01 00 00 8B DA 23 01 1E EA 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 BC 4D 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 75 3E 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 3E 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 15 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 01 3D 00 00 00 00 07 04 06 00 38 3E 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 9C 43 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 27 04 04 00 1C 0C 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 1D 0C 01 00 35 04 06 00 CF 76 60 85 56 E5 C1 C1 2D D1 5A 6E 28 EB [16:41:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 3C 97 47 00 9A 66 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 1D 0C 01 00 F4 03 04 00 94 EA 5E 66 B6 04 01 00 00 78 66 03 25 DA 32 29 64 [16:41:01]CommunicateWithHost err = 0 [16:41:01]CheckOFDResponse [16:41:01]1017 (14) - 77093643461234 [16:41:01]1041 (16) - 0000000000965400 [16:41:01]1040 (4) - 68637 [16:41:01]1012 (4) - 04.06.2024 10:21 [16:41:01]1206 (1) - 0 [16:41:01]OFD Sender: Remove packet 68637 [16:41:01]ProducePacketName [16:41:01]name=ofd_packets/00068637 [16:41:01]NVStorageDeleteData [16:41:01]Write to MH i2c: 01 00 00 ED 0A F7 [16:41:01]Write i2c OK [16:41:01]MH_I2C_Read... [16:41:01]Read from MH i2c: 01 [16:41:01]MH_I2C_Read... [16:41:01]Read from MH i2c: 01 07 00 [16:41:01]MH_I2C_Read... [16:41:01]Read from MH i2c: 01 07 00 ED 0A 00 00 00 00 00 00 0D 0B [16:41:01]RasterBufferAndPrint [16:41:01]line [16:41:01]line [16:41:01]line [16:41:01]line [16:41:01]line [16:41:01]written 0, free lines is 3339 [16:41:01]MH_Cut [16:41:01]Write to MH i2c: D1 01 00 F4 0A 01 D0 [16:41:01]Write i2c OK [16:41:01]MH_I2C_Read... [16:41:01]Read from MH i2c: D1 [16:41:01]MH_I2C_Read... [16:41:01]Read from MH i2c: D1 01 00 [16:41:01]MH_I2C_Read... [16:41:01]Read from MH i2c: D1 01 00 F4 0A 00 CF [16:41:01]Write to MH i2c: 01 00 00 F5 0A FF [16:41:01]Write i2c OK [16:41:01]MH_I2C_Read... [16:41:02]OFD Sender: No OFD packet to send [16:41:02]*** Cut start [16:41:02]*** Partial cut [16:41:02]*** CUTSNS_PIN = 1 [16:41:02]*** CUTSNS_PIN = 0 [16:41:02]*** Brake cut motor [16:41:03]Read from MH i2c: 01 [16:41:03]MH_I2C_Read... [16:41:03]*** Stop cut motor [16:41:03]*** Cut end [16:41:03]Read from MH i2c: 01 07 00 [16:41:03]MH_I2C_Read... [16:41:03]Read from MH i2c: 01 07 00 F5 0A 00 00 00 00 00 FF 0F 14 [16:41:03]process_action close_receipt done [16:41:03]requested_data is exist [16:41:03]produce_requested_data [16:41:03]requested_item fm.sn is exist - process it [16:41:03]wFMCommunicate request_size=4 [16:41:03]MH_SAM_APDU [16:41:03]CAPDU: 80 11 00 00 [16:41:03]Write to MH i2c: E2 08 00 F6 0A 80 11 00 00 00 00 00 00 7A [16:41:03]Write i2c OK [16:41:03]MH_I2C_Read... [16:41:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:41:03]Read from MH i2c: E2 [16:41:03]MH_I2C_Read... [16:41:03]Read from MH i2c: E2 17 00 [16:41:03]MH_I2C_Read... [16:41:03]Read from MH i2c: E2 17 00 F6 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 C5 [16:41:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [16:41:03]wFMCommunicate OK [16:41:03]requested_item fd.num is exist - process it [16:41:03]SAM_PROTO_GetFieldsCounters [16:41:03]wFMCommunicate request_size=4 [16:41:03]MH_SAM_APDU [16:41:03]CAPDU: 80 13 00 00 [16:41:03]Write to MH i2c: E2 08 00 F7 0A 80 13 00 00 00 00 00 00 7D [16:41:03]Write i2c OK [16:41:03]MH_I2C_Read... [16:41:03]Read from MH i2c: E2 [16:41:03]MH_I2C_Read... [16:41:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:41:03]Read from MH i2c: E2 62 00 [16:41:03]MH_I2C_Read... [16:41:03]Read from MH i2c: E2 62 00 F7 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 1D 0C 01 00 0E 04 04 00 45 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 A2 [16:41:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 1D 0C 01 00 0E 04 04 00 45 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:41:03]wFMCommunicate OK [16:41:03]SAM_PROTO_GetFieldsCounters done [16:41:03]requested_item shift.num is exist - process it [16:41:03]requested_item shift.opened is exist - process it [16:41:03]req_shift_opened [16:41:03]FM_GetShiftState [16:41:03]SAM_PROTO_GetShiftState [16:41:03]wFMCommunicate request_size=4 [16:41:03]MH_SAM_APDU [16:41:03]CAPDU: 80 13 01 00 [16:41:03]Write to MH i2c: E2 08 00 F8 0A 80 13 01 00 00 00 00 00 7F [16:41:03]Write i2c OK [16:41:03]MH_I2C_Read... [16:41:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:41:03]Read from MH i2c: E2 [16:41:03]MH_I2C_Read... [16:41:03]Read from MH i2c: E2 0E 00 [16:41:03]MH_I2C_Read... [16:41:03]Read from MH i2c: E2 0E 00 F8 0A 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 1B [16:41:03]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [16:41:03]wFMCommunicate OK [16:41:03]SAM_PROTO_GetShiftState done [16:41:03]FM_GetShiftState done [16:41:03]req_shift_opened done [16:41:03]requested_item shift.open_date is exist - process it [16:41:03]req_shift_open_date [16:41:03]req_shift_open_date done [16:41:03]produce_requested_data done [16:41:03]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68637,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [16:41:03]process_action_free close_receipt [16:41:03]json_value_free [16:41:03]json_value_free done [16:41:03]process_json_proto returns [16:41:03]Send response to host [16:41:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68637,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [16:41:03]free response buf [16:41:03]execute_script done [16:41:03]execute_script returns [16:41:03]free content buf [16:41:03]Sock 7.Close socket [16:41:03]Sock 7.Thread stoped [16:41:07]OFD Sender: No OFD packet to send [16:41:12]OFD Sender: No OFD packet to send [16:41:17]OFD Sender: No OFD packet to send [16:41:22]OFD Sender: No OFD packet to send [16:41:24]accept exits with 9 [16:41:24]New connection [16:41:24]New thread 3067297124 created [16:41:24]Thread 3067153764 joined [16:41:24]Waiting for new connection... [16:41:24] Sock 9.Parse request [16:41:24]Sock 9.Check first char [16:41:24]Sock 9.First char is OK [16:41:24]request: POST /json_proto HTTP/1.0 [16:41:24]Method: POST [16:41:24]URL: /json_proto [16:41:24]Method is POST - this is cgi request [16:41:24]url: /json_proto [16:41:24]query_string will be loaded in cgi processing [16:41:24]execute_cgi json_proto POST (null) [16:41:24]execute_cgi path=json_proto method=POST [16:41:24]POST find Content-Length [16:41:24]Host: 172.17.36.132:8080 [16:41:24]Content-Length: 682 [16:41:24]Content-Type: application/json [16:41:24] [16:41:24]POST finish read [16:41:24]Found Content-Length = 682 [16:41:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706772", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "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" ] } } [16:41:24]execute_script... [16:41: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)706772", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "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" ] } } [16:41:24]POST & json_proto [16:41:24]process_json_proto [16:41:24]json parsed OK: [16:41:24]protocol is kg_v1.0 [16:41:24]action value=close_receipt [16:41:24]process_action close_receipt [16:41:24]cmd_close_receipt [16:41:24]MH_GetDate [16:41:24]Write to MH i2c: F0 00 00 F9 0A F2 [16:41:24]Write i2c OK [16:41:24]MH_I2C_Read... [16:41:24]Read from MH i2c: F0 [16:41:24]MH_I2C_Read... [16:41:24]Read from MH i2c: F0 09 00 [16:41:24]MH_I2C_Read... [16:41:24]Read from MH i2c: F0 09 00 F9 0A 00 B5 43 5F 66 B2 22 B0 64 A0 [16:41:24]GetLastDocTimeStamp 1717519260 [16:41:24]current date 1717519285 [16:41:24]FM_GetShiftState [16:41:24]SAM_PROTO_GetShiftState [16:41:24]wFMCommunicate request_size=4 [16:41:24]MH_SAM_APDU [16:41:24]CAPDU: 80 13 01 00 [16:41:24]Write to MH i2c: E2 08 00 FA 0A 80 13 01 00 00 00 00 00 81 [16:41:24]Write i2c OK [16:41:24]MH_I2C_Read... [16:41:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:41:24]Read from MH i2c: E2 [16:41:24]MH_I2C_Read... [16:41:24]Read from MH i2c: E2 0E 00 [16:41:24]MH_I2C_Read... [16:41:24]Read from MH i2c: E2 0E 00 FA 0A 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 1D [16:41:24]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [16:41:24]wFMCommunicate OK [16:41:24]SAM_PROTO_GetShiftState done [16:41:24]FM_GetShiftState done [16:41:24]opened in 1717460590 [16:41:24]opened+sec_in_day 1717546990 [16:41:24]quantity*price = 50009 [16:41:24]sum+1 = 50010 [16:41:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 136 04.06.2024 16:41 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68638 ФПД: 113577742317614 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T164125&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68638&fm=113577742317614&tin=02508201610067®Number=0000000000098096&sum=50000 [16:41:25]StoreToDocumentArchive [16:41:25]shift 325 fd 68638 [16:41:25]save to /storage/0325/doc_00068638 [16:41:25]save last doc name /storage/0325/doc_00068638 to /storage/kkm_last_doc_name [16:41:25]save OK [16:41:25]Clear old archive folders... [16:41:25]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:41:25]tlvbuf is 00A98F70 [16:41:25]SAM_PROTO_ClearQueue [16:41:25]wFMCommunicate request_size=4 [16:41:25]MH_SAM_APDU [16:41:25]CAPDU: 80 09 00 00 [16:41:25]Write to MH i2c: E2 08 00 07 0B 80 09 00 00 00 00 00 00 84 [16:41:25]Write i2c OK [16:41:25]MH_I2C_Read... [16:41:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:41:26]Read from MH i2c: E2 [16:41:26]MH_I2C_Read... [16:41:26]Read from MH i2c: E2 03 00 [16:41:26]MH_I2C_Read... [16:41:26]Read from MH i2c: E2 03 00 07 0B 00 90 00 86 [16:41:26]RAPDU: 90 00 [16:41:26]wFMCommunicate OK [16:41:26]SAM_PROTO_ClearQueue done [16:41:26]KKMCreateOFDPacket [16:41:26]OFDProtocolAddRootSTLVToBuf [16:41:26]FM_MakeSignedData [16:41:26]FM_MakeSignedData [16:41:26]SAM_PROTO_SignData [16:41:26]wFMCommunicate request_size=4 [16:41:26]MH_SAM_APDU [16:41:26]CAPDU: 80 0D 01 02 [16:41:26]Write to MH i2c: E2 08 00 08 0B 80 0D 01 02 00 00 00 00 8C [16:41:26]Write i2c OK [16:41:26]MH_I2C_Read... [16:41:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:41:26]Read from MH i2c: E2 [16:41:26]MH_I2C_Read... [16:41:26]Read from MH i2c: E2 03 00 [16:41:26]MH_I2C_Read... [16:41:26]Read from MH i2c: E2 03 00 08 0B 00 90 00 87 [16:41:26]RAPDU: 90 00 [16:41:26]wFMCommunicate OK [16:41:26]wFMCommunicate request_size=255 [16:41:26]MH_SAM_APDU [16:41:26]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 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 88 00 00 00 F4 03 04 00 B5 43 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 1E 0C 01 00 35 04 06 00 [16:41:26]Write to MH i2c: E2 02 01 09 0B 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 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 88 00 00 00 F4 03 04 00 B5 43 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 1E 0C 01 00 35 04 06 00 00 00 D2 [16:41:26]Write i2c OK [16:41:26]MH_I2C_Read... [16:41:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:41:26]Read from MH i2c: E2 [16:41:26]MH_I2C_Read... [16:41:26]Read from MH i2c: E2 03 00 [16:41:26]MH_I2C_Read... [16:41:26]Read from MH i2c: E2 03 00 09 0B 00 90 00 88 [16:41:26]RAPDU: 90 00 [16:41:26]wFMCommunicate OK [16:41:26]wFMCommunicate request_size=11 [16:41:26]MH_SAM_APDU [16:41:26]CAPDU: 80 0D 02 02 06 67 4C 60 FC 38 2E [16:41:26]Write to MH i2c: E2 0E 00 0A 0B 80 0D 02 02 06 00 67 4C 60 FC 38 2E 00 00 10 [16:41:26]Write i2c OK [16:41:26]MH_I2C_Read... [16:41:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:41:26]Read from MH i2c: E2 [16:41:26]MH_I2C_Read... [16:41:26]Read from MH i2c: E2 03 00 [16:41:26]MH_I2C_Read... [16:41:26]Read from MH i2c: E2 03 00 0A 0B 00 90 00 89 [16:41:26]RAPDU: 90 00 [16:41:26]wFMCommunicate OK [16:41:26]wFMCommunicate request_size=4 [16:41:26]MH_SAM_APDU [16:41:26]CAPDU: 80 0D 03 02 [16:41:26]Write to MH i2c: E2 08 00 0B 0B 80 0D 03 02 00 00 00 00 91 [16:41:26]Write i2c OK [16:41:26]MH_I2C_Read... [16:41:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:41:26]Read from MH i2c: E2 [16:41:26]MH_I2C_Read... [16:41:26]Read from MH i2c: E2 0B 00 [16:41:26]MH_I2C_Read... [16:41:26]Read from MH i2c: E2 0B 00 0B 0B 00 CB 6A 06 E6 98 C7 FC 0F 90 00 1D [16:41:26]RAPDU: CB 6A 06 E6 98 C7 FC 0F 90 00 [16:41:26]wFMCommunicate OK [16:41:26]SAM_PROTO_SignData done [16:41:26]FM_MakeSignedData done [16:41:26]CreateOFDProtocolMessage [16:41:26]wFMCommunicate request_size=4 [16:41:26]MH_SAM_APDU [16:41:26]CAPDU: 80 11 00 00 [16:41:26]Write to MH i2c: E2 08 00 0C 0B 80 11 00 00 00 00 00 00 91 [16:41:26]Write i2c OK [16:41:26]MH_I2C_Read... [16:41:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:41:26]Read from MH i2c: E2 [16:41:26]MH_I2C_Read... [16:41:26]Read from MH i2c: E2 17 00 [16:41:26]MH_I2C_Read... [16:41:26]Read from MH i2c: E2 17 00 0C 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 DC [16:41:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [16:41:26]wFMCommunicate OK [16:41:26]CreateOFDProtocolMessage done [16:41:26]OFDSenderStorePacket 68638 [16:41:26]StoreOFDPacket docnum=68638 [16:41:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 E2 D2 08 01 3B 2D 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 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 88 00 00 00 F4 03 04 00 B5 43 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 1E 0C 01 00 35 04 06 00 67 4C 60 FC 38 2E CB 6A 06 E6 98 C7 FC 0F [16:41:26]CheckFolder [16:41:26]dirname=/storage/ofd_packets [16:41:26]CheckFolder done [16:41:26]ProducePacketName [16:41:26]name=ofd_packets/00068638 [16:41:26]NVStorageSaveData ofd_packets/00068638 [16:41:26]File name is /storage/ofd_packets/00068638 [16:41:26]Write 302 bytes [16:41:26]NVStorageSaveData done [16:41:26]OFDSenderStorePacket done [16:41:26]KKMCreateOFDPacket done [16:41:26]NVStorageSaveData kkm_last_timestamp [16:41:26]File name is /storage/kkm_last_timestamp [16:41:26]Write 4 bytes [16:41:26]NVStorageSaveData done [16:41:26]ExternCall_PrintAddStr [16:41:26]wPrintStart [16:41:26]Write to MH i2c: 01 00 00 0D 0B 18 [16:41:26]Write i2c OK [16:41:26]MH_I2C_Read... [16:41:26]Read from MH i2c: 01 [16:41:26]MH_I2C_Read... [16:41:26]Read from MH i2c: 01 07 00 [16:41:26]MH_I2C_Read... [16:41:26]Read from MH i2c: 01 07 00 0D 0B 00 00 00 00 00 FF 0F 2D [16:41:26]RasterBufferAndPrint [16:41:26]line Счет N : (1)706772 [16:41:26]line ИНН: 02508201610067 [16:41:26]line Контрольно-Кассовый Чек [16:41:26]line ПРОДАЖА [16:41:26]line ТРК (МРК, ГНК) : 61 [16:41:26]line Товар: 2710194210 [16:41:26]line ДТ(л)-К-4 [16:41:26]line 6.860 * 72.90 [16:41:26]line = 500.09 [16:41:26]line НДС 12% НСП 1% [16:41:26]line > о реализуемом товаре [16:41:26]line ОКРУГЛЕНИЕ: -0.09 [16:41:26]line ИТОГО: 500.00 [16:41:26]line Внесено: 500.00 [16:41:26]line СДАЧА: 0.00 [16:41:26]line НСП 1% : 4.43 [16:41:26]line НДС 12% : 53.11 [16:41:26]line Наличными: 500.00 [16:41:26]line Безнал.: 0.00 [16:41:26]line Место: АЗС № 62 "Партнер Нефть" [16:41:26]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [16:41:26]line СНО: Общий режим [16:41:26]line Чек 136 04.06.2024 16:41 [16:41:26]line Смена: 325 ФФД: 1.0 [16:41:26]line ЗНМ: 0300000181 [16:41:26]line РНМ: 0000000000098096 [16:41:26]line Версия ККМ: 001 [16:41:26]line ФМ: 0000000000965400 [16:41:26]line ФД: 68638 [16:41:26]line ФПД: 113577742317614 [16:41:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T164125&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68638&fm=113577742317614&tin=02508201610067®Number=0000000000098096&sum=50000 [16:41:26]OFD Sender: Processing packet 68638 [packets to send 27, broken 26] [16:41:26]ProducePacketName [16:41:26]name=ofd_packets/00068638 [16:41:26]OFD Sender: To server: pG, [16:41:26]CommunicateWithHost lk.salyk.kg:30040 [16:41:26]ConnectInit lk.salyk.kg [16:41:26]written 0, free lines is 4095 [16:41:26]Connected sock=10 [16:41:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 E2 D2 08 01 3B 2D 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 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 88 00 00 00 F4 03 04 00 B5 43 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 1E 0C 01 00 35 04 06 00 67 4C 60 FC 38 2E CB 6A 06 E6 98 C7 FC 0F [16:41:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 51 5F 47 00 12 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 39 36 35 34 30 30 10 04 04 00 1E 0C 01 00 F4 03 04 00 AD EA 5E 66 B6 04 01 00 00 D6 A0 B8 AB B2 E8 8B 45 [16:41:27]CommunicateWithHost err = 0 [16:41:27]CheckOFDResponse [16:41:27]1017 (14) - 77093643461234 [16:41:27]1041 (16) - 0000000000965400 [16:41:27]1040 (4) - 68638 [16:41:27]1012 (4) - 04.06.2024 10:21 [16:41:27]1206 (1) - 0 [16:41:27]OFD Sender: Remove packet 68638 [16:41:27]ProducePacketName [16:41:27]name=ofd_packets/00068638 [16:41:27]NVStorageDeleteData [16:41:27]Write to MH i2c: 01 00 00 38 0B 43 [16:41:27]Write i2c OK [16:41:27]MH_I2C_Read... [16:41:27]Read from MH i2c: 01 [16:41:27]MH_I2C_Read... [16:41:27]Read from MH i2c: 01 07 00 [16:41:27]MH_I2C_Read... [16:41:27]Read from MH i2c: 01 07 00 38 0B 00 00 00 00 00 CF 0C 25 [16:41:27]RasterBufferAndPrint [16:41:27]line [16:41:27]line [16:41:27]line [16:41:27]line [16:41:27]line [16:41:27]written 0, free lines is 3286 [16:41:27]MH_Cut [16:41:27]Write to MH i2c: D1 01 00 3F 0B 01 1C [16:41:27]Write i2c OK [16:41:27]MH_I2C_Read... [16:41:27]Read from MH i2c: D1 [16:41:27]MH_I2C_Read... [16:41:27]Read from MH i2c: D1 01 00 [16:41:27]MH_I2C_Read... [16:41:27]Read from MH i2c: D1 01 00 3F 0B 00 1B [16:41:27]Write to MH i2c: 01 00 00 40 0B 4B [16:41:27]Write i2c OK [16:41:27]MH_I2C_Read... [16:41:27]OFD Sender: No OFD packet to send [16:41:28]*** Cut start [16:41:28]*** Partial cut [16:41:28]*** CUTSNS_PIN = 1 [16:41:28]*** CUTSNS_PIN = 0 [16:41:28]*** Brake cut motor [16:41:28]Read from MH i2c: 01 [16:41:28]MH_I2C_Read... [16:41:28]*** Stop cut motor [16:41:28]*** Cut end [16:41:28]Read from MH i2c: 01 07 00 [16:41:28]MH_I2C_Read... [16:41:28]Read from MH i2c: 01 07 00 40 0B 00 00 00 00 00 FF 0F 60 [16:41:28]process_action close_receipt done [16:41:28]requested_data is exist [16:41:28]produce_requested_data [16:41:28]requested_item fm.sn is exist - process it [16:41:28]wFMCommunicate request_size=4 [16:41:28]MH_SAM_APDU [16:41:28]CAPDU: 80 11 00 00 [16:41:28]Write to MH i2c: E2 08 00 41 0B 80 11 00 00 00 00 00 00 C6 [16:41:28]Write i2c OK [16:41:28]MH_I2C_Read... [16:41:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:41:28]Read from MH i2c: E2 [16:41:28]MH_I2C_Read... [16:41:28]Read from MH i2c: E2 17 00 [16:41:28]MH_I2C_Read... [16:41:28]Read from MH i2c: E2 17 00 41 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 11 [16:41:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [16:41:28]wFMCommunicate OK [16:41:28]requested_item fd.num is exist - process it [16:41:28]SAM_PROTO_GetFieldsCounters [16:41:28]wFMCommunicate request_size=4 [16:41:28]MH_SAM_APDU [16:41:28]CAPDU: 80 13 00 00 [16:41:28]Write to MH i2c: E2 08 00 42 0B 80 13 00 00 00 00 00 00 C9 [16:41:28]Write i2c OK [16:41:28]MH_I2C_Read... [16:41:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:41:28]Read from MH i2c: E2 [16:41:28]MH_I2C_Read... [16:41:28]Read from MH i2c: E2 62 00 [16:41:28]MH_I2C_Read... [16:41:28]Read from MH i2c: E2 62 00 42 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 1E 0C 01 00 0E 04 04 00 45 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 F2 [16:41:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 1E 0C 01 00 0E 04 04 00 45 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:41:28]wFMCommunicate OK [16:41:28]SAM_PROTO_GetFieldsCounters done [16:41:28]requested_item shift.num is exist - process it [16:41:28]requested_item shift.opened is exist - process it [16:41:28]req_shift_opened [16:41:28]FM_GetShiftState [16:41:28]SAM_PROTO_GetShiftState [16:41:28]wFMCommunicate request_size=4 [16:41:28]MH_SAM_APDU [16:41:28]CAPDU: 80 13 01 00 [16:41:28]Write to MH i2c: E2 08 00 43 0B 80 13 01 00 00 00 00 00 CB [16:41:28]Write i2c OK [16:41:28]MH_I2C_Read... [16:41:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:41:28]Read from MH i2c: E2 [16:41:28]MH_I2C_Read... [16:41:28]Read from MH i2c: E2 0E 00 [16:41:28]MH_I2C_Read... [16:41:28]Read from MH i2c: E2 0E 00 43 0B 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 67 [16:41:28]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [16:41:28]wFMCommunicate OK [16:41:28]SAM_PROTO_GetShiftState done [16:41:28]FM_GetShiftState done [16:41:28]req_shift_opened done [16:41:28]requested_item shift.open_date is exist - process it [16:41:28]req_shift_open_date [16:41:28]req_shift_open_date done [16:41:28]produce_requested_data done [16:41:28]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68638,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [16:41:28]process_action_free close_receipt [16:41:28]json_value_free [16:41:28]json_value_free done [16:41:28]process_json_proto returns [16:41:28]Send response to host [16:41:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68638,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [16:41:28]free response buf [16:41:28]execute_script done [16:41:28]execute_script returns [16:41:28]free content buf [16:41:28]Sock 9.Close socket [16:41:28]Sock 9.Thread stoped [16:41:32]OFD Sender: No OFD packet to send [16:41:37]OFD Sender: No OFD packet to send [16:41:42]OFD Sender: No OFD packet to send [16:41:47]OFD Sender: No OFD packet to send [16:41:52]OFD Sender: No OFD packet to send [16:41:57]OFD Sender: No OFD packet to send [16:42:02]OFD Sender: No OFD packet to send [16:42:07]OFD Sender: No OFD packet to send [16:42:12]OFD Sender: No OFD packet to send [16:42:17]OFD Sender: No OFD packet to send [16:42:22]OFD Sender: No OFD packet to send [16:42:27]OFD Sender: No OFD packet to send [16:42:32]OFD Sender: No OFD packet to send [16:42:37]OFD Sender: No OFD packet to send [16:42:42]OFD Sender: No OFD packet to send [16:42:47]OFD Sender: No OFD packet to send [16:42:52]OFD Sender: No OFD packet to send [16:42:57]OFD Sender: No OFD packet to send [16:43:02]OFD Sender: No OFD packet to send [16:43:03]accept exits with 7 [16:43:03]New connection [16:43:03]New thread 3067153764 created [16:43:03]Thread 3067297124 joined [16:43:03]Waiting for new connection... [16:43:03] Sock 7.Parse request [16:43:03]Sock 7.Check first char [16:43:03]Sock 7.First char is OK [16:43:03]request: POST /json_proto HTTP/1.0 [16:43:03]Method: POST [16:43:03]URL: /json_proto [16:43:03]Method is POST - this is cgi request [16:43:03]url: /json_proto [16:43:03]query_string will be loaded in cgi processing [16:43:03]execute_cgi json_proto POST (null) [16:43:03]execute_cgi path=json_proto method=POST [16:43:03]POST find Content-Length [16:43:03]Host: 172.17.36.132:8080 [16:43:03]Content-Length: 840 [16:43:03]Content-Type: application/json [16:43:03] [16:43:03]POST finish read [16:43:03]Found Content-Length = 840 [16:43:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706773", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 3.740, "sum" : 250.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 250.21 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:43:03]execute_script... [16:43: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)706773", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 3.740, "sum" : 250.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 250.21 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:43:03]POST & json_proto [16:43:03]process_json_proto [16:43:03]json parsed OK: [16:43:03]protocol is kg_v1.0 [16:43:03]action value=close_receipt [16:43:03]process_action close_receipt [16:43:03]cmd_close_receipt [16:43:03]MH_GetDate [16:43:03]Write to MH i2c: F0 00 00 44 0B 3E [16:43:03]Write i2c OK [16:43:03]MH_I2C_Read... [16:43:03]Read from MH i2c: F0 [16:43:03]MH_I2C_Read... [16:43:03]Read from MH i2c: F0 09 00 [16:43:03]MH_I2C_Read... [16:43:03]Read from MH i2c: F0 09 00 44 0B 00 18 44 5F 66 B2 22 B0 64 50 [16:43:03]GetLastDocTimeStamp 1717519285 [16:43:03]current date 1717519384 [16:43:03]FM_GetShiftState [16:43:03]SAM_PROTO_GetShiftState [16:43:03]wFMCommunicate request_size=4 [16:43:03]MH_SAM_APDU [16:43:03]CAPDU: 80 13 01 00 [16:43:03]Write to MH i2c: E2 08 00 45 0B 80 13 01 00 00 00 00 00 CD [16:43:03]Write i2c OK [16:43:03]MH_I2C_Read... [16:43:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:43:03]Read from MH i2c: E2 [16:43:03]MH_I2C_Read... [16:43:03]Read from MH i2c: E2 0E 00 [16:43:03]MH_I2C_Read... [16:43:03]Read from MH i2c: E2 0E 00 45 0B 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 69 [16:43:03]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [16:43:03]wFMCommunicate OK [16:43:03]SAM_PROTO_GetShiftState done [16:43:03]FM_GetShiftState done [16:43:03]opened in 1717460590 [16:43:03]opened+sec_in_day 1717546990 [16:43:03]quantity*price = 25020 [16:43:03]sum+1 = 25022 [16:43:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 250.21 НСП 1% : 2.21 НДС 12% : 26.57 Наличными: 0.00 Безнал.: 250.21 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 137 04.06.2024 16:43 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000965400 ФД: 68639 ФПД: 102064580628397 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T164304&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68639&fm=102064580628397&tin=02508201610067®Number=0000000000098096&sum=25021 [16:43:04]StoreToDocumentArchive [16:43:04]shift 325 fd 68639 [16:43:04]save to /storage/0325/doc_00068639 [16:43:04]save last doc name /storage/0325/doc_00068639 to /storage/kkm_last_doc_name [16:43:04]save OK [16:43:04]Clear old archive folders... [16:43:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:43:04]tlvbuf is 00A63800 [16:43:04]SAM_PROTO_ClearQueue [16:43:04]wFMCommunicate request_size=4 [16:43:04]MH_SAM_APDU [16:43:04]CAPDU: 80 09 00 00 [16:43:04]Write to MH i2c: E2 08 00 52 0B 80 09 00 00 00 00 00 00 CF [16:43:04]Write i2c OK [16:43:04]MH_I2C_Read... [16:43:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:43:04]Read from MH i2c: E2 [16:43:04]MH_I2C_Read... [16:43:04]Read from MH i2c: E2 03 00 [16:43:04]MH_I2C_Read... [16:43:04]Read from MH i2c: E2 03 00 52 0B 00 90 00 D1 [16:43:04]RAPDU: 90 00 [16:43:04]wFMCommunicate OK [16:43:04]SAM_PROTO_ClearQueue done [16:43:04]KKMCreateOFDPacket [16:43:04]OFDProtocolAddRootSTLVToBuf [16:43:04]FM_MakeSignedData [16:43:04]FM_MakeSignedData [16:43:04]SAM_PROTO_SignData [16:43:04]wFMCommunicate request_size=4 [16:43:04]MH_SAM_APDU [16:43:04]CAPDU: 80 0D 01 02 [16:43:04]Write to MH i2c: E2 08 00 53 0B 80 0D 01 02 00 00 00 00 D7 [16:43:04]Write i2c OK [16:43:04]MH_I2C_Read... [16:43:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:43:04]Read from MH i2c: E2 [16:43:04]MH_I2C_Read... [16:43:04]Read from MH i2c: E2 03 00 [16:43:04]MH_I2C_Read... [16:43:04]Read from MH i2c: E2 03 00 53 0B 00 90 00 D2 [16:43:04]RAPDU: 90 00 [16:43:04]wFMCommunicate OK [16:43:04]wFMCommunicate request_size=255 [16:43:04]MH_SAM_APDU [16:43: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 34 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BD 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BD 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 18 44 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 1F 0C 01 00 35 04 06 00 5C [16:43:04]Write to MH i2c: E2 02 01 54 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 34 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BD 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BD 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 18 44 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 1F 0C 01 00 35 04 06 00 5C 00 00 DF [16:43:04]Write i2c OK [16:43:04]MH_I2C_Read... [16:43:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:43:05]Read from MH i2c: E2 [16:43:05]MH_I2C_Read... [16:43:05]Read from MH i2c: E2 03 00 [16:43:05]MH_I2C_Read... [16:43:05]Read from MH i2c: E2 03 00 54 0B 00 90 00 D3 [16:43:05]RAPDU: 90 00 [16:43:05]wFMCommunicate OK [16:43:05]wFMCommunicate request_size=10 [16:43:05]MH_SAM_APDU [16:43:05]CAPDU: 80 0D 02 02 05 D3 C3 12 8F AD [16:43:05]Write to MH i2c: E2 0D 00 55 0B 80 0D 02 02 05 00 D3 C3 12 8F AD 00 00 C8 [16:43:05]Write i2c OK [16:43:05]MH_I2C_Read... [16:43:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:43:05]Read from MH i2c: E2 [16:43:05]MH_I2C_Read... [16:43:05]Read from MH i2c: E2 03 00 [16:43:05]MH_I2C_Read... [16:43:05]Read from MH i2c: E2 03 00 55 0B 00 90 00 D4 [16:43:05]RAPDU: 90 00 [16:43:05]wFMCommunicate OK [16:43:05]wFMCommunicate request_size=4 [16:43:05]MH_SAM_APDU [16:43:05]CAPDU: 80 0D 03 02 [16:43:05]Write to MH i2c: E2 08 00 56 0B 80 0D 03 02 00 00 00 00 DC [16:43:05]Write i2c OK [16:43:05]MH_I2C_Read... [16:43:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:43:05]Read from MH i2c: E2 [16:43:05]MH_I2C_Read... [16:43:05]Read from MH i2c: E2 0B 00 [16:43:05]MH_I2C_Read... [16:43:05]Read from MH i2c: E2 0B 00 56 0B 00 72 FA DB 8D B4 C8 10 CD 90 00 0A [16:43:05]RAPDU: 72 FA DB 8D B4 C8 10 CD 90 00 [16:43:05]wFMCommunicate OK [16:43:05]SAM_PROTO_SignData done [16:43:05]FM_MakeSignedData done [16:43:05]CreateOFDProtocolMessage [16:43:05]wFMCommunicate request_size=4 [16:43:05]MH_SAM_APDU [16:43:05]CAPDU: 80 11 00 00 [16:43:05]Write to MH i2c: E2 08 00 57 0B 80 11 00 00 00 00 00 00 DC [16:43:05]Write i2c OK [16:43:05]MH_I2C_Read... [16:43:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:43:05]Read from MH i2c: E2 [16:43:05]MH_I2C_Read... [16:43:05]Read from MH i2c: E2 17 00 [16:43:05]MH_I2C_Read... [16:43:05]Read from MH i2c: E2 17 00 57 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 27 [16:43:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [16:43:05]wFMCommunicate OK [16:43:05]CreateOFDProtocolMessage done [16:43:05]OFDSenderStorePacket 68639 [16:43:05]StoreOFDPacket docnum=68639 [16:43:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 C1 6A 07 01 51 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 34 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BD 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BD 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 18 44 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 1F 0C 01 00 35 04 06 00 5C D3 C3 12 8F AD 72 FA DB 8D B4 C8 10 CD [16:43:05]CheckFolder [16:43:05]dirname=/storage/ofd_packets [16:43:05]CheckFolder done [16:43:05]ProducePacketName [16:43:05]name=ofd_packets/00068639 [16:43:05]NVStorageSaveData ofd_packets/00068639 [16:43:05]File name is /storage/ofd_packets/00068639 [16:43:05]Write 301 bytes [16:43:05]NVStorageSaveData done [16:43:05]OFDSenderStorePacket done [16:43:05]KKMCreateOFDPacket done [16:43:05]NVStorageSaveData kkm_last_timestamp [16:43:05]File name is /storage/kkm_last_timestamp [16:43:05]Write 4 bytes [16:43:05]NVStorageSaveData done [16:43:05]ExternCall_PrintAddStr [16:43:05]wPrintStart [16:43:05]Write to MH i2c: 01 00 00 58 0B 63 [16:43:05]Write i2c OK [16:43:05]MH_I2C_Read... [16:43:05]Read from MH i2c: 01 [16:43:05]MH_I2C_Read... [16:43:05]Read from MH i2c: 01 07 00 [16:43:05]MH_I2C_Read... [16:43:05]Read from MH i2c: 01 07 00 58 0B 00 00 00 00 00 FF 0F 78 [16:43:05]RasterBufferAndPrint [16:43:05]line Счет N : (1)706773 [16:43:05]line ИНН: 02508201610067 [16:43:05]line Контрольно-Кассовый Чек [16:43:05]line ПРОДАЖА [16:43:05]line ТРК (МРК, ГНК) : 13 [16:43:05]line Товар: 2710124130 [16:43:05]line Аи-92-К-4 [16:43:05]line 3.740 * 66.90 [16:43:05]line = 250.21 [16:43:05]line НДС 12% НСП 1% [16:43:05]line > о реализуемом товаре [16:43:05]line ИТОГО: 250.21 [16:43:05]line НСП 1% : 2.21 [16:43:05]line НДС 12% : 26.57 [16:43:05]line Наличными: 0.00 [16:43:05]line Безнал.: 250.21 [16:43:05]line Место: АЗС № 62 "Партнер Нефть" [16:43:05]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [16:43:05]line СНО: Общий режим [16:43:05]line Чек 137 04.06.2024 16:43 [16:43:05]line Смена: 325 ФФД: 1.0 [16:43:05]line ЗНМ: 0300000181 [16:43:05]line РНМ: 0000000000098096 [16:43:05]line Версия ККМ: 001 [16:43:05]line Платежная система: АКБ Кыргызстан [16:43:05]line ФМ: 0000000000965400 [16:43:05]line ФД: 68639 [16:43:05]line ФПД: 102064580628397 [16:43:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T164304&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68639&fm=102064580628397&tin=02508201610067®Number=0000000000098096&sum=25021 [16:43:05]OFD Sender: Processing packet 68639 [packets to send 27, broken 26] [16:43:05]ProducePacketName [16:43:05]name=ofd_packets/00068639 [16:43:05]OFD Sender: To server: pG, [16:43:05]CommunicateWithHost lk.salyk.kg:30040 [16:43:05]ConnectInit lk.salyk.kg [16:43:05]written 0, free lines is 4095 [16:43:05]Connected sock=10 [16:43:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 C1 6A 07 01 51 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 34 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BD 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BD 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 18 44 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 1F 0C 01 00 35 04 06 00 5C D3 C3 12 8F AD 72 FA DB 8D B4 C8 10 CD [16:43:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 58 03 47 00 C0 59 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 1F 0C 01 00 F4 03 04 00 10 EB 5E 66 B6 04 01 00 00 72 E2 18 CE E2 E3 65 A7 [16:43:05]CommunicateWithHost err = 0 [16:43:05]CheckOFDResponse [16:43:05]1017 (14) - 77093643461234 [16:43:05]1041 (16) - 0000000000965400 [16:43:05]1040 (4) - 68639 [16:43:05]1012 (4) - 04.06.2024 10:23 [16:43:05]1206 (1) - 0 [16:43:05]OFD Sender: Remove packet 68639 [16:43:05]ProducePacketName [16:43:05]name=ofd_packets/00068639 [16:43:05]NVStorageDeleteData [16:43:06]Write to MH i2c: 01 00 00 82 0B 8D [16:43:06]Write i2c OK [16:43:06]MH_I2C_Read... [16:43:06]Read from MH i2c: 01 [16:43:06]MH_I2C_Read... [16:43:06]Read from MH i2c: 01 07 00 [16:43:06]MH_I2C_Read... [16:43:06]Read from MH i2c: 01 07 00 82 0B 00 00 00 00 00 EE 0C 8E [16:43:06]RasterBufferAndPrint [16:43:06]line [16:43:06]line [16:43:06]line [16:43:06]line [16:43:06]line [16:43:06]written 0, free lines is 3316 [16:43:06]MH_Cut [16:43:06]Write to MH i2c: D1 01 00 89 0B 01 66 [16:43:06]Write i2c OK [16:43:06]MH_I2C_Read... [16:43:06]Read from MH i2c: D1 [16:43:06]MH_I2C_Read... [16:43:06]Read from MH i2c: D1 01 00 [16:43:06]MH_I2C_Read... [16:43:06]Read from MH i2c: D1 01 00 89 0B 00 65 [16:43:06]Write to MH i2c: 01 00 00 8A 0B 95 [16:43:06]Write i2c OK [16:43:06]MH_I2C_Read... [16:43:06]OFD Sender: No OFD packet to send [16:43:06]*** Cut start [16:43:06]*** Partial cut [16:43:06]*** CUTSNS_PIN = 1 [16:43:06]*** CUTSNS_PIN = 0 [16:43:07]*** Brake cut motor [16:43:07]Read from MH i2c: 01 [16:43:07]MH_I2C_Read... [16:43:07]*** Stop cut motor [16:43:07]*** Cut end [16:43:07]Read from MH i2c: 01 07 00 [16:43:07]MH_I2C_Read... [16:43:07]Read from MH i2c: 01 07 00 8A 0B 00 00 00 00 00 FF 0F AA [16:43:07]process_action close_receipt done [16:43:07]requested_data is exist [16:43:07]produce_requested_data [16:43:07]requested_item fm.sn is exist - process it [16:43:07]wFMCommunicate request_size=4 [16:43:07]MH_SAM_APDU [16:43:07]CAPDU: 80 11 00 00 [16:43:07]Write to MH i2c: E2 08 00 8B 0B 80 11 00 00 00 00 00 00 10 [16:43:07]Write i2c OK [16:43:07]MH_I2C_Read... [16:43:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:43:07]Read from MH i2c: E2 [16:43:07]MH_I2C_Read... [16:43:07]Read from MH i2c: E2 17 00 [16:43:07]MH_I2C_Read... [16:43:07]Read from MH i2c: E2 17 00 8B 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 5B [16:43:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [16:43:07]wFMCommunicate OK [16:43:07]requested_item fd.num is exist - process it [16:43:07]SAM_PROTO_GetFieldsCounters [16:43:07]wFMCommunicate request_size=4 [16:43:07]MH_SAM_APDU [16:43:07]CAPDU: 80 13 00 00 [16:43:07]Write to MH i2c: E2 08 00 8C 0B 80 13 00 00 00 00 00 00 13 [16:43:07]Write i2c OK [16:43:07]MH_I2C_Read... [16:43:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:43:07]Read from MH i2c: E2 [16:43:07]MH_I2C_Read... [16:43:07]Read from MH i2c: E2 62 00 [16:43:07]MH_I2C_Read... [16:43:07]Read from MH i2c: E2 62 00 8C 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 1F 0C 01 00 0E 04 04 00 45 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 40 [16:43:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 1F 0C 01 00 0E 04 04 00 45 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:43:07]wFMCommunicate OK [16:43:07]SAM_PROTO_GetFieldsCounters done [16:43:07]requested_item shift.num is exist - process it [16:43:07]requested_item shift.opened is exist - process it [16:43:07]req_shift_opened [16:43:07]FM_GetShiftState [16:43:07]SAM_PROTO_GetShiftState [16:43:07]wFMCommunicate request_size=4 [16:43:07]MH_SAM_APDU [16:43:07]CAPDU: 80 13 01 00 [16:43:07]Write to MH i2c: E2 08 00 8D 0B 80 13 01 00 00 00 00 00 15 [16:43:07]Write i2c OK [16:43:07]MH_I2C_Read... [16:43:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:43:07]Read from MH i2c: E2 [16:43:07]MH_I2C_Read... [16:43:07]Read from MH i2c: E2 0E 00 [16:43:07]MH_I2C_Read... [16:43:07]Read from MH i2c: E2 0E 00 8D 0B 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 B1 [16:43:07]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [16:43:07]wFMCommunicate OK [16:43:07]SAM_PROTO_GetShiftState done [16:43:07]FM_GetShiftState done [16:43:07]req_shift_opened done [16:43:07]requested_item shift.open_date is exist - process it [16:43:07]req_shift_open_date [16:43:07]req_shift_open_date done [16:43:07]produce_requested_data done [16:43:07]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68639,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [16:43:07]process_action_free close_receipt [16:43:07]json_value_free [16:43:07]json_value_free done [16:43:07]process_json_proto returns [16:43:07]Send response to host [16:43:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68639,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [16:43:07]free response buf [16:43:07]execute_script done [16:43:07]execute_script returns [16:43:07]free content buf [16:43:07]Sock 7.Close socket [16:43:07]Sock 7.Thread stoped [16:43:11]OFD Sender: No OFD packet to send [16:43:16]OFD Sender: No OFD packet to send [16:43:21]OFD Sender: No OFD packet to send [16:43:26]OFD Sender: No OFD packet to send [16:43:31]OFD Sender: No OFD packet to send [16:43:36]OFD Sender: No OFD packet to send [16:43:41]OFD Sender: No OFD packet to send [16:43:46]OFD Sender: No OFD packet to send [16:43:51]OFD Sender: No OFD packet to send [16:43:56]OFD Sender: No OFD packet to send [16:44:01]OFD Sender: No OFD packet to send [16:44:06]OFD Sender: No OFD packet to send [16:44:11]OFD Sender: No OFD packet to send [16:44:16]OFD Sender: No OFD packet to send [16:44:21]OFD Sender: No OFD packet to send [16:44:26]OFD Sender: No OFD packet to send [16:44:31]OFD Sender: No OFD packet to send [16:44:36]OFD Sender: No OFD packet to send [16:44:41]OFD Sender: No OFD packet to send [16:44:46]OFD Sender: No OFD packet to send [16:44:51]OFD Sender: No OFD packet to send [16:44:56]OFD Sender: No OFD packet to send [16:45:01]OFD Sender: No OFD packet to send [16:45:06]OFD Sender: No OFD packet to send [16:45:11]OFD Sender: No OFD packet to send [16:45:16]OFD Sender: No OFD packet to send [16:45:21]OFD Sender: No OFD packet to send [16:45:26]OFD Sender: No OFD packet to send [16:45:31]OFD Sender: No OFD packet to send [16:45:36]OFD Sender: No OFD packet to send [16:45:41]OFD Sender: No OFD packet to send [16:45:46]OFD Sender: No OFD packet to send [16:45:51]OFD Sender: No OFD packet to send [16:45:56]OFD Sender: No OFD packet to send [16:46:01]OFD Sender: No OFD packet to send [16:46:06]OFD Sender: No OFD packet to send [16:46:11]OFD Sender: No OFD packet to send [16:46:16]accept exits with 9 [16:46:16]New connection [16:46:16]New thread 3067297124 created [16:46:16]Thread 3067153764 joined [16:46:16]Waiting for new connection... [16:46:16] Sock 9.Parse request [16:46:16]Sock 9.Check first char [16:46:16]Sock 9.First char is OK [16:46:16]request: POST /json_proto HTTP/1.0 [16:46:16]Method: POST [16:46:16]URL: /json_proto [16:46:16]Method is POST - this is cgi request [16:46:16]url: /json_proto [16:46:16]query_string will be loaded in cgi processing [16:46:16]execute_cgi json_proto POST (null) [16:46:16]execute_cgi path=json_proto method=POST [16:46:16]POST find Content-Length [16:46:16]Host: 172.17.36.132:8080 [16:46:16]Content-Length: 687 [16:46:16]Content-Type: application/json [16:46:16] [16:46:16]POST finish read [16:46:16]Found Content-Length = 687 [16:46:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706774", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 19.830, "sum" : 1445.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1445.00, "total" : 1445.00, "payments": [ { "type": 0, "sum" : 1445.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:46:16]execute_script... [16:46: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)706774", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 19.830, "sum" : 1445.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1445.00, "total" : 1445.00, "payments": [ { "type": 0, "sum" : 1445.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:46:16]POST & json_proto [16:46:16]process_json_proto [16:46:16]json parsed OK: [16:46:16]protocol is kg_v1.0 [16:46:16]action value=close_receipt [16:46:16]process_action close_receipt [16:46:16]cmd_close_receipt [16:46:16]MH_GetDate [16:46:16]Write to MH i2c: F0 00 00 8E 0B 88 [16:46:16]Write i2c OK [16:46:16]MH_I2C_Read... [16:46:16]Read from MH i2c: F0 [16:46:16]MH_I2C_Read... [16:46:16]Read from MH i2c: F0 09 00 [16:46:16]MH_I2C_Read... [16:46:16]Read from MH i2c: F0 09 00 8E 0B 00 D9 44 5F 66 B2 22 B0 64 5B [16:46:16]GetLastDocTimeStamp 1717519384 [16:46:16]current date 1717519577 [16:46:16]FM_GetShiftState [16:46:16]SAM_PROTO_GetShiftState [16:46:16]wFMCommunicate request_size=4 [16:46:16]MH_SAM_APDU [16:46:16]CAPDU: 80 13 01 00 [16:46:16]Write to MH i2c: E2 08 00 8F 0B 80 13 01 00 00 00 00 00 17 [16:46:16]Write i2c OK [16:46:16]MH_I2C_Read... [16:46:16]OFD Sender: No OFD packet to send [16:46:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:46:16]Read from MH i2c: E2 [16:46:16]MH_I2C_Read... [16:46:16]Read from MH i2c: E2 0E 00 [16:46:16]MH_I2C_Read... [16:46:16]Read from MH i2c: E2 0E 00 8F 0B 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 B3 [16:46:16]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [16:46:16]wFMCommunicate OK [16:46:16]SAM_PROTO_GetShiftState done [16:46:16]FM_GetShiftState done [16:46:16]opened in 1717460590 [16:46:16]opened+sec_in_day 1717546990 [16:46:16]quantity*price = 144560 [16:46:16]sum+1 = 144562 [16:46:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 1445.00 Внесено: 1445.00 СДАЧА: 0.00 НСП 1% : 12.79 НДС 12% : 153.52 Наличными: 1445.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 138 04.06.2024 16:46 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68640 ФПД: 239500524335262 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T164617&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68640&fm=239500524335262&tin=02508201610067®Number=0000000000098096&sum=144500 [16:46:17]StoreToDocumentArchive [16:46:17]shift 325 fd 68640 [16:46:17]save to /storage/0325/doc_00068640 [16:46:17]save last doc name /storage/0325/doc_00068640 to /storage/kkm_last_doc_name [16:46:17]save OK [16:46:17]Clear old archive folders... [16:46:17]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:46:17]tlvbuf is 00A636F0 [16:46:17]SAM_PROTO_ClearQueue [16:46:17]wFMCommunicate request_size=4 [16:46:17]MH_SAM_APDU [16:46:17]CAPDU: 80 09 00 00 [16:46:17]Write to MH i2c: E2 08 00 9C 0B 80 09 00 00 00 00 00 00 19 [16:46:17]Write i2c OK [16:46:17]MH_I2C_Read... [16:46:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:46:17]Read from MH i2c: E2 [16:46:17]MH_I2C_Read... [16:46:17]Read from MH i2c: E2 03 00 [16:46:17]MH_I2C_Read... [16:46:17]Read from MH i2c: E2 03 00 9C 0B 00 90 00 1B [16:46:17]RAPDU: 90 00 [16:46:17]wFMCommunicate OK [16:46:17]SAM_PROTO_ClearQueue done [16:46:17]KKMCreateOFDPacket [16:46:17]OFDProtocolAddRootSTLVToBuf [16:46:17]FM_MakeSignedData [16:46:17]FM_MakeSignedData [16:46:17]SAM_PROTO_SignData [16:46:17]wFMCommunicate request_size=4 [16:46:17]MH_SAM_APDU [16:46:17]CAPDU: 80 0D 01 02 [16:46:17]Write to MH i2c: E2 08 00 9D 0B 80 0D 01 02 00 00 00 00 21 [16:46:17]Write i2c OK [16:46:17]MH_I2C_Read... [16:46:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:46:17]Read from MH i2c: E2 [16:46:17]MH_I2C_Read... [16:46:17]Read from MH i2c: E2 03 00 [16:46:17]MH_I2C_Read... [16:46:17]Read from MH i2c: E2 03 00 9D 0B 00 90 00 1C [16:46:17]RAPDU: 90 00 [16:46:17]wFMCommunicate OK [16:46:17]wFMCommunicate request_size=255 [16:46:17]MH_SAM_APDU [16:46:17]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 76 4D 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B1 34 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 34 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 3B 00 00 00 00 07 04 06 00 74 34 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 D9 44 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 20 0C 01 00 35 04 06 00 [16:46:17]Write to MH i2c: E2 02 01 9E 0B 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 76 4D 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B1 34 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 34 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 3B 00 00 00 00 07 04 06 00 74 34 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 D9 44 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 20 0C 01 00 35 04 06 00 00 00 0D [16:46:17]Write i2c OK [16:46:17]MH_I2C_Read... [16:46:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:46:18]Read from MH i2c: E2 [16:46:18]MH_I2C_Read... [16:46:18]Read from MH i2c: E2 03 00 [16:46:18]MH_I2C_Read... [16:46:18]Read from MH i2c: E2 03 00 9E 0B 00 90 00 1D [16:46:18]RAPDU: 90 00 [16:46:18]wFMCommunicate OK [16:46:18]wFMCommunicate request_size=11 [16:46:18]MH_SAM_APDU [16:46:18]CAPDU: 80 0D 02 02 06 D9 D3 0F AD 30 9E [16:46:18]Write to MH i2c: E2 0E 00 9F 0B 80 0D 02 02 06 00 D9 D3 0F AD 30 9E 00 00 66 [16:46:18]Write i2c OK [16:46:18]MH_I2C_Read... [16:46:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:46:18]Read from MH i2c: E2 [16:46:18]MH_I2C_Read... [16:46:18]Read from MH i2c: E2 03 00 [16:46:18]MH_I2C_Read... [16:46:18]Read from MH i2c: E2 03 00 9F 0B 00 90 00 1E [16:46:18]RAPDU: 90 00 [16:46:18]wFMCommunicate OK [16:46:18]wFMCommunicate request_size=4 [16:46:18]MH_SAM_APDU [16:46:18]CAPDU: 80 0D 03 02 [16:46:18]Write to MH i2c: E2 08 00 A0 0B 80 0D 03 02 00 00 00 00 26 [16:46:18]Write i2c OK [16:46:18]MH_I2C_Read... [16:46:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:46:18]Read from MH i2c: E2 [16:46:18]MH_I2C_Read... [16:46:18]Read from MH i2c: E2 0B 00 [16:46:18]MH_I2C_Read... [16:46:18]Read from MH i2c: E2 0B 00 A0 0B 00 82 84 12 2B E5 1F 3C 09 90 00 B3 [16:46:18]RAPDU: 82 84 12 2B E5 1F 3C 09 90 00 [16:46:18]wFMCommunicate OK [16:46:18]SAM_PROTO_SignData done [16:46:18]FM_MakeSignedData done [16:46:18]CreateOFDProtocolMessage [16:46:18]wFMCommunicate request_size=4 [16:46:18]MH_SAM_APDU [16:46:18]CAPDU: 80 11 00 00 [16:46:18]Write to MH i2c: E2 08 00 A1 0B 80 11 00 00 00 00 00 00 26 [16:46:18]Write i2c OK [16:46:18]MH_I2C_Read... [16:46:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:46:18]Read from MH i2c: E2 [16:46:18]MH_I2C_Read... [16:46:18]Read from MH i2c: E2 17 00 [16:46:18]MH_I2C_Read... [16:46:18]Read from MH i2c: E2 17 00 A1 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 71 [16:46:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [16:46:18]wFMCommunicate OK [16:46:18]CreateOFDProtocolMessage done [16:46:18]OFDSenderStorePacket 68640 [16:46:18]StoreOFDPacket docnum=68640 [16:46:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 BB E1 08 01 0A B4 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 76 4D 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B1 34 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 34 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 3B 00 00 00 00 07 04 06 00 74 34 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 D9 44 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 20 0C 01 00 35 04 06 00 D9 D3 0F AD 30 9E 82 84 12 2B E5 1F 3C 09 [16:46:18]CheckFolder [16:46:18]dirname=/storage/ofd_packets [16:46:18]CheckFolder done [16:46:18]ProducePacketName [16:46:18]name=ofd_packets/00068640 [16:46:18]NVStorageSaveData ofd_packets/00068640 [16:46:18]File name is /storage/ofd_packets/00068640 [16:46:18]Write 302 bytes [16:46:18]NVStorageSaveData done [16:46:18]OFDSenderStorePacket done [16:46:18]KKMCreateOFDPacket done [16:46:18]NVStorageSaveData kkm_last_timestamp [16:46:18]File name is /storage/kkm_last_timestamp [16:46:18]Write 4 bytes [16:46:18]NVStorageSaveData done [16:46:18]ExternCall_PrintAddStr [16:46:18]wPrintStart [16:46:18]Write to MH i2c: 01 00 00 A2 0B AD [16:46:18]Write i2c OK [16:46:18]MH_I2C_Read... [16:46:18]Read from MH i2c: 01 [16:46:18]MH_I2C_Read... [16:46:18]Read from MH i2c: 01 07 00 [16:46:18]MH_I2C_Read... [16:46:18]Read from MH i2c: 01 07 00 A2 0B 00 00 00 00 00 FF 0F C2 [16:46:18]RasterBufferAndPrint [16:46:18]line Счет N : (1)706774 [16:46:18]line ИНН: 02508201610067 [16:46:18]line Контрольно-Кассовый Чек [16:46:18]line ПРОДАЖА [16:46:18]line ТРК (МРК, ГНК) : 21 [16:46:18]line Товар: 2710194210 [16:46:18]line ДТ(л)-К-4 [16:46:18]line 19.830 * 72.90 [16:46:18]line = 1445.61 [16:46:18]line НДС 12% НСП 1% [16:46:18]line > о реализуемом товаре [16:46:18]line ОКРУГЛЕНИЕ: -0.61 [16:46:18]line ИТОГО: 1445.00 [16:46:18]line Внесено: 1445.00 [16:46:18]line СДАЧА: 0.00 [16:46:18]line НСП 1% : 12.79 [16:46:18]line НДС 12% : 153.52 [16:46:18]line Наличными: 1445.00 [16:46:18]line Безнал.: 0.00 [16:46:18]line Место: АЗС № 62 "Партнер Нефть" [16:46:18]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [16:46:18]line СНО: Общий режим [16:46:18]line Чек 138 04.06.2024 16:46 [16:46:18]line Смена: 325 ФФД: 1.0 [16:46:18]line ЗНМ: 0300000181 [16:46:18]line РНМ: 0000000000098096 [16:46:18]line Версия ККМ: 001 [16:46:18]line ФМ: 0000000000965400 [16:46:18]line ФД: 68640 [16:46:18]line ФПД: 239500524335262 [16:46:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T164617&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68640&fm=239500524335262&tin=02508201610067®Number=0000000000098096&sum=144500 [16:46:18]OFD Sender: Processing packet 68640 [packets to send 27, broken 26] [16:46:18]ProducePacketName [16:46:18]name=ofd_packets/00068640 [16:46:18]OFD Sender: To server: pG, [16:46:18]CommunicateWithHost lk.salyk.kg:30040 [16:46:18]ConnectInit lk.salyk.kg [16:46:18]written 0, free lines is 4095 [16:46:18]Connected sock=10 [16:46:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 BB E1 08 01 0A B4 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 76 4D 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B1 34 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 34 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 3B 00 00 00 00 07 04 06 00 74 34 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 D9 44 5F 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 20 0C 01 00 35 04 06 00 D9 D3 0F AD 30 9E 82 84 12 2B E5 1F 3C 09 [16:46:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 41 01 47 00 CE 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 39 36 35 34 30 30 10 04 04 00 20 0C 01 00 F4 03 04 00 D1 EB 5E 66 B6 04 01 00 00 B7 0A 7C 18 2B 1F AA F4 [16:46:18]CommunicateWithHost err = 0 [16:46:18]CheckOFDResponse [16:46:18]1017 (14) - 77093643461234 [16:46:18]1041 (16) - 0000000000965400 [16:46:18]1040 (4) - 68640 [16:46:18]1012 (4) - 04.06.2024 10:26 [16:46:18]1206 (1) - 0 [16:46:18]OFD Sender: Remove packet 68640 [16:46:18]ProducePacketName [16:46:18]name=ofd_packets/00068640 [16:46:18]NVStorageDeleteData [16:46:19]Write to MH i2c: 01 00 00 CD 0B D8 [16:46:19]Write i2c OK [16:46:19]MH_I2C_Read... [16:46:19]Read from MH i2c: 01 [16:46:19]MH_I2C_Read... [16:46:19]Read from MH i2c: 01 07 00 [16:46:19]MH_I2C_Read... [16:46:19]Read from MH i2c: 01 07 00 CD 0B 00 00 00 00 00 D9 0C C4 [16:46:19]RasterBufferAndPrint [16:46:19]line [16:46:19]line [16:46:19]line [16:46:19]line [16:46:19]line [16:46:19]written 0, free lines is 3296 [16:46:19]MH_Cut [16:46:19]Write to MH i2c: D1 01 00 D4 0B 01 B1 [16:46:19]Write i2c OK [16:46:19]MH_I2C_Read... [16:46:19]Read from MH i2c: D1 [16:46:19]MH_I2C_Read... [16:46:19]Read from MH i2c: D1 01 00 [16:46:19]MH_I2C_Read... [16:46:19]Read from MH i2c: D1 01 00 D4 0B 00 B0 [16:46:19]Write to MH i2c: 01 00 00 D5 0B E0 [16:46:19]Write i2c OK [16:46:19]MH_I2C_Read... [16:46:19]OFD Sender: No OFD packet to send [16:46:19]*** Cut start [16:46:19]*** Partial cut [16:46:19]*** CUTSNS_PIN = 1 [16:46:19]*** CUTSNS_PIN = 0 [16:46:20]*** Brake cut motor [16:46:20]Read from MH i2c: 01 [16:46:20]MH_I2C_Read... [16:46:20]*** Stop cut motor [16:46:20]*** Cut end [16:46:20]Read from MH i2c: 01 07 00 [16:46:20]MH_I2C_Read... [16:46:20]Read from MH i2c: 01 07 00 D5 0B 00 00 00 00 00 FF 0F F5 [16:46:20]process_action close_receipt done [16:46:20]requested_data is exist [16:46:20]produce_requested_data [16:46:20]requested_item fm.sn is exist - process it [16:46:20]wFMCommunicate request_size=4 [16:46:20]MH_SAM_APDU [16:46:20]CAPDU: 80 11 00 00 [16:46:20]Write to MH i2c: E2 08 00 D6 0B 80 11 00 00 00 00 00 00 5B [16:46:20]Write i2c OK [16:46:20]MH_I2C_Read... [16:46:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:46:20]Read from MH i2c: E2 [16:46:20]MH_I2C_Read... [16:46:20]Read from MH i2c: E2 17 00 [16:46:20]MH_I2C_Read... [16:46:20]Read from MH i2c: E2 17 00 D6 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 A6 [16:46:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [16:46:20]wFMCommunicate OK [16:46:20]requested_item fd.num is exist - process it [16:46:20]SAM_PROTO_GetFieldsCounters [16:46:20]wFMCommunicate request_size=4 [16:46:20]MH_SAM_APDU [16:46:20]CAPDU: 80 13 00 00 [16:46:20]Write to MH i2c: E2 08 00 D7 0B 80 13 00 00 00 00 00 00 5E [16:46:20]Write i2c OK [16:46:20]MH_I2C_Read... [16:46:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:46:20]Read from MH i2c: E2 [16:46:20]MH_I2C_Read... [16:46:20]Read from MH i2c: E2 62 00 [16:46:20]MH_I2C_Read... [16:46:20]Read from MH i2c: E2 62 00 D7 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 20 0C 01 00 0E 04 04 00 45 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 8F [16:46:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 20 0C 01 00 0E 04 04 00 45 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:46:20]wFMCommunicate OK [16:46:20]SAM_PROTO_GetFieldsCounters done [16:46:20]requested_item shift.num is exist - process it [16:46:20]requested_item shift.opened is exist - process it [16:46:20]req_shift_opened [16:46:20]FM_GetShiftState [16:46:20]SAM_PROTO_GetShiftState [16:46:20]wFMCommunicate request_size=4 [16:46:20]MH_SAM_APDU [16:46:20]CAPDU: 80 13 01 00 [16:46:20]Write to MH i2c: E2 08 00 D8 0B 80 13 01 00 00 00 00 00 60 [16:46:20]Write i2c OK [16:46:20]MH_I2C_Read... [16:46:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:46:20]Read from MH i2c: E2 [16:46:20]MH_I2C_Read... [16:46:20]Read from MH i2c: E2 0E 00 [16:46:20]MH_I2C_Read... [16:46:20]Read from MH i2c: E2 0E 00 D8 0B 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 FC [16:46:20]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [16:46:20]wFMCommunicate OK [16:46:20]SAM_PROTO_GetShiftState done [16:46:20]FM_GetShiftState done [16:46:20]req_shift_opened done [16:46:20]requested_item shift.open_date is exist - process it [16:46:20]req_shift_open_date [16:46:20]req_shift_open_date done [16:46:20]produce_requested_data done [16:46:20]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68640,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [16:46:20]process_action_free close_receipt [16:46:20]json_value_free [16:46:20]json_value_free done [16:46:20]process_json_proto returns [16:46:20]Send response to host [16:46:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68640,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [16:46:20]free response buf [16:46:20]execute_script done [16:46:20]execute_script returns [16:46:20]free content buf [16:46:20]Sock 9.Close socket [16:46:20]Sock 9.Thread stoped [16:46:24]OFD Sender: No OFD packet to send [16:46:29]OFD Sender: No OFD packet to send [16:46:34]OFD Sender: No OFD packet to send [16:46:39]OFD Sender: No OFD packet to send [16:46:44]OFD Sender: No OFD packet to send [16:46:49]OFD Sender: No OFD packet to send [16:46:54]OFD Sender: No OFD packet to send [16:46:59]OFD Sender: No OFD packet to send [16:47:04]OFD Sender: No OFD packet to send [16:47:09]OFD Sender: No OFD packet to send [16:47:14]OFD Sender: No OFD packet to send [16:47:19]OFD Sender: No OFD packet to send [16:47:24]OFD Sender: No OFD packet to send [16:47:29]OFD Sender: No OFD packet to send [16:47:34]OFD Sender: No OFD packet to send [16:47:39]OFD Sender: No OFD packet to send [16:47:44]OFD Sender: No OFD packet to send [16:47:45]accept exits with 7 [16:47:45]New connection [16:47:45]New thread 3067153764 created [16:47:45]Thread 3067297124 joined [16:47:45]Waiting for new connection... [16:47:45] Sock 7.Parse request [16:47:45]Sock 7.Check first char [16:47:45]Sock 7.First char is OK [16:47:45]request: POST /json_proto HTTP/1.0 [16:47:45]Method: POST [16:47:45]URL: /json_proto [16:47:45]Method is POST - this is cgi request [16:47:45]url: /json_proto [16:47:45]query_string will be loaded in cgi processing [16:47:45]execute_cgi json_proto POST (null) [16:47:45]execute_cgi path=json_proto method=POST [16:47:45]POST find Content-Length [16:47:45]Host: 172.17.36.132:8080 [16:47:45]Content-Length: 215 [16:47:45]Content-Type: application/json [16:47:45] [16:47:45]POST finish read [16:47:45]Found Content-Length = 215 [16:47:45]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:47:45]execute_script... [16:47:45]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:47:45]POST & json_proto [16:47:45]process_json_proto [16:47:45]json parsed OK: [16:47:45]protocol is kg_v1.0 [16:47:45]action value=get_value [16:47:45]process_action get_value [16:47:45]cmd_get_value [16:47:45]process_action get_value done [16:47:45]requested_data is exist [16:47:45]produce_requested_data [16:47:45]requested_item kkm.sn is exist - process it [16:47:45]requested_item kkm.ver is exist - process it [16:47:45]requested_item fm.sn is exist - process it [16:47:45]wFMCommunicate request_size=4 [16:47:45]MH_SAM_APDU [16:47:45]CAPDU: 80 11 00 00 [16:47:45]Write to MH i2c: E2 08 00 D9 0B 80 11 00 00 00 00 00 00 5E [16:47:45]Write i2c OK [16:47:45]MH_I2C_Read... [16:47:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:47:45]Read from MH i2c: E2 [16:47:45]MH_I2C_Read... [16:47:45]Read from MH i2c: E2 17 00 [16:47:45]MH_I2C_Read... [16:47:45]Read from MH i2c: E2 17 00 D9 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 A9 [16:47:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [16:47:45]wFMCommunicate OK [16:47:45]requested_item fd.num is exist - process it [16:47:45]SAM_PROTO_GetFieldsCounters [16:47:45]wFMCommunicate request_size=4 [16:47:45]MH_SAM_APDU [16:47:45]CAPDU: 80 13 00 00 [16:47:45]Write to MH i2c: E2 08 00 DA 0B 80 13 00 00 00 00 00 00 61 [16:47:45]Write i2c OK [16:47:45]MH_I2C_Read... [16:47:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:47:45]Read from MH i2c: E2 [16:47:45]MH_I2C_Read... [16:47:45]Read from MH i2c: E2 62 00 [16:47:45]MH_I2C_Read... [16:47:45]Read from MH i2c: E2 62 00 DA 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 20 0C 01 00 0E 04 04 00 45 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 92 [16:47:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 20 0C 01 00 0E 04 04 00 45 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:47:45]wFMCommunicate OK [16:47:45]SAM_PROTO_GetFieldsCounters done [16:47:45]requested_item shift.num is exist - process it [16:47:45]requested_item shift.opened is exist - process it [16:47:45]req_shift_opened [16:47:45]FM_GetShiftState [16:47:45]SAM_PROTO_GetShiftState [16:47:45]wFMCommunicate request_size=4 [16:47:45]MH_SAM_APDU [16:47:45]CAPDU: 80 13 01 00 [16:47:45]Write to MH i2c: E2 08 00 DB 0B 80 13 01 00 00 00 00 00 63 [16:47:45]Write i2c OK [16:47:45]MH_I2C_Read... [16:47:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:47:45]Read from MH i2c: E2 [16:47:45]MH_I2C_Read... [16:47:45]Read from MH i2c: E2 0E 00 [16:47:45]MH_I2C_Read... [16:47:45]Read from MH i2c: E2 0E 00 DB 0B 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 FF [16:47:45]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [16:47:45]wFMCommunicate OK [16:47:45]SAM_PROTO_GetShiftState done [16:47:45]FM_GetShiftState done [16:47:45]req_shift_opened done [16:47:45]requested_item shift.open_date is exist - process it [16:47:45]req_shift_open_date [16:47:45]req_shift_open_date done [16:47:45]produce_requested_data done [16:47:45]produce_requested_data return {"kkm.sn":"0300000181","kkm.ver":"001","fm.sn":"0000000000965400","fd.num":68640,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [16:47:45]process_action_free get_value [16:47:45]json_value_free [16:47:45]json_value_free done [16:47:45]process_json_proto returns [16:47:45]Send response to host [16:47:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000181","kkm.ver":"001","fm.sn":"0000000000965400","fd.num":68640,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [16:47:45]free response buf [16:47:45]execute_script done [16:47:45]execute_script returns [16:47:45]free content buf [16:47:45]Sock 7.Close socket [16:47:45]Sock 7.Thread stoped [16:47:45]accept exits with 10 [16:47:45]New connection [16:47:45]New thread 3067297124 created [16:47:45]Thread 3067153764 joined [16:47:45]Waiting for new connection... [16:47:45] Sock 10.Parse request [16:47:45]Sock 10.Check first char [16:47:45]Sock 10.First char is OK [16:47:45]request: POST /json_proto HTTP/1.0 [16:47:45]Method: POST [16:47:45]URL: /json_proto [16:47:45]Method is POST - this is cgi request [16:47:45]url: /json_proto [16:47:45]query_string will be loaded in cgi processing [16:47:45]execute_cgi json_proto POST (null) [16:47:45]execute_cgi path=json_proto method=POST [16:47:45]POST find Content-Length [16:47:45]Host: 172.17.36.132:8080 [16:47:45]Content-Length: 331 [16:47:45]Content-Type: application/json [16:47:45] [16:47:45]POST finish read [16:47:45]Found Content-Length = 331 [16:47: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:47:45]execute_script... [16:47: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:47:45]POST & json_proto [16:47:45]process_json_proto [16:47:45]json parsed OK: [16:47:45]protocol is kg_v1.0 [16:47:45]action value=get_value [16:47:45]process_action get_value [16:47:45]cmd_get_value [16:47:45]process_action get_value done [16:47:45]requested_data is exist [16:47:45]produce_requested_data [16:47:45]requested_item fm.sale.total is exist - process it [16:47:45]SAM_PROTO_GetFMData [16:47:45]wFMCommunicate request_size=4 [16:47:45]MH_SAM_APDU [16:47:45]CAPDU: 80 13 03 00 [16:47:45]Write to MH i2c: E2 08 00 DC 0B 80 13 03 00 00 00 00 00 66 [16:47:45]Write i2c OK [16:47:45]MH_I2C_Read... [16:47:46]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [16:47:46]Read from MH i2c: E2 [16:47:46]MH_I2C_Read... [16:47:46]Read from MH i2c: E2 FD 00 [16:47:46]MH_I2C_Read... [16:47:46]Read from MH i2c: E2 FD 00 DC 0B 00 C5 04 85 04 C1 04 6E 04 04 00 96 09 01 00 69 04 A3 00 6F 04 04 00 7C 04 01 00 B1 04 05 00 4A 7D A4 3A 01 70 04 05 00 7C 3B D5 0D 01 72 04 04 00 CE 41 CF 2C 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 F4 6F 6C 21 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 10 F0 C8 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 9C 00 6F 04 04 00 1A 05 00 00 B1 04 04 00 8C A7 F4 0E 70 04 04 00 8C A7 F4 0E 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 93 A3 96 01 EF 03 09 90 00 05 [16:47:46]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 96 09 01 00 69 04 A3 00 6F 04 04 00 7C 04 01 00 B1 04 05 00 4A 7D A4 3A 01 70 04 05 00 7C 3B D5 0D 01 72 04 04 00 CE 41 CF 2C 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 F4 6F 6C 21 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 10 F0 C8 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 9C 00 6F 04 04 00 1A 05 00 00 B1 04 04 00 8C A7 F4 0E 70 04 04 00 8C A7 F4 0E 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 93 A3 96 01 EF 03 09 90 00 [16:47:46]wFMCommunicate OK [16:47:46]wFMCommunicate request_size=4 [16:47:46]MH_SAM_APDU [16:47:46]CAPDU: 80 17 00 00 [16:47:46]Write to MH i2c: E2 08 00 DD 0B 80 17 00 00 00 00 00 00 68 [16:47:46]Write i2c OK [16:47:46]MH_I2C_Read... [16:47:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:47:46]Read from MH i2c: E2 [16:47:46]MH_I2C_Read... [16:47:46]Read from MH i2c: E2 FD 00 [16:47:46]MH_I2C_Read... [16:47:46]Read from MH i2c: E2 FD 00 DD 0B 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 85 E2 21 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 A6 [16:47:46]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 85 E2 21 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [16:47:46]wFMCommunicate OK [16:47:46]wFMCommunicate request_size=4 [16:47:46]MH_SAM_APDU [16:47:46]CAPDU: 80 17 00 00 [16:47:46]Write to MH i2c: E2 08 00 DE 0B 80 17 00 00 00 00 00 00 69 [16:47:46]Write i2c OK [16:47:46]MH_I2C_Read... [16:47:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:47:46]Read from MH i2c: E2 [16:47:46]MH_I2C_Read... [16:47:46]Read from MH i2c: E2 FD 00 [16:47:46]MH_I2C_Read... [16:47:46]Read from MH i2c: E2 FD 00 DE 0B 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 7B [16:47:46]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [16:47:46]wFMCommunicate OK [16:47:46]wFMCommunicate request_size=4 [16:47:46]MH_SAM_APDU [16:47:46]CAPDU: 80 17 00 00 [16:47:46]Write to MH i2c: E2 08 00 DF 0B 80 17 00 00 00 00 00 00 6A [16:47:46]Write i2c OK [16:47:46]MH_I2C_Read... [16:47:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:47:47]Read from MH i2c: E2 [16:47:47]MH_I2C_Read... [16:47:47]Read from MH i2c: E2 FD 00 [16:47:47]MH_I2C_Read... [16:47:47]Read from MH i2c: E2 FD 00 DF 0B 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 F6 [16:47:47]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [16:47:47]wFMCommunicate OK [16:47:47]wFMCommunicate request_size=4 [16:47:47]MH_SAM_APDU [16:47:47]CAPDU: 80 17 00 00 [16:47:47]Write to MH i2c: E2 08 00 E0 0B 80 17 00 00 00 00 00 00 6B [16:47:47]Write i2c OK [16:47:47]MH_I2C_Read... [16:47:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [16:47:47]Read from MH i2c: E2 [16:47:47]MH_I2C_Read... [16:47:47]Read from MH i2c: E2 E2 00 [16:47:47]MH_I2C_Read... [16:47:47]Read from MH i2c: E2 E2 00 E0 0B 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 49 [16:47:47]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [16:47:47]wFMCommunicate OK [16:47:47]SAM_PROTO_GetFMData done [16:47:47]requested_item fm.sale_refund.total is exist - process it [16:47:47]requested_item fm.buy.total is exist - process it [16:47:47]requested_item shift.sale.total is exist - process it [16:47:47]SAM_PROTO_GetShiftData [16:47:47]wFMCommunicate request_size=4 [16:47:47]MH_SAM_APDU [16:47:47]CAPDU: 80 13 02 00 [16:47:47]Write to MH i2c: E2 08 00 E1 0B 80 13 02 00 00 00 00 00 6A [16:47:47]Write i2c OK [16:47:47]MH_I2C_Read... [16:47:47]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [16:47:47]Read from MH i2c: E2 [16:47:47]MH_I2C_Read... [16:47:47]Read from MH i2c: E2 FD 00 [16:47:47]MH_I2C_Read... [16:47:47]Read from MH i2c: E2 FD 00 E1 0B 00 BA 04 AA 04 B6 04 6E 04 04 00 8A 00 00 00 69 04 9C 00 6F 04 04 00 87 00 00 00 B1 04 03 00 59 86 BF 70 04 03 00 14 5D 98 72 04 03 00 45 29 27 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 0A 58 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 01 B2 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 98 00 6F 04 04 00 03 00 00 00 B1 04 03 00 98 EC 0C 70 04 03 00 98 EC 0C 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 6B 5F 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 DB [16:47:47]RAPDU: BA 04 AA 04 B6 04 6E 04 04 00 8A 00 00 00 69 04 9C 00 6F 04 04 00 87 00 00 00 B1 04 03 00 59 86 BF 70 04 03 00 14 5D 98 72 04 03 00 45 29 27 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 0A 58 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 01 B2 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 98 00 6F 04 04 00 03 00 00 00 B1 04 03 00 98 EC 0C 70 04 03 00 98 EC 0C 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 6B 5F 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [16:47:47]wFMCommunicate OK [16:47:47]wFMCommunicate request_size=4 [16:47:47]MH_SAM_APDU [16:47:47]CAPDU: 80 17 00 00 [16:47:47]Write to MH i2c: E2 08 00 E2 0B 80 17 00 00 00 00 00 00 6D [16:47:47]Write i2c OK [16:47:47]MH_I2C_Read... [16:47:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:47:48]Read from MH i2c: E2 [16:47:48]MH_I2C_Read... [16:47:48]Read from MH i2c: E2 FD 00 [16:47:48]MH_I2C_Read... [16:47:48]Read from MH i2c: E2 FD 00 E2 0B 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 49 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 90 00 7D [16:47:48]RAPDU: EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 49 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 90 00 [16:47:48]wFMCommunicate OK [16:47:48]wFMCommunicate request_size=4 [16:47:48]MH_SAM_APDU [16:47:48]CAPDU: 80 17 00 00 [16:47:48]Write to MH i2c: E2 08 00 E3 0B 80 17 00 00 00 00 00 00 6E [16:47:48]Write i2c OK [16:47:48]MH_I2C_Read... [16:47:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:47:48]Read from MH i2c: E2 [16:47:48]MH_I2C_Read... [16:47:48]Read from MH i2c: E2 FD 00 [16:47:48]MH_I2C_Read... [16:47:48]Read from MH i2c: E2 FD 00 E3 0B 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9A [16:47:48]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 [16:47:48]wFMCommunicate OK [16:47:48]wFMCommunicate request_size=4 [16:47:48]MH_SAM_APDU [16:47:48]CAPDU: 80 17 00 00 [16:47:48]Write to MH i2c: E2 08 00 E4 0B 80 17 00 00 00 00 00 00 6F [16:47:48]Write i2c OK [16:47:48]MH_I2C_Read... [16:47:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:47:48]Read from MH i2c: E2 [16:47:48]MH_I2C_Read... [16:47:48]Read from MH i2c: E2 FD 00 [16:47:48]MH_I2C_Read... [16:47:48]Read from MH i2c: E2 FD 00 E4 0B 00 00 EF 03 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 E7 [16:47:48]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 [16:47:48]wFMCommunicate OK [16:47:48]wFMCommunicate request_size=4 [16:47:48]MH_SAM_APDU [16:47:48]CAPDU: 80 17 00 00 [16:47:48]Write to MH i2c: E2 08 00 E5 0B 80 17 00 00 00 00 00 00 70 [16:47:48]Write i2c OK [16:47:48]MH_I2C_Read... [16:47:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [16:47:48]Read from MH i2c: E2 [16:47:48]MH_I2C_Read... [16:47:48]Read from MH i2c: E2 D7 00 [16:47:48]MH_I2C_Read... [16:47:48]Read from MH i2c: E2 D7 00 E5 0B 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 53 [16:47:48]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 [16:47:49]wFMCommunicate OK [16:47:49]SAM_PROTO_GetShiftData done [16:47:49]requested_item shift.sale.total_cash is exist - process it [16:47:49]requested_item shift.sale_refund.total is exist - process it [16:47:49]requested_item shift.sale_refund.total_cash is exist - process it [16:47:49]requested_item shift.buy.total is exist - process it [16:47:49]requested_item shift.buy.total_cash is exist - process it [16:47:49]produce_requested_data done [16:47:49]produce_requested_data return {"fm.sale.total":52788258.02,"fm.sale_refund.total":2509147.00,"fm.buy.total":0.00,"shift.sale.total":125517.69,"shift.sale.total_cash":99853.00,"shift.sale_refund.total":8470.00,"shift.sale_refund.total_cash":8470.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [16:47:49]process_action_free get_value [16:47:49]json_value_free [16:47:49]json_value_free done [16:47:49]process_json_proto returns [16:47:49]Send response to host [16:47:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":52788258.02,"fm.sale_refund.total":2509147.00,"fm.buy.total":0.00,"shift.sale.total":125517.69,"shift.sale.total_cash":99853.00,"shift.sale_refund.total":8470.00,"shift.sale_refund.total_cash":8470.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [16:47:49]free response buf [16:47:49]execute_script done [16:47:49]execute_script returns [16:47:49]free content buf [16:47:49]Sock 10.Close socket [16:47:49]Sock 10.Thread stoped [16:47:49]OFD Sender: No OFD packet to send [16:47:54]OFD Sender: No OFD packet to send [16:47:59]OFD Sender: No OFD packet to send [16:48:04]OFD Sender: No OFD packet to send [16:48:09]OFD Sender: No OFD packet to send [16:48:14]OFD Sender: No OFD packet to send [16:48:19]OFD Sender: No OFD packet to send [16:48:24]OFD Sender: No OFD packet to send [16:48:29]OFD Sender: No OFD packet to send [16:48:34]OFD Sender: No OFD packet to send [16:48:39]OFD Sender: No OFD packet to send [16:48:44]OFD Sender: No OFD packet to send [16:48:49]OFD Sender: No OFD packet to send [16:48:54]OFD Sender: No OFD packet to send [16:48:59]OFD Sender: No OFD packet to send [16:49:04]OFD Sender: No OFD packet to send [16:49:09]OFD Sender: No OFD packet to send [16:49:14]OFD Sender: No OFD packet to send [16:49:19]OFD Sender: No OFD packet to send [16:49:24]OFD Sender: No OFD packet to send [16:49:29]OFD Sender: No OFD packet to send [16:49:34]OFD Sender: No OFD packet to send [16:49:39]OFD Sender: No OFD packet to send [16:49:44]OFD Sender: No OFD packet to send [16:49:49]OFD Sender: No OFD packet to send [16:49:54]OFD Sender: No OFD packet to send [16:49:59]OFD Sender: No OFD packet to send [16:50:04]OFD Sender: No OFD packet to send [16:50:09]OFD Sender: No OFD packet to send [16:50:14]OFD Sender: No OFD packet to send [16:50:19]OFD Sender: No OFD packet to send [16:50:24]OFD Sender: No OFD packet to send [16:50:29]OFD Sender: No OFD packet to send [16:50:34]OFD Sender: No OFD packet to send [16:50:39]OFD Sender: No OFD packet to send [16:50:44]OFD Sender: No OFD packet to send [16:50:49]OFD Sender: No OFD packet to send [16:50:54]OFD Sender: No OFD packet to send [16:50:59]OFD Sender: No OFD packet to send [16:51:04]OFD Sender: No OFD packet to send [16:51:09]OFD Sender: No OFD packet to send [16:51:14]OFD Sender: No OFD packet to send [16:51:19]OFD Sender: No OFD packet to send [16:51:24]OFD Sender: No OFD packet to send [16:51:29]OFD Sender: No OFD packet to send [16:51:34]OFD Sender: No OFD packet to send [16:51:39]OFD Sender: No OFD packet to send [16:51:44]OFD Sender: No OFD packet to send [16:51:49]OFD Sender: No OFD packet to send [16:51:54]OFD Sender: No OFD packet to send [16:51:59]OFD Sender: No OFD packet to send [16:52:04]OFD Sender: No OFD packet to send [16:52:09]OFD Sender: No OFD packet to send [16:52:14]OFD Sender: No OFD packet to send [16:52:19]OFD Sender: No OFD packet to send [16:52:24]OFD Sender: No OFD packet to send [16:52:29]OFD Sender: No OFD packet to send [16:52:34]OFD Sender: No OFD packet to send [16:52:39]OFD Sender: No OFD packet to send [16:52:44]OFD Sender: No OFD packet to send [16:52:49]OFD Sender: No OFD packet to send [16:52:54]OFD Sender: No OFD packet to send [16:52:59]OFD Sender: No OFD packet to send [16:53:04]OFD Sender: No OFD packet to send [16:53:09]OFD Sender: No OFD packet to send [16:53:14]OFD Sender: No OFD packet to send [16:53:19]OFD Sender: No OFD packet to send [16:53:24]OFD Sender: No OFD packet to send [16:53:29]OFD Sender: No OFD packet to send [16:53:34]OFD Sender: No OFD packet to send [16:53:39]OFD Sender: No OFD packet to send [16:53:44]OFD Sender: No OFD packet to send [16:53:49]OFD Sender: No OFD packet to send [16:53:54]OFD Sender: No OFD packet to send [16:53:59]OFD Sender: No OFD packet to send [16:54:04]OFD Sender: No OFD packet to send [16:54:09]OFD Sender: No OFD packet to send [16:54:14]OFD Sender: No OFD packet to send [16:54:19]OFD Sender: No OFD packet to send [16:54:24]OFD Sender: No OFD packet to send [16:54:29]OFD Sender: No OFD packet to send [16:54:34]OFD Sender: No OFD packet to send [16:54:39]OFD Sender: No OFD packet to send [16:54:44]OFD Sender: No OFD packet to send [16:54:49]OFD Sender: No OFD packet to send [16:54:54]OFD Sender: No OFD packet to send [16:54:59]OFD Sender: No OFD packet to send [16:55:04]OFD Sender: No OFD packet to send [16:55:09]OFD Sender: No OFD packet to send [16:55:14]OFD Sender: No OFD packet to send [16:55:19]OFD Sender: No OFD packet to send [16:55:24]OFD Sender: No OFD packet to send [16:55:29]OFD Sender: No OFD packet to send [16:55:35]OFD Sender: No OFD packet to send [16:55:40]OFD Sender: No OFD packet to send [16:55:45]OFD Sender: No OFD packet to send [16:55:50]OFD Sender: No OFD packet to send [16:55:55]OFD Sender: No OFD packet to send [16:56:00]OFD Sender: No OFD packet to send [16:56:05]OFD Sender: No OFD packet to send [16:56:10]OFD Sender: No OFD packet to send [16:56:15]OFD Sender: No OFD packet to send [16:56:20]OFD Sender: No OFD packet to send [16:56:25]OFD Sender: No OFD packet to send [16:56:30]OFD Sender: No OFD packet to send [16:56:35]OFD Sender: No OFD packet to send [16:56:40]OFD Sender: No OFD packet to send [16:56:45]OFD Sender: No OFD packet to send [16:56:50]OFD Sender: No OFD packet to send [16:56:55]OFD Sender: No OFD packet to send [16:57:00]OFD Sender: No OFD packet to send [16:57:05]OFD Sender: No OFD packet to send [16:57:10]OFD Sender: No OFD packet to send [16:57:15]OFD Sender: No OFD packet to send [16:57:20]OFD Sender: No OFD packet to send [16:57:25]OFD Sender: No OFD packet to send [16:57:30]OFD Sender: No OFD packet to send [16:57:35]OFD Sender: No OFD packet to send [16:57:40]OFD Sender: No OFD packet to send [16:57:45]OFD Sender: No OFD packet to send [16:57:50]OFD Sender: No OFD packet to send [16:57:55]OFD Sender: No OFD packet to send [16:58:00]OFD Sender: No OFD packet to send [16:58:05]OFD Sender: No OFD packet to send [16:58:10]OFD Sender: No OFD packet to send [16:58:15]OFD Sender: No OFD packet to send [16:58:20]OFD Sender: No OFD packet to send [16:58:25]OFD Sender: No OFD packet to send [16:58:30]OFD Sender: No OFD packet to send [16:58:35]OFD Sender: No OFD packet to send [16:58:40]OFD Sender: No OFD packet to send [16:58:45]OFD Sender: No OFD packet to send [16:58:50]OFD Sender: No OFD packet to send [16:58:55]OFD Sender: No OFD packet to send [16:59:00]OFD Sender: No OFD packet to send [16:59:05]OFD Sender: No OFD packet to send [16:59:10]OFD Sender: No OFD packet to send [16:59:15]OFD Sender: No OFD packet to send [16:59:20]OFD Sender: No OFD packet to send [16:59:25]OFD Sender: No OFD packet to send [16:59:30]OFD Sender: No OFD packet to send [16:59:35]OFD Sender: No OFD packet to send [16:59:40]OFD Sender: No OFD packet to send [16:59:45]OFD Sender: No OFD packet to send [16:59:50]OFD Sender: No OFD packet to send [16:59:55]OFD Sender: No OFD packet to send [17:00:00]OFD Sender: No OFD packet to send [17:00:05]OFD Sender: No OFD packet to send [17:00:10]OFD Sender: No OFD packet to send [17:00:15]OFD Sender: No OFD packet to send [17:00:20]OFD Sender: No OFD packet to send [17:00:25]OFD Sender: No OFD packet to send [17:00:30]OFD Sender: No OFD packet to send [17:00:35]OFD Sender: No OFD packet to send [17:00:40]OFD Sender: No OFD packet to send [17:00:45]OFD Sender: No OFD packet to send [17:00:50]OFD Sender: No OFD packet to send [17:00:55]OFD Sender: No OFD packet to send [17:01:00]OFD Sender: No OFD packet to send [17:01:05]OFD Sender: No OFD packet to send [17:01:10]OFD Sender: No OFD packet to send [17:01:15]OFD Sender: No OFD packet to send [17:01:20]OFD Sender: No OFD packet to send [17:01:25]OFD Sender: No OFD packet to send [17:01:30]OFD Sender: No OFD packet to send [17:01:35]OFD Sender: No OFD packet to send [17:01:40]OFD Sender: No OFD packet to send [17:01:45]OFD Sender: No OFD packet to send [17:01:50]OFD Sender: No OFD packet to send [17:01:55]OFD Sender: No OFD packet to send [17:02:00]OFD Sender: No OFD packet to send [17:02:05]OFD Sender: No OFD packet to send [17:02:10]OFD Sender: No OFD packet to send [17:02:15]OFD Sender: No OFD packet to send [17:02:20]OFD Sender: No OFD packet to send [17:02:25]OFD Sender: No OFD packet to send [17:02:30]OFD Sender: No OFD packet to send [17:02:35]OFD Sender: No OFD packet to send [17:02:40]OFD Sender: No OFD packet to send [17:02:45]OFD Sender: No OFD packet to send [17:02:50]OFD Sender: No OFD packet to send [17:02:55]OFD Sender: No OFD packet to send [17:03:00]OFD Sender: No OFD packet to send [17:03:05]OFD Sender: No OFD packet to send [17:03:10]OFD Sender: No OFD packet to send [17:03:15]OFD Sender: No OFD packet to send [17:03:20]OFD Sender: No OFD packet to send [17:03:25]OFD Sender: No OFD packet to send [17:03:30]OFD Sender: No OFD packet to send [17:03:35]OFD Sender: No OFD packet to send [17:03:40]OFD Sender: No OFD packet to send [17:03:45]OFD Sender: No OFD packet to send [17:03:50]OFD Sender: No OFD packet to send [17:03:55]OFD Sender: No OFD packet to send [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:55]OFD Sender: No OFD packet to send [17:08:00]OFD Sender: No OFD packet to send [17:08:05]OFD Sender: No OFD packet to send [17:08:10]OFD Sender: No OFD packet to send [17:08:15]OFD Sender: No OFD packet to send [17:08:20]OFD Sender: No OFD packet to send [17:08:25]OFD Sender: No OFD packet to send [17:08:30]OFD Sender: No OFD packet to send [17:08:35]OFD Sender: No OFD packet to send [17:08:40]OFD Sender: No OFD packet to send [17:08:45]OFD Sender: No OFD packet to send [17:08:50]OFD Sender: No OFD packet to send [17:08:55]OFD Sender: No OFD packet to send [17:09:00]OFD Sender: No OFD packet to send [17:09:05]OFD Sender: No OFD packet to send [17:09:10]OFD Sender: No OFD packet to send [17:09:15]OFD Sender: No OFD packet to send [17:09:20]OFD Sender: No OFD packet to send [17:09:25]OFD Sender: No OFD packet to send [17:09:30]OFD Sender: No OFD packet to send [17:09:35]OFD Sender: No OFD packet to send [17:09:40]OFD Sender: No OFD packet to send [17:09:45]OFD Sender: No OFD packet to send [17:09:50]OFD Sender: No OFD packet to send [17:09:55]OFD Sender: No OFD packet to send [17:10:00]OFD Sender: No OFD packet to send [17:10:05]OFD Sender: No OFD packet to send [17:10:10]OFD Sender: No OFD packet to send [17:10:15]OFD Sender: No OFD packet to send [17:10:20]OFD Sender: No OFD packet to send [17:10:25]OFD Sender: No OFD packet to send [17:10:30]OFD Sender: No OFD packet to send [17:10:35]OFD Sender: No OFD packet to send [17:10:40]OFD Sender: No OFD packet to send [17:10:45]OFD Sender: No OFD packet to send [17:10:50]OFD Sender: No OFD packet to send [17:10:55]OFD Sender: No OFD packet to send [17:11:00]OFD Sender: No OFD packet to send [17:11:05]OFD Sender: No OFD packet to send [17:11:10]OFD Sender: No OFD packet to send [17:11:15]OFD Sender: No OFD packet to send [17:11:20]OFD Sender: No OFD packet to send [17:11:25]OFD Sender: No OFD packet to send [17:11:30]OFD Sender: No OFD packet to send [17:11:35]OFD Sender: No OFD packet to send [17:11:40]OFD Sender: No OFD packet to send [17:11:45]OFD Sender: No OFD packet to send [17:11:50]OFD Sender: No OFD packet to send [17:11:55]OFD Sender: No OFD packet to send [17:12:00]OFD Sender: No OFD packet to send [17:12:05]OFD Sender: No OFD packet to send [17:12:10]OFD Sender: No OFD packet to send [17:12:15]OFD Sender: No OFD packet to send [17:12:20]OFD Sender: No OFD packet to send [17:12:25]OFD Sender: No OFD packet to send [17:12:30]OFD Sender: No OFD packet to send [17:12:35]OFD Sender: No OFD packet to send [17:12:40]OFD Sender: No OFD packet to send [17:12:45]OFD Sender: No OFD packet to send [17:12:50]OFD Sender: No OFD packet to send [17:12:55]OFD Sender: No OFD packet to send [17:13:00]OFD Sender: No OFD packet to send [17:13:05]OFD Sender: No OFD packet to send [17:13:10]OFD Sender: No OFD packet to send [17:13:15]OFD Sender: No OFD packet to send [17:13:20]OFD Sender: No OFD packet to send [17:13:25]OFD Sender: No OFD packet to send [17:13:30]OFD Sender: No OFD packet to send [17:13:35]OFD Sender: No OFD packet to send [17:13:40]OFD Sender: No OFD packet to send [17:13:42]accept exits with 7 [17:13:42]New connection [17:13:42]New thread 3067153764 created [17:13:42]Thread 3067297124 joined [17:13:42]Waiting for new connection... [17:13:42] Sock 7.Parse request [17:13:42]Sock 7.Check first char [17:13:42]Sock 7.First char is OK [17:13:42]request: POST /json_proto HTTP/1.0 [17:13:42]Method: POST [17:13:42]URL: /json_proto [17:13:42]Method is POST - this is cgi request [17:13:42]url: /json_proto [17:13:42]query_string will be loaded in cgi processing [17:13:42]execute_cgi json_proto POST (null) [17:13:42]execute_cgi path=json_proto method=POST [17:13:42]POST find Content-Length [17:13:42]Host: 172.17.36.132:8080 [17:13:42]Content-Length: 215 [17:13:42]Content-Type: application/json [17:13:42] [17:13:42]POST finish read [17:13:42]Found Content-Length = 215 [17:13:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:13:42]execute_script... [17:13:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:13:42]POST & json_proto [17:13:42]process_json_proto [17:13:42]json parsed OK: [17:13:42]protocol is kg_v1.0 [17:13:42]action value=get_value [17:13:42]process_action get_value [17:13:42]cmd_get_value [17:13:42]process_action get_value done [17:13:42]requested_data is exist [17:13:42]produce_requested_data [17:13:42]requested_item kkm.sn is exist - process it [17:13:42]requested_item kkm.ver is exist - process it [17:13:42]requested_item fm.sn is exist - process it [17:13:42]wFMCommunicate request_size=4 [17:13:42]MH_SAM_APDU [17:13:42]CAPDU: 80 11 00 00 [17:13:42]Write to MH i2c: E2 08 00 E6 0B 80 11 00 00 00 00 00 00 6B [17:13:42]Write i2c OK [17:13:42]MH_I2C_Read... [17:13:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:13:42]Read from MH i2c: E2 [17:13:42]MH_I2C_Read... [17:13:42]Read from MH i2c: E2 17 00 [17:13:42]MH_I2C_Read... [17:13:42]Read from MH i2c: E2 17 00 E6 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 B6 [17:13:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [17:13:42]wFMCommunicate OK [17:13:42]requested_item fd.num is exist - process it [17:13:42]SAM_PROTO_GetFieldsCounters [17:13:42]wFMCommunicate request_size=4 [17:13:42]MH_SAM_APDU [17:13:42]CAPDU: 80 13 00 00 [17:13:42]Write to MH i2c: E2 08 00 E7 0B 80 13 00 00 00 00 00 00 6E [17:13:42]Write i2c OK [17:13:42]MH_I2C_Read... [17:13:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:13:42]Read from MH i2c: E2 [17:13:42]MH_I2C_Read... [17:13:42]Read from MH i2c: E2 62 00 [17:13:42]MH_I2C_Read... [17:13:42]Read from MH i2c: E2 62 00 E7 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 20 0C 01 00 0E 04 04 00 45 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 9F [17:13:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 20 0C 01 00 0E 04 04 00 45 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 [17:13:42]wFMCommunicate OK [17:13:42]SAM_PROTO_GetFieldsCounters done [17:13:42]requested_item shift.num is exist - process it [17:13:42]requested_item shift.opened is exist - process it [17:13:42]req_shift_opened [17:13:42]FM_GetShiftState [17:13:42]SAM_PROTO_GetShiftState [17:13:42]wFMCommunicate request_size=4 [17:13:42]MH_SAM_APDU [17:13:42]CAPDU: 80 13 01 00 [17:13:42]Write to MH i2c: E2 08 00 E8 0B 80 13 01 00 00 00 00 00 70 [17:13:42]Write i2c OK [17:13:42]MH_I2C_Read... [17:13:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:13:42]Read from MH i2c: E2 [17:13:42]MH_I2C_Read... [17:13:42]Read from MH i2c: E2 0E 00 [17:13:42]MH_I2C_Read... [17:13:42]Read from MH i2c: E2 0E 00 E8 0B 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 0C [17:13:42]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [17:13:42]wFMCommunicate OK [17:13:42]SAM_PROTO_GetShiftState done [17:13:42]FM_GetShiftState done [17:13:42]req_shift_opened done [17:13:42]requested_item shift.open_date is exist - process it [17:13:42]req_shift_open_date [17:13:42]req_shift_open_date done [17:13:42]produce_requested_data done [17:13:42]produce_requested_data return {"kkm.sn":"0300000181","kkm.ver":"001","fm.sn":"0000000000965400","fd.num":68640,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [17:13:42]process_action_free get_value [17:13:42]json_value_free [17:13:42]json_value_free done [17:13:42]process_json_proto returns [17:13:42]Send response to host [17:13:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000181","kkm.ver":"001","fm.sn":"0000000000965400","fd.num":68640,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [17:13:42]free response buf [17:13:42]execute_script done [17:13:42]execute_script returns [17:13:42]free content buf [17:13:42]Sock 7.Close socket [17:13:42]Sock 7.Thread stoped [17:13:42]accept exits with 9 [17:13:42]New connection [17:13:42]New thread 3067297124 created [17:13:42]Thread 3067153764 joined [17:13:42]Waiting for new connection... [17:13:42] Sock 9.Parse request [17:13:42]Sock 9.Check first char [17:13:42]Sock 9.First char is OK [17:13:42]request: POST /json_proto HTTP/1.0 [17:13:42]Method: POST [17:13:42]URL: /json_proto [17:13:42]Method is POST - this is cgi request [17:13:42]url: /json_proto [17:13:42]query_string will be loaded in cgi processing [17:13:42]execute_cgi json_proto POST (null) [17:13:42]execute_cgi path=json_proto method=POST [17:13:42]POST find Content-Length [17:13:42]Host: 172.17.36.132:8080 [17:13:42]Content-Length: 331 [17:13:42]Content-Type: application/json [17:13:42] [17:13:42]POST finish read [17:13:42]Found Content-Length = 331 [17:13: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" ] } } [17:13:42]execute_script... [17:13:43]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:13:43]POST & json_proto [17:13:43]process_json_proto [17:13:43]json parsed OK: [17:13:43]protocol is kg_v1.0 [17:13:43]action value=get_value [17:13:43]process_action get_value [17:13:43]cmd_get_value [17:13:43]process_action get_value done [17:13:43]requested_data is exist [17:13:43]produce_requested_data [17:13:43]requested_item fm.sale.total is exist - process it [17:13:43]SAM_PROTO_GetFMData [17:13:43]wFMCommunicate request_size=4 [17:13:43]MH_SAM_APDU [17:13:43]CAPDU: 80 13 03 00 [17:13:43]Write to MH i2c: E2 08 00 E9 0B 80 13 03 00 00 00 00 00 73 [17:13:43]Write i2c OK [17:13:43]MH_I2C_Read... [17:13:43]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [17:13:43]Read from MH i2c: E2 [17:13:43]MH_I2C_Read... [17:13:43]Read from MH i2c: E2 FD 00 [17:13:43]MH_I2C_Read... [17:13:43]Read from MH i2c: E2 FD 00 E9 0B 00 C5 04 85 04 C1 04 6E 04 04 00 96 09 01 00 69 04 A3 00 6F 04 04 00 7C 04 01 00 B1 04 05 00 4A 7D A4 3A 01 70 04 05 00 7C 3B D5 0D 01 72 04 04 00 CE 41 CF 2C 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 F4 6F 6C 21 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 10 F0 C8 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 9C 00 6F 04 04 00 1A 05 00 00 B1 04 04 00 8C A7 F4 0E 70 04 04 00 8C A7 F4 0E 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 93 A3 96 01 EF 03 09 90 00 12 [17:13:43]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 96 09 01 00 69 04 A3 00 6F 04 04 00 7C 04 01 00 B1 04 05 00 4A 7D A4 3A 01 70 04 05 00 7C 3B D5 0D 01 72 04 04 00 CE 41 CF 2C 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 F4 6F 6C 21 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 10 F0 C8 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 9C 00 6F 04 04 00 1A 05 00 00 B1 04 04 00 8C A7 F4 0E 70 04 04 00 8C A7 F4 0E 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 93 A3 96 01 EF 03 09 90 00 [17:13:43]wFMCommunicate OK [17:13:43]wFMCommunicate request_size=4 [17:13:43]MH_SAM_APDU [17:13:43]CAPDU: 80 17 00 00 [17:13:43]Write to MH i2c: E2 08 00 EA 0B 80 17 00 00 00 00 00 00 75 [17:13:43]Write i2c OK [17:13:43]MH_I2C_Read... [17:13:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:13:43]Read from MH i2c: E2 [17:13:43]MH_I2C_Read... [17:13:43]Read from MH i2c: E2 FD 00 [17:13:43]MH_I2C_Read... [17:13:43]Read from MH i2c: E2 FD 00 EA 0B 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 85 E2 21 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 B3 [17:13:43]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 85 E2 21 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [17:13:43]wFMCommunicate OK [17:13:43]wFMCommunicate request_size=4 [17:13:43]MH_SAM_APDU [17:13:43]CAPDU: 80 17 00 00 [17:13:43]Write to MH i2c: E2 08 00 EB 0B 80 17 00 00 00 00 00 00 76 [17:13:43]Write i2c OK [17:13:43]MH_I2C_Read... [17:13:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:13:44]Read from MH i2c: E2 [17:13:44]MH_I2C_Read... [17:13:44]Read from MH i2c: E2 FD 00 [17:13:44]MH_I2C_Read... [17:13:44]Read from MH i2c: E2 FD 00 EB 0B 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 88 [17:13:44]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [17:13:44]wFMCommunicate OK [17:13:44]wFMCommunicate request_size=4 [17:13:44]MH_SAM_APDU [17:13:44]CAPDU: 80 17 00 00 [17:13:44]Write to MH i2c: E2 08 00 EC 0B 80 17 00 00 00 00 00 00 77 [17:13:44]Write i2c OK [17:13:44]MH_I2C_Read... [17:13:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:13:44]Read from MH i2c: E2 [17:13:44]MH_I2C_Read... [17:13:44]Read from MH i2c: E2 FD 00 [17:13:44]MH_I2C_Read... [17:13:44]Read from MH i2c: E2 FD 00 EC 0B 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 03 [17:13:44]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [17:13:44]wFMCommunicate OK [17:13:44]wFMCommunicate request_size=4 [17:13:44]MH_SAM_APDU [17:13:44]CAPDU: 80 17 00 00 [17:13:44]Write to MH i2c: E2 08 00 ED 0B 80 17 00 00 00 00 00 00 78 [17:13:44]Write i2c OK [17:13:44]MH_I2C_Read... [17:13:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [17:13:44]Read from MH i2c: E2 [17:13:44]MH_I2C_Read... [17:13:44]Read from MH i2c: E2 E2 00 [17:13:44]MH_I2C_Read... [17:13:44]Read from MH i2c: E2 E2 00 ED 0B 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 56 [17:13:44]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [17:13:44]wFMCommunicate OK [17:13:44]SAM_PROTO_GetFMData done [17:13:44]requested_item fm.sale_refund.total is exist - process it [17:13:44]requested_item fm.buy.total is exist - process it [17:13:44]requested_item shift.sale.total is exist - process it [17:13:44]SAM_PROTO_GetShiftData [17:13:44]wFMCommunicate request_size=4 [17:13:44]MH_SAM_APDU [17:13:44]CAPDU: 80 13 02 00 [17:13:44]Write to MH i2c: E2 08 00 EE 0B 80 13 02 00 00 00 00 00 77 [17:13:44]Write i2c OK [17:13:44]MH_I2C_Read... [17:13:45]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [17:13:45]Read from MH i2c: E2 [17:13:45]MH_I2C_Read... [17:13:45]Read from MH i2c: E2 FD 00 [17:13:45]MH_I2C_Read... [17:13:45]Read from MH i2c: E2 FD 00 EE 0B 00 BA 04 AA 04 B6 04 6E 04 04 00 8A 00 00 00 69 04 9C 00 6F 04 04 00 87 00 00 00 B1 04 03 00 59 86 BF 70 04 03 00 14 5D 98 72 04 03 00 45 29 27 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 0A 58 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 01 B2 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 98 00 6F 04 04 00 03 00 00 00 B1 04 03 00 98 EC 0C 70 04 03 00 98 EC 0C 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 6B 5F 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 E8 [17:13:45]RAPDU: BA 04 AA 04 B6 04 6E 04 04 00 8A 00 00 00 69 04 9C 00 6F 04 04 00 87 00 00 00 B1 04 03 00 59 86 BF 70 04 03 00 14 5D 98 72 04 03 00 45 29 27 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 0A 58 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 01 B2 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 98 00 6F 04 04 00 03 00 00 00 B1 04 03 00 98 EC 0C 70 04 03 00 98 EC 0C 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 6B 5F 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [17:13:45]wFMCommunicate OK [17:13:45]wFMCommunicate request_size=4 [17:13:45]MH_SAM_APDU [17:13:45]CAPDU: 80 17 00 00 [17:13:45]Write to MH i2c: E2 08 00 EF 0B 80 17 00 00 00 00 00 00 7A [17:13:45]Write i2c OK [17:13:45]MH_I2C_Read... [17:13:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:13:45]Read from MH i2c: E2 [17:13:45]MH_I2C_Read... [17:13:45]Read from MH i2c: E2 FD 00 [17:13:45]MH_I2C_Read... [17:13:45]Read from MH i2c: E2 FD 00 EF 0B 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 49 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 90 00 8A [17:13:45]RAPDU: EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 49 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 90 00 [17:13:45]wFMCommunicate OK [17:13:45]wFMCommunicate request_size=4 [17:13:45]MH_SAM_APDU [17:13:45]CAPDU: 80 17 00 00 [17:13:45]Write to MH i2c: E2 08 00 F0 0B 80 17 00 00 00 00 00 00 7B [17:13:45]Write i2c OK [17:13:45]MH_I2C_Read... [17:13:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:13:45]Read from MH i2c: E2 [17:13:45]MH_I2C_Read... [17:13:45]Read from MH i2c: E2 FD 00 [17:13:45]MH_I2C_Read... [17:13:45]Read from MH i2c: E2 FD 00 F0 0B 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A7 [17:13:45]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:13:45]wFMCommunicate OK [17:13:45]wFMCommunicate request_size=4 [17:13:45]MH_SAM_APDU [17:13:45]CAPDU: 80 17 00 00 [17:13:45]Write to MH i2c: E2 08 00 F1 0B 80 17 00 00 00 00 00 00 7C [17:13:45]Write i2c OK [17:13:45]MH_I2C_Read... [17:13:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:13:45]Read from MH i2c: E2 [17:13:45]MH_I2C_Read... [17:13:45]Read from MH i2c: E2 FD 00 [17:13:45]MH_I2C_Read... [17:13:45]Read from MH i2c: E2 FD 00 F1 0B 00 00 EF 03 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 F4 [17:13:45]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:13:45]wFMCommunicate OK [17:13:45]wFMCommunicate request_size=4 [17:13:45]MH_SAM_APDU [17:13:45]CAPDU: 80 17 00 00 [17:13:45]Write to MH i2c: E2 08 00 F2 0B 80 17 00 00 00 00 00 00 7D [17:13:45]Write i2c OK [17:13:45]MH_I2C_Read... [17:13:45]OFD Sender: No OFD packet to send [17:13:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [17:13:46]Read from MH i2c: E2 [17:13:46]MH_I2C_Read... [17:13:46]Read from MH i2c: E2 D7 00 [17:13:46]MH_I2C_Read... [17:13:46]Read from MH i2c: E2 D7 00 F2 0B 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 60 [17:13:46]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:13:46]wFMCommunicate OK [17:13:46]SAM_PROTO_GetShiftData done [17:13:46]requested_item shift.sale.total_cash is exist - process it [17:13:46]requested_item shift.sale_refund.total is exist - process it [17:13:46]requested_item shift.sale_refund.total_cash is exist - process it [17:13:46]requested_item shift.buy.total is exist - process it [17:13:46]requested_item shift.buy.total_cash is exist - process it [17:13:46]produce_requested_data done [17:13:46]produce_requested_data return {"fm.sale.total":52788258.02,"fm.sale_refund.total":2509147.00,"fm.buy.total":0.00,"shift.sale.total":125517.69,"shift.sale.total_cash":99853.00,"shift.sale_refund.total":8470.00,"shift.sale_refund.total_cash":8470.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [17:13:46]process_action_free get_value [17:13:46]json_value_free [17:13:46]json_value_free done [17:13:46]process_json_proto returns [17:13:46]Send response to host [17:13:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":52788258.02,"fm.sale_refund.total":2509147.00,"fm.buy.total":0.00,"shift.sale.total":125517.69,"shift.sale.total_cash":99853.00,"shift.sale_refund.total":8470.00,"shift.sale_refund.total_cash":8470.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [17:13:46]free response buf [17:13:46]execute_script done [17:13:46]execute_script returns [17:13:46]free content buf [17:13:46]Sock 9.Close socket [17:13:46]Sock 9.Thread stoped [17:13:46]accept exits with 7 [17:13:46]New connection [17:13:46]New thread 3067153764 created [17:13:46]Thread 3067297124 joined [17:13:46]Waiting for new connection... [17:13:46] Sock 7.Parse request [17:13:46]Sock 7.Check first char [17:13:46]Sock 7.First char is OK [17:13:46]request: POST /json_proto HTTP/1.0 [17:13:46]Method: POST [17:13:46]URL: /json_proto [17:13:46]Method is POST - this is cgi request [17:13:46]url: /json_proto [17:13:46]query_string will be loaded in cgi processing [17:13:46]execute_cgi json_proto POST (null) [17:13:46]execute_cgi path=json_proto method=POST [17:13:46]POST find Content-Length [17:13:46]Host: 172.17.36.132:8080 [17:13:46]Content-Length: 331 [17:13:46]Content-Type: application/json [17:13:46] [17:13:46]POST finish read [17:13:46]Found Content-Length = 331 [17:13:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [17:13:46]execute_script... [17:13:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [17:13:46]POST & json_proto [17:13:46]process_json_proto [17:13:46]json parsed OK: [17:13:46]protocol is kg_v1.0 [17:13:46]action value=get_value [17:13:46]process_action get_value [17:13:46]cmd_get_value [17:13:46]process_action get_value done [17:13:46]requested_data is exist [17:13:46]produce_requested_data [17:13:46]requested_item fm.sale.total is exist - process it [17:13:46]SAM_PROTO_GetFMData [17:13:46]wFMCommunicate request_size=4 [17:13:46]MH_SAM_APDU [17:13:46]CAPDU: 80 13 03 00 [17:13:46]Write to MH i2c: E2 08 00 F3 0B 80 13 03 00 00 00 00 00 7D [17:13:46]Write i2c OK [17:13:46]MH_I2C_Read... [17:13:46]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [17:13:46]Read from MH i2c: E2 [17:13:46]MH_I2C_Read... [17:13:46]Read from MH i2c: E2 FD 00 [17:13:46]MH_I2C_Read... [17:13:46]Read from MH i2c: E2 FD 00 F3 0B 00 C5 04 85 04 C1 04 6E 04 04 00 96 09 01 00 69 04 A3 00 6F 04 04 00 7C 04 01 00 B1 04 05 00 4A 7D A4 3A 01 70 04 05 00 7C 3B D5 0D 01 72 04 04 00 CE 41 CF 2C 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 F4 6F 6C 21 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 10 F0 C8 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 9C 00 6F 04 04 00 1A 05 00 00 B1 04 04 00 8C A7 F4 0E 70 04 04 00 8C A7 F4 0E 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 93 A3 96 01 EF 03 09 90 00 1C [17:13:46]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 96 09 01 00 69 04 A3 00 6F 04 04 00 7C 04 01 00 B1 04 05 00 4A 7D A4 3A 01 70 04 05 00 7C 3B D5 0D 01 72 04 04 00 CE 41 CF 2C 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 F4 6F 6C 21 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 10 F0 C8 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 9C 00 6F 04 04 00 1A 05 00 00 B1 04 04 00 8C A7 F4 0E 70 04 04 00 8C A7 F4 0E 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 93 A3 96 01 EF 03 09 90 00 [17:13:46]wFMCommunicate OK [17:13:46]wFMCommunicate request_size=4 [17:13:46]MH_SAM_APDU [17:13:46]CAPDU: 80 17 00 00 [17:13:46]Write to MH i2c: E2 08 00 F4 0B 80 17 00 00 00 00 00 00 7F [17:13:46]Write i2c OK [17:13:46]MH_I2C_Read... [17:13:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:13:47]Read from MH i2c: E2 [17:13:47]MH_I2C_Read... [17:13:47]Read from MH i2c: E2 FD 00 [17:13:47]MH_I2C_Read... [17:13:47]Read from MH i2c: E2 FD 00 F4 0B 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 85 E2 21 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 BD [17:13:47]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 85 E2 21 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [17:13:47]wFMCommunicate OK [17:13:47]wFMCommunicate request_size=4 [17:13:47]MH_SAM_APDU [17:13:47]CAPDU: 80 17 00 00 [17:13:47]Write to MH i2c: E2 08 00 F5 0B 80 17 00 00 00 00 00 00 80 [17:13:47]Write i2c OK [17:13:47]MH_I2C_Read... [17:13:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:13:47]Read from MH i2c: E2 [17:13:47]MH_I2C_Read... [17:13:47]Read from MH i2c: E2 FD 00 [17:13:47]MH_I2C_Read... [17:13:47]Read from MH i2c: E2 FD 00 F5 0B 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 92 [17:13:47]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [17:13:47]wFMCommunicate OK [17:13:47]wFMCommunicate request_size=4 [17:13:47]MH_SAM_APDU [17:13:47]CAPDU: 80 17 00 00 [17:13:47]Write to MH i2c: E2 08 00 F6 0B 80 17 00 00 00 00 00 00 81 [17:13:47]Write i2c OK [17:13:47]MH_I2C_Read... [17:13:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:13:47]Read from MH i2c: E2 [17:13:47]MH_I2C_Read... [17:13:47]Read from MH i2c: E2 FD 00 [17:13:47]MH_I2C_Read... [17:13:47]Read from MH i2c: E2 FD 00 F6 0B 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 0D [17:13:47]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [17:13:48]wFMCommunicate OK [17:13:48]wFMCommunicate request_size=4 [17:13:48]MH_SAM_APDU [17:13:48]CAPDU: 80 17 00 00 [17:13:48]Write to MH i2c: E2 08 00 F7 0B 80 17 00 00 00 00 00 00 82 [17:13:48]Write i2c OK [17:13:48]MH_I2C_Read... [17:13:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [17:13:48]Read from MH i2c: E2 [17:13:48]MH_I2C_Read... [17:13:48]Read from MH i2c: E2 E2 00 [17:13:48]MH_I2C_Read... [17:13:48]Read from MH i2c: E2 E2 00 F7 0B 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 60 [17:13:48]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [17:13:48]wFMCommunicate OK [17:13:48]SAM_PROTO_GetFMData done [17:13:48]requested_item fm.sale_refund.total is exist - process it [17:13:48]requested_item fm.buy.total is exist - process it [17:13:48]requested_item shift.sale.total is exist - process it [17:13:48]SAM_PROTO_GetShiftData [17:13:48]wFMCommunicate request_size=4 [17:13:48]MH_SAM_APDU [17:13:48]CAPDU: 80 13 02 00 [17:13:48]Write to MH i2c: E2 08 00 F8 0B 80 13 02 00 00 00 00 00 81 [17:13:48]Write i2c OK [17:13:48]MH_I2C_Read... [17:13:48]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [17:13:48]Read from MH i2c: E2 [17:13:48]MH_I2C_Read... [17:13:48]Read from MH i2c: E2 FD 00 [17:13:48]MH_I2C_Read... [17:13:48]Read from MH i2c: E2 FD 00 F8 0B 00 BA 04 AA 04 B6 04 6E 04 04 00 8A 00 00 00 69 04 9C 00 6F 04 04 00 87 00 00 00 B1 04 03 00 59 86 BF 70 04 03 00 14 5D 98 72 04 03 00 45 29 27 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 0A 58 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 01 B2 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 98 00 6F 04 04 00 03 00 00 00 B1 04 03 00 98 EC 0C 70 04 03 00 98 EC 0C 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 6B 5F 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 F2 [17:13:48]RAPDU: BA 04 AA 04 B6 04 6E 04 04 00 8A 00 00 00 69 04 9C 00 6F 04 04 00 87 00 00 00 B1 04 03 00 59 86 BF 70 04 03 00 14 5D 98 72 04 03 00 45 29 27 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 0A 58 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 01 B2 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 98 00 6F 04 04 00 03 00 00 00 B1 04 03 00 98 EC 0C 70 04 03 00 98 EC 0C 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 6B 5F 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [17:13:48]wFMCommunicate OK [17:13:48]wFMCommunicate request_size=4 [17:13:48]MH_SAM_APDU [17:13:48]CAPDU: 80 17 00 00 [17:13:48]Write to MH i2c: E2 08 00 F9 0B 80 17 00 00 00 00 00 00 84 [17:13:48]Write i2c OK [17:13:48]MH_I2C_Read... [17:13:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:13:49]Read from MH i2c: E2 [17:13:49]MH_I2C_Read... [17:13:49]Read from MH i2c: E2 FD 00 [17:13:49]MH_I2C_Read... [17:13:49]Read from MH i2c: E2 FD 00 F9 0B 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 49 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 90 00 94 [17:13:49]RAPDU: EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 49 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 90 00 [17:13:49]wFMCommunicate OK [17:13:49]wFMCommunicate request_size=4 [17:13:49]MH_SAM_APDU [17:13:49]CAPDU: 80 17 00 00 [17:13:49]Write to MH i2c: E2 08 00 FA 0B 80 17 00 00 00 00 00 00 85 [17:13:49]Write i2c OK [17:13:49]MH_I2C_Read... [17:13:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:13:49]Read from MH i2c: E2 [17:13:49]MH_I2C_Read... [17:13:49]Read from MH i2c: E2 FD 00 [17:13:49]MH_I2C_Read... [17:13:49]Read from MH i2c: E2 FD 00 FA 0B 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 B1 [17:13:49]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:13:49]wFMCommunicate OK [17:13:49]wFMCommunicate request_size=4 [17:13:49]MH_SAM_APDU [17:13:49]CAPDU: 80 17 00 00 [17:13:49]Write to MH i2c: E2 08 00 FB 0B 80 17 00 00 00 00 00 00 86 [17:13:49]Write i2c OK [17:13:49]MH_I2C_Read... [17:13:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:13:49]Read from MH i2c: E2 [17:13:49]MH_I2C_Read... [17:13:49]Read from MH i2c: E2 FD 00 [17:13:49]MH_I2C_Read... [17:13:49]Read from MH i2c: E2 FD 00 FB 0B 00 00 EF 03 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 FE [17:13:50]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:13:50]wFMCommunicate OK [17:13:50]wFMCommunicate request_size=4 [17:13:50]MH_SAM_APDU [17:13:50]CAPDU: 80 17 00 00 [17:13:50]Write to MH i2c: E2 08 00 FC 0B 80 17 00 00 00 00 00 00 87 [17:13:50]Write i2c OK [17:13:50]MH_I2C_Read... [17:13:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [17:13:50]Read from MH i2c: E2 [17:13:50]MH_I2C_Read... [17:13:50]Read from MH i2c: E2 D7 00 [17:13:50]MH_I2C_Read... [17:13:50]Read from MH i2c: E2 D7 00 FC 0B 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 6A [17:13:50]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:13:50]wFMCommunicate OK [17:13:50]SAM_PROTO_GetShiftData done [17:13:50]requested_item shift.sale.total_cash is exist - process it [17:13:50]requested_item shift.sale_refund.total is exist - process it [17:13:50]requested_item shift.sale_refund.total_cash is exist - process it [17:13:50]requested_item shift.buy.total is exist - process it [17:13:50]requested_item shift.buy.total_cash is exist - process it [17:13:50]produce_requested_data done [17:13:50]produce_requested_data return {"fm.sale.total":52788258.02,"fm.sale_refund.total":2509147.00,"fm.buy.total":0.00,"shift.sale.total":125517.69,"shift.sale.total_cash":99853.00,"shift.sale_refund.total":8470.00,"shift.sale_refund.total_cash":8470.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [17:13:50]process_action_free get_value [17:13:50]json_value_free [17:13:50]json_value_free done [17:13:50]process_json_proto returns [17:13:50]Send response to host [17:13:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":52788258.02,"fm.sale_refund.total":2509147.00,"fm.buy.total":0.00,"shift.sale.total":125517.69,"shift.sale.total_cash":99853.00,"shift.sale_refund.total":8470.00,"shift.sale_refund.total_cash":8470.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [17:13:50]free response buf [17:13:50]execute_script done [17:13:50]execute_script returns [17:13:50]free content buf [17:13:50]Sock 7.Close socket [17:13:50]Sock 7.Thread stoped [17:13:50]accept exits with 9 [17:13:50]New connection [17:13:50]New thread 3067297124 created [17:13:50]Thread 3067153764 joined [17:13:50]Waiting for new connection... [17:13:50] Sock 9.Parse request [17:13:50]Sock 9.Check first char [17:13:50]Sock 9.First char is OK [17:13:50]request: POST /json_proto HTTP/1.0 [17:13:50]Method: POST [17:13:50]URL: /json_proto [17:13:50]Method is POST - this is cgi request [17:13:50]url: /json_proto [17:13:50]query_string will be loaded in cgi processing [17:13:50]execute_cgi json_proto POST (null) [17:13:50]execute_cgi path=json_proto method=POST [17:13:50]POST find Content-Length [17:13:50]Host: 172.17.36.132:8080 [17:13:50]Content-Length: 269 [17:13:50]Content-Type: application/json [17:13:50] [17:13:50]POST finish read [17:13:50]Found Content-Length = 269 [17:13:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0418\u0441\u043C\u0430\u043D\u0430\u043B\u0438\u0435\u0432 \u0414. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:13:50]execute_script... [17:13:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0418\u0441\u043C\u0430\u043D\u0430\u043B\u0438\u0435\u0432 \u0414. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:13:50]POST & json_proto [17:13:50]process_json_proto [17:13:50]json parsed OK: [17:13:50]protocol is kg_v1.0 [17:13:50]action value=x_report [17:13:50]process_action x_report [17:13:50]cmd_x_report [17:13:50]MH_GetDate [17:13:50]Write to MH i2c: F0 00 00 FD 0B F7 [17:13:50]Write i2c OK [17:13:50]MH_I2C_Read... [17:13:50]Read from MH i2c: F0 [17:13:50]MH_I2C_Read... [17:13:50]Read from MH i2c: F0 09 00 [17:13:50]MH_I2C_Read... [17:13:50]Read from MH i2c: F0 09 00 FD 0B 00 4F 4B 5F 66 B2 22 B0 64 47 [17:13:50]GetLastDocTimeStamp 1717519577 [17:13:50]current date 1717521231 [17:13:50]FM_GetShiftState [17:13:50]SAM_PROTO_GetShiftState [17:13:50]wFMCommunicate request_size=4 [17:13:50]MH_SAM_APDU [17:13:50]CAPDU: 80 13 01 00 [17:13:50]Write to MH i2c: E2 08 00 FE 0B 80 13 01 00 00 00 00 00 86 [17:13:50]Write i2c OK [17:13:50]MH_I2C_Read... [17:13:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:13:50]Read from MH i2c: E2 [17:13:50]MH_I2C_Read... [17:13:50]Read from MH i2c: E2 0E 00 [17:13:50]MH_I2C_Read... [17:13:50]Read from MH i2c: E2 0E 00 FE 0B 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 22 [17:13:50]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [17:13:50]wFMCommunicate OK [17:13:50]SAM_PROTO_GetShiftState done [17:13:50]FM_GetShiftState done [17:13:50]KKMCreateXReportDocument [17:13:50]Load OK [17:13:50]Malloc new data [17:13:50]MH_GetDate [17:13:50]Write to MH i2c: F0 00 00 FF 0B F9 [17:13:50]Write i2c OK [17:13:50]MH_I2C_Read... [17:13:50]Read from MH i2c: F0 [17:13:50]MH_I2C_Read... [17:13:50]Read from MH i2c: F0 09 00 [17:13:50]MH_I2C_Read... [17:13:50]Read from MH i2c: F0 09 00 FF 0B 00 4F 4B 5F 66 B2 22 B0 64 49 [17:13:50]Malloc new data [17:13:50]Malloc new data [17:13:50]wFMCommunicate request_size=4 [17:13:50]MH_SAM_APDU [17:13:50]CAPDU: 80 11 00 00 [17:13:50]Write to MH i2c: E2 08 00 00 0C 80 11 00 00 00 00 00 00 86 [17:13:50]Write i2c OK [17:13:50]MH_I2C_Read... [17:13:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:13:50]Read from MH i2c: E2 [17:13:50]MH_I2C_Read... [17:13:50]Read from MH i2c: E2 17 00 [17:13:50]MH_I2C_Read... [17:13:50]Read from MH i2c: E2 17 00 00 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 D1 [17:13:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [17:13:50]wFMCommunicate OK [17:13:50]SAM_PROTO_GetFieldsCounters [17:13:50]wFMCommunicate request_size=4 [17:13:50]MH_SAM_APDU [17:13:50]CAPDU: 80 13 00 00 [17:13:50]Write to MH i2c: E2 08 00 01 0C 80 13 00 00 00 00 00 00 89 [17:13:50]Write i2c OK [17:13:50]MH_I2C_Read... [17:13:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:13:50]Read from MH i2c: E2 [17:13:50]MH_I2C_Read... [17:13:50]Read from MH i2c: E2 62 00 [17:13:50]MH_I2C_Read... [17:13:50]Read from MH i2c: E2 62 00 01 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 20 0C 01 00 0E 04 04 00 45 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 BA [17:13:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 20 0C 01 00 0E 04 04 00 45 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 [17:13:50]wFMCommunicate OK [17:13:50]SAM_PROTO_GetFieldsCounters done [17:13:50]Malloc new data [17:13:50]Malloc new data [17:13:50]Malloc new data [17:13:50]KKMCreateXReportDocument OK [17:13:50]KKMSetXReportData OK [17:13:50]KKMPrepareXReportFMData [17:13:50]SAM_PROTO_GetShiftData [17:13:50]wFMCommunicate request_size=4 [17:13:50]MH_SAM_APDU [17:13:50]CAPDU: 80 13 02 00 [17:13:50]Write to MH i2c: E2 08 00 02 0C 80 13 02 00 00 00 00 00 8C [17:13:50]Write i2c OK [17:13:50]MH_I2C_Read... [17:13:51]OFD Sender: No OFD packet to send [17:13:51]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [17:13:51]Read from MH i2c: E2 [17:13:51]MH_I2C_Read... [17:13:51]Read from MH i2c: E2 FD 00 [17:13:51]MH_I2C_Read... [17:13:51]Read from MH i2c: E2 FD 00 02 0C 00 BA 04 AA 04 B6 04 6E 04 04 00 8A 00 00 00 69 04 9C 00 6F 04 04 00 87 00 00 00 B1 04 03 00 59 86 BF 70 04 03 00 14 5D 98 72 04 03 00 45 29 27 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 0A 58 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 01 B2 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 98 00 6F 04 04 00 03 00 00 00 B1 04 03 00 98 EC 0C 70 04 03 00 98 EC 0C 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 6B 5F 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 FD [17:13:51]RAPDU: BA 04 AA 04 B6 04 6E 04 04 00 8A 00 00 00 69 04 9C 00 6F 04 04 00 87 00 00 00 B1 04 03 00 59 86 BF 70 04 03 00 14 5D 98 72 04 03 00 45 29 27 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 0A 58 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 01 B2 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 98 00 6F 04 04 00 03 00 00 00 B1 04 03 00 98 EC 0C 70 04 03 00 98 EC 0C 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 6B 5F 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [17:13:51]wFMCommunicate OK [17:13:51]wFMCommunicate request_size=4 [17:13:51]MH_SAM_APDU [17:13:51]CAPDU: 80 17 00 00 [17:13:51]Write to MH i2c: E2 08 00 03 0C 80 17 00 00 00 00 00 00 8F [17:13:51]Write i2c OK [17:13:51]MH_I2C_Read... [17:13:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:13:51]Read from MH i2c: E2 [17:13:51]MH_I2C_Read... [17:13:51]Read from MH i2c: E2 FD 00 [17:13:51]MH_I2C_Read... [17:13:51]Read from MH i2c: E2 FD 00 03 0C 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 49 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 90 00 9F [17:13:51]RAPDU: EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 49 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 90 00 [17:13:52]wFMCommunicate OK [17:13:52]wFMCommunicate request_size=4 [17:13:52]MH_SAM_APDU [17:13:52]CAPDU: 80 17 00 00 [17:13:52]Write to MH i2c: E2 08 00 04 0C 80 17 00 00 00 00 00 00 90 [17:13:52]Write i2c OK [17:13:52]MH_I2C_Read... [17:13:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:13:52]Read from MH i2c: E2 [17:13:52]MH_I2C_Read... [17:13:52]Read from MH i2c: E2 FD 00 [17:13:52]MH_I2C_Read... [17:13:52]Read from MH i2c: E2 FD 00 04 0C 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 BC [17:13:52]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:13:52]wFMCommunicate OK [17:13:52]wFMCommunicate request_size=4 [17:13:52]MH_SAM_APDU [17:13:52]CAPDU: 80 17 00 00 [17:13:52]Write to MH i2c: E2 08 00 05 0C 80 17 00 00 00 00 00 00 91 [17:13:52]Write i2c OK [17:13:52]MH_I2C_Read... [17:13:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:13:52]Read from MH i2c: E2 [17:13:52]MH_I2C_Read... [17:13:52]Read from MH i2c: E2 FD 00 [17:13:52]MH_I2C_Read... [17:13:52]Read from MH i2c: E2 FD 00 05 0C 00 00 EF 03 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 09 [17:13:52]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:13:53]wFMCommunicate OK [17:13:53]wFMCommunicate request_size=4 [17:13:53]MH_SAM_APDU [17:13:53]CAPDU: 80 17 00 00 [17:13:53]Write to MH i2c: E2 08 00 06 0C 80 17 00 00 00 00 00 00 92 [17:13:53]Write i2c OK [17:13:53]MH_I2C_Read... [17:13:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [17:13:53]Read from MH i2c: E2 [17:13:53]MH_I2C_Read... [17:13:53]Read from MH i2c: E2 D7 00 [17:13:53]MH_I2C_Read... [17:13:53]Read from MH i2c: E2 D7 00 06 0C 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 75 [17:13:53]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:13:53]wFMCommunicate OK [17:13:53]SAM_PROTO_GetShiftData done [17:13:53]1194 (1206) - счетчики итогов смены [17:13:53] 1134 (4) - 138 - количество чеков со всеми признаками расчетов [17:13:53] 1129 (156) - счетчики операций «приход» [17:13:53] 1135 (4) - 135 - количество чеков по признаку расчетов [17:13:53] 1201 (3) - 125517.69 - общая итоговая сумма в чеках [17:13:53] 1136 (3) - 99853.00 - итоговая сумма в чеках наличными [17:13:53] 1138 (3) - 25664.69 - итоговая сумма в чеках безналичными [17:13:53] 1024 (123) - суммы налогов [17:13:53] 1006 (9) - суммы НДС [17:13:53] 1010 (1) - 0% - код ставки НДС [17:13:53] 1011 (0) - 0.00 - сумма НДС по ставке [17:13:53] 1006 (12) - суммы НДС [17:13:53] 1010 (1) - 12% - код ставки НДС [17:13:53] 1011 (3) - 13332.58 - сумма НДС по ставке [17:13:53] 1007 (9) - суммы НСП [17:13:53] 1014 (1) - 0% - код ставки НСП [17:13:53] 1015 (0) - 0.00 - сумма НСП по ставке [17:13:53] 1007 (12) - суммы НСП [17:13:53] 1014 (1) - 1% - код ставки НСП [17:13:53] 1015 (3) - 1111.05 - сумма НСП по ставке [17:13:53] 1007 (9) - суммы НСП [17:13:53] 1014 (1) - 2% - код ставки НСП [17:13:53] 1015 (0) - 0.00 - сумма НСП по ставке [17:13:53] 1007 (9) - суммы НСП [17:13:53] 1014 (1) - 3% - код ставки НСП [17:13:53] 1015 (0) - 0.00 - сумма НСП по ставке [17:13:53] 1007 (9) - суммы НСП [17:13:53] 1014 (1) - 5% - код ставки НСП [17:13:53] 1015 (0) - 0.00 - сумма НСП по ставке [17:13:53] 1007 (9) - суммы НСП [17:13:53] 1014 (1) - 0,50% - код ставки НСП [17:13:53] 1015 (0) - 0.00 - сумма НСП по ставке [17:13:53] 1007 (9) - суммы НСП [17:13:53] 1014 (1) - 1,50% - код ставки НСП [17:13:53] 1015 (0) - 0.00 - сумма НСП по ставке [17:13:53] 1130 (152) - счетчики операций «возврат прихода» [17:13:53] 1135 (4) - 3 - количество чеков по признаку расчетов [17:13:53] 1201 (3) - 8470.00 - общая итоговая сумма в чеках [17:13:53] 1136 (3) - 8470.00 - итоговая сумма в чеках наличными [17:13:53] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [17:13:53] 1024 (122) - суммы налогов [17:13:53] 1006 (9) - суммы НДС [17:13:53] 1010 (1) - 0% - код ставки НДС [17:13:53] 1011 (0) - 0.00 - сумма НДС по ставке [17:13:53] 1006 (12) - суммы НДС [17:13:53] 1010 (1) - 12% - код ставки НДС [17:13:53] 1011 (3) - 899.63 - сумма НДС по ставке [17:13:53] 1007 (9) - суммы НСП [17:13:53] 1014 (1) - 0% - код ставки НСП [17:13:53] 1015 (0) - 0.00 - сумма НСП по ставке [17:13:53] 1007 (11) - суммы НСП [17:13:53] 1014 (1) - 1% - код ставки НСП [17:13:53] 1015 (2) - 74.97 - сумма НСП по ставке [17:13:53] 1007 (9) - суммы НСП [17:13:53] 1014 (1) - 2% - код ставки НСП [17:13:53] 1015 (0) - 0.00 - сумма НСП по ставке [17:13:53] 1007 (9) - суммы НСП [17:13:53] 1014 (1) - 3% - код ставки НСП [17:13:53] 1015 (0) - 0.00 - сумма НСП по ставке [17:13:53] 1007 (9) - суммы НСП [17:13:53] 1014 (1) - 5% - код ставки НСП [17:13:53] 1015 (0) - 0.00 - сумма НСП по ставке [17:13:53] 1007 (9) - суммы НСП [17:13:53] 1014 (1) - 0,50% - код ставки НСП [17:13:53] 1015 (0) - 0.00 - сумма НСП по ставке [17:13:53] 1007 (9) - суммы НСП [17:13:53] 1014 (1) - 1,50% - код ставки НСП [17:13:53] 1015 (0) - 0.00 - сумма НСП по ставке [17:13:53] 1131 (141) - счетчики операций «расход» [17:13:53] 1135 (4) - 0 - количество чеков по признаку расчетов [17:13:53] 1201 (0) - 0.00 - общая итоговая сумма в чеках [17:13:53] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [17:13:53] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [17:13:53] 1024 (117) - суммы налогов [17:13:53] 1006 (9) - суммы НДС [17:13:53] 1010 (1) - 0% - код ставки НДС [17:13:53] 1011 (0) - 0.00 - сумма НДС по ставке [17:13:53] 1006 (9) - суммы НДС [17:13:53] 1010 (1) - 12% - код ставки НДС [17:13:53] 1011 (0) - 0.00 - сумма НДС по ставке [17:13:53] 1007 (9) - суммы НСП [17:13:53] 1014 (1) - 0% - код ставки НСП [17:13:53] 1015 (0) - 0.00 - сумма НСП по ставке [17:13:53] 1007 (9) - суммы НСП [17:13:53] 1014 (1) - 1% - код ставки НСП [17:13:53] 1015 (0) - 0.00 - сумма НСП по ставке [17:13:53] 1007 (9) - суммы НСП [17:13:53] 1014 (1) - 2% - код ставки НСП [17:13:53] 1015 (0) - 0.00 - сумма НСП по ставке [17:13:53] 1007 (9) - суммы НСП [17:13:53] 1014 (1) - 3% - код ставки НСП [17:13:53] 1015 (0) - 0.00 - сумма НСП по ставке [17:13:53] 1007 (9) - суммы НСП [17:13:53] 1014 (1) - 5% - код ставки НСП [17:13:53] 1015 (0) - 0.00 - сумма НСП по ставке [17:13:53] 1007 (9) - суммы НСП [17:13:53] 1014 (1) - 0,50% - код ставки НСП [17:13:53] 1015 (0) - 0.00 - сумма НСП по ставке [17:13:53] 1007 (9) - суммы НСП [17:13:53] 1014 (1) - 1,50% - код ставки НСП [17:13:53] 1015 (0) - 0.00 - сумма НСП по ставке [17:13:53] 1132 (141) - счетчики операций «возврат расхода» [17:13:53] 1135 (4) - 0 - количество чеков по признаку расчетов [17:13:53] 1201 (0) - 0.00 - общая итоговая сумма в чеках [17:13:53] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [17:13:53] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [17:13:53] 1024 (117) - суммы налогов [17:13:53] 1006 (9) - суммы НДС [17:13:53] 1010 (1) - 0% - код ставки НДС [17:13:53] 1011 (0) - 0.00 - сумма НДС по ставке [17:13:53] 1006 (9) - суммы НДС [17:13:53] 1010 (1) - 12% - код ставки НДС [17:13:53] 1011 (0) - 0.00 - сумма НДС по ставке [17:13:53] 1007 (9) - суммы НСП [17:13:53] 1014 (1) - 0% - код ставки НСП [17:13:53] 1015 (0) - 0.00 - сумма НСП по ставке [17:13:53] 1007 (9) - суммы НСП [17:13:53] 1014 (1) - 1% - код ставки НСП [17:13:53] 1015 (0) - 0.00 - сумма НСП по ставке [17:13:53] 1007 (9) - суммы НСП [17:13:53] 1014 (1) - 2% - код ставки НСП [17:13:53] 1015 (0) - 0.00 - сумма НСП по ставке [17:13:53] 1007 (9) - суммы НСП [17:13:53] 1014 (1) - 3% - код ставки НСП [17:13:53] 1015 (0) - 0.00 - сумма НСП по ставке [17:13:53] 1007 (9) - суммы НСП [17:13:53] 1014 (1) - 5% - код ставки НСП [17:13:53] 1015 (0) - 0.00 - сумма НСП по ставке [17:13:53] 1007 (9) - суммы НСП [17:13:53] 1014 (1) - 0,50% - код ставки НСП [17:13:53] 1015 (0) - 0.00 - сумма НСП по ставке [17:13:53] 1007 (9) - суммы НСП [17:13:54] 1014 (1) - 1,50% - код ставки НСП [17:13:54] 1015 (0) - 0.00 - сумма НСП по ставке [17:13:54] 1133 (588) - - счетчики коррекции - не используются [17:13:54]SetTLVBufToDocument [17:13:54]Processing tag 1194 (04AA) [17:13:54]Load OK [17:13:54]SetTLVBufToDocument [17:13:54]Processing tag 1134 (046E) [17:13:54]Malloc new data [17:13:54]Processing tag 1129 (0469) [17:13:54]Load OK [17:13:54]SetTLVBufToDocument [17:13:54]Processing tag 1135 (046F) [17:13:54]Malloc new data [17:13:54]Processing tag 1201 (04B1) [17:13:54]Malloc new data [17:13:54]Processing tag 1136 (0470) [17:13:54]Malloc new data [17:13:54]Processing tag 1138 (0472) [17:13:54]Malloc new data [17:13:54]Processing tag 1024 (0400) [17:13:54]Load OK [17:13:54]SetTLVBufToDocument [17:13:54]Processing tag 1006 (03EE) [17:13:54]Load OK [17:13:54]SetTLVBufToDocument [17:13:54]Processing tag 1010 (03F2) [17:13:54]Malloc new data [17:13:54]Processing tag 1011 (03F3) [17:13:54]Malloc new data [17:13:54]SetTLVBufToDocument err=0 [17:13:54]Processing tag 1006 (03EE) [17:13:54]Load OK [17:13:54]SetTLVBufToDocument [17:13:54]Processing tag 1010 (03F2) [17:13:54]Malloc new data [17:13:54]Processing tag 1011 (03F3) [17:13:54]Malloc new data [17:13:54]SetTLVBufToDocument err=0 [17:13:54]Processing tag 1007 (03EF) [17:13:54]Load OK [17:13:54]SetTLVBufToDocument [17:13:54]Processing tag 1014 (03F6) [17:13:54]Malloc new data [17:13:54]Processing tag 1015 (03F7) [17:13:54]Malloc new data [17:13:54]SetTLVBufToDocument err=0 [17:13:54]Processing tag 1007 (03EF) [17:13:54]Load OK [17:13:54]SetTLVBufToDocument [17:13:54]Processing tag 1014 (03F6) [17:13:54]Malloc new data [17:13:54]Processing tag 1015 (03F7) [17:13:54]Malloc new data [17:13:54]SetTLVBufToDocument err=0 [17:13:54]Processing tag 1007 (03EF) [17:13:54]Load OK [17:13:54]SetTLVBufToDocument [17:13:54]Processing tag 1014 (03F6) [17:13:54]Malloc new data [17:13:54]Processing tag 1015 (03F7) [17:13:54]Malloc new data [17:13:54]SetTLVBufToDocument err=0 [17:13:54]Processing tag 1007 (03EF) [17:13:54]Load OK [17:13:54]SetTLVBufToDocument [17:13:54]Processing tag 1014 (03F6) [17:13:54]Malloc new data [17:13:54]Processing tag 1015 (03F7) [17:13:54]Malloc new data [17:13:54]SetTLVBufToDocument err=0 [17:13:54]Processing tag 1007 (03EF) [17:13:54]Load OK [17:13:54]SetTLVBufToDocument [17:13:54]Processing tag 1014 (03F6) [17:13:54]Malloc new data [17:13:54]Processing tag 1015 (03F7) [17:13:54]Malloc new data [17:13:54]SetTLVBufToDocument err=0 [17:13:54]Processing tag 1007 (03EF) [17:13:54]Load OK [17:13:54]SetTLVBufToDocument [17:13:54]Processing tag 1014 (03F6) [17:13:54]Malloc new data [17:13:54]Processing tag 1015 (03F7) [17:13:54]Malloc new data [17:13:54]SetTLVBufToDocument err=0 [17:13:54]Processing tag 1007 (03EF) [17:13:54]Load OK [17:13:54]SetTLVBufToDocument [17:13:54]Processing tag 1014 (03F6) [17:13:54]Malloc new data [17:13:54]Processing tag 1015 (03F7) [17:13:54]Malloc new data [17:13:54]SetTLVBufToDocument err=0 [17:13:54]SetTLVBufToDocument err=0 [17:13:54]SetTLVBufToDocument err=0 [17:13:54]Processing tag 1130 (046A) [17:13:54]Load OK [17:13:54]SetTLVBufToDocument [17:13:54]Processing tag 1135 (046F) [17:13:54]Malloc new data [17:13:54]Processing tag 1201 (04B1) [17:13:54]Malloc new data [17:13:54]Processing tag 1136 (0470) [17:13:54]Malloc new data [17:13:54]Processing tag 1138 (0472) [17:13:54]Malloc new data [17:13:54]Processing tag 1024 (0400) [17:13:54]Load OK [17:13:54]SetTLVBufToDocument [17:13:54]Processing tag 1006 (03EE) [17:13:54]Load OK [17:13:54]SetTLVBufToDocument [17:13:54]Processing tag 1010 (03F2) [17:13:54]Malloc new data [17:13:54]Processing tag 1011 (03F3) [17:13:54]Malloc new data [17:13:54]SetTLVBufToDocument err=0 [17:13:54]Processing tag 1006 (03EE) [17:13:54]Load OK [17:13:54]SetTLVBufToDocument [17:13:54]Processing tag 1010 (03F2) [17:13:54]Malloc new data [17:13:54]Processing tag 1011 (03F3) [17:13:54]Malloc new data [17:13:54]SetTLVBufToDocument err=0 [17:13:54]Processing tag 1007 (03EF) [17:13:54]Load OK [17:13:54]SetTLVBufToDocument [17:13:54]Processing tag 1014 (03F6) [17:13:54]Malloc new data [17:13:54]Processing tag 1015 (03F7) [17:13:54]Malloc new data [17:13:54]SetTLVBufToDocument err=0 [17:13:54]Processing tag 1007 (03EF) [17:13:54]Load OK [17:13:54]SetTLVBufToDocument [17:13:54]Processing tag 1014 (03F6) [17:13:54]Malloc new data [17:13:54]Processing tag 1015 (03F7) [17:13:54]Malloc new data [17:13:54]SetTLVBufToDocument err=0 [17:13:54]Processing tag 1007 (03EF) [17:13:54]Load OK [17:13:54]SetTLVBufToDocument [17:13:54]Processing tag 1014 (03F6) [17:13:54]Malloc new data [17:13:54]Processing tag 1015 (03F7) [17:13:54]Malloc new data [17:13:54]SetTLVBufToDocument err=0 [17:13:54]Processing tag 1007 (03EF) [17:13:54]Load OK [17:13:54]SetTLVBufToDocument [17:13:54]Processing tag 1014 (03F6) [17:13:54]Malloc new data [17:13:54]Processing tag 1015 (03F7) [17:13:54]Malloc new data [17:13:54]SetTLVBufToDocument err=0 [17:13:54]Processing tag 1007 (03EF) [17:13:54]Load OK [17:13:54]SetTLVBufToDocument [17:13:54]Processing tag 1014 (03F6) [17:13:54]Malloc new data [17:13:54]Processing tag 1015 (03F7) [17:13:54]Malloc new data [17:13:54]SetTLVBufToDocument err=0 [17:13:54]Processing tag 1007 (03EF) [17:13:54]Load OK [17:13:54]SetTLVBufToDocument [17:13:54]Processing tag 1014 (03F6) [17:13:54]Malloc new data [17:13:54]Processing tag 1015 (03F7) [17:13:54]Malloc new data [17:13:54]SetTLVBufToDocument err=0 [17:13:54]Processing tag 1007 (03EF) [17:13:54]Load OK [17:13:54]SetTLVBufToDocument [17:13:54]Processing tag 1014 (03F6) [17:13:54]Malloc new data [17:13:54]Processing tag 1015 (03F7) [17:13:54]Malloc new data [17:13:54]SetTLVBufToDocument err=0 [17:13:54]SetTLVBufToDocument err=0 [17:13:54]SetTLVBufToDocument err=0 [17:13:54]Processing tag 1131 (046B) [17:13:54]Load OK [17:13:54]SetTLVBufToDocument [17:13:54]Processing tag 1135 (046F) [17:13:54]Malloc new data [17:13:54]Processing tag 1201 (04B1) [17:13:54]Malloc new data [17:13:54]Processing tag 1136 (0470) [17:13:54]Malloc new data [17:13:54]Processing tag 1138 (0472) [17:13:54]Malloc new data [17:13:54]Processing tag 1024 (0400) [17:13:54]Load OK [17:13:54]SetTLVBufToDocument [17:13:54]Processing tag 1006 (03EE) [17:13:54]Load OK [17:13:54]SetTLVBufToDocument [17:13:54]Processing tag 1010 (03F2) [17:13:54]Malloc new data [17:13:54]Processing tag 1011 (03F3) [17:13:54]Malloc new data [17:13:54]SetTLVBufToDocument err=0 [17:13:54]Processing tag 1006 (03EE) [17:13:54]Load OK [17:13:54]SetTLVBufToDocument [17:13:54]Processing tag 1010 (03F2) [17:13:54]Malloc new data [17:13:54]Processing tag 1011 (03F3) [17:13:54]Malloc new data [17:13:54]SetTLVBufToDocument err=0 [17:13:54]Processing tag 1007 (03EF) [17:13:54]Load OK [17:13:54]SetTLVBufToDocument [17:13:54]Processing tag 1014 (03F6) [17:13:54]Malloc new data [17:13:54]Processing tag 1015 (03F7) [17:13:54]Malloc new data [17:13:54]SetTLVBufToDocument err=0 [17:13:54]Processing tag 1007 (03EF) [17:13:54]Load OK [17:13:54]SetTLVBufToDocument [17:13:54]Processing tag 1014 (03F6) [17:13:54]Malloc new data [17:13:54]Processing tag 1015 (03F7) [17:13:54]Malloc new data [17:13:54]SetTLVBufToDocument err=0 [17:13:54]Processing tag 1007 (03EF) [17:13:54]Load OK [17:13:54]SetTLVBufToDocument [17:13:54]Processing tag 1014 (03F6) [17:13:54]Malloc new data [17:13:54]Processing tag 1015 (03F7) [17:13:54]Malloc new data [17:13:54]SetTLVBufToDocument err=0 [17:13:54]Processing tag 1007 (03EF) [17:13:54]Load OK [17:13:54]SetTLVBufToDocument [17:13:54]Processing tag 1014 (03F6) [17:13:54]Malloc new data [17:13:54]Processing tag 1015 (03F7) [17:13:54]Malloc new data [17:13:54]SetTLVBufToDocument err=0 [17:13:54]Processing tag 1007 (03EF) [17:13:54]Load OK [17:13:54]SetTLVBufToDocument [17:13:54]Processing tag 1014 (03F6) [17:13:54]Malloc new data [17:13:54]Processing tag 1015 (03F7) [17:13:54]Malloc new data [17:13:54]SetTLVBufToDocument err=0 [17:13:54]Processing tag 1007 (03EF) [17:13:54]Load OK [17:13:54]SetTLVBufToDocument [17:13:54]Processing tag 1014 (03F6) [17:13:54]Malloc new data [17:13:54]Processing tag 1015 (03F7) [17:13:54]Malloc new data [17:13:54]SetTLVBufToDocument err=0 [17:13:54]Processing tag 1007 (03EF) [17:13:54]Load OK [17:13:54]SetTLVBufToDocument [17:13:54]Processing tag 1014 (03F6) [17:13:54]Malloc new data [17:13:54]Processing tag 1015 (03F7) [17:13:54]Malloc new data [17:13:54]SetTLVBufToDocument err=0 [17:13:54]SetTLVBufToDocument err=0 [17:13:54]SetTLVBufToDocument err=0 [17:13:54]Processing tag 1132 (046C) [17:13:54]Load OK [17:13:54]SetTLVBufToDocument [17:13:54]Processing tag 1135 (046F) [17:13:54]Malloc new data [17:13:54]Processing tag 1201 (04B1) [17:13:54]Malloc new data [17:13:54]Processing tag 1136 (0470) [17:13:54]Malloc new data [17:13:54]Processing tag 1138 (0472) [17:13:54]Malloc new data [17:13:54]Processing tag 1024 (0400) [17:13:54]Load OK [17:13:54]SetTLVBufToDocument [17:13:54]Processing tag 1006 (03EE) [17:13:54]Load OK [17:13:54]SetTLVBufToDocument [17:13:54]Processing tag 1010 (03F2) [17:13:54]Malloc new data [17:13:54]Processing tag 1011 (03F3) [17:13:54]Malloc new data [17:13:54]SetTLVBufToDocument err=0 [17:13:54]Processing tag 1006 (03EE) [17:13:54]Load OK [17:13:54]SetTLVBufToDocument [17:13:54]Processing tag 1010 (03F2) [17:13:54]Malloc new data [17:13:54]Processing tag 1011 (03F3) [17:13:54]Malloc new data [17:13:54]SetTLVBufToDocument err=0 [17:13:54]Processing tag 1007 (03EF) [17:13:54]Load OK [17:13:54]SetTLVBufToDocument [17:13:54]Processing tag 1014 (03F6) [17:13:54]Malloc new data [17:13:54]Processing tag 1015 (03F7) [17:13:54]Malloc new data [17:13:54]SetTLVBufToDocument err=0 [17:13:54]Processing tag 1007 (03EF) [17:13:54]Load OK [17:13:54]SetTLVBufToDocument [17:13:54]Processing tag 1014 (03F6) [17:13:54]Malloc new data [17:13:54]Processing tag 1015 (03F7) [17:13:54]Malloc new data [17:13:54]SetTLVBufToDocument err=0 [17:13:54]Processing tag 1007 (03EF) [17:13:54]Load OK [17:13:54]SetTLVBufToDocument [17:13:54]Processing tag 1014 (03F6) [17:13:54]Malloc new data [17:13:54]Processing tag 1015 (03F7) [17:13:54]Malloc new data [17:13:54]SetTLVBufToDocument err=0 [17:13:54]Processing tag 1007 (03EF) [17:13:54]Load OK [17:13:54]SetTLVBufToDocument [17:13:54]Processing tag 1014 (03F6) [17:13:54]Malloc new data [17:13:54]Processing tag 1015 (03F7) [17:13:54]Malloc new data [17:13:54]SetTLVBufToDocument err=0 [17:13:54]Processing tag 1007 (03EF) [17:13:54]Load OK [17:13:54]SetTLVBufToDocument [17:13:54]Processing tag 1014 (03F6) [17:13:54]Malloc new data [17:13:54]Processing tag 1015 (03F7) [17:13:54]Malloc new data [17:13:54]SetTLVBufToDocument err=0 [17:13:54]Processing tag 1007 (03EF) [17:13:54]Load OK [17:13:54]SetTLVBufToDocument [17:13:54]Processing tag 1014 (03F6) [17:13:54]Malloc new data [17:13:54]Processing tag 1015 (03F7) [17:13:54]Malloc new data [17:13:54]SetTLVBufToDocument err=0 [17:13:54]Processing tag 1007 (03EF) [17:13:54]Load OK [17:13:54]SetTLVBufToDocument [17:13:54]Processing tag 1014 (03F6) [17:13:54]Malloc new data [17:13:54]Processing tag 1015 (03F7) [17:13:54]Malloc new data [17:13:54]SetTLVBufToDocument err=0 [17:13:54]SetTLVBufToDocument err=0 [17:13:54]SetTLVBufToDocument err=0 [17:13:54]Processing tag 1133 (046D) [17:13:54]Malloc new data [17:13:54]SetTLVBufToDocument err=0 [17:13:54]SetTLVBufToDocument err=0 [17:13:54]Malloc new data [17:13:54]SAM_PROTO_GetFMData [17:13:54]wFMCommunicate request_size=4 [17:13:54]MH_SAM_APDU [17:13:54]CAPDU: 80 13 03 00 [17:13:54]Write to MH i2c: E2 08 00 07 0C 80 13 03 00 00 00 00 00 92 [17:13:54]Write i2c OK [17:13:54]MH_I2C_Read... [17:13:54]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [17:13:54]Read from MH i2c: E2 [17:13:54]MH_I2C_Read... [17:13:54]Read from MH i2c: E2 FD 00 [17:13:54]MH_I2C_Read... [17:13:54]Read from MH i2c: E2 FD 00 07 0C 00 C5 04 85 04 C1 04 6E 04 04 00 96 09 01 00 69 04 A3 00 6F 04 04 00 7C 04 01 00 B1 04 05 00 4A 7D A4 3A 01 70 04 05 00 7C 3B D5 0D 01 72 04 04 00 CE 41 CF 2C 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 F4 6F 6C 21 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 10 F0 C8 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 9C 00 6F 04 04 00 1A 05 00 00 B1 04 04 00 8C A7 F4 0E 70 04 04 00 8C A7 F4 0E 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 93 A3 96 01 EF 03 09 90 00 31 [17:13:55]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 96 09 01 00 69 04 A3 00 6F 04 04 00 7C 04 01 00 B1 04 05 00 4A 7D A4 3A 01 70 04 05 00 7C 3B D5 0D 01 72 04 04 00 CE 41 CF 2C 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 F4 6F 6C 21 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 10 F0 C8 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 9C 00 6F 04 04 00 1A 05 00 00 B1 04 04 00 8C A7 F4 0E 70 04 04 00 8C A7 F4 0E 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 93 A3 96 01 EF 03 09 90 00 [17:13:55]wFMCommunicate OK [17:13:55]wFMCommunicate request_size=4 [17:13:55]MH_SAM_APDU [17:13:55]CAPDU: 80 17 00 00 [17:13:55]Write to MH i2c: E2 08 00 08 0C 80 17 00 00 00 00 00 00 94 [17:13:55]Write i2c OK [17:13:55]MH_I2C_Read... [17:13:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:13:55]Read from MH i2c: E2 [17:13:55]MH_I2C_Read... [17:13:55]Read from MH i2c: E2 FD 00 [17:13:55]MH_I2C_Read... [17:13:55]Read from MH i2c: E2 FD 00 08 0C 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 85 E2 21 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 D2 [17:13:55]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 85 E2 21 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [17:13:55]wFMCommunicate OK [17:13:55]wFMCommunicate request_size=4 [17:13:55]MH_SAM_APDU [17:13:55]CAPDU: 80 17 00 00 [17:13:55]Write to MH i2c: E2 08 00 09 0C 80 17 00 00 00 00 00 00 95 [17:13:55]Write i2c OK [17:13:55]MH_I2C_Read... [17:13:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:13:55]Read from MH i2c: E2 [17:13:55]MH_I2C_Read... [17:13:55]Read from MH i2c: E2 FD 00 [17:13:55]MH_I2C_Read... [17:13:55]Read from MH i2c: E2 FD 00 09 0C 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 A7 [17:13:56]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 OFD Sender: No OFD packet to send [17:13:56]6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [17:13:56]wFMCommunicate OK [17:13:56]wFMCommunicate request_size=4 [17:13:56]MH_SAM_APDU [17:13:56]CAPDU: 80 17 00 00 [17:13:56]Write to MH i2c: E2 08 00 0A 0C 80 17 00 00 00 00 00 00 96 [17:13:56]Write i2c OK [17:13:56]MH_I2C_Read... [17:13:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:13:56]Read from MH i2c: E2 [17:13:56]MH_I2C_Read... [17:13:56]Read from MH i2c: E2 FD 00 [17:13:56]MH_I2C_Read... [17:13:56]Read from MH i2c: E2 FD 00 0A 0C 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 22 [17:13:56]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [17:13:56]wFMCommunicate OK [17:13:56]wFMCommunicate request_size=4 [17:13:56]MH_SAM_APDU [17:13:56]CAPDU: 80 17 00 00 [17:13:56]Write to MH i2c: E2 08 00 0B 0C 80 17 00 00 00 00 00 00 97 [17:13:56]Write i2c OK [17:13:56]MH_I2C_Read... [17:13:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [17:13:57]Read from MH i2c: E2 [17:13:57]MH_I2C_Read... [17:13:57]Read from MH i2c: E2 E2 00 [17:13:57]MH_I2C_Read... [17:13:57]Read from MH i2c: E2 E2 00 0B 0C 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 75 [17:13:57]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [17:13:57]wFMCommunicate OK [17:13:57]SAM_PROTO_GetFMData done [17:13:57]FM_GetFMData:85 04 C1 04 6E 04 04 00 96 09 01 00 69 04 A3 00 6F 04 04 00 7C 04 01 00 B1 04 05 00 4A 7D A4 3A 01 70 04 05 00 7C 3B D5 0D 01 72 04 04 00 CE 41 CF 2C 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 F4 6F 6C 21 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 10 F0 C8 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 9C 00 6F 04 04 00 1A 05 00 00 B1 04 04 00 8C A7 F4 0E 70 04 04 00 8C A7 F4 0E 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 93 A3 96 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 85 E2 21 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [17:13:57]oper:6F 04 04 00 7C 04 01 00 B1 04 05 00 4A 7D A4 3A 01 70 04 05 00 7C 3B D5 0D 01 72 04 04 00 CE 41 CF 2C 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 F4 6F 6C 21 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 10 F0 C8 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 [17:13:58]total:4A 7D A4 3A 01 [17:13:58]Malloc new data [17:13:58]oper:6F 04 04 00 1A 05 00 00 B1 04 04 00 8C A7 F4 0E 70 04 04 00 8C A7 F4 0E 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 93 A3 96 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 85 E2 21 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [17:13:58]total:8C A7 F4 0E [17:13:58]Malloc new data [17:13:58]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 [17:13:58]total: [17:13:58]Malloc new data [17:13:58]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 [17:13:58]total: [17:13:58]Malloc new data [17:13:58]KKMPrepareXReportFMData err=0 [17:13:58]Х отчет ИНН: 02508201610067 Кассир: Исманалиев Д. 04.06.2024 17:13 Смена: 266 РНМ: 0000000000098096 ЗНМ: 0300000181 СНО: Общий режим Всего чеков: 138 ИТОГИ ПРИХОД Чеков: 135 Общий итог: 125517.69 Итого наличными: 99853.00 Итого безнал.: 25664.69 НДС 0% : 0.00 НДС 12% : 13332.58 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 1111.05 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 3 Общий итог: 8470.00 Итого наличными: 8470.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 899.63 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 74.97 ИТОГИ РАСХОД Чеков: 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 Нал. в кассе: 91383.00 НС Приход: 52788258.02 НС Возвр.Прихода: 2509147.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000965400 [17:13:58]StoreToDocumentArchive [17:13:58]MH_GetDate [17:13:58]Write to MH i2c: F0 00 00 0C 0C 07 [17:13:58]Write i2c OK [17:13:58]MH_I2C_Read... [17:13:58]Read from MH i2c: F0 [17:13:58]MH_I2C_Read... [17:13:58]Read from MH i2c: F0 09 00 [17:13:58]MH_I2C_Read... [17:13:58]Read from MH i2c: F0 09 00 0C 0C 00 57 4B 5F 66 B2 22 B0 64 5F [17:13:58]shift 266 fd 1717521239 [17:13:58]Create dir for shift 0266 [17:13:58]save to /storage/0266/doc_1717521239 [17:13:58]save last doc name /storage/0266/doc_1717521239 to /storage/kkm_last_doc_name [17:13:58]save OK [17:13:58]Clear old archive folders... [17:13:58]NVStorageSaveData kkm_last_timestamp [17:13:58]File name is /storage/kkm_last_timestamp [17:13:58]Write 4 bytes [17:13:58]NVStorageSaveData done [17:13:58]ExternCall_PrintAddStr [17:13:58]wPrintStart [17:13:58]Write to MH i2c: 01 00 00 0D 0C 19 [17:13:58]Write i2c OK [17:13:58]MH_I2C_Read... [17:13:58]Read from MH i2c: 01 [17:13:58]MH_I2C_Read... [17:13:58]Read from MH i2c: 01 07 00 [17:13:58]MH_I2C_Read... [17:13:58]Read from MH i2c: 01 07 00 0D 0C 00 00 00 00 00 FF 0F 2E [17:13:58]RasterBufferAndPrint [17:13:58]line Х отчет [17:13:58]line ИНН: 02508201610067 [17:13:58]line Кассир: Исманалиев Д. [17:13:58]line 04.06.2024 17:13 [17:13:58]line Смена: 266 [17:13:58]line РНМ: 0000000000098096 [17:13:58]line ЗНМ: 0300000181 [17:13:58]line СНО: Общий режим [17:13:58]line Всего чеков: 138 [17:13:58]line ИТОГИ ПРИХОД [17:13:58]line Чеков: 135 [17:13:58]line Общий итог: 125517.69 [17:13:58]line Итого наличными: 99853.00 [17:13:58]line Итого безнал.: 25664.69 [17:13:58]line НДС 0% : 0.00 [17:13:58]line НДС 12% : 13332.58 [17:13:58]line НСП 0% : 0.00 [17:13:58]line НСП 1,50% : 0.00 [17:13:58]line НСП 0,50% : 0.00 [17:13:58]line НСП 5% : 0.00 [17:13:58]line НСП 3% : 0.00 [17:13:58]line НСП 2% : 0.00 [17:13:58]line НСП 1% : 1111.05 [17:13:58]line ИТОГИ ВОЗВРАТ ПРИХОДА [17:13:58]line Чеков: 3 [17:13:58]line Общий итог: 8470.00 [17:13:58]line Итого наличными: 8470.00 [17:13:58]line Итого безнал.: 0.00 [17:13:58]line НДС 0% : 0.00 [17:13:58]line НДС 12% : 899.63 [17:13:58]line НСП 0% : 0.00 [17:13:58]line НСП 1,50% : 0.00 [17:13:58]line НСП 0,50% : 0.00 [17:13:58]line НСП 5% : 0.00 [17:13:58]line НСП 3% : 0.00 [17:13:58]line НСП 2% : 0.00 [17:13:58]line НСП 1% : 74.97 [17:13:58]line ИТОГИ РАСХОД [17:13:58]line Чеков: 0 [17:13:58]line Общий итог: 0.00 [17:13:58]line Итого наличными: 0.00 [17:13:58]line Итого безнал.: 0.00 [17:13:58]line НДС 0% : 0.00 [17:13:58]line НДС 12% : 0.00 [17:13:58]line НСП 0% : 0.00 [17:13:58]line НСП 1,50% : 0.00 [17:13:58]line НСП 0,50% : 0.00 [17:13:58]line НСП 5% : 0.00 [17:13:58]line НСП 3% : 0.00 [17:13:58]line НСП 2% : 0.00 [17:13:58]line НСП 1% : 0.00 [17:13:58]line ИТОГИ ВОЗВРАТ РАСХОДА [17:13:58]line Чеков: 0 [17:13:58]line Общий итог: 0.00 [17:13:58]line Итого наличными: 0.00 [17:13:58]line Итого безнал.: 0.00 [17:13:58]line НДС 0% : 0.00 [17:13:58]line НДС 12% : 0.00 [17:13:58]line НСП 0% : 0.00 [17:13:58]line НСП 1,50% : 0.00 [17:13:58]line НСП 0,50% : 0.00 [17:13:58]line НСП 5% : 0.00 [17:13:58]line НСП 3% : 0.00 [17:13:58]line НСП 2% : 0.00 [17:13:58]line НСП 1% : 0.00 [17:13:58]line Сумма внесений: 0.00 [17:13:58]line Сумма выплат: 0.00 [17:13:58]line Нал. в кассе: 91383.00 [17:13:58]line НС Приход: 52788258.02 [17:13:58]line НС Возвр.Прихода: 2509147.00 [17:13:58]line НС Расход: 0.00 [17:13:58]line НС Возвр.Расхода: 0.00 [17:13:58]line ФМ: 0000000000965400 [17:13:58]written 0, free lines is 4095 [17:13:59]Write to MH i2c: 01 00 00 58 0C 64 [17:13:59]Write i2c OK [17:13:59]MH_I2C_Read... [17:13:59]Read from MH i2c: 01 [17:13:59]MH_I2C_Read... [17:13:59]Read from MH i2c: 01 07 00 [17:13:59]MH_I2C_Read... [17:13:59]Read from MH i2c: 01 07 00 58 0C 00 00 00 00 00 9E 0A 13 [17:13:59]RasterBufferAndPrint [17:13:59]line [17:13:59]line [17:13:59]line [17:13:59]line [17:13:59]line [17:13:59]written 0, free lines is 2748 [17:13:59]MH_Cut [17:13:59]Write to MH i2c: D1 01 00 5F 0C 01 3D [17:13:59]Write i2c OK [17:13:59]MH_I2C_Read... [17:13:59]Read from MH i2c: D1 [17:13:59]MH_I2C_Read... [17:13:59]Read from MH i2c: D1 01 00 [17:13:59]MH_I2C_Read... [17:13:59]Read from MH i2c: D1 01 00 5F 0C 00 3C [17:13:59]Write to MH i2c: 01 00 00 60 0C 6C [17:13:59]Write i2c OK [17:13:59]MH_I2C_Read... [17:14:00]*** Cut start [17:14:00]*** Partial cut [17:14:00]*** CUTSNS_PIN = 1 [17:14:00]*** CUTSNS_PIN = 0 [17:14:00]*** Brake cut motor [17:14:00]Read from MH i2c: 01 [17:14:00]MH_I2C_Read... [17:14:00]*** Stop cut motor [17:14:00]*** Cut end [17:14:00]Read from MH i2c: 01 07 00 [17:14:00]MH_I2C_Read... [17:14:00]Read from MH i2c: 01 07 00 60 0C 00 00 00 00 00 FF 0F 81 [17:14:00]process_action x_report done [17:14:00]requested_data is exist [17:14:00]produce_requested_data [17:14:00]requested_item fd.num is exist - process it [17:14:00]SAM_PROTO_GetFieldsCounters [17:14:00]wFMCommunicate request_size=4 [17:14:00]MH_SAM_APDU [17:14:00]CAPDU: 80 13 00 00 [17:14:00]Write to MH i2c: E2 08 00 61 0C 80 13 00 00 00 00 00 00 E9 [17:14:00]Write i2c OK [17:14:00]MH_I2C_Read... [17:14:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:14:01]Read from MH i2c: E2 [17:14:01]MH_I2C_Read... [17:14:01]Read from MH i2c: E2 62 00 [17:14:01]MH_I2C_Read... [17:14:01]Read from MH i2c: E2 62 00 61 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 20 0C 01 00 0E 04 04 00 45 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 1A [17:14:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 20 0C 01 00 0E 04 04 00 45 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 [17:14:01]wFMCommunicate OK [17:14:01]SAM_PROTO_GetFieldsCounters done [17:14:01]requested_item shift.num is exist - process it [17:14:01]requested_item shift.opened is exist - process it [17:14:01]req_shift_opened [17:14:01]FM_GetShiftState [17:14:01]SAM_PROTO_GetShiftState [17:14:01]wFMCommunicate request_size=4 [17:14:01]MH_SAM_APDU [17:14:01]CAPDU: 80 13 01 00 [17:14:01]Write to MH i2c: E2 08 00 62 0C 80 13 01 00 00 00 00 00 EB [17:14:01]OFD Sender: No OFD packet to send [17:14:01]Write i2c OK [17:14:01]MH_I2C_Read... [17:14:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:14:01]Read from MH i2c: E2 [17:14:01]MH_I2C_Read... [17:14:01]Read from MH i2c: E2 0E 00 [17:14:01]MH_I2C_Read... [17:14:01]Read from MH i2c: E2 0E 00 62 0C 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 87 [17:14:01]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [17:14:01]wFMCommunicate OK [17:14:01]SAM_PROTO_GetShiftState done [17:14:01]FM_GetShiftState done [17:14:01]req_shift_opened done [17:14:01]requested_item shift.open_date is exist - process it [17:14:01]req_shift_open_date [17:14:01]req_shift_open_date done [17:14:01]produce_requested_data done [17:14:01]produce_requested_data return {"fd.num":68640,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [17:14:01]process_action_free x_report [17:14:01]json_value_free [17:14:01]json_value_free done [17:14:01]process_json_proto returns [17:14:01]Send response to host [17:14:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":68640,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [17:14:01]free response buf [17:14:01]execute_script done [17:14:01]execute_script returns [17:14:01]free content buf [17:14:01]Sock 9.Close socket [17:14:01]Sock 9.Thread stoped [17:14:06]OFD Sender: No OFD packet to send [17:14:11]OFD Sender: No OFD packet to send [17:14:16]OFD Sender: No OFD packet to send [17:14:21]OFD Sender: No OFD packet to send [17:14:24]accept exits with 7 [17:14:24]New connection [17:14:24]New thread 3067153764 created [17:14:24]Thread 3067297124 joined [17:14:24]Waiting for new connection... [17:14:24] Sock 7.Parse request [17:14:24]Sock 7.Check first char [17:14:24]Sock 7.First char is OK [17:14:24]request: POST /json_proto HTTP/1.0 [17:14:24]Method: POST [17:14:24]URL: /json_proto [17:14:24]Method is POST - this is cgi request [17:14:24]url: /json_proto [17:14:24]query_string will be loaded in cgi processing [17:14:24]execute_cgi json_proto POST (null) [17:14:24]execute_cgi path=json_proto method=POST [17:14:24]POST find Content-Length [17:14:24]Host: 172.17.36.132:8080 [17:14:24]Content-Length: 215 [17:14:24]Content-Type: application/json [17:14:24] [17:14:24]POST finish read [17:14:24]Found Content-Length = 215 [17:14:24]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:14:24]execute_script... [17:14:24]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:14:24]POST & json_proto [17:14:24]process_json_proto [17:14:24]json parsed OK: [17:14:24]protocol is kg_v1.0 [17:14:24]action value=get_value [17:14:24]process_action get_value [17:14:24]cmd_get_value [17:14:24]process_action get_value done [17:14:24]requested_data is exist [17:14:24]produce_requested_data [17:14:24]requested_item kkm.sn is exist - process it [17:14:24]requested_item kkm.ver is exist - process it [17:14:24]requested_item fm.sn is exist - process it [17:14:24]wFMCommunicate request_size=4 [17:14:24]MH_SAM_APDU [17:14:24]CAPDU: 80 11 00 00 [17:14:24]Write to MH i2c: E2 08 00 63 0C 80 11 00 00 00 00 00 00 E9 [17:14:24]Write i2c OK [17:14:24]MH_I2C_Read... [17:14:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:14:24]Read from MH i2c: E2 [17:14:24]MH_I2C_Read... [17:14:24]Read from MH i2c: E2 17 00 [17:14:24]MH_I2C_Read... [17:14:24]Read from MH i2c: E2 17 00 63 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 34 [17:14:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [17:14:24]wFMCommunicate OK [17:14:24]requested_item fd.num is exist - process it [17:14:24]SAM_PROTO_GetFieldsCounters [17:14:24]wFMCommunicate request_size=4 [17:14:24]MH_SAM_APDU [17:14:24]CAPDU: 80 13 00 00 [17:14:24]Write to MH i2c: E2 08 00 64 0C 80 13 00 00 00 00 00 00 EC [17:14:24]Write i2c OK [17:14:24]MH_I2C_Read... [17:14:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:14:25]Read from MH i2c: E2 [17:14:25]MH_I2C_Read... [17:14:25]Read from MH i2c: E2 62 00 [17:14:25]MH_I2C_Read... [17:14:25]Read from MH i2c: E2 62 00 64 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 20 0C 01 00 0E 04 04 00 45 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 1D [17:14:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 20 0C 01 00 0E 04 04 00 45 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 [17:14:25]wFMCommunicate OK [17:14:25]SAM_PROTO_GetFieldsCounters done [17:14:25]requested_item shift.num is exist - process it [17:14:25]requested_item shift.opened is exist - process it [17:14:25]req_shift_opened [17:14:25]FM_GetShiftState [17:14:25]SAM_PROTO_GetShiftState [17:14:25]wFMCommunicate request_size=4 [17:14:25]MH_SAM_APDU [17:14:25]CAPDU: 80 13 01 00 [17:14:25]Write to MH i2c: E2 08 00 65 0C 80 13 01 00 00 00 00 00 EE [17:14:25]Write i2c OK [17:14:25]MH_I2C_Read... [17:14:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:14:25]Read from MH i2c: E2 [17:14:25]MH_I2C_Read... [17:14:25]Read from MH i2c: E2 0E 00 [17:14:25]MH_I2C_Read... [17:14:25]Read from MH i2c: E2 0E 00 65 0C 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 8A [17:14:25]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [17:14:25]wFMCommunicate OK [17:14:25]SAM_PROTO_GetShiftState done [17:14:25]FM_GetShiftState done [17:14:25]req_shift_opened done [17:14:25]requested_item shift.open_date is exist - process it [17:14:25]req_shift_open_date [17:14:25]req_shift_open_date done [17:14:25]produce_requested_data done [17:14:25]produce_requested_data return {"kkm.sn":"0300000181","kkm.ver":"001","fm.sn":"0000000000965400","fd.num":68640,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [17:14:25]process_action_free get_value [17:14:25]json_value_free [17:14:25]json_value_free done [17:14:25]process_json_proto returns [17:14:25]Send response to host [17:14:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000181","kkm.ver":"001","fm.sn":"0000000000965400","fd.num":68640,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [17:14:25]free response buf [17:14:25]execute_script done [17:14:25]execute_script returns [17:14:25]free content buf [17:14:25]Sock 7.Close socket [17:14:25]Sock 7.Thread stoped [17:14:25]accept exits with 10 [17:14:25]New connection [17:14:25]New thread 3067297124 created [17:14:25]Thread 3067153764 joined [17:14:25]Waiting for new connection... [17:14:25] Sock 10.Parse request [17:14:25]Sock 10.Check first char [17:14:25]Sock 10.First char is OK [17:14:25]request: POST /json_proto HTTP/1.0 [17:14:25]Method: POST [17:14:25]URL: /json_proto [17:14:25]Method is POST - this is cgi request [17:14:25]url: /json_proto [17:14:25]query_string will be loaded in cgi processing [17:14:25]execute_cgi json_proto POST (null) [17:14:25]execute_cgi path=json_proto method=POST [17:14:25]POST find Content-Length [17:14:25]Host: 172.17.36.132:8080 [17:14:25]Content-Length: 331 [17:14:25]Content-Type: application/json [17:14:25] [17:14:25]POST finish read [17:14:25]Found Content-Length = 331 [17:14:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [17:14:25]execute_script... [17:14:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [17:14:25]POST & json_proto [17:14:25]process_json_proto [17:14:25]json parsed OK: [17:14:25]protocol is kg_v1.0 [17:14:25]action value=get_value [17:14:25]process_action get_value [17:14:25]cmd_get_value [17:14:25]process_action get_value done [17:14:25]requested_data is exist [17:14:25]produce_requested_data [17:14:25]requested_item fm.sale.total is exist - process it [17:14:25]SAM_PROTO_GetFMData [17:14:25]wFMCommunicate request_size=4 [17:14:25]MH_SAM_APDU [17:14:25]CAPDU: 80 13 03 00 [17:14:25]Write to MH i2c: E2 08 00 66 0C 80 13 03 00 00 00 00 00 F1 [17:14:25]Write i2c OK [17:14:25]MH_I2C_Read... [17:14:25]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [17:14:25]Read from MH i2c: E2 [17:14:25]MH_I2C_Read... [17:14:25]Read from MH i2c: E2 FD 00 [17:14:25]MH_I2C_Read... [17:14:25]Read from MH i2c: E2 FD 00 66 0C 00 C5 04 85 04 C1 04 6E 04 04 00 96 09 01 00 69 04 A3 00 6F 04 04 00 7C 04 01 00 B1 04 05 00 4A 7D A4 3A 01 70 04 05 00 7C 3B D5 0D 01 72 04 04 00 CE 41 CF 2C 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 F4 6F 6C 21 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 10 F0 C8 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 9C 00 6F 04 04 00 1A 05 00 00 B1 04 04 00 8C A7 F4 0E 70 04 04 00 8C A7 F4 0E 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 93 A3 96 01 EF 03 09 90 00 90 [17:14:25]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 96 09 01 00 69 04 A3 00 6F 04 04 00 7C 04 01 00 B1 04 05 00 4A 7D A4 3A 01 70 04 05 00 7C 3B D5 0D 01 72 04 04 00 CE 41 CF 2C 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 F4 6F 6C 21 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 10 F0 C8 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 9C 00 6F 04 04 00 1A 05 00 00 B1 04 04 00 8C A7 F4 0E 70 04 04 00 8C A7 F4 0E 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 93 A3 96 01 EF 03 09 90 00 [17:14:25]wFMCommunicate OK [17:14:25]wFMCommunicate request_size=4 [17:14:25]MH_SAM_APDU [17:14:25]CAPDU: 80 17 00 00 [17:14:25]Write to MH i2c: E2 08 00 67 0C 80 17 00 00 00 00 00 00 F3 [17:14:25]Write i2c OK [17:14:25]MH_I2C_Read... [17:14:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:14:26]Read from MH i2c: E2 [17:14:26]MH_I2C_Read... [17:14:26]Read from MH i2c: E2 FD 00 [17:14:26]MH_I2C_Read... [17:14:26]Read from MH i2c: E2 FD 00 67 0C 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 85 E2 21 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 31 [17:14:26]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 85 E2 21 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [17:14:26]wFMCommunicate OK [17:14:26]wFMCommunicate request_size=4 [17:14:26]MH_SAM_APDU [17:14:26]CAPDU: 80 17 00 00 [17:14:26]Write to MH i2c: E2 08 00 68 0C 80 17 00 00 00 00 00 00 F4 [17:14:26]Write i2c OK [17:14:26]MH_I2C_Read... [17:14:26]OFD Sender: No OFD packet to send [17:14:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:14:26]Read from MH i2c: E2 [17:14:26]MH_I2C_Read... [17:14:26]Read from MH i2c: E2 FD 00 [17:14:26]MH_I2C_Read... [17:14:26]Read from MH i2c: E2 FD 00 68 0C 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 06 [17:14:26]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [17:14:26]wFMCommunicate OK [17:14:26]wFMCommunicate request_size=4 [17:14:26]MH_SAM_APDU [17:14:26]CAPDU: 80 17 00 00 [17:14:26]Write to MH i2c: E2 08 00 69 0C 80 17 00 00 00 00 00 00 F5 [17:14:26]Write i2c OK [17:14:26]MH_I2C_Read... [17:14:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:14:26]Read from MH i2c: E2 [17:14:26]MH_I2C_Read... [17:14:26]Read from MH i2c: E2 FD 00 [17:14:26]MH_I2C_Read... [17:14:26]Read from MH i2c: E2 FD 00 69 0C 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 81 [17:14:26]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [17:14:26]wFMCommunicate OK [17:14:26]wFMCommunicate request_size=4 [17:14:26]MH_SAM_APDU [17:14:26]CAPDU: 80 17 00 00 [17:14:26]Write to MH i2c: E2 08 00 6A 0C 80 17 00 00 00 00 00 00 F6 [17:14:27]Write i2c OK [17:14:27]MH_I2C_Read... [17:14:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [17:14:27]Read from MH i2c: E2 [17:14:27]MH_I2C_Read... [17:14:27]Read from MH i2c: E2 E2 00 [17:14:27]MH_I2C_Read... [17:14:27]Read from MH i2c: E2 E2 00 6A 0C 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 D4 [17:14:27]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [17:14:27]wFMCommunicate OK [17:14:27]SAM_PROTO_GetFMData done [17:14:27]requested_item fm.sale_refund.total is exist - process it [17:14:27]requested_item fm.buy.total is exist - process it [17:14:27]requested_item shift.sale.total is exist - process it [17:14:27]SAM_PROTO_GetShiftData [17:14:27]wFMCommunicate request_size=4 [17:14:27]MH_SAM_APDU [17:14:27]CAPDU: 80 13 02 00 [17:14:27]Write to MH i2c: E2 08 00 6B 0C 80 13 02 00 00 00 00 00 F5 [17:14:27]Write i2c OK [17:14:27]MH_I2C_Read... [17:14:27]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [17:14:27]Read from MH i2c: E2 [17:14:27]MH_I2C_Read... [17:14:27]Read from MH i2c: E2 FD 00 [17:14:27]MH_I2C_Read... [17:14:27]Read from MH i2c: E2 FD 00 6B 0C 00 BA 04 AA 04 B6 04 6E 04 04 00 8A 00 00 00 69 04 9C 00 6F 04 04 00 87 00 00 00 B1 04 03 00 59 86 BF 70 04 03 00 14 5D 98 72 04 03 00 45 29 27 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 0A 58 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 01 B2 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 98 00 6F 04 04 00 03 00 00 00 B1 04 03 00 98 EC 0C 70 04 03 00 98 EC 0C 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 6B 5F 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 66 [17:14:27]RAPDU: BA 04 AA 04 B6 04 6E 04 04 00 8A 00 00 00 69 04 9C 00 6F 04 04 00 87 00 00 00 B1 04 03 00 59 86 BF 70 04 03 00 14 5D 98 72 04 03 00 45 29 27 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 0A 58 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 01 B2 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 98 00 6F 04 04 00 03 00 00 00 B1 04 03 00 98 EC 0C 70 04 03 00 98 EC 0C 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 6B 5F 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [17:14:28]wFMCommunicate OK [17:14:28]wFMCommunicate request_size=4 [17:14:28]MH_SAM_APDU [17:14:28]CAPDU: 80 17 00 00 [17:14:28]Write to MH i2c: E2 08 00 6C 0C 80 17 00 00 00 00 00 00 F8 [17:14:28]Write i2c OK [17:14:28]MH_I2C_Read... [17:14:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:14:28]Read from MH i2c: E2 [17:14:28]MH_I2C_Read... [17:14:28]Read from MH i2c: E2 FD 00 [17:14:28]MH_I2C_Read... [17:14:28]Read from MH i2c: E2 FD 00 6C 0C 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 49 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 90 00 08 [17:14:28]RAPDU: EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 49 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 90 00 [17:14:28]wFMCommunicate OK [17:14:28]wFMCommunicate request_size=4 [17:14:28]MH_SAM_APDU [17:14:28]CAPDU: 80 17 00 00 [17:14:28]Write to MH i2c: E2 08 00 6D 0C 80 17 00 00 00 00 00 00 F9 [17:14:28]Write i2c OK [17:14:28]MH_I2C_Read... [17:14:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:14:28]Read from MH i2c: E2 [17:14:28]MH_I2C_Read... [17:14:28]Read from MH i2c: E2 FD 00 [17:14:28]MH_I2C_Read... [17:14:28]Read from MH i2c: E2 FD 00 6D 0C 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 25 [17:14:28]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:14:28]wFMCommunicate OK [17:14:28]wFMCommunicate request_size=4 [17:14:28]MH_SAM_APDU [17:14:28]CAPDU: 80 17 00 00 [17:14:28]Write to MH i2c: E2 08 00 6E 0C 80 17 00 00 00 00 00 00 FA [17:14:28]Write i2c OK [17:14:28]MH_I2C_Read... [17:14:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:14:29]Read from MH i2c: E2 [17:14:29]MH_I2C_Read... [17:14:29]Read from MH i2c: E2 FD 00 [17:14:29]MH_I2C_Read... [17:14:29]Read from MH i2c: E2 FD 00 6E 0C 00 00 EF 03 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 72 [17:14:29]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:14:29]wFMCommunicate OK [17:14:29]wFMCommunicate request_size=4 [17:14:29]MH_SAM_APDU [17:14:29]CAPDU: 80 17 00 00 [17:14:29]Write to MH i2c: E2 08 00 6F 0C 80 17 00 00 00 00 00 00 FB [17:14:29]Write i2c OK [17:14:29]MH_I2C_Read... [17:14:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [17:14:29]Read from MH i2c: E2 [17:14:29]MH_I2C_Read... [17:14:29]Read from MH i2c: E2 D7 00 [17:14:29]MH_I2C_Read... [17:14:29]Read from MH i2c: E2 D7 00 6F 0C 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 DE [17:14:29]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:14:29]wFMCommunicate OK [17:14:29]SAM_PROTO_GetShiftData done [17:14:29]requested_item shift.sale.total_cash is exist - process it [17:14:29]requested_item shift.sale_refund.total is exist - process it [17:14:29]requested_item shift.sale_refund.total_cash is exist - process it [17:14:29]requested_item shift.buy.total is exist - process it [17:14:29]requested_item shift.buy.total_cash is exist - process it [17:14:29]produce_requested_data done [17:14:29]produce_requested_data return {"fm.sale.total":52788258.02,"fm.sale_refund.total":2509147.00,"fm.buy.total":0.00,"shift.sale.total":125517.69,"shift.sale.total_cash":99853.00,"shift.sale_refund.total":8470.00,"shift.sale_refund.total_cash":8470.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [17:14:29]process_action_free get_value [17:14:29]json_value_free [17:14:29]json_value_free done [17:14:29]process_json_proto returns [17:14:29]Send response to host [17:14:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":52788258.02,"fm.sale_refund.total":2509147.00,"fm.buy.total":0.00,"shift.sale.total":125517.69,"shift.sale.total_cash":99853.00,"shift.sale_refund.total":8470.00,"shift.sale_refund.total_cash":8470.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [17:14:29]free response buf [17:14:29]execute_script done [17:14:29]execute_script returns [17:14:29]free content buf [17:14:29]Sock 10.Close socket [17:14:29]Sock 10.Thread stoped [17:14:30]accept exits with 7 [17:14:30]New connection [17:14:30]New thread 3067153764 created [17:14:30]Thread 3067297124 joined [17:14:30]Waiting for new connection... [17:14:30] Sock 7.Parse request [17:14:30]Sock 7.Check first char [17:14:30]Sock 7.First char is OK [17:14:30]request: POST /json_proto HTTP/1.0 [17:14:30]Method: POST [17:14:30]URL: /json_proto [17:14:30]Method is POST - this is cgi request [17:14:30]url: /json_proto [17:14:30]query_string will be loaded in cgi processing [17:14:30]execute_cgi json_proto POST (null) [17:14:30]execute_cgi path=json_proto method=POST [17:14:30]POST find Content-Length [17:14:30]Host: 172.17.36.132:8080 [17:14:30]Content-Length: 331 [17:14:30]Content-Type: application/json [17:14:30] [17:14:30]POST finish read [17:14:30]Found Content-Length = 331 [17:14: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" ] } } [17:14:30]execute_script... [17:14: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" ] } } [17:14:30]POST & json_proto [17:14:30]process_json_proto [17:14:30]json parsed OK: [17:14:30]protocol is kg_v1.0 [17:14:30]action value=get_value [17:14:30]process_action get_value [17:14:30]cmd_get_value [17:14:30]process_action get_value done [17:14:30]requested_data is exist [17:14:30]produce_requested_data [17:14:30]requested_item fm.sale.total is exist - process it [17:14:30]SAM_PROTO_GetFMData [17:14:30]wFMCommunicate request_size=4 [17:14:30]MH_SAM_APDU [17:14:30]CAPDU: 80 13 03 00 [17:14:30]Write to MH i2c: E2 08 00 70 0C 80 13 03 00 00 00 00 00 FB [17:14:30]Write i2c OK [17:14:30]MH_I2C_Read... [17:14:30]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [17:14:30]Read from MH i2c: E2 [17:14:30]MH_I2C_Read... [17:14:30]Read from MH i2c: E2 FD 00 [17:14:30]MH_I2C_Read... [17:14:30]Read from MH i2c: E2 FD 00 70 0C 00 C5 04 85 04 C1 04 6E 04 04 00 96 09 01 00 69 04 A3 00 6F 04 04 00 7C 04 01 00 B1 04 05 00 4A 7D A4 3A 01 70 04 05 00 7C 3B D5 0D 01 72 04 04 00 CE 41 CF 2C 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 F4 6F 6C 21 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 10 F0 C8 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 9C 00 6F 04 04 00 1A 05 00 00 B1 04 04 00 8C A7 F4 0E 70 04 04 00 8C A7 F4 0E 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 93 A3 96 01 EF 03 09 90 00 9A [17:14:30]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 96 09 01 00 69 04 A3 00 6F 04 04 00 7C 04 01 00 B1 04 05 00 4A 7D A4 3A 01 70 04 05 00 7C 3B D5 0D 01 72 04 04 00 CE 41 CF 2C 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 F4 6F 6C 21 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 10 F0 C8 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 9C 00 6F 04 04 00 1A 05 00 00 B1 04 04 00 8C A7 F4 0E 70 04 04 00 8C A7 F4 0E 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 93 A3 96 01 EF 03 09 90 00 [17:14:30]wFMCommunicate OK [17:14:30]wFMCommunicate request_size=4 [17:14:30]MH_SAM_APDU [17:14:30]CAPDU: 80 17 00 00 [17:14:30]Write to MH i2c: E2 08 00 71 0C 80 17 00 00 00 00 00 00 FD [17:14:30]Write i2c OK [17:14:30]MH_I2C_Read... [17:14:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:14:31]Read from MH i2c: E2 [17:14:31]MH_I2C_Read... [17:14:31]Read from MH i2c: E2 FD 00 [17:14:31]MH_I2C_Read... [17:14:31]Read from MH i2c: E2 FD 00 71 0C 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 85 E2 21 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 3B [17:14:31]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 85 E2 21 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [17:14:31]wFMCommunicate OK [17:14:31]wFMCommunicate request_size=4 [17:14:31]MH_SAM_APDU [17:14:31]CAPDU: 80 17 00 00 [17:14:31]Write to MH i2c: E2 08 00 72 0C 80 17 00 00 00 00 00 00 FE [17:14:31]Write i2c OK [17:14:31]MH_I2C_Read... [17:14:31]OFD Sender: No OFD packet to send [17:14:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:14:31]Read from MH i2c: E2 [17:14:31]MH_I2C_Read... [17:14:31]Read from MH i2c: E2 FD 00 [17:14:31]MH_I2C_Read... [17:14:31]Read from MH i2c: E2 FD 00 72 0C 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 10 [17:14:31]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [17:14:31]wFMCommunicate OK [17:14:31]wFMCommunicate request_size=4 [17:14:31]MH_SAM_APDU [17:14:31]CAPDU: 80 17 00 00 [17:14:31]Write to MH i2c: E2 08 00 73 0C 80 17 00 00 00 00 00 00 FF [17:14:31]Write i2c OK [17:14:31]MH_I2C_Read... [17:14:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:14:31]Read from MH i2c: E2 [17:14:31]MH_I2C_Read... [17:14:31]Read from MH i2c: E2 FD 00 [17:14:31]MH_I2C_Read... [17:14:31]Read from MH i2c: E2 FD 00 73 0C 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 8B [17:14:32]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [17:14:32]wFMCommunicate OK [17:14:32]wFMCommunicate request_size=4 [17:14:32]MH_SAM_APDU [17:14:32]CAPDU: 80 17 00 00 [17:14:32]Write to MH i2c: E2 08 00 74 0C 80 17 00 00 00 00 00 00 00 [17:14:32]Write i2c OK [17:14:32]MH_I2C_Read... [17:14:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [17:14:32]Read from MH i2c: E2 [17:14:32]MH_I2C_Read... [17:14:32]Read from MH i2c: E2 E2 00 [17:14:32]MH_I2C_Read... [17:14:32]Read from MH i2c: E2 E2 00 74 0C 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 DE [17:14:32]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [17:14:32]wFMCommunicate OK [17:14:32]SAM_PROTO_GetFMData done [17:14:32]requested_item fm.sale_refund.total is exist - process it [17:14:32]requested_item fm.buy.total is exist - process it [17:14:32]requested_item shift.sale.total is exist - process it [17:14:32]SAM_PROTO_GetShiftData [17:14:32]wFMCommunicate request_size=4 [17:14:32]MH_SAM_APDU [17:14:32]CAPDU: 80 13 02 00 [17:14:32]Write to MH i2c: E2 08 00 75 0C 80 13 02 00 00 00 00 00 FF [17:14:32]Write i2c OK [17:14:32]MH_I2C_Read... [17:14:33]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [17:14:33]Read from MH i2c: E2 [17:14:33]MH_I2C_Read... [17:14:33]Read from MH i2c: E2 FD 00 [17:14:33]MH_I2C_Read... [17:14:33]Read from MH i2c: E2 FD 00 75 0C 00 BA 04 AA 04 B6 04 6E 04 04 00 8A 00 00 00 69 04 9C 00 6F 04 04 00 87 00 00 00 B1 04 03 00 59 86 BF 70 04 03 00 14 5D 98 72 04 03 00 45 29 27 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 0A 58 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 01 B2 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 98 00 6F 04 04 00 03 00 00 00 B1 04 03 00 98 EC 0C 70 04 03 00 98 EC 0C 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 6B 5F 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 70 [17:14:33]RAPDU: BA 04 AA 04 B6 04 6E 04 04 00 8A 00 00 00 69 04 9C 00 6F 04 04 00 87 00 00 00 B1 04 03 00 59 86 BF 70 04 03 00 14 5D 98 72 04 03 00 45 29 27 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 0A 58 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 01 B2 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 98 00 6F 04 04 00 03 00 00 00 B1 04 03 00 98 EC 0C 70 04 03 00 98 EC 0C 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 6B 5F 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [17:14:33]wFMCommunicate OK [17:14:33]wFMCommunicate request_size=4 [17:14:33]MH_SAM_APDU [17:14:33]CAPDU: 80 17 00 00 [17:14:33]Write to MH i2c: E2 08 00 76 0C 80 17 00 00 00 00 00 00 02 [17:14:33]Write i2c OK [17:14:33]MH_I2C_Read... [17:14:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:14:33]Read from MH i2c: E2 [17:14:33]MH_I2C_Read... [17:14:33]Read from MH i2c: E2 FD 00 [17:14:33]MH_I2C_Read... [17:14:33]Read from MH i2c: E2 FD 00 76 0C 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 49 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 90 00 12 [17:14:33]RAPDU: EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 49 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 90 00 [17:14:33]wFMCommunicate OK [17:14:33]wFMCommunicate request_size=4 [17:14:33]MH_SAM_APDU [17:14:33]CAPDU: 80 17 00 00 [17:14:33]Write to MH i2c: E2 08 00 77 0C 80 17 00 00 00 00 00 00 03 [17:14:33]Write i2c OK [17:14:33]MH_I2C_Read... [17:14:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:14:34]Read from MH i2c: E2 [17:14:34]MH_I2C_Read... [17:14:34]Read from MH i2c: E2 FD 00 [17:14:34]MH_I2C_Read... [17:14:34]Read from MH i2c: E2 FD 00 77 0C 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 2F [17:14:34]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:14:34]wFMCommunicate OK [17:14:34]wFMCommunicate request_size=4 [17:14:34]MH_SAM_APDU [17:14:34]CAPDU: 80 17 00 00 [17:14:34]Write to MH i2c: E2 08 00 78 0C 80 17 00 00 00 00 00 00 04 [17:14:34]Write i2c OK [17:14:34]MH_I2C_Read... [17:14:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:14:34]Read from MH i2c: E2 [17:14:34]MH_I2C_Read... [17:14:34]Read from MH i2c: E2 FD 00 [17:14:34]MH_I2C_Read... [17:14:34]Read from MH i2c: E2 FD 00 78 0C 00 00 EF 03 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 7C [17:14:34]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:14:35]wFMCommunicate OK [17:14:35]wFMCommunicate request_size=4 [17:14:35]MH_SAM_APDU [17:14:35]CAPDU: 80 17 00 00 [17:14:35]Write to MH i2c: E2 08 00 79 0C 80 17 00 00 00 00 00 00 05 [17:14:35]Write i2c OK [17:14:35]MH_I2C_Read... [17:14:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [17:14:35]Read from MH i2c: E2 [17:14:35]MH_I2C_Read... [17:14:35]Read from MH i2c: E2 D7 00 [17:14:35]MH_I2C_Read... [17:14:35]Read from MH i2c: E2 D7 00 79 0C 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 E8 [17:14:35]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:14:35]wFMCommunicate OK [17:14:35]SAM_PROTO_GetShiftData done [17:14:35]requested_item shift.sale.total_cash is exist - process it [17:14:35]requested_item shift.sale_refund.total is exist - process it [17:14:35]requested_item shift.sale_refund.total_cash is exist - process it [17:14:35]requested_item shift.buy.total is exist - process it [17:14:35]requested_item shift.buy.total_cash is exist - process it [17:14:35]produce_requested_data done [17:14:35]produce_requested_data return {"fm.sale.total":52788258.02,"fm.sale_refund.total":2509147.00,"fm.buy.total":0.00,"shift.sale.total":125517.69,"shift.sale.total_cash":99853.00,"shift.sale_refund.total":8470.00,"shift.sale_refund.total_cash":8470.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [17:14:35]process_action_free get_value [17:14:35]json_value_free [17:14:35]json_value_free done [17:14:35]process_json_proto returns [17:14:35]Send response to host [17:14:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":52788258.02,"fm.sale_refund.total":2509147.00,"fm.buy.total":0.00,"shift.sale.total":125517.69,"shift.sale.total_cash":99853.00,"shift.sale_refund.total":8470.00,"shift.sale_refund.total_cash":8470.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [17:14:35]free response buf [17:14:35]execute_script done [17:14:35]execute_script returns [17:14:35]free content buf [17:14:35]Sock 7.Close socket [17:14:35]Sock 7.Thread stoped [17:14:35]accept exits with 9 [17:14:35]New connection [17:14:35]New thread 3067297124 created [17:14:35]Thread 3067153764 joined [17:14:35]Waiting for new connection... [17:14:35] Sock 9.Parse request [17:14:35]Sock 9.Check first char [17:14:35]Sock 9.First char is OK [17:14:35]request: POST /json_proto HTTP/1.0 [17:14:35]Method: POST [17:14:35]URL: /json_proto [17:14:35]Method is POST - this is cgi request [17:14:35]url: /json_proto [17:14:35]query_string will be loaded in cgi processing [17:14:35]execute_cgi json_proto POST (null) [17:14:35]execute_cgi path=json_proto method=POST [17:14:35]POST find Content-Length [17:14:35]Host: 172.17.36.132:8080 [17:14:35]Content-Length: 272 [17:14:35]Content-Type: application/json [17:14:35] [17:14:35]POST finish read [17:14:35]Found Content-Length = 272 [17:14:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0418\u0441\u043C\u0430\u043D\u0430\u043B\u0438\u0435\u0432 \u0414. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:14:35]execute_script... [17:14:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0418\u0441\u043C\u0430\u043D\u0430\u043B\u0438\u0435\u0432 \u0414. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:14:35]POST & json_proto [17:14:35]process_json_proto [17:14:35]json parsed OK: [17:14:35]protocol is kg_v1.0 [17:14:35]action value=close_shift [17:14:35]process_action close_shift [17:14:35]cmd_close_shift [17:14:35]MH_GetDate [17:14:35]Write to MH i2c: F0 00 00 7A 0C 75 [17:14:35]Write i2c OK [17:14:35]MH_I2C_Read... [17:14:35]Read from MH i2c: F0 [17:14:35]MH_I2C_Read... [17:14:35]Read from MH i2c: F0 09 00 [17:14:35]MH_I2C_Read... [17:14:35]Read from MH i2c: F0 09 00 7A 0C 00 7C 4B 5F 66 B2 22 B0 64 F2 [17:14:35]GetLastDocTimeStamp 1717521231 [17:14:35]current date 1717521276 [17:14:35]FM_GetShiftState [17:14:35]SAM_PROTO_GetShiftState [17:14:35]wFMCommunicate request_size=4 [17:14:35]MH_SAM_APDU [17:14:35]CAPDU: 80 13 01 00 [17:14:35]Write to MH i2c: E2 08 00 7B 0C 80 13 01 00 00 00 00 00 04 [17:14:35]Write i2c OK [17:14:35]MH_I2C_Read... [17:14:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:14:35]Read from MH i2c: E2 [17:14:35]MH_I2C_Read... [17:14:35]Read from MH i2c: E2 0E 00 [17:14:35]MH_I2C_Read... [17:14:35]Read from MH i2c: E2 0E 00 7B 0C 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 A0 [17:14:35]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [17:14:35]wFMCommunicate OK [17:14:35]SAM_PROTO_GetShiftState done [17:14:35]FM_GetShiftState done [17:14:35]KKMCreateCloseShiftDocument [17:14:35]Load OK [17:14:35]Malloc new data [17:14:35]MH_GetDate [17:14:35]Write to MH i2c: F0 00 00 7C 0C 77 [17:14:35]Write i2c OK [17:14:35]MH_I2C_Read... [17:14:35]Read from MH i2c: F0 [17:14:35]MH_I2C_Read... [17:14:35]Read from MH i2c: F0 09 00 [17:14:35]MH_I2C_Read... [17:14:35]Read from MH i2c: F0 09 00 7C 0C 00 7C 4B 5F 66 B2 22 B0 64 F4 [17:14:35]Malloc new data [17:14:35]Malloc new data [17:14:35]Malloc new data [17:14:35]Malloc new data [17:14:35]KKMCreateCloseShiftDocument OK [17:14:35]KKMSetCloseShiftData OK [17:14:35]ProcessDocumentItem done err = 0, tmpTLVsize=75 [17:14:35]tlvbuf is 00B4CE20 [17:14:35]KKMLoadAndSignCloseShiftData [17:14:35]SAM_PROTO_ProcessDocument [17:14:35]wFMCommunicate request_size=9 [17:14:35]MH_SAM_APDU [17:14:35]CAPDU: 80 15 01 00 04 05 00 4B 00 [17:14:35]Write to MH i2c: E2 0C 00 7D 0C 80 15 01 00 04 00 05 00 4B 00 00 00 60 [17:14:35]Write i2c OK [17:14:35]MH_I2C_Read... [17:14:35]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [17:14:35]Read from MH i2c: E2 [17:14:35]MH_I2C_Read... [17:14:35]Read from MH i2c: E2 03 00 [17:14:35]MH_I2C_Read... [17:14:35]Read from MH i2c: E2 03 00 7D 0C 00 90 00 FD [17:14:35]RAPDU: 90 00 [17:14:35]wFMCommunicate OK [17:14:35]wFMCommunicate request_size=23 [17:14:35]MH_SAM_APDU [17:14:35]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [17:14:35]Write to MH i2c: E2 1A 00 7E 0C 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 [17:14:35]Write i2c OK [17:14:35]MH_I2C_Read... [17:14:36]Read from MH i2c: E2 [17:14:36]MH_I2C_Read... [17:14:36]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [17:14:36]Read from MH i2c: E2 03 00 [17:14:36]MH_I2C_Read... [17:14:36]Read from MH i2c: E2 03 00 7E 0C 00 90 00 FE [17:14:36]RAPDU: 90 00 [17:14:36]wFMCommunicate OK [17:14:36]wFMCommunicate request_size=34 [17:14:36]MH_SAM_APDU [17:14:36]CAPDU: 80 15 02 00 1D FD 03 19 00 D0 98 D1 81 D0 BC D0 B0 D0 BD D0 B0 D0 BB D0 B8 D0 B5 D0 B2 20 D0 94 2E 20 [17:14:36]Write to MH i2c: E2 25 00 7F 0C 80 15 02 00 1D 00 FD 03 19 00 D0 98 D1 81 D0 BC D0 B0 D0 BD D0 B0 D0 BB D0 B8 D0 B5 D0 B2 20 D0 94 2E 20 00 00 1D [17:14:36]Write i2c OK [17:14:36]MH_I2C_Read... [17:14:36]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [17:14:36]Read from MH i2c: E2 [17:14:36]MH_I2C_Read... [17:14:36]Read from MH i2c: E2 03 00 [17:14:36]MH_I2C_Read... [17:14:36]Read from MH i2c: E2 03 00 7F 0C 00 90 00 FF [17:14:36]RAPDU: 90 00 [17:14:36]wFMCommunicate OK [17:14:36]wFMCommunicate request_size=13 [17:14:36]MH_SAM_APDU [17:14:36]CAPDU: 80 15 02 00 08 F4 03 04 00 7C 4B 5F 66 [17:14:36]Write to MH i2c: E2 10 00 80 0C 80 15 02 00 08 00 F4 03 04 00 7C 4B 5F 66 00 00 A3 [17:14:36]Write i2c OK [17:14:36]MH_I2C_Read... [17:14:36]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [17:14:36]Read from MH i2c: E2 [17:14:36]MH_I2C_Read... [17:14:36]Read from MH i2c: E2 03 00 [17:14:36]MH_I2C_Read... [17:14:36]Read from MH i2c: E2 03 00 80 0C 00 90 00 00 [17:14:36]RAPDU: 90 00 [17:14:36]wFMCommunicate OK [17:14:36]wFMCommunicate request_size=25 [17:14:36]MH_SAM_APDU [17:14:36]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 [17:14:36]Write to MH i2c: E2 1C 00 81 0C 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 00 00 76 [17:14:36]Write i2c OK [17:14:36]MH_I2C_Read... [17:14:36]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [17:14:36]Read from MH i2c: E2 [17:14:36]MH_I2C_Read... [17:14:36]Read from MH i2c: E2 03 00 [17:14:36]MH_I2C_Read... [17:14:36]Read from MH i2c: E2 03 00 81 0C 00 90 00 01 [17:14:36]RAPDU: 90 00 [17:14:36]wFMCommunicate OK [17:14:36]wFMCommunicate request_size=4 [17:14:36]MH_SAM_APDU [17:14:36]CAPDU: 80 15 03 00 [17:14:36]Write to MH i2c: E2 08 00 82 0C 80 15 03 00 00 00 00 00 0F [17:14:36]Write i2c OK [17:14:36]MH_I2C_Read... [17:14:36]OFD Sender: No OFD packet to send [17:14:36]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [17:14:36]Read from MH i2c: E2 [17:14:36]MH_I2C_Read... [17:14:36]Read from MH i2c: E2 FD 00 [17:14:36]MH_I2C_Read... [17:14:36]Read from MH i2c: E2 FD 00 82 0C 00 FD 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 21 0C 01 00 0E 04 04 00 45 01 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8C 00 00 00 AA 04 B6 04 6E 04 04 00 8A 00 00 00 69 04 9C 00 6F 04 04 00 87 00 00 00 B1 04 03 00 59 86 BF 70 04 03 00 14 5D 98 72 04 03 00 45 29 27 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 0A 58 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 01 B2 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 98 00 6F 04 04 00 03 00 00 00 B1 04 03 00 98 EC 0C 90 00 B1 [17:14:36]RAPDU: FD 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 21 0C 01 00 0E 04 04 00 45 01 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8C 00 00 00 AA 04 B6 04 6E 04 04 00 8A 00 00 00 69 04 9C 00 6F 04 04 00 87 00 00 00 B1 04 03 00 59 86 BF 70 04 03 00 14 5D 98 72 04 03 00 45 29 27 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 0A 58 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 01 B2 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 98 00 6F 04 04 00 03 00 00 00 B1 04 03 00 98 EC 0C 90 00 [17:14:37]wFMCommunicate OK [17:14:37]SAM_PROTO_ProcessDocument answer len = 1277 [17:14:37]SAM_PROTO_ProcessDocument remain to read = 1029 [17:14:37]wFMCommunicate request_size=4 [17:14:37]MH_SAM_APDU [17:14:37]CAPDU: 80 17 00 00 [17:14:37]Write to MH i2c: E2 08 00 83 0C 80 17 00 00 00 00 00 00 0F [17:14:37]Write i2c OK [17:14:37]MH_I2C_Read... [17:14:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:14:37]Read from MH i2c: E2 [17:14:37]MH_I2C_Read... [17:14:37]Read from MH i2c: E2 FD 00 [17:14:37]MH_I2C_Read... [17:14:37]Read from MH i2c: E2 FD 00 83 0C 00 70 04 03 00 98 EC 0C 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 6B 5F 01 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 49 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 90 00 AD [17:14:37]RAPDU: 70 04 03 00 98 EC 0C 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 6B 5F 01 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 49 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 90 00 [17:14:37]wFMCommunicate OK [17:14:37]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [17:14:37]SAM_PROTO_ProcessDocument remain to read = 779 [17:14:37]wFMCommunicate request_size=4 [17:14:37]MH_SAM_APDU [17:14:37]CAPDU: 80 17 00 00 [17:14:37]Write to MH i2c: E2 08 00 84 0C 80 17 00 00 00 00 00 00 10 [17:14:37]Write i2c OK [17:14:37]MH_I2C_Read... [17:14:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:14:37]Read from MH i2c: E2 [17:14:37]MH_I2C_Read... [17:14:37]Read from MH i2c: E2 FD 00 [17:14:37]MH_I2C_Read... [17:14:37]Read from MH i2c: E2 FD 00 84 0C 00 00 04 F7 03 00 00 EF 03 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 90 00 76 [17:14:38]RAPDU: 00 04 F7 03 00 00 EF 03 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 90 00 [17:14:38]wFMCommunicate OK [17:14:38]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [17:14:38]SAM_PROTO_ProcessDocument remain to read = 529 [17:14:38]wFMCommunicate request_size=4 [17:14:38]MH_SAM_APDU [17:14:38]CAPDU: 80 17 00 00 [17:14:38]Write to MH i2c: E2 08 00 85 0C 80 17 00 00 00 00 00 00 11 [17:14:38]Write i2c OK [17:14:38]MH_I2C_Read... [17:14:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:14:38]Read from MH i2c: E2 [17:14:38]MH_I2C_Read... [17:14:38]Read from MH i2c: E2 FD 00 [17:14:38]MH_I2C_Read... [17:14:38]Read from MH i2c: E2 FD 00 85 0C 00 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 20 [17:14:38]RAPDU: 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [17:14:38]wFMCommunicate OK [17:14:38]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [17:14:38]SAM_PROTO_ProcessDocument remain to read = 279 [17:14:38]wFMCommunicate request_size=4 [17:14:38]MH_SAM_APDU [17:14:38]CAPDU: 80 17 00 00 [17:14:38]Write to MH i2c: E2 08 00 86 0C 80 17 00 00 00 00 00 00 12 [17:14:38]Write i2c OK [17:14:38]MH_I2C_Read... [17:14:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:14:39]Read from MH i2c: E2 [17:14:39]MH_I2C_Read... [17:14:39]Read from MH i2c: E2 FD 00 [17:14:39]MH_I2C_Read... [17:14:39]Read from MH i2c: E2 FD 00 86 0C 00 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 50 [17:14:39]RAPDU: 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [17:14:39]wFMCommunicate OK [17:14:39]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [17:14:39]SAM_PROTO_ProcessDocument remain to read = 29 [17:14:39]wFMCommunicate request_size=4 [17:14:39]MH_SAM_APDU [17:14:39]CAPDU: 80 17 00 00 [17:14:39]Write to MH i2c: E2 08 00 87 0C 80 17 00 00 00 00 00 00 13 [17:14:39]Write i2c OK [17:14:39]MH_I2C_Read... [17:14:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 29! [17:14:39]Read from MH i2c: E2 [17:14:39]MH_I2C_Read... [17:14:39]Read from MH i2c: E2 20 00 [17:14:39]MH_I2C_Read... [17:14:39]Read from MH i2c: E2 20 00 87 0C 00 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 8F 47 57 D7 07 32 90 00 94 [17:14:39]RAPDU: 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 8F 47 57 D7 07 32 90 00 [17:14:39]wFMCommunicate OK [17:14:39]SAM_PROTO_ProcessDocument received (without SW) 29 bytes [17:14:39]SAM_PROTO_ProcessDocument done [17:14:39]1209 (1) - 1.0 - номер версии ФФД [17:14:39]1041 (16) - 0000000000965400 - номер ФМ [17:14:39]1040 (4) - 68641 - номер ФД [17:14:39]1038 (4) - 325 - номер смены [17:14:39]1118 (4) - 138 - количество кассовых чеков за смену [17:14:39]1111 (4) - 140 - общее количество ФД за смену [17:14:39]1194 (1206) - счетчики итогов смены [17:14:39] 1134 (4) - 138 - количество чеков со всеми признаками расчетов [17:14:39] 1129 (156) - счетчики операций «приход» [17:14:39] 1135 (4) - 135 - количество чеков по признаку расчетов [17:14:39] 1201 (3) - 125517.69 - общая итоговая сумма в чеках [17:14:39] 1136 (3) - 99853.00 - итоговая сумма в чеках наличными [17:14:39] 1138 (3) - 25664.69 - итоговая сумма в чеках безналичными [17:14:39] 1024 (123) - суммы налогов [17:14:39] 1006 (9) - суммы НДС [17:14:39] 1010 (1) - 0% - код ставки НДС [17:14:39] 1011 (0) - 0.00 - сумма НДС по ставке [17:14:39] 1006 (12) - суммы НДС [17:14:39] 1010 (1) - 12% - код ставки НДС [17:14:39] 1011 (3) - 13332.58 - сумма НДС по ставке [17:14:39] 1007 (9) - суммы НСП [17:14:39] 1014 (1) - 0% - код ставки НСП [17:14:39] 1015 (0) - 0.00 - сумма НСП по ставке [17:14:39] 1007 (12) - суммы НСП [17:14:39] 1014 (1) - 1% - код ставки НСП [17:14:39] 1015 (3) - 1111.05 - сумма НСП по ставке [17:14:39] 1007 (9) - суммы НСП [17:14:39] 1014 (1) - 2% - код ставки НСП [17:14:39] 1015 (0) - 0.00 - сумма НСП по ставке [17:14:39] 1007 (9) - суммы НСП [17:14:39] 1014 (1) - 3% - код ставки НСП [17:14:39] 1015 (0) - 0.00 - сумма НСП по ставке [17:14:39] 1007 (9) - суммы НСП [17:14:39] 1014 (1) - 5% - код ставки НСП [17:14:39] 1015 (0) - 0.00 - сумма НСП по ставке [17:14:39] 1007 (9) - суммы НСП [17:14:39] 1014 (1) - 0,50% - код ставки НСП [17:14:39] 1015 (0) - 0.00 - сумма НСП по ставке [17:14:39] 1007 (9) - суммы НСП [17:14:39] 1014 (1) - 1,50% - код ставки НСП [17:14:39] 1015 (0) - 0.00 - сумма НСП по ставке [17:14:39] 1130 (152) - счетчики операций «возврат прихода» [17:14:39] 1135 (4) - 3 - количество чеков по признаку расчетов [17:14:39] 1201 (3) - 8470.00 - общая итоговая сумма в чеках [17:14:39] 1136 (3) - 8470.00 - итоговая сумма в чеках наличными [17:14:39] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [17:14:39] 1024 (122) - суммы налогов [17:14:39] 1006 (9) - суммы НДС [17:14:39] 1010 (1) - 0% - код ставки НДС [17:14:39] 1011 (0) - 0.00 - сумма НДС по ставке [17:14:39] 1006 (12) - суммы НДС [17:14:39] 1010 (1) - 12% - код ставки НДС [17:14:39] 1011 (3) - 899.63 - сумма НДС по ставке [17:14:39] 1007 (9) - суммы НСП [17:14:39] 1014 (1) - 0% - код ставки НСП [17:14:39] 1015 (0) - 0.00 - сумма НСП по ставке [17:14:39] 1007 (11) - суммы НСП [17:14:39] 1014 (1) - 1% - код ставки НСП [17:14:39] 1015 (2) - 74.97 - сумма НСП по ставке [17:14:39] 1007 (9) - суммы НСП [17:14:39] 1014 (1) - 2% - код ставки НСП [17:14:39] 1015 (0) - 0.00 - сумма НСП по ставке [17:14:39] 1007 (9) - суммы НСП [17:14:39] 1014 (1) - 3% - код ставки НСП [17:14:39] 1015 (0) - 0.00 - сумма НСП по ставке [17:14:39] 1007 (9) - суммы НСП [17:14:39] 1014 (1) - 5% - код ставки НСП [17:14:39] 1015 (0) - 0.00 - сумма НСП по ставке [17:14:39] 1007 (9) - суммы НСП [17:14:39] 1014 (1) - 0,50% - код ставки НСП [17:14:39] 1015 (0) - 0.00 - сумма НСП по ставке [17:14:39] 1007 (9) - суммы НСП [17:14:39] 1014 (1) - 1,50% - код ставки НСП [17:14:39] 1015 (0) - 0.00 - сумма НСП по ставке [17:14:39] 1131 (141) - счетчики операций «расход» [17:14:39] 1135 (4) - 0 - количество чеков по признаку расчетов [17:14:39] 1201 (0) - 0.00 - общая итоговая сумма в чеках [17:14:39] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [17:14:39] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [17:14:39] 1024 (117) - суммы налогов [17:14:39] 1006 (9) - суммы НДС [17:14:39] 1010 (1) - 0% - код ставки НДС [17:14:39] 1011 (0) - 0.00 - сумма НДС по ставке [17:14:39] 1006 (9) - суммы НДС [17:14:39] 1010 (1) - 12% - код ставки НДС [17:14:39] 1011 (0) - 0.00 - сумма НДС по ставке [17:14:39] 1007 (9) - суммы НСП [17:14:39] 1014 (1) - 0% - код ставки НСП [17:14:39] 1015 (0) - 0.00 - сумма НСП по ставке [17:14:39] 1007 (9) - суммы НСП [17:14:39] 1014 (1) - 1% - код ставки НСП [17:14:39] 1015 (0) - 0.00 - сумма НСП по ставке [17:14:39] 1007 (9) - суммы НСП [17:14:39] 1014 (1) - 2% - код ставки НСП [17:14:39] 1015 (0) - 0.00 - сумма НСП по ставке [17:14:39] 1007 (9) - суммы НСП [17:14:39] 1014 (1) - 3% - код ставки НСП [17:14:39] 1015 (0) - 0.00 - сумма НСП по ставке [17:14:39] 1007 (9) - суммы НСП [17:14:39] 1014 (1) - 5% - код ставки НСП [17:14:39] 1015 (0) - 0.00 - сумма НСП по ставке [17:14:39] 1007 (9) - суммы НСП [17:14:39] 1014 (1) - 0,50% - код ставки НСП [17:14:39] 1015 (0) - 0.00 - сумма НСП по ставке [17:14:39] 1007 (9) - суммы НСП [17:14:39] 1014 (1) - 1,50% - код ставки НСП [17:14:39] 1015 (0) - 0.00 - сумма НСП по ставке [17:14:39] 1132 (141) - счетчики операций «возврат расхода» [17:14:39] 1135 (4) - 0 - количество чеков по признаку расчетов [17:14:39] 1201 (0) - 0.00 - общая итоговая сумма в чеках [17:14:39] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [17:14:39] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [17:14:39] 1024 (117) - суммы налогов [17:14:39] 1006 (9) - суммы НДС [17:14:39] 1010 (1) - 0% - код ставки НДС [17:14:39] 1011 (0) - 0.00 - сумма НДС по ставке [17:14:39] 1006 (9) - суммы НДС [17:14:39] 1010 (1) - 12% - код ставки НДС [17:14:39] 1011 (0) - 0.00 - сумма НДС по ставке [17:14:39] 1007 (9) - суммы НСП [17:14:39] 1014 (1) - 0% - код ставки НСП [17:14:39] 1015 (0) - 0.00 - сумма НСП по ставке [17:14:39] 1007 (9) - суммы НСП [17:14:39] 1014 (1) - 1% - код ставки НСП [17:14:39] 1015 (0) - 0.00 - сумма НСП по ставке [17:14:39] 1007 (9) - суммы НСП [17:14:39] 1014 (1) - 2% - код ставки НСП [17:14:39] 1015 (0) - 0.00 - сумма НСП по ставке [17:14:39] 1007 (9) - суммы НСП [17:14:39] 1014 (1) - 3% - код ставки НСП [17:14:39] 1015 (0) - 0.00 - сумма НСП по ставке [17:14:39] 1007 (9) - суммы НСП [17:14:39] 1014 (1) - 5% - код ставки НСП [17:14:39] 1015 (0) - 0.00 - сумма НСП по ставке [17:14:39] 1007 (9) - суммы НСП [17:14:39] 1014 (1) - 0,50% - код ставки НСП [17:14:39] 1015 (0) - 0.00 - сумма НСП по ставке [17:14:39] 1007 (9) - суммы НСП [17:14:39] 1014 (1) - 1,50% - код ставки НСП [17:14:39] 1015 (0) - 0.00 - сумма НСП по ставке [17:14:39] 1133 (588) - - счетчики коррекции - не используются [17:14:39]1077 (6) - 157536579159858 - ФПД [17:14:40]SetTLVBufToDocument [17:14:40]Processing tag 1209 (04B9) [17:14:40]Malloc new data [17:14:40]Processing tag 1041 (0411) [17:14:40]Processing tag 1040 (0410) [17:14:40]Malloc new data [17:14:40]Processing tag 1038 (040E) [17:14:40]Malloc new data [17:14:40]Processing tag 1118 (045E) [17:14:40]Malloc new data [17:14:40]Processing tag 1111 (0457) [17:14:40]Malloc new data [17:14:40]Processing tag 1194 (04AA) [17:14:40]Load OK [17:14:40]SetTLVBufToDocument [17:14:40]Processing tag 1134 (046E) [17:14:40]Malloc new data [17:14:40]Processing tag 1129 (0469) [17:14:40]Load OK [17:14:40]SetTLVBufToDocument [17:14:40]Processing tag 1135 (046F) [17:14:40]Malloc new data [17:14:40]Processing tag 1201 (04B1) [17:14:40]Malloc new data [17:14:40]Processing tag 1136 (0470) [17:14:40]Malloc new data [17:14:40]Processing tag 1138 (0472) [17:14:40]Malloc new data [17:14:40]Processing tag 1024 (0400) [17:14:40]Load OK [17:14:40]SetTLVBufToDocument [17:14:40]Processing tag 1006 (03EE) [17:14:40]Load OK [17:14:40]SetTLVBufToDocument [17:14:40]Processing tag 1010 (03F2) [17:14:40]Malloc new data [17:14:40]Processing tag 1011 (03F3) [17:14:40]Malloc new data [17:14:40]SetTLVBufToDocument err=0 [17:14:40]Processing tag 1006 (03EE) [17:14:40]Load OK [17:14:40]SetTLVBufToDocument [17:14:40]Processing tag 1010 (03F2) [17:14:40]Malloc new data [17:14:40]Processing tag 1011 (03F3) [17:14:40]Malloc new data [17:14:40]SetTLVBufToDocument err=0 [17:14:40]Processing tag 1007 (03EF) [17:14:40]Load OK [17:14:40]SetTLVBufToDocument [17:14:40]Processing tag 1014 (03F6) [17:14:40]Malloc new data [17:14:40]Processing tag 1015 (03F7) [17:14:40]Malloc new data [17:14:40]SetTLVBufToDocument err=0 [17:14:40]Processing tag 1007 (03EF) [17:14:40]Load OK [17:14:40]SetTLVBufToDocument [17:14:40]Processing tag 1014 (03F6) [17:14:40]Malloc new data [17:14:40]Processing tag 1015 (03F7) [17:14:40]Malloc new data [17:14:40]SetTLVBufToDocument err=0 [17:14:40]Processing tag 1007 (03EF) [17:14:40]Load OK [17:14:40]SetTLVBufToDocument [17:14:40]Processing tag 1014 (03F6) [17:14:40]Malloc new data [17:14:40]Processing tag 1015 (03F7) [17:14:40]Malloc new data [17:14:40]SetTLVBufToDocument err=0 [17:14:40]Processing tag 1007 (03EF) [17:14:40]Load OK [17:14:40]SetTLVBufToDocument [17:14:40]Processing tag 1014 (03F6) [17:14:40]Malloc new data [17:14:40]Processing tag 1015 (03F7) [17:14:40]Malloc new data [17:14:40]SetTLVBufToDocument err=0 [17:14:40]Processing tag 1007 (03EF) [17:14:40]Load OK [17:14:40]SetTLVBufToDocument [17:14:40]Processing tag 1014 (03F6) [17:14:40]Malloc new data [17:14:40]Processing tag 1015 (03F7) [17:14:40]Malloc new data [17:14:40]SetTLVBufToDocument err=0 [17:14:40]Processing tag 1007 (03EF) [17:14:40]Load OK [17:14:40]SetTLVBufToDocument [17:14:40]Processing tag 1014 (03F6) [17:14:40]Malloc new data [17:14:40]Processing tag 1015 (03F7) [17:14:40]Malloc new data [17:14:40]SetTLVBufToDocument err=0 [17:14:40]Processing tag 1007 (03EF) [17:14:40]Load OK [17:14:40]SetTLVBufToDocument [17:14:40]Processing tag 1014 (03F6) [17:14:40]Malloc new data [17:14:40]Processing tag 1015 (03F7) [17:14:40]Malloc new data [17:14:40]SetTLVBufToDocument err=0 [17:14:40]SetTLVBufToDocument err=0 [17:14:40]SetTLVBufToDocument err=0 [17:14:40]Processing tag 1130 (046A) [17:14:40]Load OK [17:14:40]SetTLVBufToDocument [17:14:40]Processing tag 1135 (046F) [17:14:40]Malloc new data [17:14:40]Processing tag 1201 (04B1) [17:14:40]Malloc new data [17:14:40]Processing tag 1136 (0470) [17:14:40]Malloc new data [17:14:40]Processing tag 1138 (0472) [17:14:40]Malloc new data [17:14:40]Processing tag 1024 (0400) [17:14:40]Load OK [17:14:40]SetTLVBufToDocument [17:14:40]Processing tag 1006 (03EE) [17:14:40]Load OK [17:14:40]SetTLVBufToDocument [17:14:40]Processing tag 1010 (03F2) [17:14:40]Malloc new data [17:14:40]Processing tag 1011 (03F3) [17:14:40]Malloc new data [17:14:40]SetTLVBufToDocument err=0 [17:14:40]Processing tag 1006 (03EE) [17:14:40]Load OK [17:14:40]SetTLVBufToDocument [17:14:40]Processing tag 1010 (03F2) [17:14:40]Malloc new data [17:14:40]Processing tag 1011 (03F3) [17:14:40]Malloc new data [17:14:40]SetTLVBufToDocument err=0 [17:14:40]Processing tag 1007 (03EF) [17:14:40]Load OK [17:14:40]SetTLVBufToDocument [17:14:40]Processing tag 1014 (03F6) [17:14:40]Malloc new data [17:14:40]Processing tag 1015 (03F7) [17:14:40]Malloc new data [17:14:40]SetTLVBufToDocument err=0 [17:14:40]Processing tag 1007 (03EF) [17:14:40]Load OK [17:14:40]SetTLVBufToDocument [17:14:40]Processing tag 1014 (03F6) [17:14:40]Malloc new data [17:14:40]Processing tag 1015 (03F7) [17:14:40]Malloc new data [17:14:40]SetTLVBufToDocument err=0 [17:14:40]Processing tag 1007 (03EF) [17:14:40]Load OK [17:14:40]SetTLVBufToDocument [17:14:40]Processing tag 1014 (03F6) [17:14:40]Malloc new data [17:14:40]Processing tag 1015 (03F7) [17:14:40]Malloc new data [17:14:40]SetTLVBufToDocument err=0 [17:14:40]Processing tag 1007 (03EF) [17:14:40]Load OK [17:14:40]SetTLVBufToDocument [17:14:40]Processing tag 1014 (03F6) [17:14:40]Malloc new data [17:14:40]Processing tag 1015 (03F7) [17:14:40]Malloc new data [17:14:40]SetTLVBufToDocument err=0 [17:14:40]Processing tag 1007 (03EF) [17:14:40]Load OK [17:14:40]SetTLVBufToDocument [17:14:40]Processing tag 1014 (03F6) [17:14:40]Malloc new data [17:14:40]Processing tag 1015 (03F7) [17:14:40]Malloc new data [17:14:40]SetTLVBufToDocument err=0 [17:14:40]Processing tag 1007 (03EF) [17:14:40]Load OK [17:14:40]SetTLVBufToDocument [17:14:40]Processing tag 1014 (03F6) [17:14:40]Malloc new data [17:14:40]Processing tag 1015 (03F7) [17:14:40]Malloc new data [17:14:40]SetTLVBufToDocument err=0 [17:14:40]Processing tag 1007 (03EF) [17:14:40]Load OK [17:14:40]SetTLVBufToDocument [17:14:40]Processing tag 1014 (03F6) [17:14:40]Malloc new data [17:14:40]Processing tag 1015 (03F7) [17:14:40]Malloc new data [17:14:40]SetTLVBufToDocument err=0 [17:14:40]SetTLVBufToDocument err=0 [17:14:40]SetTLVBufToDocument err=0 [17:14:40]Processing tag 1131 (046B) [17:14:40]Load OK [17:14:40]SetTLVBufToDocument [17:14:40]Processing tag 1135 (046F) [17:14:40]Malloc new data [17:14:40]Processing tag 1201 (04B1) [17:14:40]Malloc new data [17:14:40]Processing tag 1136 (0470) [17:14:40]Malloc new data [17:14:40]Processing tag 1138 (0472) [17:14:40]Malloc new data [17:14:40]Processing tag 1024 (0400) [17:14:40]Load OK [17:14:40]SetTLVBufToDocument [17:14:40]Processing tag 1006 (03EE) [17:14:40]Load OK [17:14:40]SetTLVBufToDocument [17:14:40]Processing tag 1010 (03F2) [17:14:40]Malloc new data [17:14:40]Processing tag 1011 (03F3) [17:14:40]Malloc new data [17:14:40]SetTLVBufToDocument err=0 [17:14:40]Processing tag 1006 (03EE) [17:14:40]Load OK [17:14:40]SetTLVBufToDocument [17:14:40]Processing tag 1010 (03F2) [17:14:40]Malloc new data [17:14:40]Processing tag 1011 (03F3) [17:14:40]Malloc new data [17:14:40]SetTLVBufToDocument err=0 [17:14:40]Processing tag 1007 (03EF) [17:14:40]Load OK [17:14:40]SetTLVBufToDocument [17:14:40]Processing tag 1014 (03F6) [17:14:40]Malloc new data [17:14:40]Processing tag 1015 (03F7) [17:14:40]Malloc new data [17:14:40]SetTLVBufToDocument err=0 [17:14:40]Processing tag 1007 (03EF) [17:14:40]Load OK [17:14:40]SetTLVBufToDocument [17:14:40]Processing tag 1014 (03F6) [17:14:40]Malloc new data [17:14:40]Processing tag 1015 (03F7) [17:14:40]Malloc new data [17:14:40]SetTLVBufToDocument err=0 [17:14:40]Processing tag 1007 (03EF) [17:14:40]Load OK [17:14:40]SetTLVBufToDocument [17:14:40]Processing tag 1014 (03F6) [17:14:40]Malloc new data [17:14:40]Processing tag 1015 (03F7) [17:14:40]Malloc new data [17:14:40]SetTLVBufToDocument err=0 [17:14:40]Processing tag 1007 (03EF) [17:14:40]Load OK [17:14:40]SetTLVBufToDocument [17:14:40]Processing tag 1014 (03F6) [17:14:40]Malloc new data [17:14:40]Processing tag 1015 (03F7) [17:14:40]Malloc new data [17:14:40]SetTLVBufToDocument err=0 [17:14:40]Processing tag 1007 (03EF) [17:14:40]Load OK [17:14:40]SetTLVBufToDocument [17:14:40]Processing tag 1014 (03F6) [17:14:40]Malloc new data [17:14:40]Processing tag 1015 (03F7) [17:14:40]Malloc new data [17:14:40]SetTLVBufToDocument err=0 [17:14:40]Processing tag 1007 (03EF) [17:14:40]Load OK [17:14:40]SetTLVBufToDocument [17:14:40]Processing tag 1014 (03F6) [17:14:40]Malloc new data [17:14:40]Processing tag 1015 (03F7) [17:14:40]Malloc new data [17:14:40]SetTLVBufToDocument err=0 [17:14:40]Processing tag 1007 (03EF) [17:14:40]Load OK [17:14:40]SetTLVBufToDocument [17:14:40]Processing tag 1014 (03F6) [17:14:40]Malloc new data [17:14:40]Processing tag 1015 (03F7) [17:14:40]Malloc new data [17:14:40]SetTLVBufToDocument err=0 [17:14:40]SetTLVBufToDocument err=0 [17:14:40]SetTLVBufToDocument err=0 [17:14:40]Processing tag 1132 (046C) [17:14:40]Load OK [17:14:40]SetTLVBufToDocument [17:14:40]Processing tag 1135 (046F) [17:14:40]Malloc new data [17:14:40]Processing tag 1201 (04B1) [17:14:40]Malloc new data [17:14:40]Processing tag 1136 (0470) [17:14:40]Malloc new data [17:14:40]Processing tag 1138 (0472) [17:14:40]Malloc new data [17:14:40]Processing tag 1024 (0400) [17:14:40]Load OK [17:14:40]SetTLVBufToDocument [17:14:40]Processing tag 1006 (03EE) [17:14:40]Load OK [17:14:40]SetTLVBufToDocument [17:14:40]Processing tag 1010 (03F2) [17:14:40]Malloc new data [17:14:40]Processing tag 1011 (03F3) [17:14:40]Malloc new data [17:14:40]SetTLVBufToDocument err=0 [17:14:40]Processing tag 1006 (03EE) [17:14:40]Load OK [17:14:40]SetTLVBufToDocument [17:14:40]Processing tag 1010 (03F2) [17:14:40]Malloc new data [17:14:40]Processing tag 1011 (03F3) [17:14:40]Malloc new data [17:14:40]SetTLVBufToDocument err=0 [17:14:40]Processing tag 1007 (03EF) [17:14:40]Load OK [17:14:40]SetTLVBufToDocument [17:14:40]Processing tag 1014 (03F6) [17:14:40]Malloc new data [17:14:40]Processing tag 1015 (03F7) [17:14:40]Malloc new data [17:14:40]SetTLVBufToDocument err=0 [17:14:40]Processing tag 1007 (03EF) [17:14:40]Load OK [17:14:40]SetTLVBufToDocument [17:14:40]Processing tag 1014 (03F6) [17:14:40]Malloc new data [17:14:40]Processing tag 1015 (03F7) [17:14:40]Malloc new data [17:14:40]SetTLVBufToDocument err=0 [17:14:40]Processing tag 1007 (03EF) [17:14:40]Load OK [17:14:40]SetTLVBufToDocument [17:14:40]Processing tag 1014 (03F6) [17:14:40]Malloc new data [17:14:40]Processing tag 1015 (03F7) [17:14:40]Malloc new data [17:14:40]SetTLVBufToDocument err=0 [17:14:40]Processing tag 1007 (03EF) [17:14:40]Load OK [17:14:40]SetTLVBufToDocument [17:14:40]Processing tag 1014 (03F6) [17:14:40]Malloc new data [17:14:40]Processing tag 1015 (03F7) [17:14:40]Malloc new data [17:14:40]SetTLVBufToDocument err=0 [17:14:40]Processing tag 1007 (03EF) [17:14:40]Load OK [17:14:40]SetTLVBufToDocument [17:14:40]Processing tag 1014 (03F6) [17:14:40]Malloc new data [17:14:40]Processing tag 1015 (03F7) [17:14:40]Malloc new data [17:14:40]SetTLVBufToDocument err=0 [17:14:40]Processing tag 1007 (03EF) [17:14:40]Load OK [17:14:40]SetTLVBufToDocument [17:14:40]Processing tag 1014 (03F6) [17:14:40]Malloc new data [17:14:40]Processing tag 1015 (03F7) [17:14:40]Malloc new data [17:14:40]SetTLVBufToDocument err=0 [17:14:40]Processing tag 1007 (03EF) [17:14:40]Load OK [17:14:40]SetTLVBufToDocument [17:14:40]Processing tag 1014 (03F6) [17:14:40]Malloc new data [17:14:40]Processing tag 1015 (03F7) [17:14:40]Malloc new data [17:14:40]SetTLVBufToDocument err=0 [17:14:40]SetTLVBufToDocument err=0 [17:14:40]SetTLVBufToDocument err=0 [17:14:40]Processing tag 1133 (046D) [17:14:40]Malloc new data [17:14:40]SetTLVBufToDocument err=0 [17:14:40]Processing tag 1077 (0435) [17:14:40]Malloc new data [17:14:40]SetTLVBufToDocument err=0 [17:14:40]Malloc new data [17:14:40]SAM_PROTO_GetFMData [17:14:40]wFMCommunicate request_size=4 [17:14:40]MH_SAM_APDU [17:14:40]CAPDU: 80 13 03 00 [17:14:40]Write to MH i2c: E2 08 00 88 0C 80 13 03 00 00 00 00 00 13 [17:14:40]Write i2c OK [17:14:40]MH_I2C_Read... [17:14:41]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [17:14:41]Read from MH i2c: E2 [17:14:41]MH_I2C_Read... [17:14:41]Read from MH i2c: E2 FD 00 [17:14:41]MH_I2C_Read... [17:14:41]Read from MH i2c: E2 FD 00 88 0C 00 C5 04 85 04 C1 04 6E 04 04 00 96 09 01 00 69 04 A3 00 6F 04 04 00 7C 04 01 00 B1 04 05 00 4A 7D A4 3A 01 70 04 05 00 7C 3B D5 0D 01 72 04 04 00 CE 41 CF 2C 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 F4 6F 6C 21 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 10 F0 C8 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 9C 00 6F 04 04 00 1A 05 00 00 B1 04 04 00 8C A7 F4 0E 70 04 04 00 8C A7 F4 0E 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 93 A3 96 01 EF 03 09 90 00 B2 [17:14:41]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 96 09 01 00 69 04 A3 00 6F 04 04 00 7C 04 01 00 B1 04 05 00 4A 7D A4 3A 01 70 04 05 00 7C 3B D5 0D 01 72 04 04 00 CE 41 CF 2C 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 F4 6F 6C 21 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 10 F0 C8 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 9C 00 6F 04 04 00 1A 05 00 00 B1 04 04 00 8C A7 F4 0E 70 04 04 00 8C A7 F4 0E 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 93 A3 96 01 EF 03 09 90 00 [17:14:41]wFMCommunicate OK [17:14:41]wFMCommunicate request_size=4 [17:14:41]MH_SAM_APDU [17:14:41]CAPDU: 80 17 00 00 [17:14:41]Write to MH i2c: E2 08 00 89 0C 80 17 00 00 00 00 00 00 15 [17:14:41]Write i2c OK [17:14:41]MH_I2C_Read... [17:14:41]OFD Sender: No OFD packet to send [17:14:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:14:41]Read from MH i2c: E2 [17:14:41]MH_I2C_Read... [17:14:41]Read from MH i2c: E2 FD 00 [17:14:41]MH_I2C_Read... [17:14:41]Read from MH i2c: E2 FD 00 89 0C 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 85 E2 21 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 53 [17:14:41]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 85 E2 21 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [17:14:42]wFMCommunicate OK [17:14:42]wFMCommunicate request_size=4 [17:14:42]MH_SAM_APDU [17:14:42]CAPDU: 80 17 00 00 [17:14:42]Write to MH i2c: E2 08 00 8A 0C 80 17 00 00 00 00 00 00 16 [17:14:42]Write i2c OK [17:14:42]MH_I2C_Read... [17:14:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:14:42]Read from MH i2c: E2 [17:14:42]MH_I2C_Read... [17:14:42]Read from MH i2c: E2 FD 00 [17:14:42]MH_I2C_Read... [17:14:42]Read from MH i2c: E2 FD 00 8A 0C 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 28 [17:14:42]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [17:14:42]wFMCommunicate OK [17:14:42]wFMCommunicate request_size=4 [17:14:42]MH_SAM_APDU [17:14:42]CAPDU: 80 17 00 00 [17:14:42]Write to MH i2c: E2 08 00 8B 0C 80 17 00 00 00 00 00 00 17 [17:14:42]Write i2c OK [17:14:42]MH_I2C_Read... [17:14:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:14:42]Read from MH i2c: E2 [17:14:42]MH_I2C_Read... [17:14:42]Read from MH i2c: E2 FD 00 [17:14:42]MH_I2C_Read... [17:14:42]Read from MH i2c: E2 FD 00 8B 0C 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 A3 [17:14:43]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [17:14:43]wFMCommunicate OK [17:14:43]wFMCommunicate request_size=4 [17:14:43]MH_SAM_APDU [17:14:43]CAPDU: 80 17 00 00 [17:14:43]Write to MH i2c: E2 08 00 8C 0C 80 17 00 00 00 00 00 00 18 [17:14:43]Write i2c OK [17:14:43]MH_I2C_Read... [17:14:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [17:14:43]Read from MH i2c: E2 [17:14:43]MH_I2C_Read... [17:14:43]Read from MH i2c: E2 E2 00 [17:14:43]MH_I2C_Read... [17:14:43]Read from MH i2c: E2 E2 00 8C 0C 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F6 [17:14:43]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [17:14:43]wFMCommunicate OK [17:14:43]SAM_PROTO_GetFMData done [17:14:43]Malloc new data [17:14:43]Malloc new data [17:14:43]Malloc new data [17:14:43]Malloc new data [17:14:43]KKMLoadAndSignCloseShiftData err=0 [17:14:43]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Исманалиев Д. 04.06.2024 17:14 Смена: 325 РНМ: 0000000000098096 ЗНМ: 0300000181 СНО: Общий режим Чеков за смену: 138 ФД за смену: 140 Всего чеков: 138 ИТОГИ ПРИХОД Чеков: 135 Общий итог: 125517.69 Итого наличными: 99853.00 Итого безнал.: 25664.69 НДС 0% : 0.00 НДС 12% : 13332.58 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 1111.05 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 3 Общий итог: 8470.00 Итого наличными: 8470.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 899.63 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 74.97 ИТОГИ РАСХОД Чеков: 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 Нал. в кассе: 91383.00 НС Приход: 52788258.02 НС Возвр.Прихода: 2509147.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 68641 ФМ: 0000000000965400 ФПД: 157536579159858 [17:14:43]StoreToDocumentArchive [17:14:43]shift 325 fd 68641 [17:14:43]save to /storage/0325/doc_00068641 [17:14:43]save last doc name /storage/0325/doc_00068641 to /storage/kkm_last_doc_name [17:14:43]save OK [17:14:43]Clear old archive folders... [17:14:43]Remove dir /storage/0266 [17:14:43]opendir ok [17:14:43]file . [17:14:43]file .. [17:14:43]file doc_1717521239 [17:14:43]remove file /storage/0266/doc_1717521239 [17:14:43]remove dir /storage/0266 [17:14:43]NVStorageSaveData kkm_registers [17:14:43]File name is /storage/kkm_registers [17:14:43]Write 24 bytes [17:14:43]NVStorageSaveData done [17:14:43]NVStorageSaveData kkm_registers [17:14:43]File name is /storage/kkm_registers [17:14:43]Write 24 bytes [17:14:43]NVStorageSaveData done [17:14:43]ProcessDocumentItem done err = 0, tmpTLVsize=1391 [17:14:43]tlvbuf is 00B1E810 [17:14:43]SAM_PROTO_ClearQueue [17:14:43]wFMCommunicate request_size=4 [17:14:43]MH_SAM_APDU [17:14:43]CAPDU: 80 09 00 00 [17:14:44]Write to MH i2c: E2 08 00 8D 0C 80 09 00 00 00 00 00 00 0B [17:14:44]Write i2c OK [17:14:44]MH_I2C_Read... [17:14:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:14:44]Read from MH i2c: E2 [17:14:44]MH_I2C_Read... [17:14:44]Read from MH i2c: E2 03 00 [17:14:44]MH_I2C_Read... [17:14:44]Read from MH i2c: E2 03 00 8D 0C 00 90 00 0D [17:14:44]RAPDU: 90 00 [17:14:44]wFMCommunicate OK [17:14:44]SAM_PROTO_ClearQueue done [17:14:44]KKMCreateOFDPacket [17:14:44]OFDProtocolAddRootSTLVToBuf [17:14:44]FM_MakeSignedData [17:14:44]FM_MakeSignedData [17:14:44]SAM_PROTO_SignData [17:14:44]wFMCommunicate request_size=4 [17:14:44]MH_SAM_APDU [17:14:44]CAPDU: 80 0D 01 02 [17:14:44]Write to MH i2c: E2 08 00 8E 0C 80 0D 01 02 00 00 00 00 13 [17:14:44]Write i2c OK [17:14:44]MH_I2C_Read... [17:14:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:14:44]Read from MH i2c: E2 [17:14:44]MH_I2C_Read... [17:14:44]Read from MH i2c: E2 03 00 [17:14:44]MH_I2C_Read... [17:14:44]Read from MH i2c: E2 03 00 8E 0C 00 90 00 0E [17:14:44]RAPDU: 90 00 [17:14:44]wFMCommunicate OK [17:14:44]wFMCommunicate request_size=255 [17:14:44]MH_SAM_APDU [17:14:44]CAPDU: 80 0D 02 02 FA 05 00 6F 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 98 D1 81 D0 BC D0 B0 D0 BD D0 B0 D0 BB D0 B8 D0 B5 D0 B2 20 D0 94 2E 20 F4 03 04 00 7C 4B 5F 66 0E 04 04 00 45 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 5E 04 04 00 8A 00 00 00 57 04 04 00 8C 00 00 00 AA 04 DD 04 6E 04 04 00 8A 00 00 00 69 04 A3 00 6F 04 04 00 87 00 00 00 B1 04 03 00 59 86 BF 70 04 03 00 14 5D 98 72 04 03 00 45 29 27 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 0A 58 14 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 [17:14:44]Write to MH i2c: E2 02 01 8F 0C 80 0D 02 02 FA 00 05 00 6F 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 98 D1 81 D0 BC D0 B0 D0 BD D0 B0 D0 BB D0 B8 D0 B5 D0 B2 20 D0 94 2E 20 F4 03 04 00 7C 4B 5F 66 0E 04 04 00 45 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 5E 04 04 00 8A 00 00 00 57 04 04 00 8C 00 00 00 AA 04 DD 04 6E 04 04 00 8A 00 00 00 69 04 A3 00 6F 04 04 00 87 00 00 00 B1 04 03 00 59 86 BF 70 04 03 00 14 5D 98 72 04 03 00 45 29 27 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 0A 58 14 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 00 05 [17:14:44]Write i2c OK [17:14:44]MH_I2C_Read... [17:14:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:14:44]Read from MH i2c: E2 [17:14:44]MH_I2C_Read... [17:14:44]Read from MH i2c: E2 03 00 [17:14:44]MH_I2C_Read... [17:14:44]Read from MH i2c: E2 03 00 8F 0C 00 90 00 0F [17:14:44]RAPDU: 90 00 [17:14:44]wFMCommunicate OK [17:14:44]wFMCommunicate request_size=255 [17:14:44]MH_SAM_APDU [17:14:44]CAPDU: 80 0D 02 02 FA 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 01 B2 01 6A 04 A0 00 6F 04 04 00 03 00 00 00 B1 04 03 00 98 EC 0C 70 04 03 00 98 EC 0C 72 04 01 00 00 00 04 81 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 6B 5F 01 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 49 1D 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 [17:14:45]Write to MH i2c: E2 02 01 90 0C 80 0D 02 02 FA 00 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 01 B2 01 6A 04 A0 00 6F 04 04 00 03 00 00 00 B1 04 03 00 98 EC 0C 70 04 03 00 98 EC 0C 72 04 01 00 00 00 04 81 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 6B 5F 01 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 49 1D 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 00 00 B3 [17:14:45]Write i2c OK [17:14:45]MH_I2C_Read... [17:14:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:14:45]Read from MH i2c: E2 [17:14:45]MH_I2C_Read... [17:14:45]Read from MH i2c: E2 03 00 [17:14:45]MH_I2C_Read... [17:14:45]Read from MH i2c: E2 03 00 90 0C 00 90 00 10 [17:14:45]RAPDU: 90 00 [17:14:45]wFMCommunicate OK [17:14:45]wFMCommunicate request_size=255 [17:14:45]MH_SAM_APDU [17:14:45]CAPDU: 80 0D 02 02 FA 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 [17:14:45]Write to MH i2c: E2 02 01 91 0C 80 0D 02 02 FA 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 00 D5 [17:14:46]Write i2c OK [17:14:46]MH_I2C_Read... [17:14:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:14:46]Read from MH i2c: E2 [17:14:46]MH_I2C_Read... [17:14:46]Read from MH i2c: E2 03 00 [17:14:46]MH_I2C_Read... [17:14:46]Read from MH i2c: E2 03 00 91 0C 00 90 00 11 [17:14:46]RAPDU: 90 00 [17:14:46]wFMCommunicate OK [17:14:46]wFMCommunicate request_size=255 [17:14:46]MH_SAM_APDU [17:14:46]CAPDU: 80 0D 02 02 FA 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 [17:14:46]Write to MH i2c: E2 02 01 92 0C 80 0D 02 02 FA 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F OFD Sender: No OFD packet to send [17:14:46]04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 DE [17:14:46]Write i2c OK [17:14:46]MH_I2C_Read... [17:14:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:14:47]Read from MH i2c: E2 [17:14:47]MH_I2C_Read... [17:14:47]Read from MH i2c: E2 03 00 [17:14:47]MH_I2C_Read... [17:14:47]Read from MH i2c: E2 03 00 92 0C 00 90 00 12 [17:14:47]RAPDU: 90 00 [17:14:47]wFMCommunicate OK [17:14:47]wFMCommunicate request_size=255 [17:14:47]MH_SAM_APDU [17:14:47]CAPDU: 80 0D 02 02 FA 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 [17:14:47]Write to MH i2c: E2 02 01 93 0C 80 0D 02 02 FA 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 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 00 00 A6 [17:14:47]Write i2c OK [17:14:47]MH_I2C_Read... [17:14:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:14:47]Read from MH i2c: E2 [17:14:47]MH_I2C_Read... [17:14:47]Read from MH i2c: E2 03 00 [17:14:47]MH_I2C_Read... [17:14:47]Read from MH i2c: E2 03 00 93 0C 00 90 00 13 [17:14:47]RAPDU: 90 00 [17:14:47]wFMCommunicate OK [17:14:47]wFMCommunicate request_size=150 [17:14:47]MH_SAM_APDU [17:14:47]CAPDU: 80 0D 02 02 91 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 21 0C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 35 04 06 00 8F 47 57 D7 07 32 [17:14:47]Write to MH i2c: E2 99 00 94 0C 80 0D 02 02 91 00 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 21 0C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 35 04 06 00 8F 47 57 D7 07 32 00 00 C3 [17:14:48]Write i2c OK [17:14:48]MH_I2C_Read... [17:14:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:14:48]Read from MH i2c: E2 [17:14:48]MH_I2C_Read... [17:14:48]Read from MH i2c: E2 03 00 [17:14:48]MH_I2C_Read... [17:14:48]Read from MH i2c: E2 03 00 94 0C 00 90 00 14 [17:14:48]RAPDU: 90 00 [17:14:48]wFMCommunicate OK [17:14:48]wFMCommunicate request_size=4 [17:14:48]MH_SAM_APDU [17:14:48]CAPDU: 80 0D 03 02 [17:14:48]Write to MH i2c: E2 08 00 95 0C 80 0D 03 02 00 00 00 00 1C [17:14:48]Write i2c OK [17:14:48]MH_I2C_Read... [17:14:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:14:48]Read from MH i2c: E2 [17:14:48]MH_I2C_Read... [17:14:48]Read from MH i2c: E2 0B 00 [17:14:48]MH_I2C_Read... [17:14:48]Read from MH i2c: E2 0B 00 95 0C 00 C6 B3 28 4F 17 44 D9 CA 90 00 0B [17:14:48]RAPDU: C6 B3 28 4F 17 44 D9 CA 90 00 [17:14:48]wFMCommunicate OK [17:14:48]SAM_PROTO_SignData done [17:14:48]FM_MakeSignedData done [17:14:48]CreateOFDProtocolMessage [17:14:48]wFMCommunicate request_size=4 [17:14:48]MH_SAM_APDU [17:14:48]CAPDU: 80 11 00 00 [17:14:48]Write to MH i2c: E2 08 00 96 0C 80 11 00 00 00 00 00 00 1C [17:14:48]Write i2c OK [17:14:48]MH_I2C_Read... [17:14:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:14:48]Read from MH i2c: E2 [17:14:48]MH_I2C_Read... [17:14:48]Read from MH i2c: E2 17 00 [17:14:48]MH_I2C_Read... [17:14:48]Read from MH i2c: E2 17 00 96 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 67 [17:14:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [17:14:48]wFMCommunicate OK [17:14:48]CreateOFDProtocolMessage done [17:14:48]OFDSenderStorePacket 68641 [17:14:48]StoreOFDPacket docnum=68641 [17:14:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 83 05 00 00 34 18 7B 05 CC C9 5A 05 01 00 05 00 6F 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 98 D1 81 D0 BC D0 B0 D0 BD D0 B0 D0 BB D0 B8 D0 B5 D0 B2 20 D0 94 2E 20 F4 03 04 00 7C 4B 5F 66 0E 04 04 00 45 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 5E 04 04 00 8A 00 00 00 57 04 04 00 8C 00 00 00 AA 04 DD 04 6E 04 04 00 8A 00 00 00 69 04 A3 00 6F 04 04 00 87 00 00 00 B1 04 03 00 59 86 BF 70 04 03 00 14 5D 98 72 04 03 00 45 29 27 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 0A 58 14 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 01 B2 01 6A 04 A0 00 6F 04 04 00 03 00 00 00 B1 04 03 00 98 EC 0C 70 04 03 00 98 EC 0C 72 04 01 00 00 00 04 81 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 6B 5F 01 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 49 1D 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 21 0C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 35 04 06 00 8F 47 57 D7 07 32 C6 B3 28 4F 17 44 D9 CA [17:14:48]CheckFolder [17:14:48]dirname=/storage/ofd_packets [17:14:48]CheckFolder done [17:14:48]ProducePacketName [17:14:48]name=ofd_packets/00068641 [17:14:48]NVStorageSaveData ofd_packets/00068641 [17:14:48]File name is /storage/ofd_packets/00068641 [17:14:48]Write 1441 bytes [17:14:48]NVStorageSaveData done [17:14:48]OFDSenderStorePacket done [17:14:48]KKMCreateOFDPacket done [17:14:48]NVStorageSaveData kkm_last_timestamp [17:14:48]File name is /storage/kkm_last_timestamp [17:14:48]Write 4 bytes [17:14:48]NVStorageSaveData done [17:14:48]ExternCall_PrintAddStr [17:14:48]wPrintStart [17:14:48]Write to MH i2c: 01 00 00 97 0C A3 [17:14:48]Write i2c OK [17:14:48]MH_I2C_Read... [17:14:48]Read from MH i2c: 01 [17:14:48]MH_I2C_Read... [17:14:48]Read from MH i2c: 01 07 00 [17:14:48]MH_I2C_Read... [17:14:48]Read from MH i2c: 01 07 00 97 0C 00 00 00 00 00 FF 0F B8 [17:14:48]RasterBufferAndPrint [17:14:48]line Отчет о закрытии смены [17:14:48]line ФФД: 1.0 [17:14:48]line ИНН: 02508201610067 [17:14:48]line Кассир: Исманалиев Д. [17:14:48]line 04.06.2024 17:14 [17:14:48]line Смена: 325 [17:14:48]line РНМ: 0000000000098096 [17:14:48]line ЗНМ: 0300000181 [17:14:48]line СНО: Общий режим [17:14:48]line Чеков за смену: 138 [17:14:48]line ФД за смену: 140 [17:14:48]line Всего чеков: 138 [17:14:48]line ИТОГИ ПРИХОД [17:14:48]line Чеков: 135 [17:14:48]line Общий итог: 125517.69 [17:14:48]line Итого наличными: 99853.00 [17:14:48]line Итого безнал.: 25664.69 [17:14:48]line НДС 0% : 0.00 [17:14:48]line НДС 12% : 13332.58 [17:14:48]line НСП 0% : 0.00 [17:14:48]line НСП 1,50% : 0.00 [17:14:48]line НСП 0,50% : 0.00 [17:14:48]line НСП 5% : 0.00 [17:14:48]line НСП 3% : 0.00 [17:14:48]line НСП 2% : 0.00 [17:14:48]line НСП 1% : 1111.05 [17:14:48]line ИТОГИ ВОЗВРАТ ПРИХОДА [17:14:48]line Чеков: 3 [17:14:48]line Общий итог: 8470.00 [17:14:48]line Итого наличными: 8470.00 [17:14:48]line Итого безнал.: 0.00 [17:14:48]line НДС 0% : 0.00 [17:14:48]line НДС 12% : 899.63 [17:14:48]line НСП 0% : 0.00 [17:14:48]line НСП 1,50% : 0.00 [17:14:48]line НСП 0,50% : 0.00 [17:14:48]line НСП 5% : 0.00 [17:14:48]line НСП 3% : 0.00 [17:14:48]line НСП 2% : 0.00 [17:14:48]line НСП 1% : 74.97 [17:14:48]line ИТОГИ РАСХОД [17:14:48]line Чеков: 0 [17:14:48]line Общий итог: 0.00 [17:14:48]line Итого наличными: 0.00 [17:14:48]line Итого безнал.: 0.00 [17:14:48]line НДС 0% : 0.00 [17:14:48]line НДС 12% : 0.00 [17:14:48]line НСП 0% : 0.00 [17:14:48]line НСП 1,50% : 0.00 [17:14:48]line НСП 0,50% : 0.00 [17:14:48]line НСП 5% : 0.00 [17:14:48]line НСП 3% : 0.00 [17:14:48]line НСП 2% : 0.00 [17:14:48]line НСП 1% : 0.00 [17:14:48]line ИТОГИ ВОЗВРАТ РАСХОДА [17:14:48]line Чеков: 0 [17:14:48]line Общий итог: 0.00 [17:14:48]line Итого наличными: 0.00 [17:14:48]line Итого безнал.: 0.00 [17:14:48]line НДС 0% : 0.00 [17:14:48]line НДС 12% : 0.00 [17:14:48]line НСП 0% : 0.00 [17:14:48]line НСП 1,50% : 0.00 [17:14:48]line НСП 0,50% : 0.00 [17:14:48]line НСП 5% : 0.00 [17:14:48]line НСП 3% : 0.00 [17:14:48]line НСП 2% : 0.00 [17:14:48]line НСП 1% : 0.00 [17:14:48]line Сумма внесений: 0.00 [17:14:48]line Сумма выплат: 0.00 [17:14:48]line Нал. в кассе: 91383.00 [17:14:48]line НС Приход: 52788258.02 [17:14:48]line НС Возвр.Прихода: 2509147.00 [17:14:48]line НС Расход: 0.00 [17:14:48]line НС Возвр.Расхода: 0.00 [17:14:48]line ФД: 68641 [17:14:48]line ФМ: 0000000000965400 [17:14:48]line ФПД: 157536579159858 [17:14:48]OFD Sender: Processing packet 68641 [packets to send 27, broken 26] [17:14:48]ProducePacketName [17:14:48]name=ofd_packets/00068641 [17:14:48]OFD Sender: To server: pG, [17:14:48]CommunicateWithHost lk.salyk.kg:30040 [17:14:48]ConnectInit lk.salyk.kg [17:14:48]written 0, free lines is 4095 [17:14:49]Connected sock=10 [17:14:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 83 05 00 00 34 18 7B 05 CC C9 5A 05 01 00 05 00 6F 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 98 D1 81 D0 BC D0 B0 D0 BD D0 B0 D0 BB D0 B8 D0 B5 D0 B2 20 D0 94 2E 20 F4 03 04 00 7C 4B 5F 66 0E 04 04 00 45 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 5E 04 04 00 8A 00 00 00 57 04 04 00 8C 00 00 00 AA 04 DD 04 6E 04 04 00 8A 00 00 00 69 04 A3 00 6F 04 04 00 87 00 00 00 B1 04 03 00 59 86 BF 70 04 03 00 14 5D 98 72 04 03 00 45 29 27 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 0A 58 14 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 01 B2 01 6A 04 A0 00 6F 04 04 00 03 00 00 00 B1 04 03 00 98 EC 0C 70 04 03 00 98 EC 0C 72 04 01 00 00 00 04 81 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 6B 5F 01 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 49 1D 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 Write to MH i2c: 00 01 00 00 EF 00 03 E7 0A 0C 00 F6 03 01 00 04 F7 03 01 00 00 EF F3 03 [17:14:50]0A Write i2c OK [17:14:50]00 MH_I2C_Read... [17:14:50]F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 Read from MH i2c: 03 01 01 [17:14:50]00 MH_I2C_Read... [17:14:50]02 Read from MH i2c: F7 01 03 07 01 00 00 [17:14:50]00 MH_I2C_Read... [17:14:50]EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 Read from MH i2c: 6D 01 04 07 4C 00 02 E7 78 0C 04 04 00 00 00 00 00 79 04 8D 00 6F 00 04 00 04 00 00 00 00 00 00 D4 00 0B 00 D9 B1 [17:14:50]04 RasterBufferAndPrint [17:14:50]line [17:14:50]00 line [17:14:50]00 line [17:14:50]70 line [17:14:50]04 line [17:14:50]00 00 written 0, free lines is 3197 [17:14:50]72 04 00 00 00 04 75 00 EE 03 09 00 MH_Cut [17:14:50]F2 Write to MH i2c: 03 D1 01 01 00 00 00 EE F3 0C 03 01 00 CC 00 [17:14:50]EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF Write i2c OK [17:14:50]03 MH_I2C_Read... [17:14:50]09 Read from MH i2c: 00 D1 F6 [17:14:50]03 01 00 00 F7 03 00 00 EF 03 09 00 MH_I2C_Read... [17:14:50]F6 Read from MH i2c: 03 D1 01 01 00 00 01 [17:14:50]F7 MH_I2C_Read... [17:14:50]03 Read from MH i2c: 00 D1 00 01 EF 00 03 EE 09 0C 00 00 F6 CB 03 [17:14:50]01 Write to MH i2c: 01 00 00 EF 0C FB [17:14:50]00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 Write i2c OK [17:14:50]MH_I2C_Read... [17:14:50]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 21 0C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 *** Cut start [17:14:50]35 34 *** Partial cut [17:14:50]30 30 *** CUTSNS_PIN = 1 [17:14:50]35 04 06 00 8F 47 57 D7 07 32 C6 B3 28 4F 17 44 D9 CA [17:14:50]*** CUTSNS_PIN = 0 [17:14:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 99 FB 47 00 16 C8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 21 0C 01 00 F4 03 04 00 81 F2 5E 66 B6 04 01 00 00 C7 DD 55 AD 29 43 20 6E [17:14:51]CommunicateWithHost err = 0 [17:14:51]CheckOFDResponse [17:14:51]1017 (14) - 77093643461234 [17:14:51]1041 (16) - 0000000000965400 [17:14:51]1040 (4) - 68641 [17:14:51]1012 (4) - 04.06.2024 10:54 [17:14:51]1206 (1) - 0 [17:14:51]OFD Sender: Remove packet 68641 [17:14:51]ProducePacketName [17:14:51]name=ofd_packets/00068641 [17:14:51]NVStorageDeleteData [17:14:51]*** Brake cut motor [17:14:51]Read from MH i2c: 01 [17:14:51]MH_I2C_Read... [17:14:51]*** Stop cut motor [17:14:51]*** Cut end [17:14:51]Read from MH i2c: 01 07 00 [17:14:51]MH_I2C_Read... [17:14:51]Read from MH i2c: 01 07 00 EF 0C 00 00 00 00 00 FF 0F 10 [17:14:51]process_action close_shift done [17:14:51]requested_data is exist [17:14:51]produce_requested_data [17:14:51]requested_item fd.num is exist - process it [17:14:51]SAM_PROTO_GetFieldsCounters [17:14:51]wFMCommunicate request_size=4 [17:14:51]MH_SAM_APDU [17:14:51]CAPDU: 80 13 00 00 [17:14:51]Write to MH i2c: E2 08 00 F0 0C 80 13 00 00 00 00 00 00 78 [17:14:51]Write i2c OK [17:14:51]MH_I2C_Read... [17:14:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:14:51]Read from MH i2c: E2 [17:14:51]MH_I2C_Read... [17:14:51]Read from MH i2c: E2 62 00 [17:14:51]MH_I2C_Read... [17:14:51]Read from MH i2c: E2 62 00 F0 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 21 0C 01 00 0E 04 04 00 45 01 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 AB [17:14:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 21 0C 01 00 0E 04 04 00 45 01 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:14:51]wFMCommunicate OK [17:14:51]SAM_PROTO_GetFieldsCounters done [17:14:51]requested_item shift.num is exist - process it [17:14:51]requested_item shift.opened is exist - process it [17:14:51]req_shift_opened [17:14:52]FM_GetShiftState [17:14:52]SAM_PROTO_GetShiftState [17:14:52]OFD Sender: No OFD packet to send [17:14:52]wFMCommunicate request_size=4 [17:14:52]MH_SAM_APDU [17:14:52]CAPDU: 80 13 01 00 [17:14:52]Write to MH i2c: E2 08 00 F1 0C 80 13 01 00 00 00 00 00 7A [17:14:52]Write i2c OK [17:14:52]MH_I2C_Read... [17:14:52]Read from MH i2c: E2 [17:14:52]MH_I2C_Read... [17:14:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:14:52]Read from MH i2c: E2 0E 00 [17:14:52]MH_I2C_Read... [17:14:52]Read from MH i2c: E2 0E 00 F1 0C 00 09 00 00 00 00 00 00 00 00 00 00 90 00 85 [17:14:52]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [17:14:52]wFMCommunicate OK [17:14:52]SAM_PROTO_GetShiftState done [17:14:52]FM_GetShiftState done [17:14:52]req_shift_opened done [17:14:52]requested_item shift.open_date is exist - process it [17:14:52]req_shift_open_date [17:14:52]FM_GetShiftState [17:14:52]SAM_PROTO_GetShiftState [17:14:52]wFMCommunicate request_size=4 [17:14:52]MH_SAM_APDU [17:14:52]CAPDU: 80 13 01 00 [17:14:52]Write to MH i2c: E2 08 00 F2 0C 80 13 01 00 00 00 00 00 7B [17:14:52]Write i2c OK [17:14:52]MH_I2C_Read... [17:14:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:14:52]Read from MH i2c: E2 [17:14:52]MH_I2C_Read... [17:14:52]Read from MH i2c: E2 0E 00 [17:14:52]MH_I2C_Read... [17:14:52]Read from MH i2c: E2 0E 00 F2 0C 00 09 00 00 00 00 00 00 00 00 00 00 90 00 86 [17:14:52]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [17:14:52]wFMCommunicate OK [17:14:52]SAM_PROTO_GetShiftState done [17:14:52]FM_GetShiftState done [17:14:52]req_shift_open_date done [17:14:52]produce_requested_data done [17:14:52]produce_requested_data return {"fd.num":68641,"shift.num":325,"shift.opened":0,"shift.open_date":0} [17:14:52]process_action_free close_shift [17:14:52]json_value_free [17:14:52]json_value_free done [17:14:52]process_json_proto returns [17:14:52]Send response to host [17:14:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":68641,"shift.num":325,"shift.opened":0,"shift.open_date":0}}} [17:14:52]free response buf [17:14:52]execute_script done [17:14:52]execute_script returns [17:14:52]free content buf [17:14:52]Sock 9.Close socket [17:14:52]Sock 9.Thread stoped [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:37]OFD Sender: No OFD packet to send [17:17:42]OFD Sender: No OFD packet to send [17:17:47]OFD Sender: No OFD packet to send [17:17:52]OFD Sender: No OFD packet to send [17:17:57]OFD Sender: No OFD packet to send [17:18:02]OFD Sender: No OFD packet to send [17:18:07]OFD Sender: No OFD packet to send [17:18:12]OFD Sender: No OFD packet to send [17:18:17]OFD Sender: No OFD packet to send [17:18:22]OFD Sender: No OFD packet to send [17:18:27]OFD Sender: No OFD packet to send [17:18:32]OFD Sender: No OFD packet to send [17:18:37]OFD Sender: No OFD packet to send [17:18:42]OFD Sender: No OFD packet to send [17:18:47]OFD Sender: No OFD packet to send [17:18:52]OFD Sender: No OFD packet to send [17:18:57]OFD Sender: No OFD packet to send [17:19:02]OFD Sender: No OFD packet to send [17:19:07]OFD Sender: No OFD packet to send [17:19:12]OFD Sender: No OFD packet to send [17:19:17]OFD Sender: No OFD packet to send [17:19:22]OFD Sender: No OFD packet to send [17:19:27]OFD Sender: No OFD packet to send [17:19:32]OFD Sender: No OFD packet to send [17:19:37]OFD Sender: No OFD packet to send [17:19:42]OFD Sender: No OFD packet to send [17:19:47]OFD Sender: No OFD packet to send [17:19:52]OFD Sender: No OFD packet to send [17:19:57]OFD Sender: No OFD packet to send [17:20:02]OFD Sender: No OFD packet to send [17:20:07]OFD Sender: No OFD packet to send [17:20:12]OFD Sender: No OFD packet to send [17:20:17]OFD Sender: No OFD packet to send [17:20:22]OFD Sender: No OFD packet to send [17:20:27]OFD Sender: No OFD packet to send [17:20:32]OFD Sender: No OFD packet to send [17:20:37]OFD Sender: No OFD packet to send [17:20:42]OFD Sender: No OFD packet to send [17:20:47]OFD Sender: No OFD packet to send [17:20:52]OFD Sender: No OFD packet to send [17:20:57]OFD Sender: No OFD packet to send [17:21:02]OFD Sender: No OFD packet to send [17:21:07]OFD Sender: No OFD packet to send [17:21:12]OFD Sender: No OFD packet to send [17:21:17]OFD Sender: No OFD packet to send [17:21:22]OFD Sender: No OFD packet to send [17:21:27]OFD Sender: No OFD packet to send [17:21:32]OFD Sender: No OFD packet to send [17:21:37]OFD Sender: No OFD packet to send [17:21:42]OFD Sender: No OFD packet to send [17:21:47]OFD Sender: No OFD packet to send [17:21:52]OFD Sender: No OFD packet to send [17:21:57]OFD Sender: No OFD packet to send [17:22:02]OFD Sender: No OFD packet to send [17:22:07]OFD Sender: No OFD packet to send [17:22:12]OFD Sender: No OFD packet to send [17:22:17]OFD Sender: No OFD packet to send [17:22:22]OFD Sender: No OFD packet to send [17:22:27]OFD Sender: No OFD packet to send [17:22:32]OFD Sender: No OFD packet to send [17:22:37]OFD Sender: No OFD packet to send [17:22:42]OFD Sender: No OFD packet to send [17:22:47]OFD Sender: No OFD packet to send [17:22:52]OFD Sender: No OFD packet to send [17:22:57]OFD Sender: No OFD packet to send [17:23:02]OFD Sender: No OFD packet to send [17:23:07]OFD Sender: No OFD packet to send [17:23:12]OFD Sender: No OFD packet to send [17:23:17]OFD Sender: No OFD packet to send [17:23:22]OFD Sender: No OFD packet to send [17:23:27]OFD Sender: No OFD packet to send [17:23:32]OFD Sender: No OFD packet to send [17:23:37]OFD Sender: No OFD packet to send [17:23:42]OFD Sender: No OFD packet to send [17:23:47]OFD Sender: No OFD packet to send [17:23:52]OFD Sender: No OFD packet to send [17:23:57]OFD Sender: No OFD packet to send [17:24:02]OFD Sender: No OFD packet to send [17:24:07]OFD Sender: No OFD packet to send [17:24:12]OFD Sender: No OFD packet to send [17:24:17]OFD Sender: No OFD packet to send [17:24:22]OFD Sender: No OFD packet to send [17:24:27]OFD Sender: No OFD packet to send [17:24:32]OFD Sender: No OFD packet to send [17:24:37]OFD Sender: No OFD packet to send [17:24:42]OFD Sender: No OFD packet to send [17:24:47]OFD Sender: No OFD packet to send [17:24:52]OFD Sender: No OFD packet to send [17:24:57]OFD Sender: No OFD packet to send [17:25:02]OFD Sender: No OFD packet to send [17:25:07]OFD Sender: No OFD packet to send [17:25:12]OFD Sender: No OFD packet to send [17:25:17]OFD Sender: No OFD packet to send [17:25:22]OFD Sender: No OFD packet to send [17:25:27]OFD Sender: No OFD packet to send [17:25:32]OFD Sender: No OFD packet to send [17:25:37]OFD Sender: No OFD packet to send [17:25:42]OFD Sender: No OFD packet to send [17:25:47]OFD Sender: No OFD packet to send [17:25:52]OFD Sender: No OFD packet to send [17:25:57]OFD Sender: No OFD packet to send [17:26:02]OFD Sender: No OFD packet to send [17:26:07]OFD Sender: No OFD packet to send [17:26:12]OFD Sender: No OFD packet to send [17:26:17]OFD Sender: No OFD packet to send [17:26:22]OFD Sender: No OFD packet to send [17:26:27]OFD Sender: No OFD packet to send [17:26:32]OFD Sender: No OFD packet to send [17:26:37]OFD Sender: No OFD packet to send [17:26:42]OFD Sender: No OFD packet to send [17:26:47]OFD Sender: No OFD packet to send [17:26:52]OFD Sender: No OFD packet to send [17:26:57]OFD Sender: No OFD packet to send [17:27:02]OFD Sender: No OFD packet to send [17:27:07]OFD Sender: No OFD packet to send [17:27:12]OFD Sender: No OFD packet to send [17:27:17]OFD Sender: No OFD packet to send [17:27:22]OFD Sender: No OFD packet to send [17:27:27]OFD Sender: No OFD packet to send [17:27:32]OFD Sender: No OFD packet to send [17:27:37]OFD Sender: No OFD packet to send [17:27:42]OFD Sender: No OFD packet to send [17:27:47]OFD Sender: No OFD packet to send [17:27:52]OFD Sender: No OFD packet to send [17:27:57]OFD Sender: No OFD packet to send [17:28:02]OFD Sender: No OFD packet to send [17:28:07]OFD Sender: No OFD packet to send [17:28:12]OFD Sender: No OFD packet to send [17:28:17]OFD Sender: No OFD packet to send [17:28:22]OFD Sender: No OFD packet to send [17:28:27]OFD Sender: No OFD packet to send [17:28:32]OFD Sender: No OFD packet to send [17:28:37]OFD Sender: No OFD packet to send [17:28:42]OFD Sender: No OFD packet to send [17:28:47]OFD Sender: No OFD packet to send [17:28:52]OFD Sender: No OFD packet to send [17:28:57]OFD Sender: No OFD packet to send [17:29:02]OFD Sender: No OFD packet to send [17:29:07]OFD Sender: No OFD packet to send [17:29:12]OFD Sender: No OFD packet to send [17:29:17]OFD Sender: No OFD packet to send [17:29:22]OFD Sender: No OFD packet to send [17:29:27]OFD Sender: No OFD packet to send [17:29:32]OFD Sender: No OFD packet to send